diff options
author | David Walter Seikel | 2012-01-04 18:41:13 +1000 |
---|---|---|
committer | David Walter Seikel | 2012-01-04 18:41:13 +1000 |
commit | dd7595a3475407a7fa96a97393bae8c5220e8762 (patch) | |
tree | e341e911d7eb911a51684a7412ef7f7c7605d28e /libraries/edje/configure | |
parent | Add the skeleton. (diff) | |
download | SledjHamr-dd7595a3475407a7fa96a97393bae8c5220e8762.zip SledjHamr-dd7595a3475407a7fa96a97393bae8c5220e8762.tar.gz SledjHamr-dd7595a3475407a7fa96a97393bae8c5220e8762.tar.bz2 SledjHamr-dd7595a3475407a7fa96a97393bae8c5220e8762.tar.xz |
Add the base Enlightenment Foundation Libraries - eina, eet, evas, ecore, embryo, and edje.
Note that embryo wont be used, but I'm not sure yet if you can build edje without it.
Diffstat (limited to 'libraries/edje/configure')
-rwxr-xr-x | libraries/edje/configure | 19051 |
1 files changed, 19051 insertions, 0 deletions
diff --git a/libraries/edje/configure b/libraries/edje/configure new file mode 100755 index 0000000..3b234ef --- /dev/null +++ b/libraries/edje/configure | |||
@@ -0,0 +1,19051 @@ | |||
1 | #! /bin/sh | ||
2 | # Guess values for system-dependent variables and create Makefiles. | ||
3 | # Generated by GNU Autoconf 2.67 for edje 1.1.0. | ||
4 | # | ||
5 | # Report bugs to <enlightenment-devel@lists.sourceforge.net>. | ||
6 | # | ||
7 | # | ||
8 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | ||
9 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software | ||
10 | # Foundation, Inc. | ||
11 | # | ||
12 | # | ||
13 | # This configure script is free software; the Free Software Foundation | ||
14 | # gives unlimited permission to copy, distribute and modify it. | ||
15 | ## -------------------- ## | ||
16 | ## M4sh Initialization. ## | ||
17 | ## -------------------- ## | ||
18 | |||
19 | # Be more Bourne compatible | ||
20 | DUALCASE=1; export DUALCASE # for MKS sh | ||
21 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | ||
22 | emulate sh | ||
23 | NULLCMD=: | ||
24 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | ||
25 | # is contrary to our usage. Disable this feature. | ||
26 | alias -g '${1+"$@"}'='"$@"' | ||
27 | setopt NO_GLOB_SUBST | ||
28 | else | ||
29 | case `(set -o) 2>/dev/null` in #( | ||
30 | *posix*) : | ||
31 | set -o posix ;; #( | ||
32 | *) : | ||
33 | ;; | ||
34 | esac | ||
35 | fi | ||
36 | |||
37 | |||
38 | as_nl=' | ||
39 | ' | ||
40 | export as_nl | ||
41 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | ||
42 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | ||
43 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | ||
44 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | ||
45 | # Prefer a ksh shell builtin over an external printf program on Solaris, | ||
46 | # but without wasting forks for bash or zsh. | ||
47 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | ||
48 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | ||
49 | as_echo='print -r --' | ||
50 | as_echo_n='print -rn --' | ||
51 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | ||
52 | as_echo='printf %s\n' | ||
53 | as_echo_n='printf %s' | ||
54 | else | ||
55 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | ||
56 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | ||
57 | as_echo_n='/usr/ucb/echo -n' | ||
58 | else | ||
59 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | ||
60 | as_echo_n_body='eval | ||
61 | arg=$1; | ||
62 | case $arg in #( | ||
63 | *"$as_nl"*) | ||
64 | expr "X$arg" : "X\\(.*\\)$as_nl"; | ||
65 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | ||
66 | esac; | ||
67 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | ||
68 | ' | ||
69 | export as_echo_n_body | ||
70 | as_echo_n='sh -c $as_echo_n_body as_echo' | ||
71 | fi | ||
72 | export as_echo_body | ||
73 | as_echo='sh -c $as_echo_body as_echo' | ||
74 | fi | ||
75 | |||
76 | # The user is always right. | ||
77 | if test "${PATH_SEPARATOR+set}" != set; then | ||
78 | PATH_SEPARATOR=: | ||
79 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | ||
80 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | ||
81 | PATH_SEPARATOR=';' | ||
82 | } | ||
83 | fi | ||
84 | |||
85 | |||
86 | # IFS | ||
87 | # We need space, tab and new line, in precisely that order. Quoting is | ||
88 | # there to prevent editors from complaining about space-tab. | ||
89 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | ||
90 | # splitting by setting IFS to empty value.) | ||
91 | IFS=" "" $as_nl" | ||
92 | |||
93 | # Find who we are. Look in the path if we contain no directory separator. | ||
94 | case $0 in #(( | ||
95 | *[\\/]* ) as_myself=$0 ;; | ||
96 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
97 | for as_dir in $PATH | ||
98 | do | ||
99 | IFS=$as_save_IFS | ||
100 | test -z "$as_dir" && as_dir=. | ||
101 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | ||
102 | done | ||
103 | IFS=$as_save_IFS | ||
104 | |||
105 | ;; | ||
106 | esac | ||
107 | # We did not find ourselves, most probably we were run as `sh COMMAND' | ||
108 | # in which case we are not to be found in the path. | ||
109 | if test "x$as_myself" = x; then | ||
110 | as_myself=$0 | ||
111 | fi | ||
112 | if test ! -f "$as_myself"; then | ||
113 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | ||
114 | exit 1 | ||
115 | fi | ||
116 | |||
117 | # Unset variables that we do not need and which cause bugs (e.g. in | ||
118 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | ||
119 | # suppresses any "Segmentation fault" message there. '((' could | ||
120 | # trigger a bug in pdksh 5.2.14. | ||
121 | for as_var in BASH_ENV ENV MAIL MAILPATH | ||
122 | do eval test x\${$as_var+set} = xset \ | ||
123 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | ||
124 | done | ||
125 | PS1='$ ' | ||
126 | PS2='> ' | ||
127 | PS4='+ ' | ||
128 | |||
129 | # NLS nuisances. | ||
130 | LC_ALL=C | ||
131 | export LC_ALL | ||
132 | LANGUAGE=C | ||
133 | export LANGUAGE | ||
134 | |||
135 | # CDPATH. | ||
136 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | ||
137 | |||
138 | if test "x$CONFIG_SHELL" = x; then | ||
139 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | ||
140 | emulate sh | ||
141 | NULLCMD=: | ||
142 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | ||
143 | # is contrary to our usage. Disable this feature. | ||
144 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | ||
145 | setopt NO_GLOB_SUBST | ||
146 | else | ||
147 | case \`(set -o) 2>/dev/null\` in #( | ||
148 | *posix*) : | ||
149 | set -o posix ;; #( | ||
150 | *) : | ||
151 | ;; | ||
152 | esac | ||
153 | fi | ||
154 | " | ||
155 | as_required="as_fn_return () { (exit \$1); } | ||
156 | as_fn_success () { as_fn_return 0; } | ||
157 | as_fn_failure () { as_fn_return 1; } | ||
158 | as_fn_ret_success () { return 0; } | ||
159 | as_fn_ret_failure () { return 1; } | ||
160 | |||
161 | exitcode=0 | ||
162 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | ||
163 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | ||
164 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | ||
165 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | ||
166 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | ||
167 | |||
168 | else | ||
169 | exitcode=1; echo positional parameters were not saved. | ||
170 | fi | ||
171 | test x\$exitcode = x0 || exit 1" | ||
172 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | ||
173 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | ||
174 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | ||
175 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | ||
176 | test \$(( 1 + 1 )) = 2 || exit 1" | ||
177 | if (eval "$as_required") 2>/dev/null; then : | ||
178 | as_have_required=yes | ||
179 | else | ||
180 | as_have_required=no | ||
181 | fi | ||
182 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | ||
183 | |||
184 | else | ||
185 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
186 | as_found=false | ||
187 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | ||
188 | do | ||
189 | IFS=$as_save_IFS | ||
190 | test -z "$as_dir" && as_dir=. | ||
191 | as_found=: | ||
192 | case $as_dir in #( | ||
193 | /*) | ||
194 | for as_base in sh bash ksh sh5; do | ||
195 | # Try only shells that exist, to save several forks. | ||
196 | as_shell=$as_dir/$as_base | ||
197 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | ||
198 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | ||
199 | CONFIG_SHELL=$as_shell as_have_required=yes | ||
200 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | ||
201 | break 2 | ||
202 | fi | ||
203 | fi | ||
204 | done;; | ||
205 | esac | ||
206 | as_found=false | ||
207 | done | ||
208 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | ||
209 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | ||
210 | CONFIG_SHELL=$SHELL as_have_required=yes | ||
211 | fi; } | ||
212 | IFS=$as_save_IFS | ||
213 | |||
214 | |||
215 | if test "x$CONFIG_SHELL" != x; then : | ||
216 | # We cannot yet assume a decent shell, so we have to provide a | ||
217 | # neutralization value for shells without unset; and this also | ||
218 | # works around shells that cannot unset nonexistent variables. | ||
219 | BASH_ENV=/dev/null | ||
220 | ENV=/dev/null | ||
221 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | ||
222 | export CONFIG_SHELL | ||
223 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | ||
224 | fi | ||
225 | |||
226 | if test x$as_have_required = xno; then : | ||
227 | $as_echo "$0: This script requires a shell more modern than all" | ||
228 | $as_echo "$0: the shells that I found on your system." | ||
229 | if test x${ZSH_VERSION+set} = xset ; then | ||
230 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | ||
231 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | ||
232 | else | ||
233 | $as_echo "$0: Please tell bug-autoconf@gnu.org and | ||
234 | $0: enlightenment-devel@lists.sourceforge.net about your | ||
235 | $0: system, including any error possibly output before this | ||
236 | $0: message. Then install a modern shell, or manually run | ||
237 | $0: the script under such a shell if you do have one." | ||
238 | fi | ||
239 | exit 1 | ||
240 | fi | ||
241 | fi | ||
242 | fi | ||
243 | SHELL=${CONFIG_SHELL-/bin/sh} | ||
244 | export SHELL | ||
245 | # Unset more variables known to interfere with behavior of common tools. | ||
246 | CLICOLOR_FORCE= GREP_OPTIONS= | ||
247 | unset CLICOLOR_FORCE GREP_OPTIONS | ||
248 | |||
249 | ## --------------------- ## | ||
250 | ## M4sh Shell Functions. ## | ||
251 | ## --------------------- ## | ||
252 | # as_fn_unset VAR | ||
253 | # --------------- | ||
254 | # Portably unset VAR. | ||
255 | as_fn_unset () | ||
256 | { | ||
257 | { eval $1=; unset $1;} | ||
258 | } | ||
259 | as_unset=as_fn_unset | ||
260 | |||
261 | # as_fn_set_status STATUS | ||
262 | # ----------------------- | ||
263 | # Set $? to STATUS, without forking. | ||
264 | as_fn_set_status () | ||
265 | { | ||
266 | return $1 | ||
267 | } # as_fn_set_status | ||
268 | |||
269 | # as_fn_exit STATUS | ||
270 | # ----------------- | ||
271 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | ||
272 | as_fn_exit () | ||
273 | { | ||
274 | set +e | ||
275 | as_fn_set_status $1 | ||
276 | exit $1 | ||
277 | } # as_fn_exit | ||
278 | |||
279 | # as_fn_mkdir_p | ||
280 | # ------------- | ||
281 | # Create "$as_dir" as a directory, including parents if necessary. | ||
282 | as_fn_mkdir_p () | ||
283 | { | ||
284 | |||
285 | case $as_dir in #( | ||
286 | -*) as_dir=./$as_dir;; | ||
287 | esac | ||
288 | test -d "$as_dir" || eval $as_mkdir_p || { | ||
289 | as_dirs= | ||
290 | while :; do | ||
291 | case $as_dir in #( | ||
292 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | ||
293 | *) as_qdir=$as_dir;; | ||
294 | esac | ||
295 | as_dirs="'$as_qdir' $as_dirs" | ||
296 | as_dir=`$as_dirname -- "$as_dir" || | ||
297 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
298 | X"$as_dir" : 'X\(//\)[^/]' \| \ | ||
299 | X"$as_dir" : 'X\(//\)$' \| \ | ||
300 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | ||
301 | $as_echo X"$as_dir" | | ||
302 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
303 | s//\1/ | ||
304 | q | ||
305 | } | ||
306 | /^X\(\/\/\)[^/].*/{ | ||
307 | s//\1/ | ||
308 | q | ||
309 | } | ||
310 | /^X\(\/\/\)$/{ | ||
311 | s//\1/ | ||
312 | q | ||
313 | } | ||
314 | /^X\(\/\).*/{ | ||
315 | s//\1/ | ||
316 | q | ||
317 | } | ||
318 | s/.*/./; q'` | ||
319 | test -d "$as_dir" && break | ||
320 | done | ||
321 | test -z "$as_dirs" || eval "mkdir $as_dirs" | ||
322 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | ||
323 | |||
324 | |||
325 | } # as_fn_mkdir_p | ||
326 | # as_fn_append VAR VALUE | ||
327 | # ---------------------- | ||
328 | # Append the text in VALUE to the end of the definition contained in VAR. Take | ||
329 | # advantage of any shell optimizations that allow amortized linear growth over | ||
330 | # repeated appends, instead of the typical quadratic growth present in naive | ||
331 | # implementations. | ||
332 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | ||
333 | eval 'as_fn_append () | ||
334 | { | ||
335 | eval $1+=\$2 | ||
336 | }' | ||
337 | else | ||
338 | as_fn_append () | ||
339 | { | ||
340 | eval $1=\$$1\$2 | ||
341 | } | ||
342 | fi # as_fn_append | ||
343 | |||
344 | # as_fn_arith ARG... | ||
345 | # ------------------ | ||
346 | # Perform arithmetic evaluation on the ARGs, and store the result in the | ||
347 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | ||
348 | # must be portable across $(()) and expr. | ||
349 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | ||
350 | eval 'as_fn_arith () | ||
351 | { | ||
352 | as_val=$(( $* )) | ||
353 | }' | ||
354 | else | ||
355 | as_fn_arith () | ||
356 | { | ||
357 | as_val=`expr "$@" || test $? -eq 1` | ||
358 | } | ||
359 | fi # as_fn_arith | ||
360 | |||
361 | |||
362 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | ||
363 | # ---------------------------------------- | ||
364 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | ||
365 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | ||
366 | # script with STATUS, using 1 if that was 0. | ||
367 | as_fn_error () | ||
368 | { | ||
369 | as_status=$1; test $as_status -eq 0 && as_status=1 | ||
370 | if test "$4"; then | ||
371 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
372 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | ||
373 | fi | ||
374 | $as_echo "$as_me: error: $2" >&2 | ||
375 | as_fn_exit $as_status | ||
376 | } # as_fn_error | ||
377 | |||
378 | if expr a : '\(a\)' >/dev/null 2>&1 && | ||
379 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | ||
380 | as_expr=expr | ||
381 | else | ||
382 | as_expr=false | ||
383 | fi | ||
384 | |||
385 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | ||
386 | as_basename=basename | ||
387 | else | ||
388 | as_basename=false | ||
389 | fi | ||
390 | |||
391 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | ||
392 | as_dirname=dirname | ||
393 | else | ||
394 | as_dirname=false | ||
395 | fi | ||
396 | |||
397 | as_me=`$as_basename -- "$0" || | ||
398 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | ||
399 | X"$0" : 'X\(//\)$' \| \ | ||
400 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | ||
401 | $as_echo X/"$0" | | ||
402 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | ||
403 | s//\1/ | ||
404 | q | ||
405 | } | ||
406 | /^X\/\(\/\/\)$/{ | ||
407 | s//\1/ | ||
408 | q | ||
409 | } | ||
410 | /^X\/\(\/\).*/{ | ||
411 | s//\1/ | ||
412 | q | ||
413 | } | ||
414 | s/.*/./; q'` | ||
415 | |||
416 | # Avoid depending upon Character Ranges. | ||
417 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | ||
418 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | ||
419 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | ||
420 | as_cr_digits='0123456789' | ||
421 | as_cr_alnum=$as_cr_Letters$as_cr_digits | ||
422 | |||
423 | |||
424 | as_lineno_1=$LINENO as_lineno_1a=$LINENO | ||
425 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | ||
426 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | ||
427 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | ||
428 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | ||
429 | sed -n ' | ||
430 | p | ||
431 | /[$]LINENO/= | ||
432 | ' <$as_myself | | ||
433 | sed ' | ||
434 | s/[$]LINENO.*/&-/ | ||
435 | t lineno | ||
436 | b | ||
437 | :lineno | ||
438 | N | ||
439 | :loop | ||
440 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | ||
441 | t loop | ||
442 | s/-\n.*// | ||
443 | ' >$as_me.lineno && | ||
444 | chmod +x "$as_me.lineno" || | ||
445 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | ||
446 | |||
447 | # Don't try to exec as it changes $[0], causing all sort of problems | ||
448 | # (the dirname of $[0] is not the place where we might find the | ||
449 | # original and so on. Autoconf is especially sensitive to this). | ||
450 | . "./$as_me.lineno" | ||
451 | # Exit status is that of the last command. | ||
452 | exit | ||
453 | } | ||
454 | |||
455 | ECHO_C= ECHO_N= ECHO_T= | ||
456 | case `echo -n x` in #((((( | ||
457 | -n*) | ||
458 | case `echo 'xy\c'` in | ||
459 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | ||
460 | xy) ECHO_C='\c';; | ||
461 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | ||
462 | ECHO_T=' ';; | ||
463 | esac;; | ||
464 | *) | ||
465 | ECHO_N='-n';; | ||
466 | esac | ||
467 | |||
468 | rm -f conf$$ conf$$.exe conf$$.file | ||
469 | if test -d conf$$.dir; then | ||
470 | rm -f conf$$.dir/conf$$.file | ||
471 | else | ||
472 | rm -f conf$$.dir | ||
473 | mkdir conf$$.dir 2>/dev/null | ||
474 | fi | ||
475 | if (echo >conf$$.file) 2>/dev/null; then | ||
476 | if ln -s conf$$.file conf$$ 2>/dev/null; then | ||
477 | as_ln_s='ln -s' | ||
478 | # ... but there are two gotchas: | ||
479 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | ||
480 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | ||
481 | # In both cases, we have to default to `cp -p'. | ||
482 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | ||
483 | as_ln_s='cp -p' | ||
484 | elif ln conf$$.file conf$$ 2>/dev/null; then | ||
485 | as_ln_s=ln | ||
486 | else | ||
487 | as_ln_s='cp -p' | ||
488 | fi | ||
489 | else | ||
490 | as_ln_s='cp -p' | ||
491 | fi | ||
492 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | ||
493 | rmdir conf$$.dir 2>/dev/null | ||
494 | |||
495 | if mkdir -p . 2>/dev/null; then | ||
496 | as_mkdir_p='mkdir -p "$as_dir"' | ||
497 | else | ||
498 | test -d ./-p && rmdir ./-p | ||
499 | as_mkdir_p=false | ||
500 | fi | ||
501 | |||
502 | if test -x / >/dev/null 2>&1; then | ||
503 | as_test_x='test -x' | ||
504 | else | ||
505 | if ls -dL / >/dev/null 2>&1; then | ||
506 | as_ls_L_option=L | ||
507 | else | ||
508 | as_ls_L_option= | ||
509 | fi | ||
510 | as_test_x=' | ||
511 | eval sh -c '\'' | ||
512 | if test -d "$1"; then | ||
513 | test -d "$1/."; | ||
514 | else | ||
515 | case $1 in #( | ||
516 | -*)set "./$1";; | ||
517 | esac; | ||
518 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | ||
519 | ???[sx]*):;;*)false;;esac;fi | ||
520 | '\'' sh | ||
521 | ' | ||
522 | fi | ||
523 | as_executable_p=$as_test_x | ||
524 | |||
525 | # Sed expression to map a string onto a valid CPP name. | ||
526 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | ||
527 | |||
528 | # Sed expression to map a string onto a valid variable name. | ||
529 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | ||
530 | |||
531 | |||
532 | |||
533 | # Check that we are running under the correct shell. | ||
534 | SHELL=${CONFIG_SHELL-/bin/sh} | ||
535 | |||
536 | case X$lt_ECHO in | ||
537 | X*--fallback-echo) | ||
538 | # Remove one level of quotation (which was required for Make). | ||
539 | ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` | ||
540 | ;; | ||
541 | esac | ||
542 | |||
543 | ECHO=${lt_ECHO-echo} | ||
544 | if test "X$1" = X--no-reexec; then | ||
545 | # Discard the --no-reexec flag, and continue. | ||
546 | shift | ||
547 | elif test "X$1" = X--fallback-echo; then | ||
548 | # Avoid inline document here, it may be left over | ||
549 | : | ||
550 | elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then | ||
551 | # Yippee, $ECHO works! | ||
552 | : | ||
553 | else | ||
554 | # Restart under the correct shell. | ||
555 | exec $SHELL "$0" --no-reexec ${1+"$@"} | ||
556 | fi | ||
557 | |||
558 | if test "X$1" = X--fallback-echo; then | ||
559 | # used as fallback echo | ||
560 | shift | ||
561 | cat <<_LT_EOF | ||
562 | $* | ||
563 | _LT_EOF | ||
564 | exit 0 | ||
565 | fi | ||
566 | |||
567 | # The HP-UX ksh and POSIX shell print the target directory to stdout | ||
568 | # if CDPATH is set. | ||
569 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | ||
570 | |||
571 | if test -z "$lt_ECHO"; then | ||
572 | if test "X${echo_test_string+set}" != Xset; then | ||
573 | # find a string as large as possible, as long as the shell can cope with it | ||
574 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do | ||
575 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... | ||
576 | if { echo_test_string=`eval $cmd`; } 2>/dev/null && | ||
577 | { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null | ||
578 | then | ||
579 | break | ||
580 | fi | ||
581 | done | ||
582 | fi | ||
583 | |||
584 | if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && | ||
585 | echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && | ||
586 | test "X$echo_testing_string" = "X$echo_test_string"; then | ||
587 | : | ||
588 | else | ||
589 | # The Solaris, AIX, and Digital Unix default echo programs unquote | ||
590 | # backslashes. This makes it impossible to quote backslashes using | ||
591 | # echo "$something" | sed 's/\\/\\\\/g' | ||
592 | # | ||
593 | # So, first we look for a working echo in the user's PATH. | ||
594 | |||
595 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | ||
596 | for dir in $PATH /usr/ucb; do | ||
597 | IFS="$lt_save_ifs" | ||
598 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && | ||
599 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && | ||
600 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && | ||
601 | test "X$echo_testing_string" = "X$echo_test_string"; then | ||
602 | ECHO="$dir/echo" | ||
603 | break | ||
604 | fi | ||
605 | done | ||
606 | IFS="$lt_save_ifs" | ||
607 | |||
608 | if test "X$ECHO" = Xecho; then | ||
609 | # We didn't find a better echo, so look for alternatives. | ||
610 | if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && | ||
611 | echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && | ||
612 | test "X$echo_testing_string" = "X$echo_test_string"; then | ||
613 | # This shell has a builtin print -r that does the trick. | ||
614 | ECHO='print -r' | ||
615 | elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && | ||
616 | test "X$CONFIG_SHELL" != X/bin/ksh; then | ||
617 | # If we have ksh, try running configure again with it. | ||
618 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | ||
619 | export ORIGINAL_CONFIG_SHELL | ||
620 | CONFIG_SHELL=/bin/ksh | ||
621 | export CONFIG_SHELL | ||
622 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} | ||
623 | else | ||
624 | # Try using printf. | ||
625 | ECHO='printf %s\n' | ||
626 | if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && | ||
627 | echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && | ||
628 | test "X$echo_testing_string" = "X$echo_test_string"; then | ||
629 | # Cool, printf works | ||
630 | : | ||
631 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | ||
632 | test "X$echo_testing_string" = 'X\t' && | ||
633 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | ||
634 | test "X$echo_testing_string" = "X$echo_test_string"; then | ||
635 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL | ||
636 | export CONFIG_SHELL | ||
637 | SHELL="$CONFIG_SHELL" | ||
638 | export SHELL | ||
639 | ECHO="$CONFIG_SHELL $0 --fallback-echo" | ||
640 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | ||
641 | test "X$echo_testing_string" = 'X\t' && | ||
642 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | ||
643 | test "X$echo_testing_string" = "X$echo_test_string"; then | ||
644 | ECHO="$CONFIG_SHELL $0 --fallback-echo" | ||
645 | else | ||
646 | # maybe with a smaller string... | ||
647 | prev=: | ||
648 | |||
649 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do | ||
650 | if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null | ||
651 | then | ||
652 | break | ||
653 | fi | ||
654 | prev="$cmd" | ||
655 | done | ||
656 | |||
657 | if test "$prev" != 'sed 50q "$0"'; then | ||
658 | echo_test_string=`eval $prev` | ||
659 | export echo_test_string | ||
660 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} | ||
661 | else | ||
662 | # Oops. We lost completely, so just stick with echo. | ||
663 | ECHO=echo | ||
664 | fi | ||
665 | fi | ||
666 | fi | ||
667 | fi | ||
668 | fi | ||
669 | fi | ||
670 | |||
671 | # Copy echo and quote the copy suitably for passing to libtool from | ||
672 | # the Makefile, instead of quoting the original, which is used later. | ||
673 | lt_ECHO=$ECHO | ||
674 | if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then | ||
675 | lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" | ||
676 | fi | ||
677 | |||
678 | |||
679 | |||
680 | |||
681 | test -n "$DJDIR" || exec 7<&0 </dev/null | ||
682 | exec 6>&1 | ||
683 | |||
684 | # Name of the host. | ||
685 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, | ||
686 | # so uname gets run too. | ||
687 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | ||
688 | |||
689 | # | ||
690 | # Initializations. | ||
691 | # | ||
692 | ac_default_prefix=/usr/local | ||
693 | ac_clean_files= | ||
694 | ac_config_libobj_dir=. | ||
695 | LIBOBJS= | ||
696 | cross_compiling=no | ||
697 | subdirs= | ||
698 | MFLAGS= | ||
699 | MAKEFLAGS= | ||
700 | |||
701 | # Identity of this package. | ||
702 | PACKAGE_NAME='edje' | ||
703 | PACKAGE_TARNAME='edje' | ||
704 | PACKAGE_VERSION='1.1.0' | ||
705 | PACKAGE_STRING='edje 1.1.0' | ||
706 | PACKAGE_BUGREPORT='enlightenment-devel@lists.sourceforge.net' | ||
707 | PACKAGE_URL='' | ||
708 | |||
709 | ac_unique_file="configure.ac" | ||
710 | # Factoring default headers for most tests. | ||
711 | ac_includes_default="\ | ||
712 | #include <stdio.h> | ||
713 | #ifdef HAVE_SYS_TYPES_H | ||
714 | # include <sys/types.h> | ||
715 | #endif | ||
716 | #ifdef HAVE_SYS_STAT_H | ||
717 | # include <sys/stat.h> | ||
718 | #endif | ||
719 | #ifdef STDC_HEADERS | ||
720 | # include <stdlib.h> | ||
721 | # include <stddef.h> | ||
722 | #else | ||
723 | # ifdef HAVE_STDLIB_H | ||
724 | # include <stdlib.h> | ||
725 | # endif | ||
726 | #endif | ||
727 | #ifdef HAVE_STRING_H | ||
728 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | ||
729 | # include <memory.h> | ||
730 | # endif | ||
731 | # include <string.h> | ||
732 | #endif | ||
733 | #ifdef HAVE_STRINGS_H | ||
734 | # include <strings.h> | ||
735 | #endif | ||
736 | #ifdef HAVE_INTTYPES_H | ||
737 | # include <inttypes.h> | ||
738 | #endif | ||
739 | #ifdef HAVE_STDINT_H | ||
740 | # include <stdint.h> | ||
741 | #endif | ||
742 | #ifdef HAVE_UNISTD_H | ||
743 | # include <unistd.h> | ||
744 | #endif" | ||
745 | |||
746 | ac_subst_vars='am__EXEEXT_FALSE | ||
747 | am__EXEEXT_TRUE | ||
748 | LTLIBOBJS | ||
749 | LIBOBJS | ||
750 | requirement_edje | ||
751 | BUILD_EXAMPLES_FALSE | ||
752 | BUILD_EXAMPLES_TRUE | ||
753 | edje_cc | ||
754 | INSTALL_EXAMPLES_FALSE | ||
755 | INSTALL_EXAMPLES_TRUE | ||
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 | ALLOCA | ||
766 | lt_enable_auto_import | ||
767 | EDJE_EXTERNAL_INSPECTOR_LIBS | ||
768 | EDJE_EXTERNAL_INSPECTOR_CFLAGS | ||
769 | EDJE_INSPECTOR_LIBS | ||
770 | EDJE_INSPECTOR_CFLAGS | ||
771 | EDJE_PLAYER_LIBS | ||
772 | EDJE_PLAYER_CFLAGS | ||
773 | EDJE_DECC_LIBS | ||
774 | EDJE_DECC_CFLAGS | ||
775 | BUILD_EPP_FALSE | ||
776 | BUILD_EPP_TRUE | ||
777 | EDJE_CC_LIBS | ||
778 | EDJE_CC_CFLAGS | ||
779 | FLAC_LIBS | ||
780 | FLAC_CFLAGS | ||
781 | HAVE_LIBALSA_FALSE | ||
782 | HAVE_LIBALSA_TRUE | ||
783 | ALSA_LIBS | ||
784 | ALSA_CFLAGS | ||
785 | VORBISENC_LIBS | ||
786 | VORBISENC_CFLAGS | ||
787 | HAVE_LIBREMIX_FALSE | ||
788 | HAVE_LIBREMIX_TRUE | ||
789 | REMIX_PLUGIN_DIR | ||
790 | REMIX_LIBS | ||
791 | REMIX_CFLAGS | ||
792 | HAVE_LIBSNDFILE_FALSE | ||
793 | HAVE_LIBSNDFILE_TRUE | ||
794 | SNDFILE_LIBS | ||
795 | SNDFILE_CFLAGS | ||
796 | ENABLE_MULTISENSE_FALSE | ||
797 | ENABLE_MULTISENSE_TRUE | ||
798 | ECORE_IMF_LIBS | ||
799 | ECORE_IMF_CFLAGS | ||
800 | EDJE_LIBS | ||
801 | EDJE_CFLAGS | ||
802 | MINIMAL_LIBS | ||
803 | MINIMAL_CFLAGS | ||
804 | lua_libs | ||
805 | LUA_LIBS | ||
806 | LUA_CFLAGS | ||
807 | EFL_EDJE_BUILD | ||
808 | EVIL_LIBS | ||
809 | EVIL_CFLAGS | ||
810 | pkgconfig_requires_private | ||
811 | PKG_CONFIG_LIBDIR | ||
812 | PKG_CONFIG_PATH | ||
813 | PKG_CONFIG | ||
814 | HAVE_PYTHON_FALSE | ||
815 | HAVE_PYTHON_TRUE | ||
816 | pkgpyexecdir | ||
817 | pyexecdir | ||
818 | pkgpythondir | ||
819 | pythondir | ||
820 | PYTHON_PLATFORM | ||
821 | PYTHON_EXEC_PREFIX | ||
822 | PYTHON_PREFIX | ||
823 | PYTHON_VERSION | ||
824 | PYTHON | ||
825 | EFL_BUILD_DOC_FALSE | ||
826 | EFL_BUILD_DOC_TRUE | ||
827 | efl_doxygen | ||
828 | efl_have_doxygen | ||
829 | vimdir | ||
830 | BUILD_EDJE_FP_FALSE | ||
831 | BUILD_EDJE_FP_TRUE | ||
832 | EDJE_CALC_CACHE_FALSE | ||
833 | EDJE_CALC_CACHE_TRUE | ||
834 | EDJE_PROGRAM_CACHE_FALSE | ||
835 | EDJE_PROGRAM_CACHE_TRUE | ||
836 | BUILD_EDJE_EXTERNAL_INSPECTOR_FALSE | ||
837 | BUILD_EDJE_EXTERNAL_INSPECTOR_TRUE | ||
838 | EDJE_EXTERNAL_INSPECTOR_PRG | ||
839 | BUILD_EDJE_INSPECTOR_FALSE | ||
840 | BUILD_EDJE_INSPECTOR_TRUE | ||
841 | EDJE_INSPECTOR_PRG | ||
842 | BUILD_EDJE_PLAYER_FALSE | ||
843 | BUILD_EDJE_PLAYER_TRUE | ||
844 | EDJE_PLAYER_PRG | ||
845 | BUILD_EDJE_RECC_FALSE | ||
846 | BUILD_EDJE_RECC_TRUE | ||
847 | EDJE_RECC_PRG | ||
848 | BUILD_EDJE_DECC_FALSE | ||
849 | BUILD_EDJE_DECC_TRUE | ||
850 | EDJE_DECC_PRG | ||
851 | BUILD_EDJE_CC_FALSE | ||
852 | BUILD_EDJE_CC_TRUE | ||
853 | EDJE_CC_PRG | ||
854 | EDJE_AMALGAMATION_FALSE | ||
855 | EDJE_AMALGAMATION_TRUE | ||
856 | MODULE_ARCH | ||
857 | VMAJ | ||
858 | release_info | ||
859 | version_info | ||
860 | CPP | ||
861 | OTOOL64 | ||
862 | OTOOL | ||
863 | LIPO | ||
864 | NMEDIT | ||
865 | DSYMUTIL | ||
866 | lt_ECHO | ||
867 | RANLIB | ||
868 | AR | ||
869 | LN_S | ||
870 | NM | ||
871 | ac_ct_DUMPBIN | ||
872 | DUMPBIN | ||
873 | LD | ||
874 | FGREP | ||
875 | EGREP | ||
876 | GREP | ||
877 | SED | ||
878 | am__fastdepCC_FALSE | ||
879 | am__fastdepCC_TRUE | ||
880 | CCDEPMODE | ||
881 | AMDEPBACKSLASH | ||
882 | AMDEP_FALSE | ||
883 | AMDEP_TRUE | ||
884 | am__quote | ||
885 | am__include | ||
886 | DEPDIR | ||
887 | OBJEXT | ||
888 | EXEEXT | ||
889 | ac_ct_CC | ||
890 | CPPFLAGS | ||
891 | LDFLAGS | ||
892 | CFLAGS | ||
893 | CC | ||
894 | LIBTOOL | ||
895 | OBJDUMP | ||
896 | DLLTOOL | ||
897 | AS | ||
898 | host_os | ||
899 | host_vendor | ||
900 | host_cpu | ||
901 | host | ||
902 | build_os | ||
903 | build_vendor | ||
904 | build_cpu | ||
905 | build | ||
906 | AM_BACKSLASH | ||
907 | AM_DEFAULT_VERBOSITY | ||
908 | am__untar | ||
909 | am__tar | ||
910 | AMTAR | ||
911 | am__leading_dot | ||
912 | SET_MAKE | ||
913 | AWK | ||
914 | mkdir_p | ||
915 | MKDIR_P | ||
916 | INSTALL_STRIP_PROGRAM | ||
917 | STRIP | ||
918 | install_sh | ||
919 | MAKEINFO | ||
920 | AUTOHEADER | ||
921 | AUTOMAKE | ||
922 | AUTOCONF | ||
923 | ACLOCAL | ||
924 | VERSION | ||
925 | PACKAGE | ||
926 | CYGPATH_W | ||
927 | am__isrc | ||
928 | INSTALL_DATA | ||
929 | INSTALL_SCRIPT | ||
930 | INSTALL_PROGRAM | ||
931 | target_alias | ||
932 | host_alias | ||
933 | build_alias | ||
934 | LIBS | ||
935 | ECHO_T | ||
936 | ECHO_N | ||
937 | ECHO_C | ||
938 | DEFS | ||
939 | mandir | ||
940 | localedir | ||
941 | libdir | ||
942 | psdir | ||
943 | pdfdir | ||
944 | dvidir | ||
945 | htmldir | ||
946 | infodir | ||
947 | docdir | ||
948 | oldincludedir | ||
949 | includedir | ||
950 | localstatedir | ||
951 | sharedstatedir | ||
952 | sysconfdir | ||
953 | datadir | ||
954 | datarootdir | ||
955 | libexecdir | ||
956 | sbindir | ||
957 | bindir | ||
958 | program_transform_name | ||
959 | prefix | ||
960 | exec_prefix | ||
961 | PACKAGE_URL | ||
962 | PACKAGE_BUGREPORT | ||
963 | PACKAGE_STRING | ||
964 | PACKAGE_VERSION | ||
965 | PACKAGE_TARNAME | ||
966 | PACKAGE_NAME | ||
967 | PATH_SEPARATOR | ||
968 | SHELL' | ||
969 | ac_subst_files='' | ||
970 | ac_user_opts=' | ||
971 | enable_option_checking | ||
972 | enable_silent_rules | ||
973 | enable_shared | ||
974 | enable_static | ||
975 | with_pic | ||
976 | enable_fast_install | ||
977 | enable_dependency_tracking | ||
978 | with_gnu_ld | ||
979 | enable_libtool_lock | ||
980 | enable_amalgamation | ||
981 | enable_edje_cc | ||
982 | enable_edje_decc | ||
983 | enable_edje_recc | ||
984 | enable_edje_player | ||
985 | enable_edje_inspector | ||
986 | enable_edje_external_inspector | ||
987 | enable_edje_program_cache | ||
988 | enable_edje_calc_cache | ||
989 | enable_fixed_point | ||
990 | with_vim | ||
991 | enable_doc | ||
992 | with_doxygen | ||
993 | enable_sndfile | ||
994 | enable_remix | ||
995 | enable_vorbisenc | ||
996 | enable_flac | ||
997 | enable_tests | ||
998 | enable_coverage | ||
999 | enable_install_examples | ||
1000 | enable_build_examples | ||
1001 | ' | ||
1002 | ac_precious_vars='build_alias | ||
1003 | host_alias | ||
1004 | target_alias | ||
1005 | CC | ||
1006 | CFLAGS | ||
1007 | LDFLAGS | ||
1008 | LIBS | ||
1009 | CPPFLAGS | ||
1010 | CPP | ||
1011 | PKG_CONFIG | ||
1012 | PKG_CONFIG_PATH | ||
1013 | PKG_CONFIG_LIBDIR | ||
1014 | EVIL_CFLAGS | ||
1015 | EVIL_LIBS | ||
1016 | LUA_CFLAGS | ||
1017 | LUA_LIBS | ||
1018 | MINIMAL_CFLAGS | ||
1019 | MINIMAL_LIBS | ||
1020 | EDJE_CFLAGS | ||
1021 | EDJE_LIBS | ||
1022 | ECORE_IMF_CFLAGS | ||
1023 | ECORE_IMF_LIBS | ||
1024 | SNDFILE_CFLAGS | ||
1025 | SNDFILE_LIBS | ||
1026 | REMIX_CFLAGS | ||
1027 | REMIX_LIBS | ||
1028 | VORBISENC_CFLAGS | ||
1029 | VORBISENC_LIBS | ||
1030 | ALSA_CFLAGS | ||
1031 | ALSA_LIBS | ||
1032 | FLAC_CFLAGS | ||
1033 | FLAC_LIBS | ||
1034 | EDJE_CC_CFLAGS | ||
1035 | EDJE_CC_LIBS | ||
1036 | EDJE_DECC_CFLAGS | ||
1037 | EDJE_DECC_LIBS | ||
1038 | EDJE_PLAYER_CFLAGS | ||
1039 | EDJE_PLAYER_LIBS | ||
1040 | EDJE_INSPECTOR_CFLAGS | ||
1041 | EDJE_INSPECTOR_LIBS | ||
1042 | EDJE_EXTERNAL_INSPECTOR_CFLAGS | ||
1043 | EDJE_EXTERNAL_INSPECTOR_LIBS | ||
1044 | CHECK_CFLAGS | ||
1045 | CHECK_LIBS' | ||
1046 | |||
1047 | |||
1048 | # Initialize some variables set by options. | ||
1049 | ac_init_help= | ||
1050 | ac_init_version=false | ||
1051 | ac_unrecognized_opts= | ||
1052 | ac_unrecognized_sep= | ||
1053 | # The variables have the same names as the options, with | ||
1054 | # dashes changed to underlines. | ||
1055 | cache_file=/dev/null | ||
1056 | exec_prefix=NONE | ||
1057 | no_create= | ||
1058 | no_recursion= | ||
1059 | prefix=NONE | ||
1060 | program_prefix=NONE | ||
1061 | program_suffix=NONE | ||
1062 | program_transform_name=s,x,x, | ||
1063 | silent= | ||
1064 | site= | ||
1065 | srcdir= | ||
1066 | verbose= | ||
1067 | x_includes=NONE | ||
1068 | x_libraries=NONE | ||
1069 | |||
1070 | # Installation directory options. | ||
1071 | # These are left unexpanded so users can "make install exec_prefix=/foo" | ||
1072 | # and all the variables that are supposed to be based on exec_prefix | ||
1073 | # by default will actually change. | ||
1074 | # Use braces instead of parens because sh, perl, etc. also accept them. | ||
1075 | # (The list follows the same order as the GNU Coding Standards.) | ||
1076 | bindir='${exec_prefix}/bin' | ||
1077 | sbindir='${exec_prefix}/sbin' | ||
1078 | libexecdir='${exec_prefix}/libexec' | ||
1079 | datarootdir='${prefix}/share' | ||
1080 | datadir='${datarootdir}' | ||
1081 | sysconfdir='${prefix}/etc' | ||
1082 | sharedstatedir='${prefix}/com' | ||
1083 | localstatedir='${prefix}/var' | ||
1084 | includedir='${prefix}/include' | ||
1085 | oldincludedir='/usr/include' | ||
1086 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | ||
1087 | infodir='${datarootdir}/info' | ||
1088 | htmldir='${docdir}' | ||
1089 | dvidir='${docdir}' | ||
1090 | pdfdir='${docdir}' | ||
1091 | psdir='${docdir}' | ||
1092 | libdir='${exec_prefix}/lib' | ||
1093 | localedir='${datarootdir}/locale' | ||
1094 | mandir='${datarootdir}/man' | ||
1095 | |||
1096 | ac_prev= | ||
1097 | ac_dashdash= | ||
1098 | for ac_option | ||
1099 | do | ||
1100 | # If the previous option needs an argument, assign it. | ||
1101 | if test -n "$ac_prev"; then | ||
1102 | eval $ac_prev=\$ac_option | ||
1103 | ac_prev= | ||
1104 | continue | ||
1105 | fi | ||
1106 | |||
1107 | case $ac_option in | ||
1108 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | ||
1109 | *=) ac_optarg= ;; | ||
1110 | *) ac_optarg=yes ;; | ||
1111 | esac | ||
1112 | |||
1113 | # Accept the important Cygnus configure options, so we can diagnose typos. | ||
1114 | |||
1115 | case $ac_dashdash$ac_option in | ||
1116 | --) | ||
1117 | ac_dashdash=yes ;; | ||
1118 | |||
1119 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | ||
1120 | ac_prev=bindir ;; | ||
1121 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | ||
1122 | bindir=$ac_optarg ;; | ||
1123 | |||
1124 | -build | --build | --buil | --bui | --bu) | ||
1125 | ac_prev=build_alias ;; | ||
1126 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | ||
1127 | build_alias=$ac_optarg ;; | ||
1128 | |||
1129 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | ||
1130 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | ||
1131 | ac_prev=cache_file ;; | ||
1132 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | ||
1133 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | ||
1134 | cache_file=$ac_optarg ;; | ||
1135 | |||
1136 | --config-cache | -C) | ||
1137 | cache_file=config.cache ;; | ||
1138 | |||
1139 | -datadir | --datadir | --datadi | --datad) | ||
1140 | ac_prev=datadir ;; | ||
1141 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | ||
1142 | datadir=$ac_optarg ;; | ||
1143 | |||
1144 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | ||
1145 | | --dataroo | --dataro | --datar) | ||
1146 | ac_prev=datarootdir ;; | ||
1147 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | ||
1148 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | ||
1149 | datarootdir=$ac_optarg ;; | ||
1150 | |||
1151 | -disable-* | --disable-*) | ||
1152 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | ||
1153 | # Reject names that are not valid shell variable names. | ||
1154 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | ||
1155 | as_fn_error $? "invalid feature name: $ac_useropt" | ||
1156 | ac_useropt_orig=$ac_useropt | ||
1157 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | ||
1158 | case $ac_user_opts in | ||
1159 | *" | ||
1160 | "enable_$ac_useropt" | ||
1161 | "*) ;; | ||
1162 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | ||
1163 | ac_unrecognized_sep=', ';; | ||
1164 | esac | ||
1165 | eval enable_$ac_useropt=no ;; | ||
1166 | |||
1167 | -docdir | --docdir | --docdi | --doc | --do) | ||
1168 | ac_prev=docdir ;; | ||
1169 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | ||
1170 | docdir=$ac_optarg ;; | ||
1171 | |||
1172 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | ||
1173 | ac_prev=dvidir ;; | ||
1174 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | ||
1175 | dvidir=$ac_optarg ;; | ||
1176 | |||
1177 | -enable-* | --enable-*) | ||
1178 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | ||
1179 | # Reject names that are not valid shell variable names. | ||
1180 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | ||
1181 | as_fn_error $? "invalid feature name: $ac_useropt" | ||
1182 | ac_useropt_orig=$ac_useropt | ||
1183 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | ||
1184 | case $ac_user_opts in | ||
1185 | *" | ||
1186 | "enable_$ac_useropt" | ||
1187 | "*) ;; | ||
1188 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | ||
1189 | ac_unrecognized_sep=', ';; | ||
1190 | esac | ||
1191 | eval enable_$ac_useropt=\$ac_optarg ;; | ||
1192 | |||
1193 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | ||
1194 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | ||
1195 | | --exec | --exe | --ex) | ||
1196 | ac_prev=exec_prefix ;; | ||
1197 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | ||
1198 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | ||
1199 | | --exec=* | --exe=* | --ex=*) | ||
1200 | exec_prefix=$ac_optarg ;; | ||
1201 | |||
1202 | -gas | --gas | --ga | --g) | ||
1203 | # Obsolete; use --with-gas. | ||
1204 | with_gas=yes ;; | ||
1205 | |||
1206 | -help | --help | --hel | --he | -h) | ||
1207 | ac_init_help=long ;; | ||
1208 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | ||
1209 | ac_init_help=recursive ;; | ||
1210 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | ||
1211 | ac_init_help=short ;; | ||
1212 | |||
1213 | -host | --host | --hos | --ho) | ||
1214 | ac_prev=host_alias ;; | ||
1215 | -host=* | --host=* | --hos=* | --ho=*) | ||
1216 | host_alias=$ac_optarg ;; | ||
1217 | |||
1218 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | ||
1219 | ac_prev=htmldir ;; | ||
1220 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | ||
1221 | | --ht=*) | ||
1222 | htmldir=$ac_optarg ;; | ||
1223 | |||
1224 | -includedir | --includedir | --includedi | --included | --include \ | ||
1225 | | --includ | --inclu | --incl | --inc) | ||
1226 | ac_prev=includedir ;; | ||
1227 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | ||
1228 | | --includ=* | --inclu=* | --incl=* | --inc=*) | ||
1229 | includedir=$ac_optarg ;; | ||
1230 | |||
1231 | -infodir | --infodir | --infodi | --infod | --info | --inf) | ||
1232 | ac_prev=infodir ;; | ||
1233 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | ||
1234 | infodir=$ac_optarg ;; | ||
1235 | |||
1236 | -libdir | --libdir | --libdi | --libd) | ||
1237 | ac_prev=libdir ;; | ||
1238 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | ||
1239 | libdir=$ac_optarg ;; | ||
1240 | |||
1241 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | ||
1242 | | --libexe | --libex | --libe) | ||
1243 | ac_prev=libexecdir ;; | ||
1244 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | ||
1245 | | --libexe=* | --libex=* | --libe=*) | ||
1246 | libexecdir=$ac_optarg ;; | ||
1247 | |||
1248 | -localedir | --localedir | --localedi | --localed | --locale) | ||
1249 | ac_prev=localedir ;; | ||
1250 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | ||
1251 | localedir=$ac_optarg ;; | ||
1252 | |||
1253 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | ||
1254 | | --localstate | --localstat | --localsta | --localst | --locals) | ||
1255 | ac_prev=localstatedir ;; | ||
1256 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | ||
1257 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | ||
1258 | localstatedir=$ac_optarg ;; | ||
1259 | |||
1260 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | ||
1261 | ac_prev=mandir ;; | ||
1262 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | ||
1263 | mandir=$ac_optarg ;; | ||
1264 | |||
1265 | -nfp | --nfp | --nf) | ||
1266 | # Obsolete; use --without-fp. | ||
1267 | with_fp=no ;; | ||
1268 | |||
1269 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | ||
1270 | | --no-cr | --no-c | -n) | ||
1271 | no_create=yes ;; | ||
1272 | |||
1273 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | ||
1274 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | ||
1275 | no_recursion=yes ;; | ||
1276 | |||
1277 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | ||
1278 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | ||
1279 | | --oldin | --oldi | --old | --ol | --o) | ||
1280 | ac_prev=oldincludedir ;; | ||
1281 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | ||
1282 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | ||
1283 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | ||
1284 | oldincludedir=$ac_optarg ;; | ||
1285 | |||
1286 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | ||
1287 | ac_prev=prefix ;; | ||
1288 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | ||
1289 | prefix=$ac_optarg ;; | ||
1290 | |||
1291 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | ||
1292 | | --program-pre | --program-pr | --program-p) | ||
1293 | ac_prev=program_prefix ;; | ||
1294 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | ||
1295 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | ||
1296 | program_prefix=$ac_optarg ;; | ||
1297 | |||
1298 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | ||
1299 | | --program-suf | --program-su | --program-s) | ||
1300 | ac_prev=program_suffix ;; | ||
1301 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | ||
1302 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | ||
1303 | program_suffix=$ac_optarg ;; | ||
1304 | |||
1305 | -program-transform-name | --program-transform-name \ | ||
1306 | | --program-transform-nam | --program-transform-na \ | ||
1307 | | --program-transform-n | --program-transform- \ | ||
1308 | | --program-transform | --program-transfor \ | ||
1309 | | --program-transfo | --program-transf \ | ||
1310 | | --program-trans | --program-tran \ | ||
1311 | | --progr-tra | --program-tr | --program-t) | ||
1312 | ac_prev=program_transform_name ;; | ||
1313 | -program-transform-name=* | --program-transform-name=* \ | ||
1314 | | --program-transform-nam=* | --program-transform-na=* \ | ||
1315 | | --program-transform-n=* | --program-transform-=* \ | ||
1316 | | --program-transform=* | --program-transfor=* \ | ||
1317 | | --program-transfo=* | --program-transf=* \ | ||
1318 | | --program-trans=* | --program-tran=* \ | ||
1319 | | --progr-tra=* | --program-tr=* | --program-t=*) | ||
1320 | program_transform_name=$ac_optarg ;; | ||
1321 | |||
1322 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | ||
1323 | ac_prev=pdfdir ;; | ||
1324 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | ||
1325 | pdfdir=$ac_optarg ;; | ||
1326 | |||
1327 | -psdir | --psdir | --psdi | --psd | --ps) | ||
1328 | ac_prev=psdir ;; | ||
1329 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | ||
1330 | psdir=$ac_optarg ;; | ||
1331 | |||
1332 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
1333 | | -silent | --silent | --silen | --sile | --sil) | ||
1334 | silent=yes ;; | ||
1335 | |||
1336 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | ||
1337 | ac_prev=sbindir ;; | ||
1338 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | ||
1339 | | --sbi=* | --sb=*) | ||
1340 | sbindir=$ac_optarg ;; | ||
1341 | |||
1342 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | ||
1343 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | ||
1344 | | --sharedst | --shareds | --shared | --share | --shar \ | ||
1345 | | --sha | --sh) | ||
1346 | ac_prev=sharedstatedir ;; | ||
1347 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | ||
1348 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | ||
1349 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | ||
1350 | | --sha=* | --sh=*) | ||
1351 | sharedstatedir=$ac_optarg ;; | ||
1352 | |||
1353 | -site | --site | --sit) | ||
1354 | ac_prev=site ;; | ||
1355 | -site=* | --site=* | --sit=*) | ||
1356 | site=$ac_optarg ;; | ||
1357 | |||
1358 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | ||
1359 | ac_prev=srcdir ;; | ||
1360 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | ||
1361 | srcdir=$ac_optarg ;; | ||
1362 | |||
1363 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | ||
1364 | | --syscon | --sysco | --sysc | --sys | --sy) | ||
1365 | ac_prev=sysconfdir ;; | ||
1366 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | ||
1367 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | ||
1368 | sysconfdir=$ac_optarg ;; | ||
1369 | |||
1370 | -target | --target | --targe | --targ | --tar | --ta | --t) | ||
1371 | ac_prev=target_alias ;; | ||
1372 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | ||
1373 | target_alias=$ac_optarg ;; | ||
1374 | |||
1375 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | ||
1376 | verbose=yes ;; | ||
1377 | |||
1378 | -version | --version | --versio | --versi | --vers | -V) | ||
1379 | ac_init_version=: ;; | ||
1380 | |||
1381 | -with-* | --with-*) | ||
1382 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | ||
1383 | # Reject names that are not valid shell variable names. | ||
1384 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | ||
1385 | as_fn_error $? "invalid package name: $ac_useropt" | ||
1386 | ac_useropt_orig=$ac_useropt | ||
1387 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | ||
1388 | case $ac_user_opts in | ||
1389 | *" | ||
1390 | "with_$ac_useropt" | ||
1391 | "*) ;; | ||
1392 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | ||
1393 | ac_unrecognized_sep=', ';; | ||
1394 | esac | ||
1395 | eval with_$ac_useropt=\$ac_optarg ;; | ||
1396 | |||
1397 | -without-* | --without-*) | ||
1398 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | ||
1399 | # Reject names that are not valid shell variable names. | ||
1400 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | ||
1401 | as_fn_error $? "invalid package name: $ac_useropt" | ||
1402 | ac_useropt_orig=$ac_useropt | ||
1403 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | ||
1404 | case $ac_user_opts in | ||
1405 | *" | ||
1406 | "with_$ac_useropt" | ||
1407 | "*) ;; | ||
1408 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | ||
1409 | ac_unrecognized_sep=', ';; | ||
1410 | esac | ||
1411 | eval with_$ac_useropt=no ;; | ||
1412 | |||
1413 | --x) | ||
1414 | # Obsolete; use --with-x. | ||
1415 | with_x=yes ;; | ||
1416 | |||
1417 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | ||
1418 | | --x-incl | --x-inc | --x-in | --x-i) | ||
1419 | ac_prev=x_includes ;; | ||
1420 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | ||
1421 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | ||
1422 | x_includes=$ac_optarg ;; | ||
1423 | |||
1424 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | ||
1425 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | ||
1426 | ac_prev=x_libraries ;; | ||
1427 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | ||
1428 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | ||
1429 | x_libraries=$ac_optarg ;; | ||
1430 | |||
1431 | -*) as_fn_error $? "unrecognized option: \`$ac_option' | ||
1432 | Try \`$0 --help' for more information" | ||
1433 | ;; | ||
1434 | |||
1435 | *=*) | ||
1436 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | ||
1437 | # Reject names that are not valid shell variable names. | ||
1438 | case $ac_envvar in #( | ||
1439 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | ||
1440 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; | ||
1441 | esac | ||
1442 | eval $ac_envvar=\$ac_optarg | ||
1443 | export $ac_envvar ;; | ||
1444 | |||
1445 | *) | ||
1446 | # FIXME: should be removed in autoconf 3.0. | ||
1447 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | ||
1448 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | ||
1449 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | ||
1450 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | ||
1451 | ;; | ||
1452 | |||
1453 | esac | ||
1454 | done | ||
1455 | |||
1456 | if test -n "$ac_prev"; then | ||
1457 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | ||
1458 | as_fn_error $? "missing argument to $ac_option" | ||
1459 | fi | ||
1460 | |||
1461 | if test -n "$ac_unrecognized_opts"; then | ||
1462 | case $enable_option_checking in | ||
1463 | no) ;; | ||
1464 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; | ||
1465 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | ||
1466 | esac | ||
1467 | fi | ||
1468 | |||
1469 | # Check all directory arguments for consistency. | ||
1470 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | ||
1471 | datadir sysconfdir sharedstatedir localstatedir includedir \ | ||
1472 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | ||
1473 | libdir localedir mandir | ||
1474 | do | ||
1475 | eval ac_val=\$$ac_var | ||
1476 | # Remove trailing slashes. | ||
1477 | case $ac_val in | ||
1478 | */ ) | ||
1479 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | ||
1480 | eval $ac_var=\$ac_val;; | ||
1481 | esac | ||
1482 | # Be sure to have absolute directory names. | ||
1483 | case $ac_val in | ||
1484 | [\\/$]* | ?:[\\/]* ) continue;; | ||
1485 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | ||
1486 | esac | ||
1487 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" | ||
1488 | done | ||
1489 | |||
1490 | # There might be people who depend on the old broken behavior: `$host' | ||
1491 | # used to hold the argument of --host etc. | ||
1492 | # FIXME: To remove some day. | ||
1493 | build=$build_alias | ||
1494 | host=$host_alias | ||
1495 | target=$target_alias | ||
1496 | |||
1497 | # FIXME: To remove some day. | ||
1498 | if test "x$host_alias" != x; then | ||
1499 | if test "x$build_alias" = x; then | ||
1500 | cross_compiling=maybe | ||
1501 | $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. | ||
1502 | If a cross compiler is detected then cross compile mode will be used" >&2 | ||
1503 | elif test "x$build_alias" != "x$host_alias"; then | ||
1504 | cross_compiling=yes | ||
1505 | fi | ||
1506 | fi | ||
1507 | |||
1508 | ac_tool_prefix= | ||
1509 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | ||
1510 | |||
1511 | test "$silent" = yes && exec 6>/dev/null | ||
1512 | |||
1513 | |||
1514 | ac_pwd=`pwd` && test -n "$ac_pwd" && | ||
1515 | ac_ls_di=`ls -di .` && | ||
1516 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | ||
1517 | as_fn_error $? "working directory cannot be determined" | ||
1518 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | ||
1519 | as_fn_error $? "pwd does not report name of working directory" | ||
1520 | |||
1521 | |||
1522 | # Find the source files, if location was not specified. | ||
1523 | if test -z "$srcdir"; then | ||
1524 | ac_srcdir_defaulted=yes | ||
1525 | # Try the directory containing this script, then the parent directory. | ||
1526 | ac_confdir=`$as_dirname -- "$as_myself" || | ||
1527 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
1528 | X"$as_myself" : 'X\(//\)[^/]' \| \ | ||
1529 | X"$as_myself" : 'X\(//\)$' \| \ | ||
1530 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | ||
1531 | $as_echo X"$as_myself" | | ||
1532 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
1533 | s//\1/ | ||
1534 | q | ||
1535 | } | ||
1536 | /^X\(\/\/\)[^/].*/{ | ||
1537 | s//\1/ | ||
1538 | q | ||
1539 | } | ||
1540 | /^X\(\/\/\)$/{ | ||
1541 | s//\1/ | ||
1542 | q | ||
1543 | } | ||
1544 | /^X\(\/\).*/{ | ||
1545 | s//\1/ | ||
1546 | q | ||
1547 | } | ||
1548 | s/.*/./; q'` | ||
1549 | srcdir=$ac_confdir | ||
1550 | if test ! -r "$srcdir/$ac_unique_file"; then | ||
1551 | srcdir=.. | ||
1552 | fi | ||
1553 | else | ||
1554 | ac_srcdir_defaulted=no | ||
1555 | fi | ||
1556 | if test ! -r "$srcdir/$ac_unique_file"; then | ||
1557 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | ||
1558 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" | ||
1559 | fi | ||
1560 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | ||
1561 | ac_abs_confdir=`( | ||
1562 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" | ||
1563 | pwd)` | ||
1564 | # When building in place, set srcdir=. | ||
1565 | if test "$ac_abs_confdir" = "$ac_pwd"; then | ||
1566 | srcdir=. | ||
1567 | fi | ||
1568 | # Remove unnecessary trailing slashes from srcdir. | ||
1569 | # Double slashes in file names in object file debugging info | ||
1570 | # mess up M-x gdb in Emacs. | ||
1571 | case $srcdir in | ||
1572 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | ||
1573 | esac | ||
1574 | for ac_var in $ac_precious_vars; do | ||
1575 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | ||
1576 | eval ac_env_${ac_var}_value=\$${ac_var} | ||
1577 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | ||
1578 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | ||
1579 | done | ||
1580 | |||
1581 | # | ||
1582 | # Report the --help message. | ||
1583 | # | ||
1584 | if test "$ac_init_help" = "long"; then | ||
1585 | # Omit some internal or obsolete options to make the list less imposing. | ||
1586 | # This message is too long to be a string in the A/UX 3.1 sh. | ||
1587 | cat <<_ACEOF | ||
1588 | \`configure' configures edje 1.1.0 to adapt to many kinds of systems. | ||
1589 | |||
1590 | Usage: $0 [OPTION]... [VAR=VALUE]... | ||
1591 | |||
1592 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | ||
1593 | VAR=VALUE. See below for descriptions of some of the useful variables. | ||
1594 | |||
1595 | Defaults for the options are specified in brackets. | ||
1596 | |||
1597 | Configuration: | ||
1598 | -h, --help display this help and exit | ||
1599 | --help=short display options specific to this package | ||
1600 | --help=recursive display the short help of all the included packages | ||
1601 | -V, --version display version information and exit | ||
1602 | -q, --quiet, --silent do not print \`checking ...' messages | ||
1603 | --cache-file=FILE cache test results in FILE [disabled] | ||
1604 | -C, --config-cache alias for \`--cache-file=config.cache' | ||
1605 | -n, --no-create do not create output files | ||
1606 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | ||
1607 | |||
1608 | Installation directories: | ||
1609 | --prefix=PREFIX install architecture-independent files in PREFIX | ||
1610 | [$ac_default_prefix] | ||
1611 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | ||
1612 | [PREFIX] | ||
1613 | |||
1614 | By default, \`make install' will install all the files in | ||
1615 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | ||
1616 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | ||
1617 | for instance \`--prefix=\$HOME'. | ||
1618 | |||
1619 | For better control, use the options below. | ||
1620 | |||
1621 | Fine tuning of the installation directories: | ||
1622 | --bindir=DIR user executables [EPREFIX/bin] | ||
1623 | --sbindir=DIR system admin executables [EPREFIX/sbin] | ||
1624 | --libexecdir=DIR program executables [EPREFIX/libexec] | ||
1625 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | ||
1626 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | ||
1627 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | ||
1628 | --libdir=DIR object code libraries [EPREFIX/lib] | ||
1629 | --includedir=DIR C header files [PREFIX/include] | ||
1630 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | ||
1631 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | ||
1632 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | ||
1633 | --infodir=DIR info documentation [DATAROOTDIR/info] | ||
1634 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | ||
1635 | --mandir=DIR man documentation [DATAROOTDIR/man] | ||
1636 | --docdir=DIR documentation root [DATAROOTDIR/doc/edje] | ||
1637 | --htmldir=DIR html documentation [DOCDIR] | ||
1638 | --dvidir=DIR dvi documentation [DOCDIR] | ||
1639 | --pdfdir=DIR pdf documentation [DOCDIR] | ||
1640 | --psdir=DIR ps documentation [DOCDIR] | ||
1641 | _ACEOF | ||
1642 | |||
1643 | cat <<\_ACEOF | ||
1644 | |||
1645 | Program names: | ||
1646 | --program-prefix=PREFIX prepend PREFIX to installed program names | ||
1647 | --program-suffix=SUFFIX append SUFFIX to installed program names | ||
1648 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | ||
1649 | |||
1650 | System types: | ||
1651 | --build=BUILD configure for building on BUILD [guessed] | ||
1652 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | ||
1653 | _ACEOF | ||
1654 | fi | ||
1655 | |||
1656 | if test -n "$ac_init_help"; then | ||
1657 | case $ac_init_help in | ||
1658 | short | recursive ) echo "Configuration of edje 1.1.0:";; | ||
1659 | esac | ||
1660 | cat <<\_ACEOF | ||
1661 | |||
1662 | Optional Features: | ||
1663 | --disable-option-checking ignore unrecognized --enable/--with options | ||
1664 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | ||
1665 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | ||
1666 | --enable-silent-rules less verbose build output (undo: `make V=1') | ||
1667 | --disable-silent-rules verbose build output (undo: `make V=0') | ||
1668 | --enable-shared[=PKGS] build shared libraries [default=yes] | ||
1669 | --enable-static[=PKGS] build static libraries [default=yes] | ||
1670 | --enable-fast-install[=PKGS] | ||
1671 | optimize for fast installation [default=yes] | ||
1672 | --disable-dependency-tracking speeds up one-time build | ||
1673 | --enable-dependency-tracking do not reject slow dependency extractors | ||
1674 | --disable-libtool-lock avoid locking (might break parallel builds) | ||
1675 | --enable-amalgamation enable generation of one single file with all source | ||
1676 | code in it, helps compiler optimizations. | ||
1677 | --disable-edje-cc disable building of edje_cc | ||
1678 | --disable-edje-decc disable building of edje_decc | ||
1679 | --disable-edje-recc disable building of edje_recc | ||
1680 | --disable-edje-player disable building of edje_player | ||
1681 | --disable-edje-inspector | ||
1682 | disable building of edje_inspector | ||
1683 | --disable-edje-external-inspector | ||
1684 | disable building of edje_external_inspector | ||
1685 | --enable-edje-program-cache | ||
1686 | enable EDJE_PROGRAM_CACHE support. | ||
1687 | [[default=disabled]] | ||
1688 | --enable-edje-calc-cache | ||
1689 | enable EDJE_CALC_CACHE support. [[default=disabled]] | ||
1690 | --enable-fixed-point reduce use of FPU by using Fixed Point provided by | ||
1691 | Eina and Eet, [[default=disabled]] | ||
1692 | --disable-doc Disable documentation build [default=enabled] | ||
1693 | --disable-sndfile disable sndfile support. [default=detect] | ||
1694 | --disable-remix disable remix support. [default=detect] | ||
1695 | --disable-vorbis disable ogg-vorbis support. [default=detect] | ||
1696 | --disable-alsa disable alsa support. [default=detect] | ||
1697 | --disable-flac disable flac support. [default=detect] | ||
1698 | --enable-tests enable tests [default=disabled] | ||
1699 | --enable-coverage enable coverage profiling instrumentation | ||
1700 | [default=disabled] | ||
1701 | --disable-install-examples | ||
1702 | disable installing examples (compiled or just | ||
1703 | source). [default==enabled] | ||
1704 | --enable-build-examples Enable building examples. This requires extra | ||
1705 | denpendencies. If you don't have them installed yet, | ||
1706 | don't build with this option or it will fail. Build | ||
1707 | again when you have it, overriding the previous | ||
1708 | installation). [default==disabled] | ||
1709 | |||
1710 | Optional Packages: | ||
1711 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | ||
1712 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | ||
1713 | --with-pic try to use only PIC/non-PIC objects [default=use | ||
1714 | both] | ||
1715 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | ||
1716 | --with-vim=DIR Location of Vim data files [[autodetect]] | ||
1717 | --with-doxygen=FILE doxygen program to use [default=doxygen] | ||
1718 | |||
1719 | Some influential environment variables: | ||
1720 | CC C compiler command | ||
1721 | CFLAGS C compiler flags | ||
1722 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | ||
1723 | nonstandard directory <lib dir> | ||
1724 | LIBS libraries to pass to the linker, e.g. -l<library> | ||
1725 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if | ||
1726 | you have headers in a nonstandard directory <include dir> | ||
1727 | CPP C preprocessor | ||
1728 | PKG_CONFIG path to pkg-config utility | ||
1729 | PKG_CONFIG_PATH | ||
1730 | directories to add to pkg-config's search path | ||
1731 | PKG_CONFIG_LIBDIR | ||
1732 | path overriding pkg-config's built-in search path | ||
1733 | EVIL_CFLAGS C compiler flags for EVIL, overriding pkg-config | ||
1734 | EVIL_LIBS linker flags for EVIL, overriding pkg-config | ||
1735 | LUA_CFLAGS C compiler flags for LUA, overriding pkg-config | ||
1736 | LUA_LIBS linker flags for LUA, overriding pkg-config | ||
1737 | MINIMAL_CFLAGS | ||
1738 | C compiler flags for MINIMAL, overriding pkg-config | ||
1739 | MINIMAL_LIBS | ||
1740 | linker flags for MINIMAL, overriding pkg-config | ||
1741 | EDJE_CFLAGS C compiler flags for EDJE, overriding pkg-config | ||
1742 | EDJE_LIBS linker flags for EDJE, overriding pkg-config | ||
1743 | ECORE_IMF_CFLAGS | ||
1744 | C compiler flags for ECORE_IMF, overriding pkg-config | ||
1745 | ECORE_IMF_LIBS | ||
1746 | linker flags for ECORE_IMF, overriding pkg-config | ||
1747 | SNDFILE_CFLAGS | ||
1748 | C compiler flags for SNDFILE, overriding pkg-config | ||
1749 | SNDFILE_LIBS | ||
1750 | linker flags for SNDFILE, overriding pkg-config | ||
1751 | REMIX_CFLAGS | ||
1752 | C compiler flags for REMIX, overriding pkg-config | ||
1753 | REMIX_LIBS linker flags for REMIX, overriding pkg-config | ||
1754 | VORBISENC_CFLAGS | ||
1755 | C compiler flags for VORBISENC, overriding pkg-config | ||
1756 | VORBISENC_LIBS | ||
1757 | linker flags for VORBISENC, overriding pkg-config | ||
1758 | ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config | ||
1759 | ALSA_LIBS linker flags for ALSA, overriding pkg-config | ||
1760 | FLAC_CFLAGS C compiler flags for FLAC, overriding pkg-config | ||
1761 | FLAC_LIBS linker flags for FLAC, overriding pkg-config | ||
1762 | EDJE_CC_CFLAGS | ||
1763 | C compiler flags for EDJE_CC, overriding pkg-config | ||
1764 | EDJE_CC_LIBS | ||
1765 | linker flags for EDJE_CC, overriding pkg-config | ||
1766 | EDJE_DECC_CFLAGS | ||
1767 | C compiler flags for EDJE_DECC, overriding pkg-config | ||
1768 | EDJE_DECC_LIBS | ||
1769 | linker flags for EDJE_DECC, overriding pkg-config | ||
1770 | EDJE_PLAYER_CFLAGS | ||
1771 | C compiler flags for EDJE_PLAYER, overriding pkg-config | ||
1772 | EDJE_PLAYER_LIBS | ||
1773 | linker flags for EDJE_PLAYER, overriding pkg-config | ||
1774 | EDJE_INSPECTOR_CFLAGS | ||
1775 | C compiler flags for EDJE_INSPECTOR, overriding pkg-config | ||
1776 | EDJE_INSPECTOR_LIBS | ||
1777 | linker flags for EDJE_INSPECTOR, overriding pkg-config | ||
1778 | EDJE_EXTERNAL_INSPECTOR_CFLAGS | ||
1779 | C compiler flags for EDJE_EXTERNAL_INSPECTOR, overriding | ||
1780 | pkg-config | ||
1781 | EDJE_EXTERNAL_INSPECTOR_LIBS | ||
1782 | linker flags for EDJE_EXTERNAL_INSPECTOR, overriding pkg-config | ||
1783 | CHECK_CFLAGS | ||
1784 | C compiler flags for CHECK, overriding pkg-config | ||
1785 | CHECK_LIBS linker flags for CHECK, overriding pkg-config | ||
1786 | |||
1787 | Use these variables to override the choices made by `configure' or to help | ||
1788 | it to find libraries and programs with nonstandard names/locations. | ||
1789 | |||
1790 | Report bugs to <enlightenment-devel@lists.sourceforge.net>. | ||
1791 | _ACEOF | ||
1792 | ac_status=$? | ||
1793 | fi | ||
1794 | |||
1795 | if test "$ac_init_help" = "recursive"; then | ||
1796 | # If there are subdirs, report their specific --help. | ||
1797 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | ||
1798 | test -d "$ac_dir" || | ||
1799 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | ||
1800 | continue | ||
1801 | ac_builddir=. | ||
1802 | |||
1803 | case "$ac_dir" in | ||
1804 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
1805 | *) | ||
1806 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | ||
1807 | # A ".." for each directory in $ac_dir_suffix. | ||
1808 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | ||
1809 | case $ac_top_builddir_sub in | ||
1810 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
1811 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | ||
1812 | esac ;; | ||
1813 | esac | ||
1814 | ac_abs_top_builddir=$ac_pwd | ||
1815 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | ||
1816 | # for backward compatibility: | ||
1817 | ac_top_builddir=$ac_top_build_prefix | ||
1818 | |||
1819 | case $srcdir in | ||
1820 | .) # We are building in place. | ||
1821 | ac_srcdir=. | ||
1822 | ac_top_srcdir=$ac_top_builddir_sub | ||
1823 | ac_abs_top_srcdir=$ac_pwd ;; | ||
1824 | [\\/]* | ?:[\\/]* ) # Absolute name. | ||
1825 | ac_srcdir=$srcdir$ac_dir_suffix; | ||
1826 | ac_top_srcdir=$srcdir | ||
1827 | ac_abs_top_srcdir=$srcdir ;; | ||
1828 | *) # Relative name. | ||
1829 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | ||
1830 | ac_top_srcdir=$ac_top_build_prefix$srcdir | ||
1831 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | ||
1832 | esac | ||
1833 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | ||
1834 | |||
1835 | cd "$ac_dir" || { ac_status=$?; continue; } | ||
1836 | # Check for guested configure. | ||
1837 | if test -f "$ac_srcdir/configure.gnu"; then | ||
1838 | echo && | ||
1839 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | ||
1840 | elif test -f "$ac_srcdir/configure"; then | ||
1841 | echo && | ||
1842 | $SHELL "$ac_srcdir/configure" --help=recursive | ||
1843 | else | ||
1844 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | ||
1845 | fi || ac_status=$? | ||
1846 | cd "$ac_pwd" || { ac_status=$?; break; } | ||
1847 | done | ||
1848 | fi | ||
1849 | |||
1850 | test -n "$ac_init_help" && exit $ac_status | ||
1851 | if $ac_init_version; then | ||
1852 | cat <<\_ACEOF | ||
1853 | edje configure 1.1.0 | ||
1854 | generated by GNU Autoconf 2.67 | ||
1855 | |||
1856 | Copyright (C) 2010 Free Software Foundation, Inc. | ||
1857 | This configure script is free software; the Free Software Foundation | ||
1858 | gives unlimited permission to copy, distribute and modify it. | ||
1859 | _ACEOF | ||
1860 | exit | ||
1861 | fi | ||
1862 | |||
1863 | ## ------------------------ ## | ||
1864 | ## Autoconf initialization. ## | ||
1865 | ## ------------------------ ## | ||
1866 | |||
1867 | # ac_fn_c_try_compile LINENO | ||
1868 | # -------------------------- | ||
1869 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | ||
1870 | ac_fn_c_try_compile () | ||
1871 | { | ||
1872 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
1873 | rm -f conftest.$ac_objext | ||
1874 | if { { ac_try="$ac_compile" | ||
1875 | case "(($ac_try" in | ||
1876 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
1877 | *) ac_try_echo=$ac_try;; | ||
1878 | esac | ||
1879 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
1880 | $as_echo "$ac_try_echo"; } >&5 | ||
1881 | (eval "$ac_compile") 2>conftest.err | ||
1882 | ac_status=$? | ||
1883 | if test -s conftest.err; then | ||
1884 | grep -v '^ *+' conftest.err >conftest.er1 | ||
1885 | cat conftest.er1 >&5 | ||
1886 | mv -f conftest.er1 conftest.err | ||
1887 | fi | ||
1888 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
1889 | test $ac_status = 0; } && { | ||
1890 | test -z "$ac_c_werror_flag" || | ||
1891 | test ! -s conftest.err | ||
1892 | } && test -s conftest.$ac_objext; then : | ||
1893 | ac_retval=0 | ||
1894 | else | ||
1895 | $as_echo "$as_me: failed program was:" >&5 | ||
1896 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
1897 | |||
1898 | ac_retval=1 | ||
1899 | fi | ||
1900 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
1901 | as_fn_set_status $ac_retval | ||
1902 | |||
1903 | } # ac_fn_c_try_compile | ||
1904 | |||
1905 | # ac_fn_c_try_link LINENO | ||
1906 | # ----------------------- | ||
1907 | # Try to link conftest.$ac_ext, and return whether this succeeded. | ||
1908 | ac_fn_c_try_link () | ||
1909 | { | ||
1910 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
1911 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
1912 | if { { ac_try="$ac_link" | ||
1913 | case "(($ac_try" in | ||
1914 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
1915 | *) ac_try_echo=$ac_try;; | ||
1916 | esac | ||
1917 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
1918 | $as_echo "$ac_try_echo"; } >&5 | ||
1919 | (eval "$ac_link") 2>conftest.err | ||
1920 | ac_status=$? | ||
1921 | if test -s conftest.err; then | ||
1922 | grep -v '^ *+' conftest.err >conftest.er1 | ||
1923 | cat conftest.er1 >&5 | ||
1924 | mv -f conftest.er1 conftest.err | ||
1925 | fi | ||
1926 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
1927 | test $ac_status = 0; } && { | ||
1928 | test -z "$ac_c_werror_flag" || | ||
1929 | test ! -s conftest.err | ||
1930 | } && test -s conftest$ac_exeext && { | ||
1931 | test "$cross_compiling" = yes || | ||
1932 | $as_test_x conftest$ac_exeext | ||
1933 | }; then : | ||
1934 | ac_retval=0 | ||
1935 | else | ||
1936 | $as_echo "$as_me: failed program was:" >&5 | ||
1937 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
1938 | |||
1939 | ac_retval=1 | ||
1940 | fi | ||
1941 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | ||
1942 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | ||
1943 | # interfere with the next link command; also delete a directory that is | ||
1944 | # left behind by Apple's compiler. We do this before executing the actions. | ||
1945 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | ||
1946 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
1947 | as_fn_set_status $ac_retval | ||
1948 | |||
1949 | } # ac_fn_c_try_link | ||
1950 | |||
1951 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | ||
1952 | # ------------------------------------------------------- | ||
1953 | # Tests whether HEADER exists and can be compiled using the include files in | ||
1954 | # INCLUDES, setting the cache variable VAR accordingly. | ||
1955 | ac_fn_c_check_header_compile () | ||
1956 | { | ||
1957 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
1958 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||
1959 | $as_echo_n "checking for $2... " >&6; } | ||
1960 | if eval "test \"\${$3+set}\"" = set; then : | ||
1961 | $as_echo_n "(cached) " >&6 | ||
1962 | else | ||
1963 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
1964 | /* end confdefs.h. */ | ||
1965 | $4 | ||
1966 | #include <$2> | ||
1967 | _ACEOF | ||
1968 | if ac_fn_c_try_compile "$LINENO"; then : | ||
1969 | eval "$3=yes" | ||
1970 | else | ||
1971 | eval "$3=no" | ||
1972 | fi | ||
1973 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
1974 | fi | ||
1975 | eval ac_res=\$$3 | ||
1976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
1977 | $as_echo "$ac_res" >&6; } | ||
1978 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
1979 | |||
1980 | } # ac_fn_c_check_header_compile | ||
1981 | |||
1982 | # ac_fn_c_try_cpp LINENO | ||
1983 | # ---------------------- | ||
1984 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | ||
1985 | ac_fn_c_try_cpp () | ||
1986 | { | ||
1987 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
1988 | if { { ac_try="$ac_cpp conftest.$ac_ext" | ||
1989 | case "(($ac_try" in | ||
1990 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
1991 | *) ac_try_echo=$ac_try;; | ||
1992 | esac | ||
1993 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
1994 | $as_echo "$ac_try_echo"; } >&5 | ||
1995 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | ||
1996 | ac_status=$? | ||
1997 | if test -s conftest.err; then | ||
1998 | grep -v '^ *+' conftest.err >conftest.er1 | ||
1999 | cat conftest.er1 >&5 | ||
2000 | mv -f conftest.er1 conftest.err | ||
2001 | fi | ||
2002 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
2003 | test $ac_status = 0; } > conftest.i && { | ||
2004 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
2005 | test ! -s conftest.err | ||
2006 | }; then : | ||
2007 | ac_retval=0 | ||
2008 | else | ||
2009 | $as_echo "$as_me: failed program was:" >&5 | ||
2010 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2011 | |||
2012 | ac_retval=1 | ||
2013 | fi | ||
2014 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
2015 | as_fn_set_status $ac_retval | ||
2016 | |||
2017 | } # ac_fn_c_try_cpp | ||
2018 | |||
2019 | # ac_fn_c_try_run LINENO | ||
2020 | # ---------------------- | ||
2021 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | ||
2022 | # that executables *can* be run. | ||
2023 | ac_fn_c_try_run () | ||
2024 | { | ||
2025 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
2026 | if { { ac_try="$ac_link" | ||
2027 | case "(($ac_try" in | ||
2028 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2029 | *) ac_try_echo=$ac_try;; | ||
2030 | esac | ||
2031 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
2032 | $as_echo "$ac_try_echo"; } >&5 | ||
2033 | (eval "$ac_link") 2>&5 | ||
2034 | ac_status=$? | ||
2035 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
2036 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | ||
2037 | { { case "(($ac_try" in | ||
2038 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2039 | *) ac_try_echo=$ac_try;; | ||
2040 | esac | ||
2041 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
2042 | $as_echo "$ac_try_echo"; } >&5 | ||
2043 | (eval "$ac_try") 2>&5 | ||
2044 | ac_status=$? | ||
2045 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
2046 | test $ac_status = 0; }; }; then : | ||
2047 | ac_retval=0 | ||
2048 | else | ||
2049 | $as_echo "$as_me: program exited with status $ac_status" >&5 | ||
2050 | $as_echo "$as_me: failed program was:" >&5 | ||
2051 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2052 | |||
2053 | ac_retval=$ac_status | ||
2054 | fi | ||
2055 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | ||
2056 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
2057 | as_fn_set_status $ac_retval | ||
2058 | |||
2059 | } # ac_fn_c_try_run | ||
2060 | |||
2061 | # ac_fn_c_check_func LINENO FUNC VAR | ||
2062 | # ---------------------------------- | ||
2063 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | ||
2064 | ac_fn_c_check_func () | ||
2065 | { | ||
2066 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
2067 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||
2068 | $as_echo_n "checking for $2... " >&6; } | ||
2069 | if eval "test \"\${$3+set}\"" = set; then : | ||
2070 | $as_echo_n "(cached) " >&6 | ||
2071 | else | ||
2072 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2073 | /* end confdefs.h. */ | ||
2074 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | ||
2075 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
2076 | #define $2 innocuous_$2 | ||
2077 | |||
2078 | /* System header to define __stub macros and hopefully few prototypes, | ||
2079 | which can conflict with char $2 (); below. | ||
2080 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
2081 | <limits.h> exists even on freestanding compilers. */ | ||
2082 | |||
2083 | #ifdef __STDC__ | ||
2084 | # include <limits.h> | ||
2085 | #else | ||
2086 | # include <assert.h> | ||
2087 | #endif | ||
2088 | |||
2089 | #undef $2 | ||
2090 | |||
2091 | /* Override any GCC internal prototype to avoid an error. | ||
2092 | Use char because int might match the return type of a GCC | ||
2093 | builtin and then its argument prototype would still apply. */ | ||
2094 | #ifdef __cplusplus | ||
2095 | extern "C" | ||
2096 | #endif | ||
2097 | char $2 (); | ||
2098 | /* The GNU C library defines this for functions which it implements | ||
2099 | to always fail with ENOSYS. Some functions are actually named | ||
2100 | something starting with __ and the normal name is an alias. */ | ||
2101 | #if defined __stub_$2 || defined __stub___$2 | ||
2102 | choke me | ||
2103 | #endif | ||
2104 | |||
2105 | int | ||
2106 | main () | ||
2107 | { | ||
2108 | return $2 (); | ||
2109 | ; | ||
2110 | return 0; | ||
2111 | } | ||
2112 | _ACEOF | ||
2113 | if ac_fn_c_try_link "$LINENO"; then : | ||
2114 | eval "$3=yes" | ||
2115 | else | ||
2116 | eval "$3=no" | ||
2117 | fi | ||
2118 | rm -f core conftest.err conftest.$ac_objext \ | ||
2119 | conftest$ac_exeext conftest.$ac_ext | ||
2120 | fi | ||
2121 | eval ac_res=\$$3 | ||
2122 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
2123 | $as_echo "$ac_res" >&6; } | ||
2124 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
2125 | |||
2126 | } # ac_fn_c_check_func | ||
2127 | |||
2128 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | ||
2129 | # ------------------------------------------------------- | ||
2130 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | ||
2131 | # the include files in INCLUDES and setting the cache variable VAR | ||
2132 | # accordingly. | ||
2133 | ac_fn_c_check_header_mongrel () | ||
2134 | { | ||
2135 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
2136 | if eval "test \"\${$3+set}\"" = set; then : | ||
2137 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||
2138 | $as_echo_n "checking for $2... " >&6; } | ||
2139 | if eval "test \"\${$3+set}\"" = set; then : | ||
2140 | $as_echo_n "(cached) " >&6 | ||
2141 | fi | ||
2142 | eval ac_res=\$$3 | ||
2143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
2144 | $as_echo "$ac_res" >&6; } | ||
2145 | else | ||
2146 | # Is the header compilable? | ||
2147 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | ||
2148 | $as_echo_n "checking $2 usability... " >&6; } | ||
2149 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2150 | /* end confdefs.h. */ | ||
2151 | $4 | ||
2152 | #include <$2> | ||
2153 | _ACEOF | ||
2154 | if ac_fn_c_try_compile "$LINENO"; then : | ||
2155 | ac_header_compiler=yes | ||
2156 | else | ||
2157 | ac_header_compiler=no | ||
2158 | fi | ||
2159 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2160 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | ||
2161 | $as_echo "$ac_header_compiler" >&6; } | ||
2162 | |||
2163 | # Is the header present? | ||
2164 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | ||
2165 | $as_echo_n "checking $2 presence... " >&6; } | ||
2166 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2167 | /* end confdefs.h. */ | ||
2168 | #include <$2> | ||
2169 | _ACEOF | ||
2170 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
2171 | ac_header_preproc=yes | ||
2172 | else | ||
2173 | ac_header_preproc=no | ||
2174 | fi | ||
2175 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
2176 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | ||
2177 | $as_echo "$ac_header_preproc" >&6; } | ||
2178 | |||
2179 | # So? What about this header? | ||
2180 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | ||
2181 | yes:no: ) | ||
2182 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
2183 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
2184 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | ||
2185 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | ||
2186 | ;; | ||
2187 | no:yes:* ) | ||
2188 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | ||
2189 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | ||
2190 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | ||
2191 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | ||
2192 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | ||
2193 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | ||
2194 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | ||
2195 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | ||
2196 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | ||
2197 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | ||
2198 | ( $as_echo "## -------------------------------------------------------- ## | ||
2199 | ## Report this to enlightenment-devel@lists.sourceforge.net ## | ||
2200 | ## -------------------------------------------------------- ##" | ||
2201 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
2202 | ;; | ||
2203 | esac | ||
2204 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||
2205 | $as_echo_n "checking for $2... " >&6; } | ||
2206 | if eval "test \"\${$3+set}\"" = set; then : | ||
2207 | $as_echo_n "(cached) " >&6 | ||
2208 | else | ||
2209 | eval "$3=\$ac_header_compiler" | ||
2210 | fi | ||
2211 | eval ac_res=\$$3 | ||
2212 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
2213 | $as_echo "$ac_res" >&6; } | ||
2214 | fi | ||
2215 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
2216 | |||
2217 | } # ac_fn_c_check_header_mongrel | ||
2218 | cat >config.log <<_ACEOF | ||
2219 | This file contains any messages produced by compilers while | ||
2220 | running configure, to aid debugging if configure makes a mistake. | ||
2221 | |||
2222 | It was created by edje $as_me 1.1.0, which was | ||
2223 | generated by GNU Autoconf 2.67. Invocation command line was | ||
2224 | |||
2225 | $ $0 $@ | ||
2226 | |||
2227 | _ACEOF | ||
2228 | exec 5>>config.log | ||
2229 | { | ||
2230 | cat <<_ASUNAME | ||
2231 | ## --------- ## | ||
2232 | ## Platform. ## | ||
2233 | ## --------- ## | ||
2234 | |||
2235 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | ||
2236 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | ||
2237 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | ||
2238 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | ||
2239 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | ||
2240 | |||
2241 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | ||
2242 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | ||
2243 | |||
2244 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | ||
2245 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | ||
2246 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | ||
2247 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | ||
2248 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | ||
2249 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | ||
2250 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | ||
2251 | |||
2252 | _ASUNAME | ||
2253 | |||
2254 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2255 | for as_dir in $PATH | ||
2256 | do | ||
2257 | IFS=$as_save_IFS | ||
2258 | test -z "$as_dir" && as_dir=. | ||
2259 | $as_echo "PATH: $as_dir" | ||
2260 | done | ||
2261 | IFS=$as_save_IFS | ||
2262 | |||
2263 | } >&5 | ||
2264 | |||
2265 | cat >&5 <<_ACEOF | ||
2266 | |||
2267 | |||
2268 | ## ----------- ## | ||
2269 | ## Core tests. ## | ||
2270 | ## ----------- ## | ||
2271 | |||
2272 | _ACEOF | ||
2273 | |||
2274 | |||
2275 | # Keep a trace of the command line. | ||
2276 | # Strip out --no-create and --no-recursion so they do not pile up. | ||
2277 | # Strip out --silent because we don't want to record it for future runs. | ||
2278 | # Also quote any args containing shell meta-characters. | ||
2279 | # Make two passes to allow for proper duplicate-argument suppression. | ||
2280 | ac_configure_args= | ||
2281 | ac_configure_args0= | ||
2282 | ac_configure_args1= | ||
2283 | ac_must_keep_next=false | ||
2284 | for ac_pass in 1 2 | ||
2285 | do | ||
2286 | for ac_arg | ||
2287 | do | ||
2288 | case $ac_arg in | ||
2289 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | ||
2290 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
2291 | | -silent | --silent | --silen | --sile | --sil) | ||
2292 | continue ;; | ||
2293 | *\'*) | ||
2294 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
2295 | esac | ||
2296 | case $ac_pass in | ||
2297 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | ||
2298 | 2) | ||
2299 | as_fn_append ac_configure_args1 " '$ac_arg'" | ||
2300 | if test $ac_must_keep_next = true; then | ||
2301 | ac_must_keep_next=false # Got value, back to normal. | ||
2302 | else | ||
2303 | case $ac_arg in | ||
2304 | *=* | --config-cache | -C | -disable-* | --disable-* \ | ||
2305 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | ||
2306 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | ||
2307 | | -with-* | --with-* | -without-* | --without-* | --x) | ||
2308 | case "$ac_configure_args0 " in | ||
2309 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | ||
2310 | esac | ||
2311 | ;; | ||
2312 | -* ) ac_must_keep_next=true ;; | ||
2313 | esac | ||
2314 | fi | ||
2315 | as_fn_append ac_configure_args " '$ac_arg'" | ||
2316 | ;; | ||
2317 | esac | ||
2318 | done | ||
2319 | done | ||
2320 | { ac_configure_args0=; unset ac_configure_args0;} | ||
2321 | { ac_configure_args1=; unset ac_configure_args1;} | ||
2322 | |||
2323 | # When interrupted or exit'd, cleanup temporary files, and complete | ||
2324 | # config.log. We remove comments because anyway the quotes in there | ||
2325 | # would cause problems or look ugly. | ||
2326 | # WARNING: Use '\'' to represent an apostrophe within the trap. | ||
2327 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | ||
2328 | trap 'exit_status=$? | ||
2329 | # Save into config.log some information that might help in debugging. | ||
2330 | { | ||
2331 | echo | ||
2332 | |||
2333 | $as_echo "## ---------------- ## | ||
2334 | ## Cache variables. ## | ||
2335 | ## ---------------- ##" | ||
2336 | echo | ||
2337 | # The following way of writing the cache mishandles newlines in values, | ||
2338 | ( | ||
2339 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | ||
2340 | eval ac_val=\$$ac_var | ||
2341 | case $ac_val in #( | ||
2342 | *${as_nl}*) | ||
2343 | case $ac_var in #( | ||
2344 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | ||
2345 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | ||
2346 | esac | ||
2347 | case $ac_var in #( | ||
2348 | _ | IFS | as_nl) ;; #( | ||
2349 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | ||
2350 | *) { eval $ac_var=; unset $ac_var;} ;; | ||
2351 | esac ;; | ||
2352 | esac | ||
2353 | done | ||
2354 | (set) 2>&1 | | ||
2355 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | ||
2356 | *${as_nl}ac_space=\ *) | ||
2357 | sed -n \ | ||
2358 | "s/'\''/'\''\\\\'\'''\''/g; | ||
2359 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | ||
2360 | ;; #( | ||
2361 | *) | ||
2362 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | ||
2363 | ;; | ||
2364 | esac | | ||
2365 | sort | ||
2366 | ) | ||
2367 | echo | ||
2368 | |||
2369 | $as_echo "## ----------------- ## | ||
2370 | ## Output variables. ## | ||
2371 | ## ----------------- ##" | ||
2372 | echo | ||
2373 | for ac_var in $ac_subst_vars | ||
2374 | do | ||
2375 | eval ac_val=\$$ac_var | ||
2376 | case $ac_val in | ||
2377 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | ||
2378 | esac | ||
2379 | $as_echo "$ac_var='\''$ac_val'\''" | ||
2380 | done | sort | ||
2381 | echo | ||
2382 | |||
2383 | if test -n "$ac_subst_files"; then | ||
2384 | $as_echo "## ------------------- ## | ||
2385 | ## File substitutions. ## | ||
2386 | ## ------------------- ##" | ||
2387 | echo | ||
2388 | for ac_var in $ac_subst_files | ||
2389 | do | ||
2390 | eval ac_val=\$$ac_var | ||
2391 | case $ac_val in | ||
2392 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | ||
2393 | esac | ||
2394 | $as_echo "$ac_var='\''$ac_val'\''" | ||
2395 | done | sort | ||
2396 | echo | ||
2397 | fi | ||
2398 | |||
2399 | if test -s confdefs.h; then | ||
2400 | $as_echo "## ----------- ## | ||
2401 | ## confdefs.h. ## | ||
2402 | ## ----------- ##" | ||
2403 | echo | ||
2404 | cat confdefs.h | ||
2405 | echo | ||
2406 | fi | ||
2407 | test "$ac_signal" != 0 && | ||
2408 | $as_echo "$as_me: caught signal $ac_signal" | ||
2409 | $as_echo "$as_me: exit $exit_status" | ||
2410 | } >&5 | ||
2411 | rm -f core *.core core.conftest.* && | ||
2412 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | ||
2413 | exit $exit_status | ||
2414 | ' 0 | ||
2415 | for ac_signal in 1 2 13 15; do | ||
2416 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | ||
2417 | done | ||
2418 | ac_signal=0 | ||
2419 | |||
2420 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | ||
2421 | rm -f -r conftest* confdefs.h | ||
2422 | |||
2423 | $as_echo "/* confdefs.h */" > confdefs.h | ||
2424 | |||
2425 | # Predefined preprocessor variables. | ||
2426 | |||
2427 | cat >>confdefs.h <<_ACEOF | ||
2428 | #define PACKAGE_NAME "$PACKAGE_NAME" | ||
2429 | _ACEOF | ||
2430 | |||
2431 | cat >>confdefs.h <<_ACEOF | ||
2432 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | ||
2433 | _ACEOF | ||
2434 | |||
2435 | cat >>confdefs.h <<_ACEOF | ||
2436 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | ||
2437 | _ACEOF | ||
2438 | |||
2439 | cat >>confdefs.h <<_ACEOF | ||
2440 | #define PACKAGE_STRING "$PACKAGE_STRING" | ||
2441 | _ACEOF | ||
2442 | |||
2443 | cat >>confdefs.h <<_ACEOF | ||
2444 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | ||
2445 | _ACEOF | ||
2446 | |||
2447 | cat >>confdefs.h <<_ACEOF | ||
2448 | #define PACKAGE_URL "$PACKAGE_URL" | ||
2449 | _ACEOF | ||
2450 | |||
2451 | |||
2452 | # Let the site file select an alternate cache file if it wants to. | ||
2453 | # Prefer an explicitly selected file to automatically selected ones. | ||
2454 | ac_site_file1=NONE | ||
2455 | ac_site_file2=NONE | ||
2456 | if test -n "$CONFIG_SITE"; then | ||
2457 | # We do not want a PATH search for config.site. | ||
2458 | case $CONFIG_SITE in #(( | ||
2459 | -*) ac_site_file1=./$CONFIG_SITE;; | ||
2460 | */*) ac_site_file1=$CONFIG_SITE;; | ||
2461 | *) ac_site_file1=./$CONFIG_SITE;; | ||
2462 | esac | ||
2463 | elif test "x$prefix" != xNONE; then | ||
2464 | ac_site_file1=$prefix/share/config.site | ||
2465 | ac_site_file2=$prefix/etc/config.site | ||
2466 | else | ||
2467 | ac_site_file1=$ac_default_prefix/share/config.site | ||
2468 | ac_site_file2=$ac_default_prefix/etc/config.site | ||
2469 | fi | ||
2470 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | ||
2471 | do | ||
2472 | test "x$ac_site_file" = xNONE && continue | ||
2473 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then | ||
2474 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | ||
2475 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | ||
2476 | sed 's/^/| /' "$ac_site_file" >&5 | ||
2477 | . "$ac_site_file" \ | ||
2478 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
2479 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
2480 | as_fn_error $? "failed to load site script $ac_site_file | ||
2481 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
2482 | fi | ||
2483 | done | ||
2484 | |||
2485 | if test -r "$cache_file"; then | ||
2486 | # Some versions of bash will fail to source /dev/null (special files | ||
2487 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | ||
2488 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | ||
2489 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | ||
2490 | $as_echo "$as_me: loading cache $cache_file" >&6;} | ||
2491 | case $cache_file in | ||
2492 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | ||
2493 | *) . "./$cache_file";; | ||
2494 | esac | ||
2495 | fi | ||
2496 | else | ||
2497 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | ||
2498 | $as_echo "$as_me: creating cache $cache_file" >&6;} | ||
2499 | >$cache_file | ||
2500 | fi | ||
2501 | |||
2502 | # Check that the precious variables saved in the cache have kept the same | ||
2503 | # value. | ||
2504 | ac_cache_corrupted=false | ||
2505 | for ac_var in $ac_precious_vars; do | ||
2506 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | ||
2507 | eval ac_new_set=\$ac_env_${ac_var}_set | ||
2508 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | ||
2509 | eval ac_new_val=\$ac_env_${ac_var}_value | ||
2510 | case $ac_old_set,$ac_new_set in | ||
2511 | set,) | ||
2512 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | ||
2513 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | ||
2514 | ac_cache_corrupted=: ;; | ||
2515 | ,set) | ||
2516 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | ||
2517 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | ||
2518 | ac_cache_corrupted=: ;; | ||
2519 | ,);; | ||
2520 | *) | ||
2521 | if test "x$ac_old_val" != "x$ac_new_val"; then | ||
2522 | # differences in whitespace do not lead to failure. | ||
2523 | ac_old_val_w=`echo x $ac_old_val` | ||
2524 | ac_new_val_w=`echo x $ac_new_val` | ||
2525 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | ||
2526 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | ||
2527 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | ||
2528 | ac_cache_corrupted=: | ||
2529 | else | ||
2530 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | ||
2531 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | ||
2532 | eval $ac_var=\$ac_old_val | ||
2533 | fi | ||
2534 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | ||
2535 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | ||
2536 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | ||
2537 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | ||
2538 | fi;; | ||
2539 | esac | ||
2540 | # Pass precious variables to config.status. | ||
2541 | if test "$ac_new_set" = set; then | ||
2542 | case $ac_new_val in | ||
2543 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
2544 | *) ac_arg=$ac_var=$ac_new_val ;; | ||
2545 | esac | ||
2546 | case " $ac_configure_args " in | ||
2547 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | ||
2548 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | ||
2549 | esac | ||
2550 | fi | ||
2551 | done | ||
2552 | if $ac_cache_corrupted; then | ||
2553 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
2554 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
2555 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | ||
2556 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | ||
2557 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | ||
2558 | fi | ||
2559 | ## -------------------- ## | ||
2560 | ## Main body of script. ## | ||
2561 | ## -------------------- ## | ||
2562 | |||
2563 | ac_ext=c | ||
2564 | ac_cpp='$CPP $CPPFLAGS' | ||
2565 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
2566 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
2567 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
2568 | |||
2569 | |||
2570 | |||
2571 | |||
2572 | |||
2573 | |||
2574 | ac_config_headers="$ac_config_headers config.h" | ||
2575 | |||
2576 | |||
2577 | |||
2578 | |||
2579 | am__api_version='1.11' | ||
2580 | |||
2581 | ac_aux_dir= | ||
2582 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | ||
2583 | if test -f "$ac_dir/install-sh"; then | ||
2584 | ac_aux_dir=$ac_dir | ||
2585 | ac_install_sh="$ac_aux_dir/install-sh -c" | ||
2586 | break | ||
2587 | elif test -f "$ac_dir/install.sh"; then | ||
2588 | ac_aux_dir=$ac_dir | ||
2589 | ac_install_sh="$ac_aux_dir/install.sh -c" | ||
2590 | break | ||
2591 | elif test -f "$ac_dir/shtool"; then | ||
2592 | ac_aux_dir=$ac_dir | ||
2593 | ac_install_sh="$ac_aux_dir/shtool install -c" | ||
2594 | break | ||
2595 | fi | ||
2596 | done | ||
2597 | if test -z "$ac_aux_dir"; then | ||
2598 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 | ||
2599 | fi | ||
2600 | |||
2601 | # These three variables are undocumented and unsupported, | ||
2602 | # and are intended to be withdrawn in a future Autoconf release. | ||
2603 | # They can cause serious problems if a builder's source tree is in a directory | ||
2604 | # whose full name contains unusual characters. | ||
2605 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | ||
2606 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | ||
2607 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | ||
2608 | |||
2609 | |||
2610 | # Find a good install program. We prefer a C program (faster), | ||
2611 | # so one script is as good as another. But avoid the broken or | ||
2612 | # incompatible versions: | ||
2613 | # SysV /etc/install, /usr/sbin/install | ||
2614 | # SunOS /usr/etc/install | ||
2615 | # IRIX /sbin/install | ||
2616 | # AIX /bin/install | ||
2617 | # AmigaOS /C/install, which installs bootblocks on floppy discs | ||
2618 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | ||
2619 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | ||
2620 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | ||
2621 | # OS/2's system install, which has a completely different semantic | ||
2622 | # ./install, which can be erroneously created by make from ./install.sh. | ||
2623 | # Reject install programs that cannot install multiple files. | ||
2624 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | ||
2625 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | ||
2626 | if test -z "$INSTALL"; then | ||
2627 | if test "${ac_cv_path_install+set}" = set; then : | ||
2628 | $as_echo_n "(cached) " >&6 | ||
2629 | else | ||
2630 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2631 | for as_dir in $PATH | ||
2632 | do | ||
2633 | IFS=$as_save_IFS | ||
2634 | test -z "$as_dir" && as_dir=. | ||
2635 | # Account for people who put trailing slashes in PATH elements. | ||
2636 | case $as_dir/ in #(( | ||
2637 | ./ | .// | /[cC]/* | \ | ||
2638 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | ||
2639 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | ||
2640 | /usr/ucb/* ) ;; | ||
2641 | *) | ||
2642 | # OSF1 and SCO ODT 3.0 have their own names for install. | ||
2643 | # Don't use installbsd from OSF since it installs stuff as root | ||
2644 | # by default. | ||
2645 | for ac_prog in ginstall scoinst install; do | ||
2646 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2647 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | ||
2648 | if test $ac_prog = install && | ||
2649 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | ||
2650 | # AIX install. It has an incompatible calling convention. | ||
2651 | : | ||
2652 | elif test $ac_prog = install && | ||
2653 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | ||
2654 | # program-specific install script used by HP pwplus--don't use. | ||
2655 | : | ||
2656 | else | ||
2657 | rm -rf conftest.one conftest.two conftest.dir | ||
2658 | echo one > conftest.one | ||
2659 | echo two > conftest.two | ||
2660 | mkdir conftest.dir | ||
2661 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | ||
2662 | test -s conftest.one && test -s conftest.two && | ||
2663 | test -s conftest.dir/conftest.one && | ||
2664 | test -s conftest.dir/conftest.two | ||
2665 | then | ||
2666 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | ||
2667 | break 3 | ||
2668 | fi | ||
2669 | fi | ||
2670 | fi | ||
2671 | done | ||
2672 | done | ||
2673 | ;; | ||
2674 | esac | ||
2675 | |||
2676 | done | ||
2677 | IFS=$as_save_IFS | ||
2678 | |||
2679 | rm -rf conftest.one conftest.two conftest.dir | ||
2680 | |||
2681 | fi | ||
2682 | if test "${ac_cv_path_install+set}" = set; then | ||
2683 | INSTALL=$ac_cv_path_install | ||
2684 | else | ||
2685 | # As a last resort, use the slow shell script. Don't cache a | ||
2686 | # value for INSTALL within a source directory, because that will | ||
2687 | # break other packages using the cache if that directory is | ||
2688 | # removed, or if the value is a relative name. | ||
2689 | INSTALL=$ac_install_sh | ||
2690 | fi | ||
2691 | fi | ||
2692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | ||
2693 | $as_echo "$INSTALL" >&6; } | ||
2694 | |||
2695 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | ||
2696 | # It thinks the first close brace ends the variable substitution. | ||
2697 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | ||
2698 | |||
2699 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | ||
2700 | |||
2701 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | ||
2702 | |||
2703 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 | ||
2704 | $as_echo_n "checking whether build environment is sane... " >&6; } | ||
2705 | # Just in case | ||
2706 | sleep 1 | ||
2707 | echo timestamp > conftest.file | ||
2708 | # Reject unsafe characters in $srcdir or the absolute working directory | ||
2709 | # name. Accept space and tab only in the latter. | ||
2710 | am_lf=' | ||
2711 | ' | ||
2712 | case `pwd` in | ||
2713 | *[\\\"\#\$\&\'\`$am_lf]*) | ||
2714 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;; | ||
2715 | esac | ||
2716 | case $srcdir in | ||
2717 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | ||
2718 | as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;; | ||
2719 | esac | ||
2720 | |||
2721 | # Do `set' in a subshell so we don't clobber the current shell's | ||
2722 | # arguments. Must try -L first in case configure is actually a | ||
2723 | # symlink; some systems play weird games with the mod time of symlinks | ||
2724 | # (eg FreeBSD returns the mod time of the symlink's containing | ||
2725 | # directory). | ||
2726 | if ( | ||
2727 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | ||
2728 | if test "$*" = "X"; then | ||
2729 | # -L didn't work. | ||
2730 | set X `ls -t "$srcdir/configure" conftest.file` | ||
2731 | fi | ||
2732 | rm -f conftest.file | ||
2733 | if test "$*" != "X $srcdir/configure conftest.file" \ | ||
2734 | && test "$*" != "X conftest.file $srcdir/configure"; then | ||
2735 | |||
2736 | # If neither matched, then we have a broken ls. This can happen | ||
2737 | # if, for instance, CONFIG_SHELL is bash and it inherits a | ||
2738 | # broken ls alias from the environment. This has actually | ||
2739 | # happened. Such a system could not be considered "sane". | ||
2740 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken | ||
2741 | alias in your environment" "$LINENO" 5 | ||
2742 | fi | ||
2743 | |||
2744 | test "$2" = conftest.file | ||
2745 | ) | ||
2746 | then | ||
2747 | # Ok. | ||
2748 | : | ||
2749 | else | ||
2750 | as_fn_error $? "newly created file is older than distributed files! | ||
2751 | Check your system clock" "$LINENO" 5 | ||
2752 | fi | ||
2753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
2754 | $as_echo "yes" >&6; } | ||
2755 | test "$program_prefix" != NONE && | ||
2756 | program_transform_name="s&^&$program_prefix&;$program_transform_name" | ||
2757 | # Use a double $ so make ignores it. | ||
2758 | test "$program_suffix" != NONE && | ||
2759 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" | ||
2760 | # Double any \ or $. | ||
2761 | # By default was `s,x,x', remove it if useless. | ||
2762 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' | ||
2763 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | ||
2764 | |||
2765 | # expand $ac_aux_dir to an absolute path | ||
2766 | am_aux_dir=`cd $ac_aux_dir && pwd` | ||
2767 | |||
2768 | if test x"${MISSING+set}" != xset; then | ||
2769 | case $am_aux_dir in | ||
2770 | *\ * | *\ *) | ||
2771 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | ||
2772 | *) | ||
2773 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | ||
2774 | esac | ||
2775 | fi | ||
2776 | # Use eval to expand $SHELL | ||
2777 | if eval "$MISSING --run true"; then | ||
2778 | am_missing_run="$MISSING --run " | ||
2779 | else | ||
2780 | am_missing_run= | ||
2781 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 | ||
2782 | $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | ||
2783 | fi | ||
2784 | |||
2785 | if test x"${install_sh}" != xset; then | ||
2786 | case $am_aux_dir in | ||
2787 | *\ * | *\ *) | ||
2788 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | ||
2789 | *) | ||
2790 | install_sh="\${SHELL} $am_aux_dir/install-sh" | ||
2791 | esac | ||
2792 | fi | ||
2793 | |||
2794 | # Installed binaries are usually stripped using `strip' when the user | ||
2795 | # run `make install-strip'. However `strip' might not be the right | ||
2796 | # tool to use in cross-compilation environments, therefore Automake | ||
2797 | # will honor the `STRIP' environment variable to overrule this program. | ||
2798 | if test "$cross_compiling" != no; then | ||
2799 | if test -n "$ac_tool_prefix"; then | ||
2800 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | ||
2801 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | ||
2802 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
2803 | $as_echo_n "checking for $ac_word... " >&6; } | ||
2804 | if test "${ac_cv_prog_STRIP+set}" = set; then : | ||
2805 | $as_echo_n "(cached) " >&6 | ||
2806 | else | ||
2807 | if test -n "$STRIP"; then | ||
2808 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | ||
2809 | else | ||
2810 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2811 | for as_dir in $PATH | ||
2812 | do | ||
2813 | IFS=$as_save_IFS | ||
2814 | test -z "$as_dir" && as_dir=. | ||
2815 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2816 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
2817 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | ||
2818 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2819 | break 2 | ||
2820 | fi | ||
2821 | done | ||
2822 | done | ||
2823 | IFS=$as_save_IFS | ||
2824 | |||
2825 | fi | ||
2826 | fi | ||
2827 | STRIP=$ac_cv_prog_STRIP | ||
2828 | if test -n "$STRIP"; then | ||
2829 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | ||
2830 | $as_echo "$STRIP" >&6; } | ||
2831 | else | ||
2832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
2833 | $as_echo "no" >&6; } | ||
2834 | fi | ||
2835 | |||
2836 | |||
2837 | fi | ||
2838 | if test -z "$ac_cv_prog_STRIP"; then | ||
2839 | ac_ct_STRIP=$STRIP | ||
2840 | # Extract the first word of "strip", so it can be a program name with args. | ||
2841 | set dummy strip; ac_word=$2 | ||
2842 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
2843 | $as_echo_n "checking for $ac_word... " >&6; } | ||
2844 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : | ||
2845 | $as_echo_n "(cached) " >&6 | ||
2846 | else | ||
2847 | if test -n "$ac_ct_STRIP"; then | ||
2848 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | ||
2849 | else | ||
2850 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2851 | for as_dir in $PATH | ||
2852 | do | ||
2853 | IFS=$as_save_IFS | ||
2854 | test -z "$as_dir" && as_dir=. | ||
2855 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2856 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
2857 | ac_cv_prog_ac_ct_STRIP="strip" | ||
2858 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2859 | break 2 | ||
2860 | fi | ||
2861 | done | ||
2862 | done | ||
2863 | IFS=$as_save_IFS | ||
2864 | |||
2865 | fi | ||
2866 | fi | ||
2867 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | ||
2868 | if test -n "$ac_ct_STRIP"; then | ||
2869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | ||
2870 | $as_echo "$ac_ct_STRIP" >&6; } | ||
2871 | else | ||
2872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
2873 | $as_echo "no" >&6; } | ||
2874 | fi | ||
2875 | |||
2876 | if test "x$ac_ct_STRIP" = x; then | ||
2877 | STRIP=":" | ||
2878 | else | ||
2879 | case $cross_compiling:$ac_tool_warned in | ||
2880 | yes:) | ||
2881 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
2882 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
2883 | ac_tool_warned=yes ;; | ||
2884 | esac | ||
2885 | STRIP=$ac_ct_STRIP | ||
2886 | fi | ||
2887 | else | ||
2888 | STRIP="$ac_cv_prog_STRIP" | ||
2889 | fi | ||
2890 | |||
2891 | fi | ||
2892 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | ||
2893 | |||
2894 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | ||
2895 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | ||
2896 | if test -z "$MKDIR_P"; then | ||
2897 | if test "${ac_cv_path_mkdir+set}" = set; then : | ||
2898 | $as_echo_n "(cached) " >&6 | ||
2899 | else | ||
2900 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2901 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | ||
2902 | do | ||
2903 | IFS=$as_save_IFS | ||
2904 | test -z "$as_dir" && as_dir=. | ||
2905 | for ac_prog in mkdir gmkdir; do | ||
2906 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2907 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | ||
2908 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | ||
2909 | 'mkdir (GNU coreutils) '* | \ | ||
2910 | 'mkdir (coreutils) '* | \ | ||
2911 | 'mkdir (fileutils) '4.1*) | ||
2912 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | ||
2913 | break 3;; | ||
2914 | esac | ||
2915 | done | ||
2916 | done | ||
2917 | done | ||
2918 | IFS=$as_save_IFS | ||
2919 | |||
2920 | fi | ||
2921 | |||
2922 | test -d ./--version && rmdir ./--version | ||
2923 | if test "${ac_cv_path_mkdir+set}" = set; then | ||
2924 | MKDIR_P="$ac_cv_path_mkdir -p" | ||
2925 | else | ||
2926 | # As a last resort, use the slow shell script. Don't cache a | ||
2927 | # value for MKDIR_P within a source directory, because that will | ||
2928 | # break other packages using the cache if that directory is | ||
2929 | # removed, or if the value is a relative name. | ||
2930 | MKDIR_P="$ac_install_sh -d" | ||
2931 | fi | ||
2932 | fi | ||
2933 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | ||
2934 | $as_echo "$MKDIR_P" >&6; } | ||
2935 | |||
2936 | mkdir_p="$MKDIR_P" | ||
2937 | case $mkdir_p in | ||
2938 | [\\/$]* | ?:[\\/]*) ;; | ||
2939 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; | ||
2940 | esac | ||
2941 | |||
2942 | for ac_prog in gawk mawk nawk awk | ||
2943 | do | ||
2944 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
2945 | set dummy $ac_prog; ac_word=$2 | ||
2946 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
2947 | $as_echo_n "checking for $ac_word... " >&6; } | ||
2948 | if test "${ac_cv_prog_AWK+set}" = set; then : | ||
2949 | $as_echo_n "(cached) " >&6 | ||
2950 | else | ||
2951 | if test -n "$AWK"; then | ||
2952 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | ||
2953 | else | ||
2954 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2955 | for as_dir in $PATH | ||
2956 | do | ||
2957 | IFS=$as_save_IFS | ||
2958 | test -z "$as_dir" && as_dir=. | ||
2959 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2960 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
2961 | ac_cv_prog_AWK="$ac_prog" | ||
2962 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2963 | break 2 | ||
2964 | fi | ||
2965 | done | ||
2966 | done | ||
2967 | IFS=$as_save_IFS | ||
2968 | |||
2969 | fi | ||
2970 | fi | ||
2971 | AWK=$ac_cv_prog_AWK | ||
2972 | if test -n "$AWK"; then | ||
2973 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | ||
2974 | $as_echo "$AWK" >&6; } | ||
2975 | else | ||
2976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
2977 | $as_echo "no" >&6; } | ||
2978 | fi | ||
2979 | |||
2980 | |||
2981 | test -n "$AWK" && break | ||
2982 | done | ||
2983 | |||
2984 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | ||
2985 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | ||
2986 | set x ${MAKE-make} | ||
2987 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | ||
2988 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then : | ||
2989 | $as_echo_n "(cached) " >&6 | ||
2990 | else | ||
2991 | cat >conftest.make <<\_ACEOF | ||
2992 | SHELL = /bin/sh | ||
2993 | all: | ||
2994 | @echo '@@@%%%=$(MAKE)=@@@%%%' | ||
2995 | _ACEOF | ||
2996 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | ||
2997 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | ||
2998 | *@@@%%%=?*=@@@%%%*) | ||
2999 | eval ac_cv_prog_make_${ac_make}_set=yes;; | ||
3000 | *) | ||
3001 | eval ac_cv_prog_make_${ac_make}_set=no;; | ||
3002 | esac | ||
3003 | rm -f conftest.make | ||
3004 | fi | ||
3005 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | ||
3006 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
3007 | $as_echo "yes" >&6; } | ||
3008 | SET_MAKE= | ||
3009 | else | ||
3010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3011 | $as_echo "no" >&6; } | ||
3012 | SET_MAKE="MAKE=${MAKE-make}" | ||
3013 | fi | ||
3014 | |||
3015 | rm -rf .tst 2>/dev/null | ||
3016 | mkdir .tst 2>/dev/null | ||
3017 | if test -d .tst; then | ||
3018 | am__leading_dot=. | ||
3019 | else | ||
3020 | am__leading_dot=_ | ||
3021 | fi | ||
3022 | rmdir .tst 2>/dev/null | ||
3023 | |||
3024 | if test "`cd $srcdir && pwd`" != "`pwd`"; then | ||
3025 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | ||
3026 | # is not polluted with repeated "-I." | ||
3027 | am__isrc=' -I$(srcdir)' | ||
3028 | # test to see if srcdir already configured | ||
3029 | if test -f $srcdir/config.status; then | ||
3030 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 | ||
3031 | fi | ||
3032 | fi | ||
3033 | |||
3034 | # test whether we have cygpath | ||
3035 | if test -z "$CYGPATH_W"; then | ||
3036 | if (cygpath --version) >/dev/null 2>/dev/null; then | ||
3037 | CYGPATH_W='cygpath -w' | ||
3038 | else | ||
3039 | CYGPATH_W=echo | ||
3040 | fi | ||
3041 | fi | ||
3042 | |||
3043 | |||
3044 | # Define the identity of the package. | ||
3045 | PACKAGE='edje' | ||
3046 | VERSION='1.1.0' | ||
3047 | |||
3048 | |||
3049 | cat >>confdefs.h <<_ACEOF | ||
3050 | #define PACKAGE "$PACKAGE" | ||
3051 | _ACEOF | ||
3052 | |||
3053 | |||
3054 | cat >>confdefs.h <<_ACEOF | ||
3055 | #define VERSION "$VERSION" | ||
3056 | _ACEOF | ||
3057 | |||
3058 | # Some tools Automake needs. | ||
3059 | |||
3060 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | ||
3061 | |||
3062 | |||
3063 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | ||
3064 | |||
3065 | |||
3066 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | ||
3067 | |||
3068 | |||
3069 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | ||
3070 | |||
3071 | |||
3072 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | ||
3073 | |||
3074 | # We need awk for the "check" target. The system "awk" is bad on | ||
3075 | # some platforms. | ||
3076 | # Always define AMTAR for backward compatibility. | ||
3077 | |||
3078 | AMTAR=${AMTAR-"${am_missing_run}tar"} | ||
3079 | |||
3080 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | ||
3081 | |||
3082 | |||
3083 | |||
3084 | |||
3085 | |||
3086 | # Check whether --enable-silent-rules was given. | ||
3087 | if test "${enable_silent_rules+set}" = set; then : | ||
3088 | enableval=$enable_silent_rules; | ||
3089 | fi | ||
3090 | |||
3091 | case $enable_silent_rules in | ||
3092 | yes) AM_DEFAULT_VERBOSITY=0;; | ||
3093 | no) AM_DEFAULT_VERBOSITY=1;; | ||
3094 | *) AM_DEFAULT_VERBOSITY=0;; | ||
3095 | esac | ||
3096 | AM_BACKSLASH='\' | ||
3097 | |||
3098 | |||
3099 | # Make sure we can run config.sub. | ||
3100 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | ||
3101 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | ||
3102 | |||
3103 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | ||
3104 | $as_echo_n "checking build system type... " >&6; } | ||
3105 | if test "${ac_cv_build+set}" = set; then : | ||
3106 | $as_echo_n "(cached) " >&6 | ||
3107 | else | ||
3108 | ac_build_alias=$build_alias | ||
3109 | test "x$ac_build_alias" = x && | ||
3110 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | ||
3111 | test "x$ac_build_alias" = x && | ||
3112 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | ||
3113 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | ||
3114 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | ||
3115 | |||
3116 | fi | ||
3117 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | ||
3118 | $as_echo "$ac_cv_build" >&6; } | ||
3119 | case $ac_cv_build in | ||
3120 | *-*-*) ;; | ||
3121 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;; | ||
3122 | esac | ||
3123 | build=$ac_cv_build | ||
3124 | ac_save_IFS=$IFS; IFS='-' | ||
3125 | set x $ac_cv_build | ||
3126 | shift | ||
3127 | build_cpu=$1 | ||
3128 | build_vendor=$2 | ||
3129 | shift; shift | ||
3130 | # Remember, the first character of IFS is used to create $*, | ||
3131 | # except with old shells: | ||
3132 | build_os=$* | ||
3133 | IFS=$ac_save_IFS | ||
3134 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | ||
3135 | |||
3136 | |||
3137 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | ||
3138 | $as_echo_n "checking host system type... " >&6; } | ||
3139 | if test "${ac_cv_host+set}" = set; then : | ||
3140 | $as_echo_n "(cached) " >&6 | ||
3141 | else | ||
3142 | if test "x$host_alias" = x; then | ||
3143 | ac_cv_host=$ac_cv_build | ||
3144 | else | ||
3145 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | ||
3146 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | ||
3147 | fi | ||
3148 | |||
3149 | fi | ||
3150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | ||
3151 | $as_echo "$ac_cv_host" >&6; } | ||
3152 | case $ac_cv_host in | ||
3153 | *-*-*) ;; | ||
3154 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;; | ||
3155 | esac | ||
3156 | host=$ac_cv_host | ||
3157 | ac_save_IFS=$IFS; IFS='-' | ||
3158 | set x $ac_cv_host | ||
3159 | shift | ||
3160 | host_cpu=$1 | ||
3161 | host_vendor=$2 | ||
3162 | shift; shift | ||
3163 | # Remember, the first character of IFS is used to create $*, | ||
3164 | # except with old shells: | ||
3165 | host_os=$* | ||
3166 | IFS=$ac_save_IFS | ||
3167 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | ||
3168 | |||
3169 | |||
3170 | enable_win32_dll=yes | ||
3171 | |||
3172 | case $host in | ||
3173 | *-*-cygwin* | *-*-mingw* | *-*-pw32*) | ||
3174 | if test -n "$ac_tool_prefix"; then | ||
3175 | # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. | ||
3176 | set dummy ${ac_tool_prefix}as; ac_word=$2 | ||
3177 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
3178 | $as_echo_n "checking for $ac_word... " >&6; } | ||
3179 | if test "${ac_cv_prog_AS+set}" = set; then : | ||
3180 | $as_echo_n "(cached) " >&6 | ||
3181 | else | ||
3182 | if test -n "$AS"; then | ||
3183 | ac_cv_prog_AS="$AS" # Let the user override the test. | ||
3184 | else | ||
3185 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3186 | for as_dir in $PATH | ||
3187 | do | ||
3188 | IFS=$as_save_IFS | ||
3189 | test -z "$as_dir" && as_dir=. | ||
3190 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3191 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
3192 | ac_cv_prog_AS="${ac_tool_prefix}as" | ||
3193 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3194 | break 2 | ||
3195 | fi | ||
3196 | done | ||
3197 | done | ||
3198 | IFS=$as_save_IFS | ||
3199 | |||
3200 | fi | ||
3201 | fi | ||
3202 | AS=$ac_cv_prog_AS | ||
3203 | if test -n "$AS"; then | ||
3204 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 | ||
3205 | $as_echo "$AS" >&6; } | ||
3206 | else | ||
3207 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3208 | $as_echo "no" >&6; } | ||
3209 | fi | ||
3210 | |||
3211 | |||
3212 | fi | ||
3213 | if test -z "$ac_cv_prog_AS"; then | ||
3214 | ac_ct_AS=$AS | ||
3215 | # Extract the first word of "as", so it can be a program name with args. | ||
3216 | set dummy as; ac_word=$2 | ||
3217 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
3218 | $as_echo_n "checking for $ac_word... " >&6; } | ||
3219 | if test "${ac_cv_prog_ac_ct_AS+set}" = set; then : | ||
3220 | $as_echo_n "(cached) " >&6 | ||
3221 | else | ||
3222 | if test -n "$ac_ct_AS"; then | ||
3223 | ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. | ||
3224 | else | ||
3225 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3226 | for as_dir in $PATH | ||
3227 | do | ||
3228 | IFS=$as_save_IFS | ||
3229 | test -z "$as_dir" && as_dir=. | ||
3230 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3231 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
3232 | ac_cv_prog_ac_ct_AS="as" | ||
3233 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3234 | break 2 | ||
3235 | fi | ||
3236 | done | ||
3237 | done | ||
3238 | IFS=$as_save_IFS | ||
3239 | |||
3240 | fi | ||
3241 | fi | ||
3242 | ac_ct_AS=$ac_cv_prog_ac_ct_AS | ||
3243 | if test -n "$ac_ct_AS"; then | ||
3244 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 | ||
3245 | $as_echo "$ac_ct_AS" >&6; } | ||
3246 | else | ||
3247 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3248 | $as_echo "no" >&6; } | ||
3249 | fi | ||
3250 | |||
3251 | if test "x$ac_ct_AS" = x; then | ||
3252 | AS="false" | ||
3253 | else | ||
3254 | case $cross_compiling:$ac_tool_warned in | ||
3255 | yes:) | ||
3256 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
3257 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
3258 | ac_tool_warned=yes ;; | ||
3259 | esac | ||
3260 | AS=$ac_ct_AS | ||
3261 | fi | ||
3262 | else | ||
3263 | AS="$ac_cv_prog_AS" | ||
3264 | fi | ||
3265 | |||
3266 | if test -n "$ac_tool_prefix"; then | ||
3267 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. | ||
3268 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | ||
3269 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
3270 | $as_echo_n "checking for $ac_word... " >&6; } | ||
3271 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then : | ||
3272 | $as_echo_n "(cached) " >&6 | ||
3273 | else | ||
3274 | if test -n "$DLLTOOL"; then | ||
3275 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | ||
3276 | else | ||
3277 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3278 | for as_dir in $PATH | ||
3279 | do | ||
3280 | IFS=$as_save_IFS | ||
3281 | test -z "$as_dir" && as_dir=. | ||
3282 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3283 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
3284 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" | ||
3285 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3286 | break 2 | ||
3287 | fi | ||
3288 | done | ||
3289 | done | ||
3290 | IFS=$as_save_IFS | ||
3291 | |||
3292 | fi | ||
3293 | fi | ||
3294 | DLLTOOL=$ac_cv_prog_DLLTOOL | ||
3295 | if test -n "$DLLTOOL"; then | ||
3296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 | ||
3297 | $as_echo "$DLLTOOL" >&6; } | ||
3298 | else | ||
3299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3300 | $as_echo "no" >&6; } | ||
3301 | fi | ||
3302 | |||
3303 | |||
3304 | fi | ||
3305 | if test -z "$ac_cv_prog_DLLTOOL"; then | ||
3306 | ac_ct_DLLTOOL=$DLLTOOL | ||
3307 | # Extract the first word of "dlltool", so it can be a program name with args. | ||
3308 | set dummy dlltool; ac_word=$2 | ||
3309 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
3310 | $as_echo_n "checking for $ac_word... " >&6; } | ||
3311 | if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then : | ||
3312 | $as_echo_n "(cached) " >&6 | ||
3313 | else | ||
3314 | if test -n "$ac_ct_DLLTOOL"; then | ||
3315 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | ||
3316 | else | ||
3317 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3318 | for as_dir in $PATH | ||
3319 | do | ||
3320 | IFS=$as_save_IFS | ||
3321 | test -z "$as_dir" && as_dir=. | ||
3322 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3323 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
3324 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" | ||
3325 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3326 | break 2 | ||
3327 | fi | ||
3328 | done | ||
3329 | done | ||
3330 | IFS=$as_save_IFS | ||
3331 | |||
3332 | fi | ||
3333 | fi | ||
3334 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL | ||
3335 | if test -n "$ac_ct_DLLTOOL"; then | ||
3336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 | ||
3337 | $as_echo "$ac_ct_DLLTOOL" >&6; } | ||
3338 | else | ||
3339 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3340 | $as_echo "no" >&6; } | ||
3341 | fi | ||
3342 | |||
3343 | if test "x$ac_ct_DLLTOOL" = x; then | ||
3344 | DLLTOOL="false" | ||
3345 | else | ||
3346 | case $cross_compiling:$ac_tool_warned in | ||
3347 | yes:) | ||
3348 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
3349 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
3350 | ac_tool_warned=yes ;; | ||
3351 | esac | ||
3352 | DLLTOOL=$ac_ct_DLLTOOL | ||
3353 | fi | ||
3354 | else | ||
3355 | DLLTOOL="$ac_cv_prog_DLLTOOL" | ||
3356 | fi | ||
3357 | |||
3358 | if test -n "$ac_tool_prefix"; then | ||
3359 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | ||
3360 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | ||
3361 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
3362 | $as_echo_n "checking for $ac_word... " >&6; } | ||
3363 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | ||
3364 | $as_echo_n "(cached) " >&6 | ||
3365 | else | ||
3366 | if test -n "$OBJDUMP"; then | ||
3367 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | ||
3368 | else | ||
3369 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3370 | for as_dir in $PATH | ||
3371 | do | ||
3372 | IFS=$as_save_IFS | ||
3373 | test -z "$as_dir" && as_dir=. | ||
3374 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3375 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
3376 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" | ||
3377 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3378 | break 2 | ||
3379 | fi | ||
3380 | done | ||
3381 | done | ||
3382 | IFS=$as_save_IFS | ||
3383 | |||
3384 | fi | ||
3385 | fi | ||
3386 | OBJDUMP=$ac_cv_prog_OBJDUMP | ||
3387 | if test -n "$OBJDUMP"; then | ||
3388 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 | ||
3389 | $as_echo "$OBJDUMP" >&6; } | ||
3390 | else | ||
3391 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3392 | $as_echo "no" >&6; } | ||
3393 | fi | ||
3394 | |||
3395 | |||
3396 | fi | ||
3397 | if test -z "$ac_cv_prog_OBJDUMP"; then | ||
3398 | ac_ct_OBJDUMP=$OBJDUMP | ||
3399 | # Extract the first word of "objdump", so it can be a program name with args. | ||
3400 | set dummy objdump; ac_word=$2 | ||
3401 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
3402 | $as_echo_n "checking for $ac_word... " >&6; } | ||
3403 | if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : | ||
3404 | $as_echo_n "(cached) " >&6 | ||
3405 | else | ||
3406 | if test -n "$ac_ct_OBJDUMP"; then | ||
3407 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | ||
3408 | else | ||
3409 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3410 | for as_dir in $PATH | ||
3411 | do | ||
3412 | IFS=$as_save_IFS | ||
3413 | test -z "$as_dir" && as_dir=. | ||
3414 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3415 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
3416 | ac_cv_prog_ac_ct_OBJDUMP="objdump" | ||
3417 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3418 | break 2 | ||
3419 | fi | ||
3420 | done | ||
3421 | done | ||
3422 | IFS=$as_save_IFS | ||
3423 | |||
3424 | fi | ||
3425 | fi | ||
3426 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | ||
3427 | if test -n "$ac_ct_OBJDUMP"; then | ||
3428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 | ||
3429 | $as_echo "$ac_ct_OBJDUMP" >&6; } | ||
3430 | else | ||
3431 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3432 | $as_echo "no" >&6; } | ||
3433 | fi | ||
3434 | |||
3435 | if test "x$ac_ct_OBJDUMP" = x; then | ||
3436 | OBJDUMP="false" | ||
3437 | else | ||
3438 | case $cross_compiling:$ac_tool_warned in | ||
3439 | yes:) | ||
3440 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
3441 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
3442 | ac_tool_warned=yes ;; | ||
3443 | esac | ||
3444 | OBJDUMP=$ac_ct_OBJDUMP | ||
3445 | fi | ||
3446 | else | ||
3447 | OBJDUMP="$ac_cv_prog_OBJDUMP" | ||
3448 | fi | ||
3449 | |||
3450 | ;; | ||
3451 | esac | ||
3452 | |||
3453 | test -z "$AS" && AS=as | ||
3454 | |||
3455 | |||
3456 | |||
3457 | |||
3458 | |||
3459 | test -z "$DLLTOOL" && DLLTOOL=dlltool | ||
3460 | |||
3461 | |||
3462 | |||
3463 | |||
3464 | |||
3465 | test -z "$OBJDUMP" && OBJDUMP=objdump | ||
3466 | |||
3467 | |||
3468 | |||
3469 | |||
3470 | |||
3471 | |||
3472 | |||
3473 | case `pwd` in | ||
3474 | *\ * | *\ *) | ||
3475 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 | ||
3476 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | ||
3477 | esac | ||
3478 | |||
3479 | |||
3480 | |||
3481 | macro_version='2.2.6b' | ||
3482 | macro_revision='1.3017' | ||
3483 | |||
3484 | |||
3485 | |||
3486 | |||
3487 | |||
3488 | |||
3489 | |||
3490 | |||
3491 | |||
3492 | |||
3493 | |||
3494 | |||
3495 | |||
3496 | ltmain="$ac_aux_dir/ltmain.sh" | ||
3497 | |||
3498 | DEPDIR="${am__leading_dot}deps" | ||
3499 | |||
3500 | ac_config_commands="$ac_config_commands depfiles" | ||
3501 | |||
3502 | |||
3503 | am_make=${MAKE-make} | ||
3504 | cat > confinc << 'END' | ||
3505 | am__doit: | ||
3506 | @echo this is the am__doit target | ||
3507 | .PHONY: am__doit | ||
3508 | END | ||
3509 | # If we don't find an include directive, just comment out the code. | ||
3510 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 | ||
3511 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | ||
3512 | am__include="#" | ||
3513 | am__quote= | ||
3514 | _am_result=none | ||
3515 | # First try GNU make style include. | ||
3516 | echo "include confinc" > confmf | ||
3517 | # Ignore all kinds of additional output from `make'. | ||
3518 | case `$am_make -s -f confmf 2> /dev/null` in #( | ||
3519 | *the\ am__doit\ target*) | ||
3520 | am__include=include | ||
3521 | am__quote= | ||
3522 | _am_result=GNU | ||
3523 | ;; | ||
3524 | esac | ||
3525 | # Now try BSD make style include. | ||
3526 | if test "$am__include" = "#"; then | ||
3527 | echo '.include "confinc"' > confmf | ||
3528 | case `$am_make -s -f confmf 2> /dev/null` in #( | ||
3529 | *the\ am__doit\ target*) | ||
3530 | am__include=.include | ||
3531 | am__quote="\"" | ||
3532 | _am_result=BSD | ||
3533 | ;; | ||
3534 | esac | ||
3535 | fi | ||
3536 | |||
3537 | |||
3538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 | ||
3539 | $as_echo "$_am_result" >&6; } | ||
3540 | rm -f confinc confmf | ||
3541 | |||
3542 | # Check whether --enable-dependency-tracking was given. | ||
3543 | if test "${enable_dependency_tracking+set}" = set; then : | ||
3544 | enableval=$enable_dependency_tracking; | ||
3545 | fi | ||
3546 | |||
3547 | if test "x$enable_dependency_tracking" != xno; then | ||
3548 | am_depcomp="$ac_aux_dir/depcomp" | ||
3549 | AMDEPBACKSLASH='\' | ||
3550 | fi | ||
3551 | if test "x$enable_dependency_tracking" != xno; then | ||
3552 | AMDEP_TRUE= | ||
3553 | AMDEP_FALSE='#' | ||
3554 | else | ||
3555 | AMDEP_TRUE='#' | ||
3556 | AMDEP_FALSE= | ||
3557 | fi | ||
3558 | |||
3559 | |||
3560 | ac_ext=c | ||
3561 | ac_cpp='$CPP $CPPFLAGS' | ||
3562 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
3563 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
3564 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
3565 | if test -n "$ac_tool_prefix"; then | ||
3566 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | ||
3567 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | ||
3568 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
3569 | $as_echo_n "checking for $ac_word... " >&6; } | ||
3570 | if test "${ac_cv_prog_CC+set}" = set; then : | ||
3571 | $as_echo_n "(cached) " >&6 | ||
3572 | else | ||
3573 | if test -n "$CC"; then | ||
3574 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
3575 | else | ||
3576 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3577 | for as_dir in $PATH | ||
3578 | do | ||
3579 | IFS=$as_save_IFS | ||
3580 | test -z "$as_dir" && as_dir=. | ||
3581 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3582 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
3583 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | ||
3584 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3585 | break 2 | ||
3586 | fi | ||
3587 | done | ||
3588 | done | ||
3589 | IFS=$as_save_IFS | ||
3590 | |||
3591 | fi | ||
3592 | fi | ||
3593 | CC=$ac_cv_prog_CC | ||
3594 | if test -n "$CC"; then | ||
3595 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
3596 | $as_echo "$CC" >&6; } | ||
3597 | else | ||
3598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3599 | $as_echo "no" >&6; } | ||
3600 | fi | ||
3601 | |||
3602 | |||
3603 | fi | ||
3604 | if test -z "$ac_cv_prog_CC"; then | ||
3605 | ac_ct_CC=$CC | ||
3606 | # Extract the first word of "gcc", so it can be a program name with args. | ||
3607 | set dummy gcc; ac_word=$2 | ||
3608 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
3609 | $as_echo_n "checking for $ac_word... " >&6; } | ||
3610 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | ||
3611 | $as_echo_n "(cached) " >&6 | ||
3612 | else | ||
3613 | if test -n "$ac_ct_CC"; then | ||
3614 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
3615 | else | ||
3616 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3617 | for as_dir in $PATH | ||
3618 | do | ||
3619 | IFS=$as_save_IFS | ||
3620 | test -z "$as_dir" && as_dir=. | ||
3621 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3622 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
3623 | ac_cv_prog_ac_ct_CC="gcc" | ||
3624 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3625 | break 2 | ||
3626 | fi | ||
3627 | done | ||
3628 | done | ||
3629 | IFS=$as_save_IFS | ||
3630 | |||
3631 | fi | ||
3632 | fi | ||
3633 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
3634 | if test -n "$ac_ct_CC"; then | ||
3635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | ||
3636 | $as_echo "$ac_ct_CC" >&6; } | ||
3637 | else | ||
3638 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3639 | $as_echo "no" >&6; } | ||
3640 | fi | ||
3641 | |||
3642 | if test "x$ac_ct_CC" = x; then | ||
3643 | CC="" | ||
3644 | else | ||
3645 | case $cross_compiling:$ac_tool_warned in | ||
3646 | yes:) | ||
3647 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
3648 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
3649 | ac_tool_warned=yes ;; | ||
3650 | esac | ||
3651 | CC=$ac_ct_CC | ||
3652 | fi | ||
3653 | else | ||
3654 | CC="$ac_cv_prog_CC" | ||
3655 | fi | ||
3656 | |||
3657 | if test -z "$CC"; then | ||
3658 | if test -n "$ac_tool_prefix"; then | ||
3659 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | ||
3660 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | ||
3661 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
3662 | $as_echo_n "checking for $ac_word... " >&6; } | ||
3663 | if test "${ac_cv_prog_CC+set}" = set; then : | ||
3664 | $as_echo_n "(cached) " >&6 | ||
3665 | else | ||
3666 | if test -n "$CC"; then | ||
3667 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
3668 | else | ||
3669 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3670 | for as_dir in $PATH | ||
3671 | do | ||
3672 | IFS=$as_save_IFS | ||
3673 | test -z "$as_dir" && as_dir=. | ||
3674 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3675 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
3676 | ac_cv_prog_CC="${ac_tool_prefix}cc" | ||
3677 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3678 | break 2 | ||
3679 | fi | ||
3680 | done | ||
3681 | done | ||
3682 | IFS=$as_save_IFS | ||
3683 | |||
3684 | fi | ||
3685 | fi | ||
3686 | CC=$ac_cv_prog_CC | ||
3687 | if test -n "$CC"; then | ||
3688 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
3689 | $as_echo "$CC" >&6; } | ||
3690 | else | ||
3691 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3692 | $as_echo "no" >&6; } | ||
3693 | fi | ||
3694 | |||
3695 | |||
3696 | fi | ||
3697 | fi | ||
3698 | if test -z "$CC"; then | ||
3699 | # Extract the first word of "cc", so it can be a program name with args. | ||
3700 | set dummy cc; ac_word=$2 | ||
3701 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
3702 | $as_echo_n "checking for $ac_word... " >&6; } | ||
3703 | if test "${ac_cv_prog_CC+set}" = set; then : | ||
3704 | $as_echo_n "(cached) " >&6 | ||
3705 | else | ||
3706 | if test -n "$CC"; then | ||
3707 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
3708 | else | ||
3709 | ac_prog_rejected=no | ||
3710 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3711 | for as_dir in $PATH | ||
3712 | do | ||
3713 | IFS=$as_save_IFS | ||
3714 | test -z "$as_dir" && as_dir=. | ||
3715 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3716 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
3717 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | ||
3718 | ac_prog_rejected=yes | ||
3719 | continue | ||
3720 | fi | ||
3721 | ac_cv_prog_CC="cc" | ||
3722 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3723 | break 2 | ||
3724 | fi | ||
3725 | done | ||
3726 | done | ||
3727 | IFS=$as_save_IFS | ||
3728 | |||
3729 | if test $ac_prog_rejected = yes; then | ||
3730 | # We found a bogon in the path, so make sure we never use it. | ||
3731 | set dummy $ac_cv_prog_CC | ||
3732 | shift | ||
3733 | if test $# != 0; then | ||
3734 | # We chose a different compiler from the bogus one. | ||
3735 | # However, it has the same basename, so the bogon will be chosen | ||
3736 | # first if we set CC to just the basename; use the full file name. | ||
3737 | shift | ||
3738 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | ||
3739 | fi | ||
3740 | fi | ||
3741 | fi | ||
3742 | fi | ||
3743 | CC=$ac_cv_prog_CC | ||
3744 | if test -n "$CC"; then | ||
3745 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
3746 | $as_echo "$CC" >&6; } | ||
3747 | else | ||
3748 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3749 | $as_echo "no" >&6; } | ||
3750 | fi | ||
3751 | |||
3752 | |||
3753 | fi | ||
3754 | if test -z "$CC"; then | ||
3755 | if test -n "$ac_tool_prefix"; then | ||
3756 | for ac_prog in cl.exe | ||
3757 | do | ||
3758 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
3759 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
3760 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
3761 | $as_echo_n "checking for $ac_word... " >&6; } | ||
3762 | if test "${ac_cv_prog_CC+set}" = set; then : | ||
3763 | $as_echo_n "(cached) " >&6 | ||
3764 | else | ||
3765 | if test -n "$CC"; then | ||
3766 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
3767 | else | ||
3768 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3769 | for as_dir in $PATH | ||
3770 | do | ||
3771 | IFS=$as_save_IFS | ||
3772 | test -z "$as_dir" && as_dir=. | ||
3773 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3774 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
3775 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | ||
3776 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3777 | break 2 | ||
3778 | fi | ||
3779 | done | ||
3780 | done | ||
3781 | IFS=$as_save_IFS | ||
3782 | |||
3783 | fi | ||
3784 | fi | ||
3785 | CC=$ac_cv_prog_CC | ||
3786 | if test -n "$CC"; then | ||
3787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
3788 | $as_echo "$CC" >&6; } | ||
3789 | else | ||
3790 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3791 | $as_echo "no" >&6; } | ||
3792 | fi | ||
3793 | |||
3794 | |||
3795 | test -n "$CC" && break | ||
3796 | done | ||
3797 | fi | ||
3798 | if test -z "$CC"; then | ||
3799 | ac_ct_CC=$CC | ||
3800 | for ac_prog in cl.exe | ||
3801 | do | ||
3802 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
3803 | set dummy $ac_prog; ac_word=$2 | ||
3804 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
3805 | $as_echo_n "checking for $ac_word... " >&6; } | ||
3806 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | ||
3807 | $as_echo_n "(cached) " >&6 | ||
3808 | else | ||
3809 | if test -n "$ac_ct_CC"; then | ||
3810 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
3811 | else | ||
3812 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3813 | for as_dir in $PATH | ||
3814 | do | ||
3815 | IFS=$as_save_IFS | ||
3816 | test -z "$as_dir" && as_dir=. | ||
3817 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3818 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
3819 | ac_cv_prog_ac_ct_CC="$ac_prog" | ||
3820 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3821 | break 2 | ||
3822 | fi | ||
3823 | done | ||
3824 | done | ||
3825 | IFS=$as_save_IFS | ||
3826 | |||
3827 | fi | ||
3828 | fi | ||
3829 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
3830 | if test -n "$ac_ct_CC"; then | ||
3831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | ||
3832 | $as_echo "$ac_ct_CC" >&6; } | ||
3833 | else | ||
3834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3835 | $as_echo "no" >&6; } | ||
3836 | fi | ||
3837 | |||
3838 | |||
3839 | test -n "$ac_ct_CC" && break | ||
3840 | done | ||
3841 | |||
3842 | if test "x$ac_ct_CC" = x; then | ||
3843 | CC="" | ||
3844 | else | ||
3845 | case $cross_compiling:$ac_tool_warned in | ||
3846 | yes:) | ||
3847 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
3848 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
3849 | ac_tool_warned=yes ;; | ||
3850 | esac | ||
3851 | CC=$ac_ct_CC | ||
3852 | fi | ||
3853 | fi | ||
3854 | |||
3855 | fi | ||
3856 | |||
3857 | |||
3858 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
3859 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
3860 | as_fn_error $? "no acceptable C compiler found in \$PATH | ||
3861 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
3862 | |||
3863 | # Provide some information about the compiler. | ||
3864 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | ||
3865 | set X $ac_compile | ||
3866 | ac_compiler=$2 | ||
3867 | for ac_option in --version -v -V -qversion; do | ||
3868 | { { ac_try="$ac_compiler $ac_option >&5" | ||
3869 | case "(($ac_try" in | ||
3870 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3871 | *) ac_try_echo=$ac_try;; | ||
3872 | esac | ||
3873 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
3874 | $as_echo "$ac_try_echo"; } >&5 | ||
3875 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | ||
3876 | ac_status=$? | ||
3877 | if test -s conftest.err; then | ||
3878 | sed '10a\ | ||
3879 | ... rest of stderr output deleted ... | ||
3880 | 10q' conftest.err >conftest.er1 | ||
3881 | cat conftest.er1 >&5 | ||
3882 | fi | ||
3883 | rm -f conftest.er1 conftest.err | ||
3884 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
3885 | test $ac_status = 0; } | ||
3886 | done | ||
3887 | |||
3888 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3889 | /* end confdefs.h. */ | ||
3890 | |||
3891 | int | ||
3892 | main () | ||
3893 | { | ||
3894 | |||
3895 | ; | ||
3896 | return 0; | ||
3897 | } | ||
3898 | _ACEOF | ||
3899 | ac_clean_files_save=$ac_clean_files | ||
3900 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | ||
3901 | # Try to create an executable without -o first, disregard a.out. | ||
3902 | # It will help us diagnose broken compilers, and finding out an intuition | ||
3903 | # of exeext. | ||
3904 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | ||
3905 | $as_echo_n "checking whether the C compiler works... " >&6; } | ||
3906 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | ||
3907 | |||
3908 | # The possible output files: | ||
3909 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | ||
3910 | |||
3911 | ac_rmfiles= | ||
3912 | for ac_file in $ac_files | ||
3913 | do | ||
3914 | case $ac_file in | ||
3915 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | ||
3916 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | ||
3917 | esac | ||
3918 | done | ||
3919 | rm -f $ac_rmfiles | ||
3920 | |||
3921 | if { { ac_try="$ac_link_default" | ||
3922 | case "(($ac_try" in | ||
3923 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3924 | *) ac_try_echo=$ac_try;; | ||
3925 | esac | ||
3926 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
3927 | $as_echo "$ac_try_echo"; } >&5 | ||
3928 | (eval "$ac_link_default") 2>&5 | ||
3929 | ac_status=$? | ||
3930 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
3931 | test $ac_status = 0; }; then : | ||
3932 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | ||
3933 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | ||
3934 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | ||
3935 | # so that the user can short-circuit this test for compilers unknown to | ||
3936 | # Autoconf. | ||
3937 | for ac_file in $ac_files '' | ||
3938 | do | ||
3939 | test -f "$ac_file" || continue | ||
3940 | case $ac_file in | ||
3941 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | ||
3942 | ;; | ||
3943 | [ab].out ) | ||
3944 | # We found the default executable, but exeext='' is most | ||
3945 | # certainly right. | ||
3946 | break;; | ||
3947 | *.* ) | ||
3948 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | ||
3949 | then :; else | ||
3950 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | ||
3951 | fi | ||
3952 | # We set ac_cv_exeext here because the later test for it is not | ||
3953 | # safe: cross compilers may not add the suffix if given an `-o' | ||
3954 | # argument, so we may need to know it at that point already. | ||
3955 | # Even if this section looks crufty: it has the advantage of | ||
3956 | # actually working. | ||
3957 | break;; | ||
3958 | * ) | ||
3959 | break;; | ||
3960 | esac | ||
3961 | done | ||
3962 | test "$ac_cv_exeext" = no && ac_cv_exeext= | ||
3963 | |||
3964 | else | ||
3965 | ac_file='' | ||
3966 | fi | ||
3967 | if test -z "$ac_file"; then : | ||
3968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3969 | $as_echo "no" >&6; } | ||
3970 | $as_echo "$as_me: failed program was:" >&5 | ||
3971 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3972 | |||
3973 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
3974 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
3975 | as_fn_error 77 "C compiler cannot create executables | ||
3976 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
3977 | else | ||
3978 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
3979 | $as_echo "yes" >&6; } | ||
3980 | fi | ||
3981 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | ||
3982 | $as_echo_n "checking for C compiler default output file name... " >&6; } | ||
3983 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | ||
3984 | $as_echo "$ac_file" >&6; } | ||
3985 | ac_exeext=$ac_cv_exeext | ||
3986 | |||
3987 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out | ||
3988 | ac_clean_files=$ac_clean_files_save | ||
3989 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | ||
3990 | $as_echo_n "checking for suffix of executables... " >&6; } | ||
3991 | if { { ac_try="$ac_link" | ||
3992 | case "(($ac_try" in | ||
3993 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3994 | *) ac_try_echo=$ac_try;; | ||
3995 | esac | ||
3996 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
3997 | $as_echo "$ac_try_echo"; } >&5 | ||
3998 | (eval "$ac_link") 2>&5 | ||
3999 | ac_status=$? | ||
4000 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
4001 | test $ac_status = 0; }; then : | ||
4002 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | ||
4003 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | ||
4004 | # work properly (i.e., refer to `conftest.exe'), while it won't with | ||
4005 | # `rm'. | ||
4006 | for ac_file in conftest.exe conftest conftest.*; do | ||
4007 | test -f "$ac_file" || continue | ||
4008 | case $ac_file in | ||
4009 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | ||
4010 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | ||
4011 | break;; | ||
4012 | * ) break;; | ||
4013 | esac | ||
4014 | done | ||
4015 | else | ||
4016 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
4017 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
4018 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link | ||
4019 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
4020 | fi | ||
4021 | rm -f conftest conftest$ac_cv_exeext | ||
4022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | ||
4023 | $as_echo "$ac_cv_exeext" >&6; } | ||
4024 | |||
4025 | rm -f conftest.$ac_ext | ||
4026 | EXEEXT=$ac_cv_exeext | ||
4027 | ac_exeext=$EXEEXT | ||
4028 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4029 | /* end confdefs.h. */ | ||
4030 | #include <stdio.h> | ||
4031 | int | ||
4032 | main () | ||
4033 | { | ||
4034 | FILE *f = fopen ("conftest.out", "w"); | ||
4035 | return ferror (f) || fclose (f) != 0; | ||
4036 | |||
4037 | ; | ||
4038 | return 0; | ||
4039 | } | ||
4040 | _ACEOF | ||
4041 | ac_clean_files="$ac_clean_files conftest.out" | ||
4042 | # Check that the compiler produces executables we can run. If not, either | ||
4043 | # the compiler is broken, or we cross compile. | ||
4044 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | ||
4045 | $as_echo_n "checking whether we are cross compiling... " >&6; } | ||
4046 | if test "$cross_compiling" != yes; then | ||
4047 | { { ac_try="$ac_link" | ||
4048 | case "(($ac_try" in | ||
4049 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4050 | *) ac_try_echo=$ac_try;; | ||
4051 | esac | ||
4052 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
4053 | $as_echo "$ac_try_echo"; } >&5 | ||
4054 | (eval "$ac_link") 2>&5 | ||
4055 | ac_status=$? | ||
4056 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
4057 | test $ac_status = 0; } | ||
4058 | if { ac_try='./conftest$ac_cv_exeext' | ||
4059 | { { case "(($ac_try" in | ||
4060 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4061 | *) ac_try_echo=$ac_try;; | ||
4062 | esac | ||
4063 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
4064 | $as_echo "$ac_try_echo"; } >&5 | ||
4065 | (eval "$ac_try") 2>&5 | ||
4066 | ac_status=$? | ||
4067 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
4068 | test $ac_status = 0; }; }; then | ||
4069 | cross_compiling=no | ||
4070 | else | ||
4071 | if test "$cross_compiling" = maybe; then | ||
4072 | cross_compiling=yes | ||
4073 | else | ||
4074 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
4075 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
4076 | as_fn_error $? "cannot run C compiled programs. | ||
4077 | If you meant to cross compile, use \`--host'. | ||
4078 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
4079 | fi | ||
4080 | fi | ||
4081 | fi | ||
4082 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | ||
4083 | $as_echo "$cross_compiling" >&6; } | ||
4084 | |||
4085 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | ||
4086 | ac_clean_files=$ac_clean_files_save | ||
4087 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | ||
4088 | $as_echo_n "checking for suffix of object files... " >&6; } | ||
4089 | if test "${ac_cv_objext+set}" = set; then : | ||
4090 | $as_echo_n "(cached) " >&6 | ||
4091 | else | ||
4092 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4093 | /* end confdefs.h. */ | ||
4094 | |||
4095 | int | ||
4096 | main () | ||
4097 | { | ||
4098 | |||
4099 | ; | ||
4100 | return 0; | ||
4101 | } | ||
4102 | _ACEOF | ||
4103 | rm -f conftest.o conftest.obj | ||
4104 | if { { ac_try="$ac_compile" | ||
4105 | case "(($ac_try" in | ||
4106 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4107 | *) ac_try_echo=$ac_try;; | ||
4108 | esac | ||
4109 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
4110 | $as_echo "$ac_try_echo"; } >&5 | ||
4111 | (eval "$ac_compile") 2>&5 | ||
4112 | ac_status=$? | ||
4113 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
4114 | test $ac_status = 0; }; then : | ||
4115 | for ac_file in conftest.o conftest.obj conftest.*; do | ||
4116 | test -f "$ac_file" || continue; | ||
4117 | case $ac_file in | ||
4118 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | ||
4119 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | ||
4120 | break;; | ||
4121 | esac | ||
4122 | done | ||
4123 | else | ||
4124 | $as_echo "$as_me: failed program was:" >&5 | ||
4125 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4126 | |||
4127 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
4128 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
4129 | as_fn_error $? "cannot compute suffix of object files: cannot compile | ||
4130 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
4131 | fi | ||
4132 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | ||
4133 | fi | ||
4134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | ||
4135 | $as_echo "$ac_cv_objext" >&6; } | ||
4136 | OBJEXT=$ac_cv_objext | ||
4137 | ac_objext=$OBJEXT | ||
4138 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | ||
4139 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | ||
4140 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | ||
4141 | $as_echo_n "(cached) " >&6 | ||
4142 | else | ||
4143 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4144 | /* end confdefs.h. */ | ||
4145 | |||
4146 | int | ||
4147 | main () | ||
4148 | { | ||
4149 | #ifndef __GNUC__ | ||
4150 | choke me | ||
4151 | #endif | ||
4152 | |||
4153 | ; | ||
4154 | return 0; | ||
4155 | } | ||
4156 | _ACEOF | ||
4157 | if ac_fn_c_try_compile "$LINENO"; then : | ||
4158 | ac_compiler_gnu=yes | ||
4159 | else | ||
4160 | ac_compiler_gnu=no | ||
4161 | fi | ||
4162 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4163 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | ||
4164 | |||
4165 | fi | ||
4166 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | ||
4167 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | ||
4168 | if test $ac_compiler_gnu = yes; then | ||
4169 | GCC=yes | ||
4170 | else | ||
4171 | GCC= | ||
4172 | fi | ||
4173 | ac_test_CFLAGS=${CFLAGS+set} | ||
4174 | ac_save_CFLAGS=$CFLAGS | ||
4175 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | ||
4176 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | ||
4177 | if test "${ac_cv_prog_cc_g+set}" = set; then : | ||
4178 | $as_echo_n "(cached) " >&6 | ||
4179 | else | ||
4180 | ac_save_c_werror_flag=$ac_c_werror_flag | ||
4181 | ac_c_werror_flag=yes | ||
4182 | ac_cv_prog_cc_g=no | ||
4183 | CFLAGS="-g" | ||
4184 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4185 | /* end confdefs.h. */ | ||
4186 | |||
4187 | int | ||
4188 | main () | ||
4189 | { | ||
4190 | |||
4191 | ; | ||
4192 | return 0; | ||
4193 | } | ||
4194 | _ACEOF | ||
4195 | if ac_fn_c_try_compile "$LINENO"; then : | ||
4196 | ac_cv_prog_cc_g=yes | ||
4197 | else | ||
4198 | CFLAGS="" | ||
4199 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4200 | /* end confdefs.h. */ | ||
4201 | |||
4202 | int | ||
4203 | main () | ||
4204 | { | ||
4205 | |||
4206 | ; | ||
4207 | return 0; | ||
4208 | } | ||
4209 | _ACEOF | ||
4210 | if ac_fn_c_try_compile "$LINENO"; then : | ||
4211 | |||
4212 | else | ||
4213 | ac_c_werror_flag=$ac_save_c_werror_flag | ||
4214 | CFLAGS="-g" | ||
4215 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4216 | /* end confdefs.h. */ | ||
4217 | |||
4218 | int | ||
4219 | main () | ||
4220 | { | ||
4221 | |||
4222 | ; | ||
4223 | return 0; | ||
4224 | } | ||
4225 | _ACEOF | ||
4226 | if ac_fn_c_try_compile "$LINENO"; then : | ||
4227 | ac_cv_prog_cc_g=yes | ||
4228 | fi | ||
4229 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4230 | fi | ||
4231 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4232 | fi | ||
4233 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4234 | ac_c_werror_flag=$ac_save_c_werror_flag | ||
4235 | fi | ||
4236 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | ||
4237 | $as_echo "$ac_cv_prog_cc_g" >&6; } | ||
4238 | if test "$ac_test_CFLAGS" = set; then | ||
4239 | CFLAGS=$ac_save_CFLAGS | ||
4240 | elif test $ac_cv_prog_cc_g = yes; then | ||
4241 | if test "$GCC" = yes; then | ||
4242 | CFLAGS="-g -O2" | ||
4243 | else | ||
4244 | CFLAGS="-g" | ||
4245 | fi | ||
4246 | else | ||
4247 | if test "$GCC" = yes; then | ||
4248 | CFLAGS="-O2" | ||
4249 | else | ||
4250 | CFLAGS= | ||
4251 | fi | ||
4252 | fi | ||
4253 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | ||
4254 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | ||
4255 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | ||
4256 | $as_echo_n "(cached) " >&6 | ||
4257 | else | ||
4258 | ac_cv_prog_cc_c89=no | ||
4259 | ac_save_CC=$CC | ||
4260 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4261 | /* end confdefs.h. */ | ||
4262 | #include <stdarg.h> | ||
4263 | #include <stdio.h> | ||
4264 | #include <sys/types.h> | ||
4265 | #include <sys/stat.h> | ||
4266 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | ||
4267 | struct buf { int x; }; | ||
4268 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | ||
4269 | static char *e (p, i) | ||
4270 | char **p; | ||
4271 | int i; | ||
4272 | { | ||
4273 | return p[i]; | ||
4274 | } | ||
4275 | static char *f (char * (*g) (char **, int), char **p, ...) | ||
4276 | { | ||
4277 | char *s; | ||
4278 | va_list v; | ||
4279 | va_start (v,p); | ||
4280 | s = g (p, va_arg (v,int)); | ||
4281 | va_end (v); | ||
4282 | return s; | ||
4283 | } | ||
4284 | |||
4285 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | ||
4286 | function prototypes and stuff, but not '\xHH' hex character constants. | ||
4287 | These don't provoke an error unfortunately, instead are silently treated | ||
4288 | as 'x'. The following induces an error, until -std is added to get | ||
4289 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | ||
4290 | array size at least. It's necessary to write '\x00'==0 to get something | ||
4291 | that's true only with -std. */ | ||
4292 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | ||
4293 | |||
4294 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | ||
4295 | inside strings and character constants. */ | ||
4296 | #define FOO(x) 'x' | ||
4297 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | ||
4298 | |||
4299 | int test (int i, double x); | ||
4300 | struct s1 {int (*f) (int a);}; | ||
4301 | struct s2 {int (*f) (double a);}; | ||
4302 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | ||
4303 | int argc; | ||
4304 | char **argv; | ||
4305 | int | ||
4306 | main () | ||
4307 | { | ||
4308 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | ||
4309 | ; | ||
4310 | return 0; | ||
4311 | } | ||
4312 | _ACEOF | ||
4313 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | ||
4314 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | ||
4315 | do | ||
4316 | CC="$ac_save_CC $ac_arg" | ||
4317 | if ac_fn_c_try_compile "$LINENO"; then : | ||
4318 | ac_cv_prog_cc_c89=$ac_arg | ||
4319 | fi | ||
4320 | rm -f core conftest.err conftest.$ac_objext | ||
4321 | test "x$ac_cv_prog_cc_c89" != "xno" && break | ||
4322 | done | ||
4323 | rm -f conftest.$ac_ext | ||
4324 | CC=$ac_save_CC | ||
4325 | |||
4326 | fi | ||
4327 | # AC_CACHE_VAL | ||
4328 | case "x$ac_cv_prog_cc_c89" in | ||
4329 | x) | ||
4330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | ||
4331 | $as_echo "none needed" >&6; } ;; | ||
4332 | xno) | ||
4333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | ||
4334 | $as_echo "unsupported" >&6; } ;; | ||
4335 | *) | ||
4336 | CC="$CC $ac_cv_prog_cc_c89" | ||
4337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | ||
4338 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | ||
4339 | esac | ||
4340 | if test "x$ac_cv_prog_cc_c89" != xno; then : | ||
4341 | |||
4342 | fi | ||
4343 | |||
4344 | ac_ext=c | ||
4345 | ac_cpp='$CPP $CPPFLAGS' | ||
4346 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
4347 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
4348 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
4349 | |||
4350 | depcc="$CC" am_compiler_list= | ||
4351 | |||
4352 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | ||
4353 | $as_echo_n "checking dependency style of $depcc... " >&6; } | ||
4354 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : | ||
4355 | $as_echo_n "(cached) " >&6 | ||
4356 | else | ||
4357 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | ||
4358 | # We make a subdir and do the tests there. Otherwise we can end up | ||
4359 | # making bogus files that we don't know about and never remove. For | ||
4360 | # instance it was reported that on HP-UX the gcc test will end up | ||
4361 | # making a dummy file named `D' -- because `-MD' means `put the output | ||
4362 | # in D'. | ||
4363 | mkdir conftest.dir | ||
4364 | # Copy depcomp to subdir because otherwise we won't find it if we're | ||
4365 | # using a relative directory. | ||
4366 | cp "$am_depcomp" conftest.dir | ||
4367 | cd conftest.dir | ||
4368 | # We will build objects and dependencies in a subdirectory because | ||
4369 | # it helps to detect inapplicable dependency modes. For instance | ||
4370 | # both Tru64's cc and ICC support -MD to output dependencies as a | ||
4371 | # side effect of compilation, but ICC will put the dependencies in | ||
4372 | # the current directory while Tru64 will put them in the object | ||
4373 | # directory. | ||
4374 | mkdir sub | ||
4375 | |||
4376 | am_cv_CC_dependencies_compiler_type=none | ||
4377 | if test "$am_compiler_list" = ""; then | ||
4378 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | ||
4379 | fi | ||
4380 | am__universal=false | ||
4381 | case " $depcc " in #( | ||
4382 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | ||
4383 | esac | ||
4384 | |||
4385 | for depmode in $am_compiler_list; do | ||
4386 | # Setup a source with many dependencies, because some compilers | ||
4387 | # like to wrap large dependency lists on column 80 (with \), and | ||
4388 | # we should not choose a depcomp mode which is confused by this. | ||
4389 | # | ||
4390 | # We need to recreate these files for each test, as the compiler may | ||
4391 | # overwrite some of them when testing with obscure command lines. | ||
4392 | # This happens at least with the AIX C compiler. | ||
4393 | : > sub/conftest.c | ||
4394 | for i in 1 2 3 4 5 6; do | ||
4395 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | ||
4396 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | ||
4397 | # Solaris 8's {/usr,}/bin/sh. | ||
4398 | touch sub/conftst$i.h | ||
4399 | done | ||
4400 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | ||
4401 | |||
4402 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | ||
4403 | # mode. It turns out that the SunPro C++ compiler does not properly | ||
4404 | # handle `-M -o', and we need to detect this. Also, some Intel | ||
4405 | # versions had trouble with output in subdirs | ||
4406 | am__obj=sub/conftest.${OBJEXT-o} | ||
4407 | am__minus_obj="-o $am__obj" | ||
4408 | case $depmode in | ||
4409 | gcc) | ||
4410 | # This depmode causes a compiler race in universal mode. | ||
4411 | test "$am__universal" = false || continue | ||
4412 | ;; | ||
4413 | nosideeffect) | ||
4414 | # after this tag, mechanisms are not by side-effect, so they'll | ||
4415 | # only be used when explicitly requested | ||
4416 | if test "x$enable_dependency_tracking" = xyes; then | ||
4417 | continue | ||
4418 | else | ||
4419 | break | ||
4420 | fi | ||
4421 | ;; | ||
4422 | msvisualcpp | msvcmsys) | ||
4423 | # This compiler won't grok `-c -o', but also, the minuso test has | ||
4424 | # not run yet. These depmodes are late enough in the game, and | ||
4425 | # so weak that their functioning should not be impacted. | ||
4426 | am__obj=conftest.${OBJEXT-o} | ||
4427 | am__minus_obj= | ||
4428 | ;; | ||
4429 | none) break ;; | ||
4430 | esac | ||
4431 | if depmode=$depmode \ | ||
4432 | source=sub/conftest.c object=$am__obj \ | ||
4433 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | ||
4434 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | ||
4435 | >/dev/null 2>conftest.err && | ||
4436 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | ||
4437 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | ||
4438 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | ||
4439 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | ||
4440 | # icc doesn't choke on unknown options, it will just issue warnings | ||
4441 | # or remarks (even with -Werror). So we grep stderr for any message | ||
4442 | # that says an option was ignored or not supported. | ||
4443 | # When given -MP, icc 7.0 and 7.1 complain thusly: | ||
4444 | # icc: Command line warning: ignoring option '-M'; no argument required | ||
4445 | # The diagnosis changed in icc 8.0: | ||
4446 | # icc: Command line remark: option '-MP' not supported | ||
4447 | if (grep 'ignoring option' conftest.err || | ||
4448 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | ||
4449 | am_cv_CC_dependencies_compiler_type=$depmode | ||
4450 | break | ||
4451 | fi | ||
4452 | fi | ||
4453 | done | ||
4454 | |||
4455 | cd .. | ||
4456 | rm -rf conftest.dir | ||
4457 | else | ||
4458 | am_cv_CC_dependencies_compiler_type=none | ||
4459 | fi | ||
4460 | |||
4461 | fi | ||
4462 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 | ||
4463 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | ||
4464 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | ||
4465 | |||
4466 | if | ||
4467 | test "x$enable_dependency_tracking" != xno \ | ||
4468 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | ||
4469 | am__fastdepCC_TRUE= | ||
4470 | am__fastdepCC_FALSE='#' | ||
4471 | else | ||
4472 | am__fastdepCC_TRUE='#' | ||
4473 | am__fastdepCC_FALSE= | ||
4474 | fi | ||
4475 | |||
4476 | |||
4477 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 | ||
4478 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | ||
4479 | if test "${ac_cv_path_SED+set}" = set; then : | ||
4480 | $as_echo_n "(cached) " >&6 | ||
4481 | else | ||
4482 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | ||
4483 | for ac_i in 1 2 3 4 5 6 7; do | ||
4484 | ac_script="$ac_script$as_nl$ac_script" | ||
4485 | done | ||
4486 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | ||
4487 | { ac_script=; unset ac_script;} | ||
4488 | if test -z "$SED"; then | ||
4489 | ac_path_SED_found=false | ||
4490 | # Loop through the user's path and test for each of PROGNAME-LIST | ||
4491 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4492 | for as_dir in $PATH | ||
4493 | do | ||
4494 | IFS=$as_save_IFS | ||
4495 | test -z "$as_dir" && as_dir=. | ||
4496 | for ac_prog in sed gsed; do | ||
4497 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4498 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | ||
4499 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | ||
4500 | # Check for GNU ac_path_SED and select it if it is found. | ||
4501 | # Check for GNU $ac_path_SED | ||
4502 | case `"$ac_path_SED" --version 2>&1` in | ||
4503 | *GNU*) | ||
4504 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | ||
4505 | *) | ||
4506 | ac_count=0 | ||
4507 | $as_echo_n 0123456789 >"conftest.in" | ||
4508 | while : | ||
4509 | do | ||
4510 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||
4511 | mv "conftest.tmp" "conftest.in" | ||
4512 | cp "conftest.in" "conftest.nl" | ||
4513 | $as_echo '' >> "conftest.nl" | ||
4514 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||
4515 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||
4516 | as_fn_arith $ac_count + 1 && ac_count=$as_val | ||
4517 | if test $ac_count -gt ${ac_path_SED_max-0}; then | ||
4518 | # Best one so far, save it but keep looking for a better one | ||
4519 | ac_cv_path_SED="$ac_path_SED" | ||
4520 | ac_path_SED_max=$ac_count | ||
4521 | fi | ||
4522 | # 10*(2^10) chars as input seems more than enough | ||
4523 | test $ac_count -gt 10 && break | ||
4524 | done | ||
4525 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||
4526 | esac | ||
4527 | |||
4528 | $ac_path_SED_found && break 3 | ||
4529 | done | ||
4530 | done | ||
4531 | done | ||
4532 | IFS=$as_save_IFS | ||
4533 | if test -z "$ac_cv_path_SED"; then | ||
4534 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 | ||
4535 | fi | ||
4536 | else | ||
4537 | ac_cv_path_SED=$SED | ||
4538 | fi | ||
4539 | |||
4540 | fi | ||
4541 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | ||
4542 | $as_echo "$ac_cv_path_SED" >&6; } | ||
4543 | SED="$ac_cv_path_SED" | ||
4544 | rm -f conftest.sed | ||
4545 | |||
4546 | test -z "$SED" && SED=sed | ||
4547 | Xsed="$SED -e 1s/^X//" | ||
4548 | |||
4549 | |||
4550 | |||
4551 | |||
4552 | |||
4553 | |||
4554 | |||
4555 | |||
4556 | |||
4557 | |||
4558 | |||
4559 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | ||
4560 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | ||
4561 | if test "${ac_cv_path_GREP+set}" = set; then : | ||
4562 | $as_echo_n "(cached) " >&6 | ||
4563 | else | ||
4564 | if test -z "$GREP"; then | ||
4565 | ac_path_GREP_found=false | ||
4566 | # Loop through the user's path and test for each of PROGNAME-LIST | ||
4567 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4568 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||
4569 | do | ||
4570 | IFS=$as_save_IFS | ||
4571 | test -z "$as_dir" && as_dir=. | ||
4572 | for ac_prog in grep ggrep; do | ||
4573 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4574 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | ||
4575 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | ||
4576 | # Check for GNU ac_path_GREP and select it if it is found. | ||
4577 | # Check for GNU $ac_path_GREP | ||
4578 | case `"$ac_path_GREP" --version 2>&1` in | ||
4579 | *GNU*) | ||
4580 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | ||
4581 | *) | ||
4582 | ac_count=0 | ||
4583 | $as_echo_n 0123456789 >"conftest.in" | ||
4584 | while : | ||
4585 | do | ||
4586 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||
4587 | mv "conftest.tmp" "conftest.in" | ||
4588 | cp "conftest.in" "conftest.nl" | ||
4589 | $as_echo 'GREP' >> "conftest.nl" | ||
4590 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||
4591 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||
4592 | as_fn_arith $ac_count + 1 && ac_count=$as_val | ||
4593 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | ||
4594 | # Best one so far, save it but keep looking for a better one | ||
4595 | ac_cv_path_GREP="$ac_path_GREP" | ||
4596 | ac_path_GREP_max=$ac_count | ||
4597 | fi | ||
4598 | # 10*(2^10) chars as input seems more than enough | ||
4599 | test $ac_count -gt 10 && break | ||
4600 | done | ||
4601 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||
4602 | esac | ||
4603 | |||
4604 | $ac_path_GREP_found && break 3 | ||
4605 | done | ||
4606 | done | ||
4607 | done | ||
4608 | IFS=$as_save_IFS | ||
4609 | if test -z "$ac_cv_path_GREP"; then | ||
4610 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | ||
4611 | fi | ||
4612 | else | ||
4613 | ac_cv_path_GREP=$GREP | ||
4614 | fi | ||
4615 | |||
4616 | fi | ||
4617 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | ||
4618 | $as_echo "$ac_cv_path_GREP" >&6; } | ||
4619 | GREP="$ac_cv_path_GREP" | ||
4620 | |||
4621 | |||
4622 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | ||
4623 | $as_echo_n "checking for egrep... " >&6; } | ||
4624 | if test "${ac_cv_path_EGREP+set}" = set; then : | ||
4625 | $as_echo_n "(cached) " >&6 | ||
4626 | else | ||
4627 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | ||
4628 | then ac_cv_path_EGREP="$GREP -E" | ||
4629 | else | ||
4630 | if test -z "$EGREP"; then | ||
4631 | ac_path_EGREP_found=false | ||
4632 | # Loop through the user's path and test for each of PROGNAME-LIST | ||
4633 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4634 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||
4635 | do | ||
4636 | IFS=$as_save_IFS | ||
4637 | test -z "$as_dir" && as_dir=. | ||
4638 | for ac_prog in egrep; do | ||
4639 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4640 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | ||
4641 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | ||
4642 | # Check for GNU ac_path_EGREP and select it if it is found. | ||
4643 | # Check for GNU $ac_path_EGREP | ||
4644 | case `"$ac_path_EGREP" --version 2>&1` in | ||
4645 | *GNU*) | ||
4646 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | ||
4647 | *) | ||
4648 | ac_count=0 | ||
4649 | $as_echo_n 0123456789 >"conftest.in" | ||
4650 | while : | ||
4651 | do | ||
4652 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||
4653 | mv "conftest.tmp" "conftest.in" | ||
4654 | cp "conftest.in" "conftest.nl" | ||
4655 | $as_echo 'EGREP' >> "conftest.nl" | ||
4656 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||
4657 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||
4658 | as_fn_arith $ac_count + 1 && ac_count=$as_val | ||
4659 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | ||
4660 | # Best one so far, save it but keep looking for a better one | ||
4661 | ac_cv_path_EGREP="$ac_path_EGREP" | ||
4662 | ac_path_EGREP_max=$ac_count | ||
4663 | fi | ||
4664 | # 10*(2^10) chars as input seems more than enough | ||
4665 | test $ac_count -gt 10 && break | ||
4666 | done | ||
4667 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||
4668 | esac | ||
4669 | |||
4670 | $ac_path_EGREP_found && break 3 | ||
4671 | done | ||
4672 | done | ||
4673 | done | ||
4674 | IFS=$as_save_IFS | ||
4675 | if test -z "$ac_cv_path_EGREP"; then | ||
4676 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | ||
4677 | fi | ||
4678 | else | ||
4679 | ac_cv_path_EGREP=$EGREP | ||
4680 | fi | ||
4681 | |||
4682 | fi | ||
4683 | fi | ||
4684 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | ||
4685 | $as_echo "$ac_cv_path_EGREP" >&6; } | ||
4686 | EGREP="$ac_cv_path_EGREP" | ||
4687 | |||
4688 | |||
4689 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 | ||
4690 | $as_echo_n "checking for fgrep... " >&6; } | ||
4691 | if test "${ac_cv_path_FGREP+set}" = set; then : | ||
4692 | $as_echo_n "(cached) " >&6 | ||
4693 | else | ||
4694 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 | ||
4695 | then ac_cv_path_FGREP="$GREP -F" | ||
4696 | else | ||
4697 | if test -z "$FGREP"; then | ||
4698 | ac_path_FGREP_found=false | ||
4699 | # Loop through the user's path and test for each of PROGNAME-LIST | ||
4700 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4701 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||
4702 | do | ||
4703 | IFS=$as_save_IFS | ||
4704 | test -z "$as_dir" && as_dir=. | ||
4705 | for ac_prog in fgrep; do | ||
4706 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4707 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | ||
4708 | { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue | ||
4709 | # Check for GNU ac_path_FGREP and select it if it is found. | ||
4710 | # Check for GNU $ac_path_FGREP | ||
4711 | case `"$ac_path_FGREP" --version 2>&1` in | ||
4712 | *GNU*) | ||
4713 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | ||
4714 | *) | ||
4715 | ac_count=0 | ||
4716 | $as_echo_n 0123456789 >"conftest.in" | ||
4717 | while : | ||
4718 | do | ||
4719 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||
4720 | mv "conftest.tmp" "conftest.in" | ||
4721 | cp "conftest.in" "conftest.nl" | ||
4722 | $as_echo 'FGREP' >> "conftest.nl" | ||
4723 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||
4724 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||
4725 | as_fn_arith $ac_count + 1 && ac_count=$as_val | ||
4726 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then | ||
4727 | # Best one so far, save it but keep looking for a better one | ||
4728 | ac_cv_path_FGREP="$ac_path_FGREP" | ||
4729 | ac_path_FGREP_max=$ac_count | ||
4730 | fi | ||
4731 | # 10*(2^10) chars as input seems more than enough | ||
4732 | test $ac_count -gt 10 && break | ||
4733 | done | ||
4734 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||
4735 | esac | ||
4736 | |||
4737 | $ac_path_FGREP_found && break 3 | ||
4738 | done | ||
4739 | done | ||
4740 | done | ||
4741 | IFS=$as_save_IFS | ||
4742 | if test -z "$ac_cv_path_FGREP"; then | ||
4743 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | ||
4744 | fi | ||
4745 | else | ||
4746 | ac_cv_path_FGREP=$FGREP | ||
4747 | fi | ||
4748 | |||
4749 | fi | ||
4750 | fi | ||
4751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 | ||
4752 | $as_echo "$ac_cv_path_FGREP" >&6; } | ||
4753 | FGREP="$ac_cv_path_FGREP" | ||
4754 | |||
4755 | |||
4756 | test -z "$GREP" && GREP=grep | ||
4757 | |||
4758 | |||
4759 | |||
4760 | |||
4761 | |||
4762 | |||
4763 | |||
4764 | |||
4765 | |||
4766 | |||
4767 | |||
4768 | |||
4769 | |||
4770 | |||
4771 | |||
4772 | |||
4773 | |||
4774 | |||
4775 | |||
4776 | # Check whether --with-gnu-ld was given. | ||
4777 | if test "${with_gnu_ld+set}" = set; then : | ||
4778 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | ||
4779 | else | ||
4780 | with_gnu_ld=no | ||
4781 | fi | ||
4782 | |||
4783 | ac_prog=ld | ||
4784 | if test "$GCC" = yes; then | ||
4785 | # Check if gcc -print-prog-name=ld gives a path. | ||
4786 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | ||
4787 | $as_echo_n "checking for ld used by $CC... " >&6; } | ||
4788 | case $host in | ||
4789 | *-*-mingw*) | ||
4790 | # gcc leaves a trailing carriage return which upsets mingw | ||
4791 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | ||
4792 | *) | ||
4793 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | ||
4794 | esac | ||
4795 | case $ac_prog in | ||
4796 | # Accept absolute paths. | ||
4797 | [\\/]* | ?:[\\/]*) | ||
4798 | re_direlt='/[^/][^/]*/\.\./' | ||
4799 | # Canonicalize the pathname of ld | ||
4800 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | ||
4801 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | ||
4802 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | ||
4803 | done | ||
4804 | test -z "$LD" && LD="$ac_prog" | ||
4805 | ;; | ||
4806 | "") | ||
4807 | # If it fails, then pretend we aren't using GCC. | ||
4808 | ac_prog=ld | ||
4809 | ;; | ||
4810 | *) | ||
4811 | # If it is relative, then search for the first ld in PATH. | ||
4812 | with_gnu_ld=unknown | ||
4813 | ;; | ||
4814 | esac | ||
4815 | elif test "$with_gnu_ld" = yes; then | ||
4816 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | ||
4817 | $as_echo_n "checking for GNU ld... " >&6; } | ||
4818 | else | ||
4819 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | ||
4820 | $as_echo_n "checking for non-GNU ld... " >&6; } | ||
4821 | fi | ||
4822 | if test "${lt_cv_path_LD+set}" = set; then : | ||
4823 | $as_echo_n "(cached) " >&6 | ||
4824 | else | ||
4825 | if test -z "$LD"; then | ||
4826 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | ||
4827 | for ac_dir in $PATH; do | ||
4828 | IFS="$lt_save_ifs" | ||
4829 | test -z "$ac_dir" && ac_dir=. | ||
4830 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | ||
4831 | lt_cv_path_LD="$ac_dir/$ac_prog" | ||
4832 | # Check to see if the program is GNU ld. I'd rather use --version, | ||
4833 | # but apparently some variants of GNU ld only accept -v. | ||
4834 | # Break only if it was the GNU/non-GNU ld that we prefer. | ||
4835 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | ||
4836 | *GNU* | *'with BFD'*) | ||
4837 | test "$with_gnu_ld" != no && break | ||
4838 | ;; | ||
4839 | *) | ||
4840 | test "$with_gnu_ld" != yes && break | ||
4841 | ;; | ||
4842 | esac | ||
4843 | fi | ||
4844 | done | ||
4845 | IFS="$lt_save_ifs" | ||
4846 | else | ||
4847 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | ||
4848 | fi | ||
4849 | fi | ||
4850 | |||
4851 | LD="$lt_cv_path_LD" | ||
4852 | if test -n "$LD"; then | ||
4853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | ||
4854 | $as_echo "$LD" >&6; } | ||
4855 | else | ||
4856 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4857 | $as_echo "no" >&6; } | ||
4858 | fi | ||
4859 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 | ||
4860 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | ||
4861 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | ||
4862 | if test "${lt_cv_prog_gnu_ld+set}" = set; then : | ||
4863 | $as_echo_n "(cached) " >&6 | ||
4864 | else | ||
4865 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | ||
4866 | case `$LD -v 2>&1 </dev/null` in | ||
4867 | *GNU* | *'with BFD'*) | ||
4868 | lt_cv_prog_gnu_ld=yes | ||
4869 | ;; | ||
4870 | *) | ||
4871 | lt_cv_prog_gnu_ld=no | ||
4872 | ;; | ||
4873 | esac | ||
4874 | fi | ||
4875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | ||
4876 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | ||
4877 | with_gnu_ld=$lt_cv_prog_gnu_ld | ||
4878 | |||
4879 | |||
4880 | |||
4881 | |||
4882 | |||
4883 | |||
4884 | |||
4885 | |||
4886 | |||
4887 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 | ||
4888 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | ||
4889 | if test "${lt_cv_path_NM+set}" = set; then : | ||
4890 | $as_echo_n "(cached) " >&6 | ||
4891 | else | ||
4892 | if test -n "$NM"; then | ||
4893 | # Let the user override the test. | ||
4894 | lt_cv_path_NM="$NM" | ||
4895 | else | ||
4896 | lt_nm_to_check="${ac_tool_prefix}nm" | ||
4897 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | ||
4898 | lt_nm_to_check="$lt_nm_to_check nm" | ||
4899 | fi | ||
4900 | for lt_tmp_nm in $lt_nm_to_check; do | ||
4901 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | ||
4902 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | ||
4903 | IFS="$lt_save_ifs" | ||
4904 | test -z "$ac_dir" && ac_dir=. | ||
4905 | tmp_nm="$ac_dir/$lt_tmp_nm" | ||
4906 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | ||
4907 | # Check to see if the nm accepts a BSD-compat flag. | ||
4908 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | ||
4909 | # nm: unknown option "B" ignored | ||
4910 | # Tru64's nm complains that /dev/null is an invalid object file | ||
4911 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | ||
4912 | */dev/null* | *'Invalid file or object type'*) | ||
4913 | lt_cv_path_NM="$tmp_nm -B" | ||
4914 | break | ||
4915 | ;; | ||
4916 | *) | ||
4917 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | ||
4918 | */dev/null*) | ||
4919 | lt_cv_path_NM="$tmp_nm -p" | ||
4920 | break | ||
4921 | ;; | ||
4922 | *) | ||
4923 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | ||
4924 | continue # so that we can try to find one that supports BSD flags | ||
4925 | ;; | ||
4926 | esac | ||
4927 | ;; | ||
4928 | esac | ||
4929 | fi | ||
4930 | done | ||
4931 | IFS="$lt_save_ifs" | ||
4932 | done | ||
4933 | : ${lt_cv_path_NM=no} | ||
4934 | fi | ||
4935 | fi | ||
4936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 | ||
4937 | $as_echo "$lt_cv_path_NM" >&6; } | ||
4938 | if test "$lt_cv_path_NM" != "no"; then | ||
4939 | NM="$lt_cv_path_NM" | ||
4940 | else | ||
4941 | # Didn't find any BSD compatible name lister, look for dumpbin. | ||
4942 | if test -n "$ac_tool_prefix"; then | ||
4943 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" | ||
4944 | do | ||
4945 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
4946 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
4947 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4948 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4949 | if test "${ac_cv_prog_DUMPBIN+set}" = set; then : | ||
4950 | $as_echo_n "(cached) " >&6 | ||
4951 | else | ||
4952 | if test -n "$DUMPBIN"; then | ||
4953 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | ||
4954 | else | ||
4955 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4956 | for as_dir in $PATH | ||
4957 | do | ||
4958 | IFS=$as_save_IFS | ||
4959 | test -z "$as_dir" && as_dir=. | ||
4960 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4961 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4962 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" | ||
4963 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4964 | break 2 | ||
4965 | fi | ||
4966 | done | ||
4967 | done | ||
4968 | IFS=$as_save_IFS | ||
4969 | |||
4970 | fi | ||
4971 | fi | ||
4972 | DUMPBIN=$ac_cv_prog_DUMPBIN | ||
4973 | if test -n "$DUMPBIN"; then | ||
4974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 | ||
4975 | $as_echo "$DUMPBIN" >&6; } | ||
4976 | else | ||
4977 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4978 | $as_echo "no" >&6; } | ||
4979 | fi | ||
4980 | |||
4981 | |||
4982 | test -n "$DUMPBIN" && break | ||
4983 | done | ||
4984 | fi | ||
4985 | if test -z "$DUMPBIN"; then | ||
4986 | ac_ct_DUMPBIN=$DUMPBIN | ||
4987 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" | ||
4988 | do | ||
4989 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
4990 | set dummy $ac_prog; ac_word=$2 | ||
4991 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4992 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4993 | if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then : | ||
4994 | $as_echo_n "(cached) " >&6 | ||
4995 | else | ||
4996 | if test -n "$ac_ct_DUMPBIN"; then | ||
4997 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | ||
4998 | else | ||
4999 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5000 | for as_dir in $PATH | ||
5001 | do | ||
5002 | IFS=$as_save_IFS | ||
5003 | test -z "$as_dir" && as_dir=. | ||
5004 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5005 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5006 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" | ||
5007 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5008 | break 2 | ||
5009 | fi | ||
5010 | done | ||
5011 | done | ||
5012 | IFS=$as_save_IFS | ||
5013 | |||
5014 | fi | ||
5015 | fi | ||
5016 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN | ||
5017 | if test -n "$ac_ct_DUMPBIN"; then | ||
5018 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 | ||
5019 | $as_echo "$ac_ct_DUMPBIN" >&6; } | ||
5020 | else | ||
5021 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5022 | $as_echo "no" >&6; } | ||
5023 | fi | ||
5024 | |||
5025 | |||
5026 | test -n "$ac_ct_DUMPBIN" && break | ||
5027 | done | ||
5028 | |||
5029 | if test "x$ac_ct_DUMPBIN" = x; then | ||
5030 | DUMPBIN=":" | ||
5031 | else | ||
5032 | case $cross_compiling:$ac_tool_warned in | ||
5033 | yes:) | ||
5034 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
5035 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
5036 | ac_tool_warned=yes ;; | ||
5037 | esac | ||
5038 | DUMPBIN=$ac_ct_DUMPBIN | ||
5039 | fi | ||
5040 | fi | ||
5041 | |||
5042 | |||
5043 | if test "$DUMPBIN" != ":"; then | ||
5044 | NM="$DUMPBIN" | ||
5045 | fi | ||
5046 | fi | ||
5047 | test -z "$NM" && NM=nm | ||
5048 | |||
5049 | |||
5050 | |||
5051 | |||
5052 | |||
5053 | |||
5054 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 | ||
5055 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } | ||
5056 | if test "${lt_cv_nm_interface+set}" = set; then : | ||
5057 | $as_echo_n "(cached) " >&6 | ||
5058 | else | ||
5059 | lt_cv_nm_interface="BSD nm" | ||
5060 | echo "int some_variable = 0;" > conftest.$ac_ext | ||
5061 | (eval echo "\"\$as_me:5061: $ac_compile\"" >&5) | ||
5062 | (eval "$ac_compile" 2>conftest.err) | ||
5063 | cat conftest.err >&5 | ||
5064 | (eval echo "\"\$as_me:5064: $NM \\\"conftest.$ac_objext\\\"\"" >&5) | ||
5065 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) | ||
5066 | cat conftest.err >&5 | ||
5067 | (eval echo "\"\$as_me:5067: output\"" >&5) | ||
5068 | cat conftest.out >&5 | ||
5069 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | ||
5070 | lt_cv_nm_interface="MS dumpbin" | ||
5071 | fi | ||
5072 | rm -f conftest* | ||
5073 | fi | ||
5074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 | ||
5075 | $as_echo "$lt_cv_nm_interface" >&6; } | ||
5076 | |||
5077 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 | ||
5078 | $as_echo_n "checking whether ln -s works... " >&6; } | ||
5079 | LN_S=$as_ln_s | ||
5080 | if test "$LN_S" = "ln -s"; then | ||
5081 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
5082 | $as_echo "yes" >&6; } | ||
5083 | else | ||
5084 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 | ||
5085 | $as_echo "no, using $LN_S" >&6; } | ||
5086 | fi | ||
5087 | |||
5088 | # find the maximum length of command line arguments | ||
5089 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 | ||
5090 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } | ||
5091 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then : | ||
5092 | $as_echo_n "(cached) " >&6 | ||
5093 | else | ||
5094 | i=0 | ||
5095 | teststring="ABCD" | ||
5096 | |||
5097 | case $build_os in | ||
5098 | msdosdjgpp*) | ||
5099 | # On DJGPP, this test can blow up pretty badly due to problems in libc | ||
5100 | # (any single argument exceeding 2000 bytes causes a buffer overrun | ||
5101 | # during glob expansion). Even if it were fixed, the result of this | ||
5102 | # check would be larger than it should be. | ||
5103 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | ||
5104 | ;; | ||
5105 | |||
5106 | gnu*) | ||
5107 | # Under GNU Hurd, this test is not required because there is | ||
5108 | # no limit to the length of command line arguments. | ||
5109 | # Libtool will interpret -1 as no limit whatsoever | ||
5110 | lt_cv_sys_max_cmd_len=-1; | ||
5111 | ;; | ||
5112 | |||
5113 | cygwin* | mingw*) | ||
5114 | # On Win9x/ME, this test blows up -- it succeeds, but takes | ||
5115 | # about 5 minutes as the teststring grows exponentially. | ||
5116 | # Worse, since 9x/ME are not pre-emptively multitasking, | ||
5117 | # you end up with a "frozen" computer, even though with patience | ||
5118 | # the test eventually succeeds (with a max line length of 256k). | ||
5119 | # Instead, let's just punt: use the minimum linelength reported by | ||
5120 | # all of the supported platforms: 8192 (on NT/2K/XP). | ||
5121 | lt_cv_sys_max_cmd_len=8192; | ||
5122 | ;; | ||
5123 | |||
5124 | amigaos*) | ||
5125 | # On AmigaOS with pdksh, this test takes hours, literally. | ||
5126 | # So we just punt and use a minimum line length of 8192. | ||
5127 | lt_cv_sys_max_cmd_len=8192; | ||
5128 | ;; | ||
5129 | |||
5130 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | ||
5131 | # This has been around since 386BSD, at least. Likely further. | ||
5132 | if test -x /sbin/sysctl; then | ||
5133 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | ||
5134 | elif test -x /usr/sbin/sysctl; then | ||
5135 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | ||
5136 | else | ||
5137 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | ||
5138 | fi | ||
5139 | # And add a safety zone | ||
5140 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | ||
5141 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | ||
5142 | ;; | ||
5143 | |||
5144 | interix*) | ||
5145 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | ||
5146 | lt_cv_sys_max_cmd_len=196608 | ||
5147 | ;; | ||
5148 | |||
5149 | osf*) | ||
5150 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | ||
5151 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | ||
5152 | # nice to cause kernel panics so lets avoid the loop below. | ||
5153 | # First set a reasonable default. | ||
5154 | lt_cv_sys_max_cmd_len=16384 | ||
5155 | # | ||
5156 | if test -x /sbin/sysconfig; then | ||
5157 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | ||
5158 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | ||
5159 | esac | ||
5160 | fi | ||
5161 | ;; | ||
5162 | sco3.2v5*) | ||
5163 | lt_cv_sys_max_cmd_len=102400 | ||
5164 | ;; | ||
5165 | sysv5* | sco5v6* | sysv4.2uw2*) | ||
5166 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | ||
5167 | if test -n "$kargmax"; then | ||
5168 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | ||
5169 | else | ||
5170 | lt_cv_sys_max_cmd_len=32768 | ||
5171 | fi | ||
5172 | ;; | ||
5173 | *) | ||
5174 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` | ||
5175 | if test -n "$lt_cv_sys_max_cmd_len"; then | ||
5176 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | ||
5177 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | ||
5178 | else | ||
5179 | # Make teststring a little bigger before we do anything with it. | ||
5180 | # a 1K string should be a reasonable start. | ||
5181 | for i in 1 2 3 4 5 6 7 8 ; do | ||
5182 | teststring=$teststring$teststring | ||
5183 | done | ||
5184 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | ||
5185 | # If test is not a shell built-in, we'll probably end up computing a | ||
5186 | # maximum length that is only half of the actual maximum length, but | ||
5187 | # we can't tell. | ||
5188 | while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ | ||
5189 | = "XX$teststring$teststring"; } >/dev/null 2>&1 && | ||
5190 | test $i != 17 # 1/2 MB should be enough | ||
5191 | do | ||
5192 | i=`expr $i + 1` | ||
5193 | teststring=$teststring$teststring | ||
5194 | done | ||
5195 | # Only check the string length outside the loop. | ||
5196 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | ||
5197 | teststring= | ||
5198 | # Add a significant safety factor because C++ compilers can tack on | ||
5199 | # massive amounts of additional arguments before passing them to the | ||
5200 | # linker. It appears as though 1/2 is a usable value. | ||
5201 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | ||
5202 | fi | ||
5203 | ;; | ||
5204 | esac | ||
5205 | |||
5206 | fi | ||
5207 | |||
5208 | if test -n $lt_cv_sys_max_cmd_len ; then | ||
5209 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 | ||
5210 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | ||
5211 | else | ||
5212 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 | ||
5213 | $as_echo "none" >&6; } | ||
5214 | fi | ||
5215 | max_cmd_len=$lt_cv_sys_max_cmd_len | ||
5216 | |||
5217 | |||
5218 | |||
5219 | |||
5220 | |||
5221 | |||
5222 | : ${CP="cp -f"} | ||
5223 | : ${MV="mv -f"} | ||
5224 | : ${RM="rm -f"} | ||
5225 | |||
5226 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 | ||
5227 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } | ||
5228 | # Try some XSI features | ||
5229 | xsi_shell=no | ||
5230 | ( _lt_dummy="a/b/c" | ||
5231 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | ||
5232 | = c,a/b,, \ | ||
5233 | && eval 'test $(( 1 + 1 )) -eq 2 \ | ||
5234 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | ||
5235 | && xsi_shell=yes | ||
5236 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 | ||
5237 | $as_echo "$xsi_shell" >&6; } | ||
5238 | |||
5239 | |||
5240 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 | ||
5241 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } | ||
5242 | lt_shell_append=no | ||
5243 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | ||
5244 | >/dev/null 2>&1 \ | ||
5245 | && lt_shell_append=yes | ||
5246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 | ||
5247 | $as_echo "$lt_shell_append" >&6; } | ||
5248 | |||
5249 | |||
5250 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | ||
5251 | lt_unset=unset | ||
5252 | else | ||
5253 | lt_unset=false | ||
5254 | fi | ||
5255 | |||
5256 | |||
5257 | |||
5258 | |||
5259 | |||
5260 | # test EBCDIC or ASCII | ||
5261 | case `echo X|tr X '\101'` in | ||
5262 | A) # ASCII based system | ||
5263 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | ||
5264 | lt_SP2NL='tr \040 \012' | ||
5265 | lt_NL2SP='tr \015\012 \040\040' | ||
5266 | ;; | ||
5267 | *) # EBCDIC based system | ||
5268 | lt_SP2NL='tr \100 \n' | ||
5269 | lt_NL2SP='tr \r\n \100\100' | ||
5270 | ;; | ||
5271 | esac | ||
5272 | |||
5273 | |||
5274 | |||
5275 | |||
5276 | |||
5277 | |||
5278 | |||
5279 | |||
5280 | |||
5281 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 | ||
5282 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | ||
5283 | if test "${lt_cv_ld_reload_flag+set}" = set; then : | ||
5284 | $as_echo_n "(cached) " >&6 | ||
5285 | else | ||
5286 | lt_cv_ld_reload_flag='-r' | ||
5287 | fi | ||
5288 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 | ||
5289 | $as_echo "$lt_cv_ld_reload_flag" >&6; } | ||
5290 | reload_flag=$lt_cv_ld_reload_flag | ||
5291 | case $reload_flag in | ||
5292 | "" | " "*) ;; | ||
5293 | *) reload_flag=" $reload_flag" ;; | ||
5294 | esac | ||
5295 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | ||
5296 | case $host_os in | ||
5297 | darwin*) | ||
5298 | if test "$GCC" = yes; then | ||
5299 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | ||
5300 | else | ||
5301 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | ||
5302 | fi | ||
5303 | ;; | ||
5304 | esac | ||
5305 | |||
5306 | |||
5307 | |||
5308 | |||
5309 | |||
5310 | |||
5311 | |||
5312 | |||
5313 | |||
5314 | |||
5315 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 | ||
5316 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } | ||
5317 | if test "${lt_cv_deplibs_check_method+set}" = set; then : | ||
5318 | $as_echo_n "(cached) " >&6 | ||
5319 | else | ||
5320 | lt_cv_file_magic_cmd='$MAGIC_CMD' | ||
5321 | lt_cv_file_magic_test_file= | ||
5322 | lt_cv_deplibs_check_method='unknown' | ||
5323 | # Need to set the preceding variable on all platforms that support | ||
5324 | # interlibrary dependencies. | ||
5325 | # 'none' -- dependencies not supported. | ||
5326 | # `unknown' -- same as none, but documents that we really don't know. | ||
5327 | # 'pass_all' -- all dependencies passed with no checks. | ||
5328 | # 'test_compile' -- check by making test program. | ||
5329 | # 'file_magic [[regex]]' -- check by looking for files in library path | ||
5330 | # which responds to the $file_magic_cmd with a given extended regex. | ||
5331 | # If you have `file' or equivalent on your system and you're not sure | ||
5332 | # whether `pass_all' will *always* work, you probably want this one. | ||
5333 | |||
5334 | case $host_os in | ||
5335 | aix[4-9]*) | ||
5336 | lt_cv_deplibs_check_method=pass_all | ||
5337 | ;; | ||
5338 | |||
5339 | beos*) | ||
5340 | lt_cv_deplibs_check_method=pass_all | ||
5341 | ;; | ||
5342 | |||
5343 | bsdi[45]*) | ||
5344 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | ||
5345 | lt_cv_file_magic_cmd='/usr/bin/file -L' | ||
5346 | lt_cv_file_magic_test_file=/shlib/libc.so | ||
5347 | ;; | ||
5348 | |||
5349 | cygwin*) | ||
5350 | # func_win32_libid is a shell function defined in ltmain.sh | ||
5351 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | ||
5352 | lt_cv_file_magic_cmd='func_win32_libid' | ||
5353 | ;; | ||
5354 | |||
5355 | mingw* | pw32*) | ||
5356 | # Base MSYS/MinGW do not provide the 'file' command needed by | ||
5357 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | ||
5358 | # unless we find 'file', for example because we are cross-compiling. | ||
5359 | if ( file / ) >/dev/null 2>&1; then | ||
5360 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | ||
5361 | lt_cv_file_magic_cmd='func_win32_libid' | ||
5362 | else | ||
5363 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | ||
5364 | lt_cv_file_magic_cmd='$OBJDUMP -f' | ||
5365 | fi | ||
5366 | ;; | ||
5367 | |||
5368 | darwin* | rhapsody*) | ||
5369 | lt_cv_deplibs_check_method=pass_all | ||
5370 | ;; | ||
5371 | |||
5372 | freebsd* | dragonfly*) | ||
5373 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | ||
5374 | case $host_cpu in | ||
5375 | i*86 ) | ||
5376 | # Not sure whether the presence of OpenBSD here was a mistake. | ||
5377 | # Let's accept both of them until this is cleared up. | ||
5378 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | ||
5379 | lt_cv_file_magic_cmd=/usr/bin/file | ||
5380 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | ||
5381 | ;; | ||
5382 | esac | ||
5383 | else | ||
5384 | lt_cv_deplibs_check_method=pass_all | ||
5385 | fi | ||
5386 | ;; | ||
5387 | |||
5388 | gnu*) | ||
5389 | lt_cv_deplibs_check_method=pass_all | ||
5390 | ;; | ||
5391 | |||
5392 | hpux10.20* | hpux11*) | ||
5393 | lt_cv_file_magic_cmd=/usr/bin/file | ||
5394 | case $host_cpu in | ||
5395 | ia64*) | ||
5396 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | ||
5397 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | ||
5398 | ;; | ||
5399 | hppa*64*) | ||
5400 | 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]' | ||
5401 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | ||
5402 | ;; | ||
5403 | *) | ||
5404 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | ||
5405 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | ||
5406 | ;; | ||
5407 | esac | ||
5408 | ;; | ||
5409 | |||
5410 | interix[3-9]*) | ||
5411 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | ||
5412 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | ||
5413 | ;; | ||
5414 | |||
5415 | irix5* | irix6* | nonstopux*) | ||
5416 | case $LD in | ||
5417 | *-32|*"-32 ") libmagic=32-bit;; | ||
5418 | *-n32|*"-n32 ") libmagic=N32;; | ||
5419 | *-64|*"-64 ") libmagic=64-bit;; | ||
5420 | *) libmagic=never-match;; | ||
5421 | esac | ||
5422 | lt_cv_deplibs_check_method=pass_all | ||
5423 | ;; | ||
5424 | |||
5425 | # This must be Linux ELF. | ||
5426 | linux* | k*bsd*-gnu) | ||
5427 | lt_cv_deplibs_check_method=pass_all | ||
5428 | ;; | ||
5429 | |||
5430 | netbsd* | netbsdelf*-gnu) | ||
5431 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | ||
5432 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | ||
5433 | else | ||
5434 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | ||
5435 | fi | ||
5436 | ;; | ||
5437 | |||
5438 | newos6*) | ||
5439 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | ||
5440 | lt_cv_file_magic_cmd=/usr/bin/file | ||
5441 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | ||
5442 | ;; | ||
5443 | |||
5444 | *nto* | *qnx*) | ||
5445 | lt_cv_deplibs_check_method=pass_all | ||
5446 | ;; | ||
5447 | |||
5448 | openbsd*) | ||
5449 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | ||
5450 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | ||
5451 | else | ||
5452 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | ||
5453 | fi | ||
5454 | ;; | ||
5455 | |||
5456 | osf3* | osf4* | osf5*) | ||
5457 | lt_cv_deplibs_check_method=pass_all | ||
5458 | ;; | ||
5459 | |||
5460 | rdos*) | ||
5461 | lt_cv_deplibs_check_method=pass_all | ||
5462 | ;; | ||
5463 | |||
5464 | solaris*) | ||
5465 | lt_cv_deplibs_check_method=pass_all | ||
5466 | ;; | ||
5467 | |||
5468 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | ||
5469 | lt_cv_deplibs_check_method=pass_all | ||
5470 | ;; | ||
5471 | |||
5472 | sysv4 | sysv4.3*) | ||
5473 | case $host_vendor in | ||
5474 | motorola) | ||
5475 | 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]' | ||
5476 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | ||
5477 | ;; | ||
5478 | ncr) | ||
5479 | lt_cv_deplibs_check_method=pass_all | ||
5480 | ;; | ||
5481 | sequent) | ||
5482 | lt_cv_file_magic_cmd='/bin/file' | ||
5483 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | ||
5484 | ;; | ||
5485 | sni) | ||
5486 | lt_cv_file_magic_cmd='/bin/file' | ||
5487 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | ||
5488 | lt_cv_file_magic_test_file=/lib/libc.so | ||
5489 | ;; | ||
5490 | siemens) | ||
5491 | lt_cv_deplibs_check_method=pass_all | ||
5492 | ;; | ||
5493 | pc) | ||
5494 | lt_cv_deplibs_check_method=pass_all | ||
5495 | ;; | ||
5496 | esac | ||
5497 | ;; | ||
5498 | |||
5499 | tpf*) | ||
5500 | lt_cv_deplibs_check_method=pass_all | ||
5501 | ;; | ||
5502 | esac | ||
5503 | |||
5504 | fi | ||
5505 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 | ||
5506 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | ||
5507 | file_magic_cmd=$lt_cv_file_magic_cmd | ||
5508 | deplibs_check_method=$lt_cv_deplibs_check_method | ||
5509 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | ||
5510 | |||
5511 | |||
5512 | |||
5513 | |||
5514 | |||
5515 | |||
5516 | |||
5517 | |||
5518 | |||
5519 | |||
5520 | |||
5521 | |||
5522 | if test -n "$ac_tool_prefix"; then | ||
5523 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | ||
5524 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | ||
5525 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
5526 | $as_echo_n "checking for $ac_word... " >&6; } | ||
5527 | if test "${ac_cv_prog_AR+set}" = set; then : | ||
5528 | $as_echo_n "(cached) " >&6 | ||
5529 | else | ||
5530 | if test -n "$AR"; then | ||
5531 | ac_cv_prog_AR="$AR" # Let the user override the test. | ||
5532 | else | ||
5533 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5534 | for as_dir in $PATH | ||
5535 | do | ||
5536 | IFS=$as_save_IFS | ||
5537 | test -z "$as_dir" && as_dir=. | ||
5538 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5539 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5540 | ac_cv_prog_AR="${ac_tool_prefix}ar" | ||
5541 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5542 | break 2 | ||
5543 | fi | ||
5544 | done | ||
5545 | done | ||
5546 | IFS=$as_save_IFS | ||
5547 | |||
5548 | fi | ||
5549 | fi | ||
5550 | AR=$ac_cv_prog_AR | ||
5551 | if test -n "$AR"; then | ||
5552 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | ||
5553 | $as_echo "$AR" >&6; } | ||
5554 | else | ||
5555 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5556 | $as_echo "no" >&6; } | ||
5557 | fi | ||
5558 | |||
5559 | |||
5560 | fi | ||
5561 | if test -z "$ac_cv_prog_AR"; then | ||
5562 | ac_ct_AR=$AR | ||
5563 | # Extract the first word of "ar", so it can be a program name with args. | ||
5564 | set dummy ar; ac_word=$2 | ||
5565 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
5566 | $as_echo_n "checking for $ac_word... " >&6; } | ||
5567 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : | ||
5568 | $as_echo_n "(cached) " >&6 | ||
5569 | else | ||
5570 | if test -n "$ac_ct_AR"; then | ||
5571 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | ||
5572 | else | ||
5573 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5574 | for as_dir in $PATH | ||
5575 | do | ||
5576 | IFS=$as_save_IFS | ||
5577 | test -z "$as_dir" && as_dir=. | ||
5578 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5579 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5580 | ac_cv_prog_ac_ct_AR="ar" | ||
5581 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5582 | break 2 | ||
5583 | fi | ||
5584 | done | ||
5585 | done | ||
5586 | IFS=$as_save_IFS | ||
5587 | |||
5588 | fi | ||
5589 | fi | ||
5590 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | ||
5591 | if test -n "$ac_ct_AR"; then | ||
5592 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | ||
5593 | $as_echo "$ac_ct_AR" >&6; } | ||
5594 | else | ||
5595 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5596 | $as_echo "no" >&6; } | ||
5597 | fi | ||
5598 | |||
5599 | if test "x$ac_ct_AR" = x; then | ||
5600 | AR="false" | ||
5601 | else | ||
5602 | case $cross_compiling:$ac_tool_warned in | ||
5603 | yes:) | ||
5604 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
5605 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
5606 | ac_tool_warned=yes ;; | ||
5607 | esac | ||
5608 | AR=$ac_ct_AR | ||
5609 | fi | ||
5610 | else | ||
5611 | AR="$ac_cv_prog_AR" | ||
5612 | fi | ||
5613 | |||
5614 | test -z "$AR" && AR=ar | ||
5615 | test -z "$AR_FLAGS" && AR_FLAGS=cru | ||
5616 | |||
5617 | |||
5618 | |||
5619 | |||
5620 | |||
5621 | |||
5622 | |||
5623 | |||
5624 | |||
5625 | |||
5626 | |||
5627 | if test -n "$ac_tool_prefix"; then | ||
5628 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | ||
5629 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | ||
5630 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
5631 | $as_echo_n "checking for $ac_word... " >&6; } | ||
5632 | if test "${ac_cv_prog_STRIP+set}" = set; then : | ||
5633 | $as_echo_n "(cached) " >&6 | ||
5634 | else | ||
5635 | if test -n "$STRIP"; then | ||
5636 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | ||
5637 | else | ||
5638 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5639 | for as_dir in $PATH | ||
5640 | do | ||
5641 | IFS=$as_save_IFS | ||
5642 | test -z "$as_dir" && as_dir=. | ||
5643 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5644 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5645 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | ||
5646 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5647 | break 2 | ||
5648 | fi | ||
5649 | done | ||
5650 | done | ||
5651 | IFS=$as_save_IFS | ||
5652 | |||
5653 | fi | ||
5654 | fi | ||
5655 | STRIP=$ac_cv_prog_STRIP | ||
5656 | if test -n "$STRIP"; then | ||
5657 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | ||
5658 | $as_echo "$STRIP" >&6; } | ||
5659 | else | ||
5660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5661 | $as_echo "no" >&6; } | ||
5662 | fi | ||
5663 | |||
5664 | |||
5665 | fi | ||
5666 | if test -z "$ac_cv_prog_STRIP"; then | ||
5667 | ac_ct_STRIP=$STRIP | ||
5668 | # Extract the first word of "strip", so it can be a program name with args. | ||
5669 | set dummy strip; ac_word=$2 | ||
5670 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
5671 | $as_echo_n "checking for $ac_word... " >&6; } | ||
5672 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : | ||
5673 | $as_echo_n "(cached) " >&6 | ||
5674 | else | ||
5675 | if test -n "$ac_ct_STRIP"; then | ||
5676 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | ||
5677 | else | ||
5678 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5679 | for as_dir in $PATH | ||
5680 | do | ||
5681 | IFS=$as_save_IFS | ||
5682 | test -z "$as_dir" && as_dir=. | ||
5683 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5684 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5685 | ac_cv_prog_ac_ct_STRIP="strip" | ||
5686 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5687 | break 2 | ||
5688 | fi | ||
5689 | done | ||
5690 | done | ||
5691 | IFS=$as_save_IFS | ||
5692 | |||
5693 | fi | ||
5694 | fi | ||
5695 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | ||
5696 | if test -n "$ac_ct_STRIP"; then | ||
5697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | ||
5698 | $as_echo "$ac_ct_STRIP" >&6; } | ||
5699 | else | ||
5700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5701 | $as_echo "no" >&6; } | ||
5702 | fi | ||
5703 | |||
5704 | if test "x$ac_ct_STRIP" = x; then | ||
5705 | STRIP=":" | ||
5706 | else | ||
5707 | case $cross_compiling:$ac_tool_warned in | ||
5708 | yes:) | ||
5709 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
5710 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
5711 | ac_tool_warned=yes ;; | ||
5712 | esac | ||
5713 | STRIP=$ac_ct_STRIP | ||
5714 | fi | ||
5715 | else | ||
5716 | STRIP="$ac_cv_prog_STRIP" | ||
5717 | fi | ||
5718 | |||
5719 | test -z "$STRIP" && STRIP=: | ||
5720 | |||
5721 | |||
5722 | |||
5723 | |||
5724 | |||
5725 | |||
5726 | if test -n "$ac_tool_prefix"; then | ||
5727 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | ||
5728 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | ||
5729 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
5730 | $as_echo_n "checking for $ac_word... " >&6; } | ||
5731 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | ||
5732 | $as_echo_n "(cached) " >&6 | ||
5733 | else | ||
5734 | if test -n "$RANLIB"; then | ||
5735 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | ||
5736 | else | ||
5737 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5738 | for as_dir in $PATH | ||
5739 | do | ||
5740 | IFS=$as_save_IFS | ||
5741 | test -z "$as_dir" && as_dir=. | ||
5742 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5743 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5744 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | ||
5745 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5746 | break 2 | ||
5747 | fi | ||
5748 | done | ||
5749 | done | ||
5750 | IFS=$as_save_IFS | ||
5751 | |||
5752 | fi | ||
5753 | fi | ||
5754 | RANLIB=$ac_cv_prog_RANLIB | ||
5755 | if test -n "$RANLIB"; then | ||
5756 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | ||
5757 | $as_echo "$RANLIB" >&6; } | ||
5758 | else | ||
5759 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5760 | $as_echo "no" >&6; } | ||
5761 | fi | ||
5762 | |||
5763 | |||
5764 | fi | ||
5765 | if test -z "$ac_cv_prog_RANLIB"; then | ||
5766 | ac_ct_RANLIB=$RANLIB | ||
5767 | # Extract the first word of "ranlib", so it can be a program name with args. | ||
5768 | set dummy ranlib; ac_word=$2 | ||
5769 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
5770 | $as_echo_n "checking for $ac_word... " >&6; } | ||
5771 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : | ||
5772 | $as_echo_n "(cached) " >&6 | ||
5773 | else | ||
5774 | if test -n "$ac_ct_RANLIB"; then | ||
5775 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | ||
5776 | else | ||
5777 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5778 | for as_dir in $PATH | ||
5779 | do | ||
5780 | IFS=$as_save_IFS | ||
5781 | test -z "$as_dir" && as_dir=. | ||
5782 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5783 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5784 | ac_cv_prog_ac_ct_RANLIB="ranlib" | ||
5785 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5786 | break 2 | ||
5787 | fi | ||
5788 | done | ||
5789 | done | ||
5790 | IFS=$as_save_IFS | ||
5791 | |||
5792 | fi | ||
5793 | fi | ||
5794 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | ||
5795 | if test -n "$ac_ct_RANLIB"; then | ||
5796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | ||
5797 | $as_echo "$ac_ct_RANLIB" >&6; } | ||
5798 | else | ||
5799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5800 | $as_echo "no" >&6; } | ||
5801 | fi | ||
5802 | |||
5803 | if test "x$ac_ct_RANLIB" = x; then | ||
5804 | RANLIB=":" | ||
5805 | else | ||
5806 | case $cross_compiling:$ac_tool_warned in | ||
5807 | yes:) | ||
5808 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
5809 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
5810 | ac_tool_warned=yes ;; | ||
5811 | esac | ||
5812 | RANLIB=$ac_ct_RANLIB | ||
5813 | fi | ||
5814 | else | ||
5815 | RANLIB="$ac_cv_prog_RANLIB" | ||
5816 | fi | ||
5817 | |||
5818 | test -z "$RANLIB" && RANLIB=: | ||
5819 | |||
5820 | |||
5821 | |||
5822 | |||
5823 | |||
5824 | |||
5825 | # Determine commands to create old-style static archives. | ||
5826 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' | ||
5827 | old_postinstall_cmds='chmod 644 $oldlib' | ||
5828 | old_postuninstall_cmds= | ||
5829 | |||
5830 | if test -n "$RANLIB"; then | ||
5831 | case $host_os in | ||
5832 | openbsd*) | ||
5833 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | ||
5834 | ;; | ||
5835 | *) | ||
5836 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | ||
5837 | ;; | ||
5838 | esac | ||
5839 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | ||
5840 | fi | ||
5841 | |||
5842 | |||
5843 | |||
5844 | |||
5845 | |||
5846 | |||
5847 | |||
5848 | |||
5849 | |||
5850 | |||
5851 | |||
5852 | |||
5853 | |||
5854 | |||
5855 | |||
5856 | |||
5857 | |||
5858 | |||
5859 | |||
5860 | |||
5861 | |||
5862 | |||
5863 | |||
5864 | |||
5865 | |||
5866 | |||
5867 | |||
5868 | |||
5869 | |||
5870 | |||
5871 | |||
5872 | |||
5873 | |||
5874 | |||
5875 | # If no C compiler was specified, use CC. | ||
5876 | LTCC=${LTCC-"$CC"} | ||
5877 | |||
5878 | # If no C compiler flags were specified, use CFLAGS. | ||
5879 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | ||
5880 | |||
5881 | # Allow CC to be a program name with arguments. | ||
5882 | compiler=$CC | ||
5883 | |||
5884 | |||
5885 | # Check for command to grab the raw symbol name followed by C symbol from nm. | ||
5886 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 | ||
5887 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | ||
5888 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : | ||
5889 | $as_echo_n "(cached) " >&6 | ||
5890 | else | ||
5891 | |||
5892 | # These are sane defaults that work on at least a few old systems. | ||
5893 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | ||
5894 | |||
5895 | # Character class describing NM global symbol codes. | ||
5896 | symcode='[BCDEGRST]' | ||
5897 | |||
5898 | # Regexp to match symbols that can be accessed directly from C. | ||
5899 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | ||
5900 | |||
5901 | # Define system-specific variables. | ||
5902 | case $host_os in | ||
5903 | aix*) | ||
5904 | symcode='[BCDT]' | ||
5905 | ;; | ||
5906 | cygwin* | mingw* | pw32*) | ||
5907 | symcode='[ABCDGISTW]' | ||
5908 | ;; | ||
5909 | hpux*) | ||
5910 | if test "$host_cpu" = ia64; then | ||
5911 | symcode='[ABCDEGRST]' | ||
5912 | fi | ||
5913 | ;; | ||
5914 | irix* | nonstopux*) | ||
5915 | symcode='[BCDEGRST]' | ||
5916 | ;; | ||
5917 | osf*) | ||
5918 | symcode='[BCDEGQRST]' | ||
5919 | ;; | ||
5920 | solaris*) | ||
5921 | symcode='[BDRT]' | ||
5922 | ;; | ||
5923 | sco3.2v5*) | ||
5924 | symcode='[DT]' | ||
5925 | ;; | ||
5926 | sysv4.2uw2*) | ||
5927 | symcode='[DT]' | ||
5928 | ;; | ||
5929 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | ||
5930 | symcode='[ABDT]' | ||
5931 | ;; | ||
5932 | sysv4) | ||
5933 | symcode='[DFNSTU]' | ||
5934 | ;; | ||
5935 | esac | ||
5936 | |||
5937 | # If we're using GNU nm, then use its standard symbol codes. | ||
5938 | case `$NM -V 2>&1` in | ||
5939 | *GNU* | *'with BFD'*) | ||
5940 | symcode='[ABCDGIRSTW]' ;; | ||
5941 | esac | ||
5942 | |||
5943 | # Transform an extracted symbol line into a proper C declaration. | ||
5944 | # Some systems (esp. on ia64) link data and code symbols differently, | ||
5945 | # so use this general approach. | ||
5946 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | ||
5947 | |||
5948 | # Transform an extracted symbol line into symbol name and symbol address | ||
5949 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | ||
5950 | 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'" | ||
5951 | |||
5952 | # Handle CRLF in mingw tool chain | ||
5953 | opt_cr= | ||
5954 | case $build_os in | ||
5955 | mingw*) | ||
5956 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | ||
5957 | ;; | ||
5958 | esac | ||
5959 | |||
5960 | # Try without a prefix underscore, then with it. | ||
5961 | for ac_symprfx in "" "_"; do | ||
5962 | |||
5963 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | ||
5964 | symxfrm="\\1 $ac_symprfx\\2 \\2" | ||
5965 | |||
5966 | # Write the raw and C identifiers. | ||
5967 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | ||
5968 | # Fake it for dumpbin and say T for any non-static function | ||
5969 | # and D for any global variable. | ||
5970 | # Also find C++ and __fastcall symbols from MSVC++, | ||
5971 | # which start with @ or ?. | ||
5972 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | ||
5973 | " {last_section=section; section=\$ 3};"\ | ||
5974 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | ||
5975 | " \$ 0!~/External *\|/{next};"\ | ||
5976 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | ||
5977 | " {if(hide[section]) next};"\ | ||
5978 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | ||
5979 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | ||
5980 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | ||
5981 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | ||
5982 | " ' prfx=^$ac_symprfx" | ||
5983 | else | ||
5984 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | ||
5985 | fi | ||
5986 | |||
5987 | # Check to see that the pipe works correctly. | ||
5988 | pipe_works=no | ||
5989 | |||
5990 | rm -f conftest* | ||
5991 | cat > conftest.$ac_ext <<_LT_EOF | ||
5992 | #ifdef __cplusplus | ||
5993 | extern "C" { | ||
5994 | #endif | ||
5995 | char nm_test_var; | ||
5996 | void nm_test_func(void); | ||
5997 | void nm_test_func(void){} | ||
5998 | #ifdef __cplusplus | ||
5999 | } | ||
6000 | #endif | ||
6001 | int main(){nm_test_var='a';nm_test_func();return(0);} | ||
6002 | _LT_EOF | ||
6003 | |||
6004 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | ||
6005 | (eval $ac_compile) 2>&5 | ||
6006 | ac_status=$? | ||
6007 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
6008 | test $ac_status = 0; }; then | ||
6009 | # Now try to grab the symbols. | ||
6010 | nlist=conftest.nm | ||
6011 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5 | ||
6012 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 | ||
6013 | ac_status=$? | ||
6014 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
6015 | test $ac_status = 0; } && test -s "$nlist"; then | ||
6016 | # Try sorting and uniquifying the output. | ||
6017 | if sort "$nlist" | uniq > "$nlist"T; then | ||
6018 | mv -f "$nlist"T "$nlist" | ||
6019 | else | ||
6020 | rm -f "$nlist"T | ||
6021 | fi | ||
6022 | |||
6023 | # Make sure that we snagged all the symbols we need. | ||
6024 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | ||
6025 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | ||
6026 | cat <<_LT_EOF > conftest.$ac_ext | ||
6027 | #ifdef __cplusplus | ||
6028 | extern "C" { | ||
6029 | #endif | ||
6030 | |||
6031 | _LT_EOF | ||
6032 | # Now generate the symbol file. | ||
6033 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | ||
6034 | |||
6035 | cat <<_LT_EOF >> conftest.$ac_ext | ||
6036 | |||
6037 | /* The mapping between symbol names and symbols. */ | ||
6038 | const struct { | ||
6039 | const char *name; | ||
6040 | void *address; | ||
6041 | } | ||
6042 | lt__PROGRAM__LTX_preloaded_symbols[] = | ||
6043 | { | ||
6044 | { "@PROGRAM@", (void *) 0 }, | ||
6045 | _LT_EOF | ||
6046 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | ||
6047 | cat <<\_LT_EOF >> conftest.$ac_ext | ||
6048 | {0, (void *) 0} | ||
6049 | }; | ||
6050 | |||
6051 | /* This works around a problem in FreeBSD linker */ | ||
6052 | #ifdef FREEBSD_WORKAROUND | ||
6053 | static const void *lt_preloaded_setup() { | ||
6054 | return lt__PROGRAM__LTX_preloaded_symbols; | ||
6055 | } | ||
6056 | #endif | ||
6057 | |||
6058 | #ifdef __cplusplus | ||
6059 | } | ||
6060 | #endif | ||
6061 | _LT_EOF | ||
6062 | # Now try linking the two files. | ||
6063 | mv conftest.$ac_objext conftstm.$ac_objext | ||
6064 | lt_save_LIBS="$LIBS" | ||
6065 | lt_save_CFLAGS="$CFLAGS" | ||
6066 | LIBS="conftstm.$ac_objext" | ||
6067 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | ||
6068 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | ||
6069 | (eval $ac_link) 2>&5 | ||
6070 | ac_status=$? | ||
6071 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
6072 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then | ||
6073 | pipe_works=yes | ||
6074 | fi | ||
6075 | LIBS="$lt_save_LIBS" | ||
6076 | CFLAGS="$lt_save_CFLAGS" | ||
6077 | else | ||
6078 | echo "cannot find nm_test_func in $nlist" >&5 | ||
6079 | fi | ||
6080 | else | ||
6081 | echo "cannot find nm_test_var in $nlist" >&5 | ||
6082 | fi | ||
6083 | else | ||
6084 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | ||
6085 | fi | ||
6086 | else | ||
6087 | echo "$progname: failed program was:" >&5 | ||
6088 | cat conftest.$ac_ext >&5 | ||
6089 | fi | ||
6090 | rm -rf conftest* conftst* | ||
6091 | |||
6092 | # Do not use the global_symbol_pipe unless it works. | ||
6093 | if test "$pipe_works" = yes; then | ||
6094 | break | ||
6095 | else | ||
6096 | lt_cv_sys_global_symbol_pipe= | ||
6097 | fi | ||
6098 | done | ||
6099 | |||
6100 | fi | ||
6101 | |||
6102 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | ||
6103 | lt_cv_sys_global_symbol_to_cdecl= | ||
6104 | fi | ||
6105 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | ||
6106 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 | ||
6107 | $as_echo "failed" >&6; } | ||
6108 | else | ||
6109 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | ||
6110 | $as_echo "ok" >&6; } | ||
6111 | fi | ||
6112 | |||
6113 | |||
6114 | |||
6115 | |||
6116 | |||
6117 | |||
6118 | |||
6119 | |||
6120 | |||
6121 | |||
6122 | |||
6123 | |||
6124 | |||
6125 | |||
6126 | |||
6127 | |||
6128 | |||
6129 | |||
6130 | |||
6131 | |||
6132 | |||
6133 | |||
6134 | |||
6135 | # Check whether --enable-libtool-lock was given. | ||
6136 | if test "${enable_libtool_lock+set}" = set; then : | ||
6137 | enableval=$enable_libtool_lock; | ||
6138 | fi | ||
6139 | |||
6140 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | ||
6141 | |||
6142 | # Some flags need to be propagated to the compiler or linker for good | ||
6143 | # libtool support. | ||
6144 | case $host in | ||
6145 | ia64-*-hpux*) | ||
6146 | # Find out which ABI we are using. | ||
6147 | echo 'int i;' > conftest.$ac_ext | ||
6148 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | ||
6149 | (eval $ac_compile) 2>&5 | ||
6150 | ac_status=$? | ||
6151 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
6152 | test $ac_status = 0; }; then | ||
6153 | case `/usr/bin/file conftest.$ac_objext` in | ||
6154 | *ELF-32*) | ||
6155 | HPUX_IA64_MODE="32" | ||
6156 | ;; | ||
6157 | *ELF-64*) | ||
6158 | HPUX_IA64_MODE="64" | ||
6159 | ;; | ||
6160 | esac | ||
6161 | fi | ||
6162 | rm -rf conftest* | ||
6163 | ;; | ||
6164 | *-*-irix6*) | ||
6165 | # Find out which ABI we are using. | ||
6166 | echo '#line 6166 "configure"' > conftest.$ac_ext | ||
6167 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | ||
6168 | (eval $ac_compile) 2>&5 | ||
6169 | ac_status=$? | ||
6170 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
6171 | test $ac_status = 0; }; then | ||
6172 | if test "$lt_cv_prog_gnu_ld" = yes; then | ||
6173 | case `/usr/bin/file conftest.$ac_objext` in | ||
6174 | *32-bit*) | ||
6175 | LD="${LD-ld} -melf32bsmip" | ||
6176 | ;; | ||
6177 | *N32*) | ||
6178 | LD="${LD-ld} -melf32bmipn32" | ||
6179 | ;; | ||
6180 | *64-bit*) | ||
6181 | LD="${LD-ld} -melf64bmip" | ||
6182 | ;; | ||
6183 | esac | ||
6184 | else | ||
6185 | case `/usr/bin/file conftest.$ac_objext` in | ||
6186 | *32-bit*) | ||
6187 | LD="${LD-ld} -32" | ||
6188 | ;; | ||
6189 | *N32*) | ||
6190 | LD="${LD-ld} -n32" | ||
6191 | ;; | ||
6192 | *64-bit*) | ||
6193 | LD="${LD-ld} -64" | ||
6194 | ;; | ||
6195 | esac | ||
6196 | fi | ||
6197 | fi | ||
6198 | rm -rf conftest* | ||
6199 | ;; | ||
6200 | |||
6201 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ | ||
6202 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | ||
6203 | # Find out which ABI we are using. | ||
6204 | echo 'int i;' > conftest.$ac_ext | ||
6205 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | ||
6206 | (eval $ac_compile) 2>&5 | ||
6207 | ac_status=$? | ||
6208 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
6209 | test $ac_status = 0; }; then | ||
6210 | case `/usr/bin/file conftest.o` in | ||
6211 | *32-bit*) | ||
6212 | case $host in | ||
6213 | x86_64-*kfreebsd*-gnu) | ||
6214 | LD="${LD-ld} -m elf_i386_fbsd" | ||
6215 | ;; | ||
6216 | x86_64-*linux*) | ||
6217 | LD="${LD-ld} -m elf_i386" | ||
6218 | ;; | ||
6219 | ppc64-*linux*|powerpc64-*linux*) | ||
6220 | LD="${LD-ld} -m elf32ppclinux" | ||
6221 | ;; | ||
6222 | s390x-*linux*) | ||
6223 | LD="${LD-ld} -m elf_s390" | ||
6224 | ;; | ||
6225 | sparc64-*linux*) | ||
6226 | LD="${LD-ld} -m elf32_sparc" | ||
6227 | ;; | ||
6228 | esac | ||
6229 | ;; | ||
6230 | *64-bit*) | ||
6231 | case $host in | ||
6232 | x86_64-*kfreebsd*-gnu) | ||
6233 | LD="${LD-ld} -m elf_x86_64_fbsd" | ||
6234 | ;; | ||
6235 | x86_64-*linux*) | ||
6236 | LD="${LD-ld} -m elf_x86_64" | ||
6237 | ;; | ||
6238 | ppc*-*linux*|powerpc*-*linux*) | ||
6239 | LD="${LD-ld} -m elf64ppc" | ||
6240 | ;; | ||
6241 | s390*-*linux*|s390*-*tpf*) | ||
6242 | LD="${LD-ld} -m elf64_s390" | ||
6243 | ;; | ||
6244 | sparc*-*linux*) | ||
6245 | LD="${LD-ld} -m elf64_sparc" | ||
6246 | ;; | ||
6247 | esac | ||
6248 | ;; | ||
6249 | esac | ||
6250 | fi | ||
6251 | rm -rf conftest* | ||
6252 | ;; | ||
6253 | |||
6254 | *-*-sco3.2v5*) | ||
6255 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | ||
6256 | SAVE_CFLAGS="$CFLAGS" | ||
6257 | CFLAGS="$CFLAGS -belf" | ||
6258 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 | ||
6259 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | ||
6260 | if test "${lt_cv_cc_needs_belf+set}" = set; then : | ||
6261 | $as_echo_n "(cached) " >&6 | ||
6262 | else | ||
6263 | ac_ext=c | ||
6264 | ac_cpp='$CPP $CPPFLAGS' | ||
6265 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
6266 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
6267 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
6268 | |||
6269 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6270 | /* end confdefs.h. */ | ||
6271 | |||
6272 | int | ||
6273 | main () | ||
6274 | { | ||
6275 | |||
6276 | ; | ||
6277 | return 0; | ||
6278 | } | ||
6279 | _ACEOF | ||
6280 | if ac_fn_c_try_link "$LINENO"; then : | ||
6281 | lt_cv_cc_needs_belf=yes | ||
6282 | else | ||
6283 | lt_cv_cc_needs_belf=no | ||
6284 | fi | ||
6285 | rm -f core conftest.err conftest.$ac_objext \ | ||
6286 | conftest$ac_exeext conftest.$ac_ext | ||
6287 | ac_ext=c | ||
6288 | ac_cpp='$CPP $CPPFLAGS' | ||
6289 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
6290 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
6291 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
6292 | |||
6293 | fi | ||
6294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 | ||
6295 | $as_echo "$lt_cv_cc_needs_belf" >&6; } | ||
6296 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | ||
6297 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | ||
6298 | CFLAGS="$SAVE_CFLAGS" | ||
6299 | fi | ||
6300 | ;; | ||
6301 | sparc*-*solaris*) | ||
6302 | # Find out which ABI we are using. | ||
6303 | echo 'int i;' > conftest.$ac_ext | ||
6304 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | ||
6305 | (eval $ac_compile) 2>&5 | ||
6306 | ac_status=$? | ||
6307 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
6308 | test $ac_status = 0; }; then | ||
6309 | case `/usr/bin/file conftest.o` in | ||
6310 | *64-bit*) | ||
6311 | case $lt_cv_prog_gnu_ld in | ||
6312 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | ||
6313 | *) | ||
6314 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | ||
6315 | LD="${LD-ld} -64" | ||
6316 | fi | ||
6317 | ;; | ||
6318 | esac | ||
6319 | ;; | ||
6320 | esac | ||
6321 | fi | ||
6322 | rm -rf conftest* | ||
6323 | ;; | ||
6324 | esac | ||
6325 | |||
6326 | need_locks="$enable_libtool_lock" | ||
6327 | |||
6328 | |||
6329 | case $host_os in | ||
6330 | rhapsody* | darwin*) | ||
6331 | if test -n "$ac_tool_prefix"; then | ||
6332 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | ||
6333 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | ||
6334 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
6335 | $as_echo_n "checking for $ac_word... " >&6; } | ||
6336 | if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : | ||
6337 | $as_echo_n "(cached) " >&6 | ||
6338 | else | ||
6339 | if test -n "$DSYMUTIL"; then | ||
6340 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | ||
6341 | else | ||
6342 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
6343 | for as_dir in $PATH | ||
6344 | do | ||
6345 | IFS=$as_save_IFS | ||
6346 | test -z "$as_dir" && as_dir=. | ||
6347 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
6348 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
6349 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" | ||
6350 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
6351 | break 2 | ||
6352 | fi | ||
6353 | done | ||
6354 | done | ||
6355 | IFS=$as_save_IFS | ||
6356 | |||
6357 | fi | ||
6358 | fi | ||
6359 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | ||
6360 | if test -n "$DSYMUTIL"; then | ||
6361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | ||
6362 | $as_echo "$DSYMUTIL" >&6; } | ||
6363 | else | ||
6364 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6365 | $as_echo "no" >&6; } | ||
6366 | fi | ||
6367 | |||
6368 | |||
6369 | fi | ||
6370 | if test -z "$ac_cv_prog_DSYMUTIL"; then | ||
6371 | ac_ct_DSYMUTIL=$DSYMUTIL | ||
6372 | # Extract the first word of "dsymutil", so it can be a program name with args. | ||
6373 | set dummy dsymutil; ac_word=$2 | ||
6374 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
6375 | $as_echo_n "checking for $ac_word... " >&6; } | ||
6376 | if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : | ||
6377 | $as_echo_n "(cached) " >&6 | ||
6378 | else | ||
6379 | if test -n "$ac_ct_DSYMUTIL"; then | ||
6380 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | ||
6381 | else | ||
6382 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
6383 | for as_dir in $PATH | ||
6384 | do | ||
6385 | IFS=$as_save_IFS | ||
6386 | test -z "$as_dir" && as_dir=. | ||
6387 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
6388 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
6389 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" | ||
6390 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
6391 | break 2 | ||
6392 | fi | ||
6393 | done | ||
6394 | done | ||
6395 | IFS=$as_save_IFS | ||
6396 | |||
6397 | fi | ||
6398 | fi | ||
6399 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL | ||
6400 | if test -n "$ac_ct_DSYMUTIL"; then | ||
6401 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 | ||
6402 | $as_echo "$ac_ct_DSYMUTIL" >&6; } | ||
6403 | else | ||
6404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6405 | $as_echo "no" >&6; } | ||
6406 | fi | ||
6407 | |||
6408 | if test "x$ac_ct_DSYMUTIL" = x; then | ||
6409 | DSYMUTIL=":" | ||
6410 | else | ||
6411 | case $cross_compiling:$ac_tool_warned in | ||
6412 | yes:) | ||
6413 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
6414 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
6415 | ac_tool_warned=yes ;; | ||
6416 | esac | ||
6417 | DSYMUTIL=$ac_ct_DSYMUTIL | ||
6418 | fi | ||
6419 | else | ||
6420 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" | ||
6421 | fi | ||
6422 | |||
6423 | if test -n "$ac_tool_prefix"; then | ||
6424 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | ||
6425 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | ||
6426 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
6427 | $as_echo_n "checking for $ac_word... " >&6; } | ||
6428 | if test "${ac_cv_prog_NMEDIT+set}" = set; then : | ||
6429 | $as_echo_n "(cached) " >&6 | ||
6430 | else | ||
6431 | if test -n "$NMEDIT"; then | ||
6432 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | ||
6433 | else | ||
6434 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
6435 | for as_dir in $PATH | ||
6436 | do | ||
6437 | IFS=$as_save_IFS | ||
6438 | test -z "$as_dir" && as_dir=. | ||
6439 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
6440 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
6441 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" | ||
6442 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
6443 | break 2 | ||
6444 | fi | ||
6445 | done | ||
6446 | done | ||
6447 | IFS=$as_save_IFS | ||
6448 | |||
6449 | fi | ||
6450 | fi | ||
6451 | NMEDIT=$ac_cv_prog_NMEDIT | ||
6452 | if test -n "$NMEDIT"; then | ||
6453 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 | ||
6454 | $as_echo "$NMEDIT" >&6; } | ||
6455 | else | ||
6456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6457 | $as_echo "no" >&6; } | ||
6458 | fi | ||
6459 | |||
6460 | |||
6461 | fi | ||
6462 | if test -z "$ac_cv_prog_NMEDIT"; then | ||
6463 | ac_ct_NMEDIT=$NMEDIT | ||
6464 | # Extract the first word of "nmedit", so it can be a program name with args. | ||
6465 | set dummy nmedit; ac_word=$2 | ||
6466 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
6467 | $as_echo_n "checking for $ac_word... " >&6; } | ||
6468 | if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : | ||
6469 | $as_echo_n "(cached) " >&6 | ||
6470 | else | ||
6471 | if test -n "$ac_ct_NMEDIT"; then | ||
6472 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | ||
6473 | else | ||
6474 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
6475 | for as_dir in $PATH | ||
6476 | do | ||
6477 | IFS=$as_save_IFS | ||
6478 | test -z "$as_dir" && as_dir=. | ||
6479 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
6480 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
6481 | ac_cv_prog_ac_ct_NMEDIT="nmedit" | ||
6482 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
6483 | break 2 | ||
6484 | fi | ||
6485 | done | ||
6486 | done | ||
6487 | IFS=$as_save_IFS | ||
6488 | |||
6489 | fi | ||
6490 | fi | ||
6491 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT | ||
6492 | if test -n "$ac_ct_NMEDIT"; then | ||
6493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 | ||
6494 | $as_echo "$ac_ct_NMEDIT" >&6; } | ||
6495 | else | ||
6496 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6497 | $as_echo "no" >&6; } | ||
6498 | fi | ||
6499 | |||
6500 | if test "x$ac_ct_NMEDIT" = x; then | ||
6501 | NMEDIT=":" | ||
6502 | else | ||
6503 | case $cross_compiling:$ac_tool_warned in | ||
6504 | yes:) | ||
6505 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
6506 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
6507 | ac_tool_warned=yes ;; | ||
6508 | esac | ||
6509 | NMEDIT=$ac_ct_NMEDIT | ||
6510 | fi | ||
6511 | else | ||
6512 | NMEDIT="$ac_cv_prog_NMEDIT" | ||
6513 | fi | ||
6514 | |||
6515 | if test -n "$ac_tool_prefix"; then | ||
6516 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | ||
6517 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | ||
6518 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
6519 | $as_echo_n "checking for $ac_word... " >&6; } | ||
6520 | if test "${ac_cv_prog_LIPO+set}" = set; then : | ||
6521 | $as_echo_n "(cached) " >&6 | ||
6522 | else | ||
6523 | if test -n "$LIPO"; then | ||
6524 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | ||
6525 | else | ||
6526 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
6527 | for as_dir in $PATH | ||
6528 | do | ||
6529 | IFS=$as_save_IFS | ||
6530 | test -z "$as_dir" && as_dir=. | ||
6531 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
6532 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
6533 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" | ||
6534 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
6535 | break 2 | ||
6536 | fi | ||
6537 | done | ||
6538 | done | ||
6539 | IFS=$as_save_IFS | ||
6540 | |||
6541 | fi | ||
6542 | fi | ||
6543 | LIPO=$ac_cv_prog_LIPO | ||
6544 | if test -n "$LIPO"; then | ||
6545 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 | ||
6546 | $as_echo "$LIPO" >&6; } | ||
6547 | else | ||
6548 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6549 | $as_echo "no" >&6; } | ||
6550 | fi | ||
6551 | |||
6552 | |||
6553 | fi | ||
6554 | if test -z "$ac_cv_prog_LIPO"; then | ||
6555 | ac_ct_LIPO=$LIPO | ||
6556 | # Extract the first word of "lipo", so it can be a program name with args. | ||
6557 | set dummy lipo; ac_word=$2 | ||
6558 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
6559 | $as_echo_n "checking for $ac_word... " >&6; } | ||
6560 | if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then : | ||
6561 | $as_echo_n "(cached) " >&6 | ||
6562 | else | ||
6563 | if test -n "$ac_ct_LIPO"; then | ||
6564 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | ||
6565 | else | ||
6566 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
6567 | for as_dir in $PATH | ||
6568 | do | ||
6569 | IFS=$as_save_IFS | ||
6570 | test -z "$as_dir" && as_dir=. | ||
6571 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
6572 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
6573 | ac_cv_prog_ac_ct_LIPO="lipo" | ||
6574 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
6575 | break 2 | ||
6576 | fi | ||
6577 | done | ||
6578 | done | ||
6579 | IFS=$as_save_IFS | ||
6580 | |||
6581 | fi | ||
6582 | fi | ||
6583 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | ||
6584 | if test -n "$ac_ct_LIPO"; then | ||
6585 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 | ||
6586 | $as_echo "$ac_ct_LIPO" >&6; } | ||
6587 | else | ||
6588 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6589 | $as_echo "no" >&6; } | ||
6590 | fi | ||
6591 | |||
6592 | if test "x$ac_ct_LIPO" = x; then | ||
6593 | LIPO=":" | ||
6594 | else | ||
6595 | case $cross_compiling:$ac_tool_warned in | ||
6596 | yes:) | ||
6597 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
6598 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
6599 | ac_tool_warned=yes ;; | ||
6600 | esac | ||
6601 | LIPO=$ac_ct_LIPO | ||
6602 | fi | ||
6603 | else | ||
6604 | LIPO="$ac_cv_prog_LIPO" | ||
6605 | fi | ||
6606 | |||
6607 | if test -n "$ac_tool_prefix"; then | ||
6608 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | ||
6609 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | ||
6610 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
6611 | $as_echo_n "checking for $ac_word... " >&6; } | ||
6612 | if test "${ac_cv_prog_OTOOL+set}" = set; then : | ||
6613 | $as_echo_n "(cached) " >&6 | ||
6614 | else | ||
6615 | if test -n "$OTOOL"; then | ||
6616 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | ||
6617 | else | ||
6618 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
6619 | for as_dir in $PATH | ||
6620 | do | ||
6621 | IFS=$as_save_IFS | ||
6622 | test -z "$as_dir" && as_dir=. | ||
6623 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
6624 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
6625 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" | ||
6626 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
6627 | break 2 | ||
6628 | fi | ||
6629 | done | ||
6630 | done | ||
6631 | IFS=$as_save_IFS | ||
6632 | |||
6633 | fi | ||
6634 | fi | ||
6635 | OTOOL=$ac_cv_prog_OTOOL | ||
6636 | if test -n "$OTOOL"; then | ||
6637 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | ||
6638 | $as_echo "$OTOOL" >&6; } | ||
6639 | else | ||
6640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6641 | $as_echo "no" >&6; } | ||
6642 | fi | ||
6643 | |||
6644 | |||
6645 | fi | ||
6646 | if test -z "$ac_cv_prog_OTOOL"; then | ||
6647 | ac_ct_OTOOL=$OTOOL | ||
6648 | # Extract the first word of "otool", so it can be a program name with args. | ||
6649 | set dummy otool; ac_word=$2 | ||
6650 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
6651 | $as_echo_n "checking for $ac_word... " >&6; } | ||
6652 | if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then : | ||
6653 | $as_echo_n "(cached) " >&6 | ||
6654 | else | ||
6655 | if test -n "$ac_ct_OTOOL"; then | ||
6656 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | ||
6657 | else | ||
6658 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
6659 | for as_dir in $PATH | ||
6660 | do | ||
6661 | IFS=$as_save_IFS | ||
6662 | test -z "$as_dir" && as_dir=. | ||
6663 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
6664 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
6665 | ac_cv_prog_ac_ct_OTOOL="otool" | ||
6666 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
6667 | break 2 | ||
6668 | fi | ||
6669 | done | ||
6670 | done | ||
6671 | IFS=$as_save_IFS | ||
6672 | |||
6673 | fi | ||
6674 | fi | ||
6675 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | ||
6676 | if test -n "$ac_ct_OTOOL"; then | ||
6677 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 | ||
6678 | $as_echo "$ac_ct_OTOOL" >&6; } | ||
6679 | else | ||
6680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6681 | $as_echo "no" >&6; } | ||
6682 | fi | ||
6683 | |||
6684 | if test "x$ac_ct_OTOOL" = x; then | ||
6685 | OTOOL=":" | ||
6686 | else | ||
6687 | case $cross_compiling:$ac_tool_warned in | ||
6688 | yes:) | ||
6689 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
6690 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
6691 | ac_tool_warned=yes ;; | ||
6692 | esac | ||
6693 | OTOOL=$ac_ct_OTOOL | ||
6694 | fi | ||
6695 | else | ||
6696 | OTOOL="$ac_cv_prog_OTOOL" | ||
6697 | fi | ||
6698 | |||
6699 | if test -n "$ac_tool_prefix"; then | ||
6700 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | ||
6701 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | ||
6702 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
6703 | $as_echo_n "checking for $ac_word... " >&6; } | ||
6704 | if test "${ac_cv_prog_OTOOL64+set}" = set; then : | ||
6705 | $as_echo_n "(cached) " >&6 | ||
6706 | else | ||
6707 | if test -n "$OTOOL64"; then | ||
6708 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | ||
6709 | else | ||
6710 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
6711 | for as_dir in $PATH | ||
6712 | do | ||
6713 | IFS=$as_save_IFS | ||
6714 | test -z "$as_dir" && as_dir=. | ||
6715 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
6716 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
6717 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" | ||
6718 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
6719 | break 2 | ||
6720 | fi | ||
6721 | done | ||
6722 | done | ||
6723 | IFS=$as_save_IFS | ||
6724 | |||
6725 | fi | ||
6726 | fi | ||
6727 | OTOOL64=$ac_cv_prog_OTOOL64 | ||
6728 | if test -n "$OTOOL64"; then | ||
6729 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 | ||
6730 | $as_echo "$OTOOL64" >&6; } | ||
6731 | else | ||
6732 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6733 | $as_echo "no" >&6; } | ||
6734 | fi | ||
6735 | |||
6736 | |||
6737 | fi | ||
6738 | if test -z "$ac_cv_prog_OTOOL64"; then | ||
6739 | ac_ct_OTOOL64=$OTOOL64 | ||
6740 | # Extract the first word of "otool64", so it can be a program name with args. | ||
6741 | set dummy otool64; ac_word=$2 | ||
6742 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
6743 | $as_echo_n "checking for $ac_word... " >&6; } | ||
6744 | if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then : | ||
6745 | $as_echo_n "(cached) " >&6 | ||
6746 | else | ||
6747 | if test -n "$ac_ct_OTOOL64"; then | ||
6748 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | ||
6749 | else | ||
6750 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
6751 | for as_dir in $PATH | ||
6752 | do | ||
6753 | IFS=$as_save_IFS | ||
6754 | test -z "$as_dir" && as_dir=. | ||
6755 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
6756 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
6757 | ac_cv_prog_ac_ct_OTOOL64="otool64" | ||
6758 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
6759 | break 2 | ||
6760 | fi | ||
6761 | done | ||
6762 | done | ||
6763 | IFS=$as_save_IFS | ||
6764 | |||
6765 | fi | ||
6766 | fi | ||
6767 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | ||
6768 | if test -n "$ac_ct_OTOOL64"; then | ||
6769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 | ||
6770 | $as_echo "$ac_ct_OTOOL64" >&6; } | ||
6771 | else | ||
6772 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6773 | $as_echo "no" >&6; } | ||
6774 | fi | ||
6775 | |||
6776 | if test "x$ac_ct_OTOOL64" = x; then | ||
6777 | OTOOL64=":" | ||
6778 | else | ||
6779 | case $cross_compiling:$ac_tool_warned in | ||
6780 | yes:) | ||
6781 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
6782 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
6783 | ac_tool_warned=yes ;; | ||
6784 | esac | ||
6785 | OTOOL64=$ac_ct_OTOOL64 | ||
6786 | fi | ||
6787 | else | ||
6788 | OTOOL64="$ac_cv_prog_OTOOL64" | ||
6789 | fi | ||
6790 | |||
6791 | |||
6792 | |||
6793 | |||
6794 | |||
6795 | |||
6796 | |||
6797 | |||
6798 | |||
6799 | |||
6800 | |||
6801 | |||
6802 | |||
6803 | |||
6804 | |||
6805 | |||
6806 | |||
6807 | |||
6808 | |||
6809 | |||
6810 | |||
6811 | |||
6812 | |||
6813 | |||
6814 | |||
6815 | |||
6816 | |||
6817 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 | ||
6818 | $as_echo_n "checking for -single_module linker flag... " >&6; } | ||
6819 | if test "${lt_cv_apple_cc_single_mod+set}" = set; then : | ||
6820 | $as_echo_n "(cached) " >&6 | ||
6821 | else | ||
6822 | lt_cv_apple_cc_single_mod=no | ||
6823 | if test -z "${LT_MULTI_MODULE}"; then | ||
6824 | # By default we will add the -single_module flag. You can override | ||
6825 | # by either setting the environment variable LT_MULTI_MODULE | ||
6826 | # non-empty at configure time, or by adding -multi_module to the | ||
6827 | # link flags. | ||
6828 | rm -rf libconftest.dylib* | ||
6829 | echo "int foo(void){return 1;}" > conftest.c | ||
6830 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | ||
6831 | -dynamiclib -Wl,-single_module conftest.c" >&5 | ||
6832 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | ||
6833 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | ||
6834 | _lt_result=$? | ||
6835 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then | ||
6836 | lt_cv_apple_cc_single_mod=yes | ||
6837 | else | ||
6838 | cat conftest.err >&5 | ||
6839 | fi | ||
6840 | rm -rf libconftest.dylib* | ||
6841 | rm -f conftest.* | ||
6842 | fi | ||
6843 | fi | ||
6844 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 | ||
6845 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | ||
6846 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 | ||
6847 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | ||
6848 | if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : | ||
6849 | $as_echo_n "(cached) " >&6 | ||
6850 | else | ||
6851 | lt_cv_ld_exported_symbols_list=no | ||
6852 | save_LDFLAGS=$LDFLAGS | ||
6853 | echo "_main" > conftest.sym | ||
6854 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | ||
6855 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6856 | /* end confdefs.h. */ | ||
6857 | |||
6858 | int | ||
6859 | main () | ||
6860 | { | ||
6861 | |||
6862 | ; | ||
6863 | return 0; | ||
6864 | } | ||
6865 | _ACEOF | ||
6866 | if ac_fn_c_try_link "$LINENO"; then : | ||
6867 | lt_cv_ld_exported_symbols_list=yes | ||
6868 | else | ||
6869 | lt_cv_ld_exported_symbols_list=no | ||
6870 | fi | ||
6871 | rm -f core conftest.err conftest.$ac_objext \ | ||
6872 | conftest$ac_exeext conftest.$ac_ext | ||
6873 | LDFLAGS="$save_LDFLAGS" | ||
6874 | |||
6875 | fi | ||
6876 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 | ||
6877 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | ||
6878 | case $host_os in | ||
6879 | rhapsody* | darwin1.[012]) | ||
6880 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | ||
6881 | darwin1.*) | ||
6882 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | ||
6883 | darwin*) # darwin 5.x on | ||
6884 | # if running on 10.5 or later, the deployment target defaults | ||
6885 | # to the OS version, if on x86, and 10.4, the deployment | ||
6886 | # target defaults to 10.4. Don't you love it? | ||
6887 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | ||
6888 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | ||
6889 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | ||
6890 | 10.[012]*) | ||
6891 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | ||
6892 | 10.*) | ||
6893 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | ||
6894 | esac | ||
6895 | ;; | ||
6896 | esac | ||
6897 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then | ||
6898 | _lt_dar_single_mod='$single_module' | ||
6899 | fi | ||
6900 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | ||
6901 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | ||
6902 | else | ||
6903 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | ||
6904 | fi | ||
6905 | if test "$DSYMUTIL" != ":"; then | ||
6906 | _lt_dsymutil='~$DSYMUTIL $lib || :' | ||
6907 | else | ||
6908 | _lt_dsymutil= | ||
6909 | fi | ||
6910 | ;; | ||
6911 | esac | ||
6912 | |||
6913 | ac_ext=c | ||
6914 | ac_cpp='$CPP $CPPFLAGS' | ||
6915 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
6916 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
6917 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
6918 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | ||
6919 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | ||
6920 | # On Suns, sometimes $CPP names a directory. | ||
6921 | if test -n "$CPP" && test -d "$CPP"; then | ||
6922 | CPP= | ||
6923 | fi | ||
6924 | if test -z "$CPP"; then | ||
6925 | if test "${ac_cv_prog_CPP+set}" = set; then : | ||
6926 | $as_echo_n "(cached) " >&6 | ||
6927 | else | ||
6928 | # Double quotes because CPP needs to be expanded | ||
6929 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | ||
6930 | do | ||
6931 | ac_preproc_ok=false | ||
6932 | for ac_c_preproc_warn_flag in '' yes | ||
6933 | do | ||
6934 | # Use a header file that comes with gcc, so configuring glibc | ||
6935 | # with a fresh cross-compiler works. | ||
6936 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
6937 | # <limits.h> exists even on freestanding compilers. | ||
6938 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
6939 | # not just through cpp. "Syntax error" is here to catch this case. | ||
6940 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6941 | /* end confdefs.h. */ | ||
6942 | #ifdef __STDC__ | ||
6943 | # include <limits.h> | ||
6944 | #else | ||
6945 | # include <assert.h> | ||
6946 | #endif | ||
6947 | Syntax error | ||
6948 | _ACEOF | ||
6949 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
6950 | |||
6951 | else | ||
6952 | # Broken: fails on valid input. | ||
6953 | continue | ||
6954 | fi | ||
6955 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
6956 | |||
6957 | # OK, works on sane cases. Now check whether nonexistent headers | ||
6958 | # can be detected and how. | ||
6959 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6960 | /* end confdefs.h. */ | ||
6961 | #include <ac_nonexistent.h> | ||
6962 | _ACEOF | ||
6963 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
6964 | # Broken: success on invalid input. | ||
6965 | continue | ||
6966 | else | ||
6967 | # Passes both tests. | ||
6968 | ac_preproc_ok=: | ||
6969 | break | ||
6970 | fi | ||
6971 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
6972 | |||
6973 | done | ||
6974 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
6975 | rm -f conftest.i conftest.err conftest.$ac_ext | ||
6976 | if $ac_preproc_ok; then : | ||
6977 | break | ||
6978 | fi | ||
6979 | |||
6980 | done | ||
6981 | ac_cv_prog_CPP=$CPP | ||
6982 | |||
6983 | fi | ||
6984 | CPP=$ac_cv_prog_CPP | ||
6985 | else | ||
6986 | ac_cv_prog_CPP=$CPP | ||
6987 | fi | ||
6988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | ||
6989 | $as_echo "$CPP" >&6; } | ||
6990 | ac_preproc_ok=false | ||
6991 | for ac_c_preproc_warn_flag in '' yes | ||
6992 | do | ||
6993 | # Use a header file that comes with gcc, so configuring glibc | ||
6994 | # with a fresh cross-compiler works. | ||
6995 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
6996 | # <limits.h> exists even on freestanding compilers. | ||
6997 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
6998 | # not just through cpp. "Syntax error" is here to catch this case. | ||
6999 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
7000 | /* end confdefs.h. */ | ||
7001 | #ifdef __STDC__ | ||
7002 | # include <limits.h> | ||
7003 | #else | ||
7004 | # include <assert.h> | ||
7005 | #endif | ||
7006 | Syntax error | ||
7007 | _ACEOF | ||
7008 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
7009 | |||
7010 | else | ||
7011 | # Broken: fails on valid input. | ||
7012 | continue | ||
7013 | fi | ||
7014 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
7015 | |||
7016 | # OK, works on sane cases. Now check whether nonexistent headers | ||
7017 | # can be detected and how. | ||
7018 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
7019 | /* end confdefs.h. */ | ||
7020 | #include <ac_nonexistent.h> | ||
7021 | _ACEOF | ||
7022 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
7023 | # Broken: success on invalid input. | ||
7024 | continue | ||
7025 | else | ||
7026 | # Passes both tests. | ||
7027 | ac_preproc_ok=: | ||
7028 | break | ||
7029 | fi | ||
7030 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
7031 | |||
7032 | done | ||
7033 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
7034 | rm -f conftest.i conftest.err conftest.$ac_ext | ||
7035 | if $ac_preproc_ok; then : | ||
7036 | |||
7037 | else | ||
7038 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
7039 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
7040 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | ||
7041 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
7042 | fi | ||
7043 | |||
7044 | ac_ext=c | ||
7045 | ac_cpp='$CPP $CPPFLAGS' | ||
7046 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
7047 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
7048 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
7049 | |||
7050 | |||
7051 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | ||
7052 | $as_echo_n "checking for ANSI C header files... " >&6; } | ||
7053 | if test "${ac_cv_header_stdc+set}" = set; then : | ||
7054 | $as_echo_n "(cached) " >&6 | ||
7055 | else | ||
7056 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
7057 | /* end confdefs.h. */ | ||
7058 | #include <stdlib.h> | ||
7059 | #include <stdarg.h> | ||
7060 | #include <string.h> | ||
7061 | #include <float.h> | ||
7062 | |||
7063 | int | ||
7064 | main () | ||
7065 | { | ||
7066 | |||
7067 | ; | ||
7068 | return 0; | ||
7069 | } | ||
7070 | _ACEOF | ||
7071 | if ac_fn_c_try_compile "$LINENO"; then : | ||
7072 | ac_cv_header_stdc=yes | ||
7073 | else | ||
7074 | ac_cv_header_stdc=no | ||
7075 | fi | ||
7076 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
7077 | |||
7078 | if test $ac_cv_header_stdc = yes; then | ||
7079 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | ||
7080 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
7081 | /* end confdefs.h. */ | ||
7082 | #include <string.h> | ||
7083 | |||
7084 | _ACEOF | ||
7085 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
7086 | $EGREP "memchr" >/dev/null 2>&1; then : | ||
7087 | |||
7088 | else | ||
7089 | ac_cv_header_stdc=no | ||
7090 | fi | ||
7091 | rm -f conftest* | ||
7092 | |||
7093 | fi | ||
7094 | |||
7095 | if test $ac_cv_header_stdc = yes; then | ||
7096 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | ||
7097 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
7098 | /* end confdefs.h. */ | ||
7099 | #include <stdlib.h> | ||
7100 | |||
7101 | _ACEOF | ||
7102 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
7103 | $EGREP "free" >/dev/null 2>&1; then : | ||
7104 | |||
7105 | else | ||
7106 | ac_cv_header_stdc=no | ||
7107 | fi | ||
7108 | rm -f conftest* | ||
7109 | |||
7110 | fi | ||
7111 | |||
7112 | if test $ac_cv_header_stdc = yes; then | ||
7113 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | ||
7114 | if test "$cross_compiling" = yes; then : | ||
7115 | : | ||
7116 | else | ||
7117 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
7118 | /* end confdefs.h. */ | ||
7119 | #include <ctype.h> | ||
7120 | #include <stdlib.h> | ||
7121 | #if ((' ' & 0x0FF) == 0x020) | ||
7122 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | ||
7123 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | ||
7124 | #else | ||
7125 | # define ISLOWER(c) \ | ||
7126 | (('a' <= (c) && (c) <= 'i') \ | ||
7127 | || ('j' <= (c) && (c) <= 'r') \ | ||
7128 | || ('s' <= (c) && (c) <= 'z')) | ||
7129 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | ||
7130 | #endif | ||
7131 | |||
7132 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | ||
7133 | int | ||
7134 | main () | ||
7135 | { | ||
7136 | int i; | ||
7137 | for (i = 0; i < 256; i++) | ||
7138 | if (XOR (islower (i), ISLOWER (i)) | ||
7139 | || toupper (i) != TOUPPER (i)) | ||
7140 | return 2; | ||
7141 | return 0; | ||
7142 | } | ||
7143 | _ACEOF | ||
7144 | if ac_fn_c_try_run "$LINENO"; then : | ||
7145 | |||
7146 | else | ||
7147 | ac_cv_header_stdc=no | ||
7148 | fi | ||
7149 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
7150 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
7151 | fi | ||
7152 | |||
7153 | fi | ||
7154 | fi | ||
7155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | ||
7156 | $as_echo "$ac_cv_header_stdc" >&6; } | ||
7157 | if test $ac_cv_header_stdc = yes; then | ||
7158 | |||
7159 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | ||
7160 | |||
7161 | fi | ||
7162 | |||
7163 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | ||
7164 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | ||
7165 | inttypes.h stdint.h unistd.h | ||
7166 | do : | ||
7167 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
7168 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | ||
7169 | " | ||
7170 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | ||
7171 | cat >>confdefs.h <<_ACEOF | ||
7172 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
7173 | _ACEOF | ||
7174 | |||
7175 | fi | ||
7176 | |||
7177 | done | ||
7178 | |||
7179 | |||
7180 | for ac_header in dlfcn.h | ||
7181 | do : | ||
7182 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | ||
7183 | " | ||
7184 | if test "x$ac_cv_header_dlfcn_h" = x""yes; then : | ||
7185 | cat >>confdefs.h <<_ACEOF | ||
7186 | #define HAVE_DLFCN_H 1 | ||
7187 | _ACEOF | ||
7188 | |||
7189 | fi | ||
7190 | |||
7191 | done | ||
7192 | |||
7193 | |||
7194 | |||
7195 | # Set options | ||
7196 | |||
7197 | |||
7198 | |||
7199 | enable_dlopen=no | ||
7200 | |||
7201 | |||
7202 | |||
7203 | # Check whether --enable-shared was given. | ||
7204 | if test "${enable_shared+set}" = set; then : | ||
7205 | enableval=$enable_shared; p=${PACKAGE-default} | ||
7206 | case $enableval in | ||
7207 | yes) enable_shared=yes ;; | ||
7208 | no) enable_shared=no ;; | ||
7209 | *) | ||
7210 | enable_shared=no | ||
7211 | # Look at the argument we got. We use all the common list separators. | ||
7212 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | ||
7213 | for pkg in $enableval; do | ||
7214 | IFS="$lt_save_ifs" | ||
7215 | if test "X$pkg" = "X$p"; then | ||
7216 | enable_shared=yes | ||
7217 | fi | ||
7218 | done | ||
7219 | IFS="$lt_save_ifs" | ||
7220 | ;; | ||
7221 | esac | ||
7222 | else | ||
7223 | enable_shared=yes | ||
7224 | fi | ||
7225 | |||
7226 | |||
7227 | |||
7228 | |||
7229 | |||
7230 | |||
7231 | |||
7232 | |||
7233 | |||
7234 | # Check whether --enable-static was given. | ||
7235 | if test "${enable_static+set}" = set; then : | ||
7236 | enableval=$enable_static; p=${PACKAGE-default} | ||
7237 | case $enableval in | ||
7238 | yes) enable_static=yes ;; | ||
7239 | no) enable_static=no ;; | ||
7240 | *) | ||
7241 | enable_static=no | ||
7242 | # Look at the argument we got. We use all the common list separators. | ||
7243 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | ||
7244 | for pkg in $enableval; do | ||
7245 | IFS="$lt_save_ifs" | ||
7246 | if test "X$pkg" = "X$p"; then | ||
7247 | enable_static=yes | ||
7248 | fi | ||
7249 | done | ||
7250 | IFS="$lt_save_ifs" | ||
7251 | ;; | ||
7252 | esac | ||
7253 | else | ||
7254 | enable_static=yes | ||
7255 | fi | ||
7256 | |||
7257 | |||
7258 | |||
7259 | |||
7260 | |||
7261 | |||
7262 | |||
7263 | |||
7264 | |||
7265 | |||
7266 | # Check whether --with-pic was given. | ||
7267 | if test "${with_pic+set}" = set; then : | ||
7268 | withval=$with_pic; pic_mode="$withval" | ||
7269 | else | ||
7270 | pic_mode=default | ||
7271 | fi | ||
7272 | |||
7273 | |||
7274 | test -z "$pic_mode" && pic_mode=default | ||
7275 | |||
7276 | |||
7277 | |||
7278 | |||
7279 | |||
7280 | |||
7281 | |||
7282 | # Check whether --enable-fast-install was given. | ||
7283 | if test "${enable_fast_install+set}" = set; then : | ||
7284 | enableval=$enable_fast_install; p=${PACKAGE-default} | ||
7285 | case $enableval in | ||
7286 | yes) enable_fast_install=yes ;; | ||
7287 | no) enable_fast_install=no ;; | ||
7288 | *) | ||
7289 | enable_fast_install=no | ||
7290 | # Look at the argument we got. We use all the common list separators. | ||
7291 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | ||
7292 | for pkg in $enableval; do | ||
7293 | IFS="$lt_save_ifs" | ||
7294 | if test "X$pkg" = "X$p"; then | ||
7295 | enable_fast_install=yes | ||
7296 | fi | ||
7297 | done | ||
7298 | IFS="$lt_save_ifs" | ||
7299 | ;; | ||
7300 | esac | ||
7301 | else | ||
7302 | enable_fast_install=yes | ||
7303 | fi | ||
7304 | |||
7305 | |||
7306 | |||
7307 | |||
7308 | |||
7309 | |||
7310 | |||
7311 | |||
7312 | |||
7313 | |||
7314 | |||
7315 | # This can be used to rebuild libtool when needed | ||
7316 | LIBTOOL_DEPS="$ltmain" | ||
7317 | |||
7318 | # Always use our own libtool. | ||
7319 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | ||
7320 | |||
7321 | |||
7322 | |||
7323 | |||
7324 | |||
7325 | |||
7326 | |||
7327 | |||
7328 | |||
7329 | |||
7330 | |||
7331 | |||
7332 | |||
7333 | |||
7334 | |||
7335 | |||
7336 | |||
7337 | |||
7338 | |||
7339 | |||
7340 | |||
7341 | |||
7342 | |||
7343 | |||
7344 | |||
7345 | test -z "$LN_S" && LN_S="ln -s" | ||
7346 | |||
7347 | |||
7348 | |||
7349 | |||
7350 | |||
7351 | |||
7352 | |||
7353 | |||
7354 | |||
7355 | |||
7356 | |||
7357 | |||
7358 | |||
7359 | |||
7360 | if test -n "${ZSH_VERSION+set}" ; then | ||
7361 | setopt NO_GLOB_SUBST | ||
7362 | fi | ||
7363 | |||
7364 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 | ||
7365 | $as_echo_n "checking for objdir... " >&6; } | ||
7366 | if test "${lt_cv_objdir+set}" = set; then : | ||
7367 | $as_echo_n "(cached) " >&6 | ||
7368 | else | ||
7369 | rm -f .libs 2>/dev/null | ||
7370 | mkdir .libs 2>/dev/null | ||
7371 | if test -d .libs; then | ||
7372 | lt_cv_objdir=.libs | ||
7373 | else | ||
7374 | # MS-DOS does not allow filenames that begin with a dot. | ||
7375 | lt_cv_objdir=_libs | ||
7376 | fi | ||
7377 | rmdir .libs 2>/dev/null | ||
7378 | fi | ||
7379 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | ||
7380 | $as_echo "$lt_cv_objdir" >&6; } | ||
7381 | objdir=$lt_cv_objdir | ||
7382 | |||
7383 | |||
7384 | |||
7385 | |||
7386 | |||
7387 | cat >>confdefs.h <<_ACEOF | ||
7388 | #define LT_OBJDIR "$lt_cv_objdir/" | ||
7389 | _ACEOF | ||
7390 | |||
7391 | |||
7392 | |||
7393 | |||
7394 | |||
7395 | |||
7396 | |||
7397 | |||
7398 | |||
7399 | |||
7400 | |||
7401 | |||
7402 | |||
7403 | |||
7404 | |||
7405 | |||
7406 | |||
7407 | case $host_os in | ||
7408 | aix3*) | ||
7409 | # AIX sometimes has problems with the GCC collect2 program. For some | ||
7410 | # reason, if we set the COLLECT_NAMES environment variable, the problems | ||
7411 | # vanish in a puff of smoke. | ||
7412 | if test "X${COLLECT_NAMES+set}" != Xset; then | ||
7413 | COLLECT_NAMES= | ||
7414 | export COLLECT_NAMES | ||
7415 | fi | ||
7416 | ;; | ||
7417 | esac | ||
7418 | |||
7419 | # Sed substitution that helps us do robust quoting. It backslashifies | ||
7420 | # metacharacters that are still active within double-quoted strings. | ||
7421 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | ||
7422 | |||
7423 | # Same as above, but do not quote variable references. | ||
7424 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | ||
7425 | |||
7426 | # Sed substitution to delay expansion of an escaped shell variable in a | ||
7427 | # double_quote_subst'ed string. | ||
7428 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | ||
7429 | |||
7430 | # Sed substitution to delay expansion of an escaped single quote. | ||
7431 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | ||
7432 | |||
7433 | # Sed substitution to avoid accidental globbing in evaled expressions | ||
7434 | no_glob_subst='s/\*/\\\*/g' | ||
7435 | |||
7436 | # Global variables: | ||
7437 | ofile=libtool | ||
7438 | can_build_shared=yes | ||
7439 | |||
7440 | # All known linkers require a `.a' archive for static linking (except MSVC, | ||
7441 | # which needs '.lib'). | ||
7442 | libext=a | ||
7443 | |||
7444 | with_gnu_ld="$lt_cv_prog_gnu_ld" | ||
7445 | |||
7446 | old_CC="$CC" | ||
7447 | old_CFLAGS="$CFLAGS" | ||
7448 | |||
7449 | # Set sane defaults for various variables | ||
7450 | test -z "$CC" && CC=cc | ||
7451 | test -z "$LTCC" && LTCC=$CC | ||
7452 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | ||
7453 | test -z "$LD" && LD=ld | ||
7454 | test -z "$ac_objext" && ac_objext=o | ||
7455 | |||
7456 | for cc_temp in $compiler""; do | ||
7457 | case $cc_temp in | ||
7458 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | ||
7459 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | ||
7460 | \-*) ;; | ||
7461 | *) break;; | ||
7462 | esac | ||
7463 | done | ||
7464 | cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | ||
7465 | |||
7466 | |||
7467 | # Only perform the check for file, if the check method requires it | ||
7468 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | ||
7469 | case $deplibs_check_method in | ||
7470 | file_magic*) | ||
7471 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | ||
7472 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 | ||
7473 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | ||
7474 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : | ||
7475 | $as_echo_n "(cached) " >&6 | ||
7476 | else | ||
7477 | case $MAGIC_CMD in | ||
7478 | [\\/*] | ?:[\\/]*) | ||
7479 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | ||
7480 | ;; | ||
7481 | *) | ||
7482 | lt_save_MAGIC_CMD="$MAGIC_CMD" | ||
7483 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | ||
7484 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | ||
7485 | for ac_dir in $ac_dummy; do | ||
7486 | IFS="$lt_save_ifs" | ||
7487 | test -z "$ac_dir" && ac_dir=. | ||
7488 | if test -f $ac_dir/${ac_tool_prefix}file; then | ||
7489 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | ||
7490 | if test -n "$file_magic_test_file"; then | ||
7491 | case $deplibs_check_method in | ||
7492 | "file_magic "*) | ||
7493 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | ||
7494 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | ||
7495 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | ||
7496 | $EGREP "$file_magic_regex" > /dev/null; then | ||
7497 | : | ||
7498 | else | ||
7499 | cat <<_LT_EOF 1>&2 | ||
7500 | |||
7501 | *** Warning: the command libtool uses to detect shared libraries, | ||
7502 | *** $file_magic_cmd, produces output that libtool cannot recognize. | ||
7503 | *** The result is that libtool may fail to recognize shared libraries | ||
7504 | *** as such. This will affect the creation of libtool libraries that | ||
7505 | *** depend on shared libraries, but programs linked with such libtool | ||
7506 | *** libraries will work regardless of this problem. Nevertheless, you | ||
7507 | *** may want to report the problem to your system manager and/or to | ||
7508 | *** bug-libtool@gnu.org | ||
7509 | |||
7510 | _LT_EOF | ||
7511 | fi ;; | ||
7512 | esac | ||
7513 | fi | ||
7514 | break | ||
7515 | fi | ||
7516 | done | ||
7517 | IFS="$lt_save_ifs" | ||
7518 | MAGIC_CMD="$lt_save_MAGIC_CMD" | ||
7519 | ;; | ||
7520 | esac | ||
7521 | fi | ||
7522 | |||
7523 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | ||
7524 | if test -n "$MAGIC_CMD"; then | ||
7525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | ||
7526 | $as_echo "$MAGIC_CMD" >&6; } | ||
7527 | else | ||
7528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
7529 | $as_echo "no" >&6; } | ||
7530 | fi | ||
7531 | |||
7532 | |||
7533 | |||
7534 | |||
7535 | |||
7536 | if test -z "$lt_cv_path_MAGIC_CMD"; then | ||
7537 | if test -n "$ac_tool_prefix"; then | ||
7538 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 | ||
7539 | $as_echo_n "checking for file... " >&6; } | ||
7540 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : | ||
7541 | $as_echo_n "(cached) " >&6 | ||
7542 | else | ||
7543 | case $MAGIC_CMD in | ||
7544 | [\\/*] | ?:[\\/]*) | ||
7545 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | ||
7546 | ;; | ||
7547 | *) | ||
7548 | lt_save_MAGIC_CMD="$MAGIC_CMD" | ||
7549 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | ||
7550 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | ||
7551 | for ac_dir in $ac_dummy; do | ||
7552 | IFS="$lt_save_ifs" | ||
7553 | test -z "$ac_dir" && ac_dir=. | ||
7554 | if test -f $ac_dir/file; then | ||
7555 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | ||
7556 | if test -n "$file_magic_test_file"; then | ||
7557 | case $deplibs_check_method in | ||
7558 | "file_magic "*) | ||
7559 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | ||
7560 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | ||
7561 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | ||
7562 | $EGREP "$file_magic_regex" > /dev/null; then | ||
7563 | : | ||
7564 | else | ||
7565 | cat <<_LT_EOF 1>&2 | ||
7566 | |||
7567 | *** Warning: the command libtool uses to detect shared libraries, | ||
7568 | *** $file_magic_cmd, produces output that libtool cannot recognize. | ||
7569 | *** The result is that libtool may fail to recognize shared libraries | ||
7570 | *** as such. This will affect the creation of libtool libraries that | ||
7571 | *** depend on shared libraries, but programs linked with such libtool | ||
7572 | *** libraries will work regardless of this problem. Nevertheless, you | ||
7573 | *** may want to report the problem to your system manager and/or to | ||
7574 | *** bug-libtool@gnu.org | ||
7575 | |||
7576 | _LT_EOF | ||
7577 | fi ;; | ||
7578 | esac | ||
7579 | fi | ||
7580 | break | ||
7581 | fi | ||
7582 | done | ||
7583 | IFS="$lt_save_ifs" | ||
7584 | MAGIC_CMD="$lt_save_MAGIC_CMD" | ||
7585 | ;; | ||
7586 | esac | ||
7587 | fi | ||
7588 | |||
7589 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | ||
7590 | if test -n "$MAGIC_CMD"; then | ||
7591 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | ||
7592 | $as_echo "$MAGIC_CMD" >&6; } | ||
7593 | else | ||
7594 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
7595 | $as_echo "no" >&6; } | ||
7596 | fi | ||
7597 | |||
7598 | |||
7599 | else | ||
7600 | MAGIC_CMD=: | ||
7601 | fi | ||
7602 | fi | ||
7603 | |||
7604 | fi | ||
7605 | ;; | ||
7606 | esac | ||
7607 | |||
7608 | # Use C for the default configuration in the libtool script | ||
7609 | |||
7610 | lt_save_CC="$CC" | ||
7611 | ac_ext=c | ||
7612 | ac_cpp='$CPP $CPPFLAGS' | ||
7613 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
7614 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
7615 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
7616 | |||
7617 | |||
7618 | # Source file extension for C test sources. | ||
7619 | ac_ext=c | ||
7620 | |||
7621 | # Object file extension for compiled C test sources. | ||
7622 | objext=o | ||
7623 | objext=$objext | ||
7624 | |||
7625 | # Code to be used in simple compile tests | ||
7626 | lt_simple_compile_test_code="int some_variable = 0;" | ||
7627 | |||
7628 | # Code to be used in simple link tests | ||
7629 | lt_simple_link_test_code='int main(){return(0);}' | ||
7630 | |||
7631 | |||
7632 | |||
7633 | |||
7634 | |||
7635 | |||
7636 | |||
7637 | # If no C compiler was specified, use CC. | ||
7638 | LTCC=${LTCC-"$CC"} | ||
7639 | |||
7640 | # If no C compiler flags were specified, use CFLAGS. | ||
7641 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | ||
7642 | |||
7643 | # Allow CC to be a program name with arguments. | ||
7644 | compiler=$CC | ||
7645 | |||
7646 | # Save the default compiler, since it gets overwritten when the other | ||
7647 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | ||
7648 | compiler_DEFAULT=$CC | ||
7649 | |||
7650 | # save warnings/boilerplate of simple test code | ||
7651 | ac_outfile=conftest.$ac_objext | ||
7652 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | ||
7653 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | ||
7654 | _lt_compiler_boilerplate=`cat conftest.err` | ||
7655 | $RM conftest* | ||
7656 | |||
7657 | ac_outfile=conftest.$ac_objext | ||
7658 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | ||
7659 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | ||
7660 | _lt_linker_boilerplate=`cat conftest.err` | ||
7661 | $RM -r conftest* | ||
7662 | |||
7663 | |||
7664 | ## CAVEAT EMPTOR: | ||
7665 | ## There is no encapsulation within the following macros, do not change | ||
7666 | ## the running order or otherwise move them around unless you know exactly | ||
7667 | ## what you are doing... | ||
7668 | if test -n "$compiler"; then | ||
7669 | |||
7670 | lt_prog_compiler_no_builtin_flag= | ||
7671 | |||
7672 | if test "$GCC" = yes; then | ||
7673 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' | ||
7674 | |||
7675 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | ||
7676 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | ||
7677 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : | ||
7678 | $as_echo_n "(cached) " >&6 | ||
7679 | else | ||
7680 | lt_cv_prog_compiler_rtti_exceptions=no | ||
7681 | ac_outfile=conftest.$ac_objext | ||
7682 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
7683 | lt_compiler_flag="-fno-rtti -fno-exceptions" | ||
7684 | # Insert the option either (1) after the last *FLAGS variable, or | ||
7685 | # (2) before a word containing "conftest.", or (3) at the end. | ||
7686 | # Note that $ac_compile itself does not contain backslashes and begins | ||
7687 | # with a dollar sign (not a hyphen), so the echo should work correctly. | ||
7688 | # The option is referenced via a variable to avoid confusing sed. | ||
7689 | lt_compile=`echo "$ac_compile" | $SED \ | ||
7690 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | ||
7691 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | ||
7692 | -e 's:$: $lt_compiler_flag:'` | ||
7693 | (eval echo "\"\$as_me:7693: $lt_compile\"" >&5) | ||
7694 | (eval "$lt_compile" 2>conftest.err) | ||
7695 | ac_status=$? | ||
7696 | cat conftest.err >&5 | ||
7697 | echo "$as_me:7697: \$? = $ac_status" >&5 | ||
7698 | if (exit $ac_status) && test -s "$ac_outfile"; then | ||
7699 | # The compiler can only warn and ignore the option if not recognized | ||
7700 | # So say no if there are warnings other than the usual output. | ||
7701 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | ||
7702 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | ||
7703 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | ||
7704 | lt_cv_prog_compiler_rtti_exceptions=yes | ||
7705 | fi | ||
7706 | fi | ||
7707 | $RM conftest* | ||
7708 | |||
7709 | fi | ||
7710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | ||
7711 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | ||
7712 | |||
7713 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | ||
7714 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | ||
7715 | else | ||
7716 | : | ||
7717 | fi | ||
7718 | |||
7719 | fi | ||
7720 | |||
7721 | |||
7722 | |||
7723 | |||
7724 | |||
7725 | |||
7726 | lt_prog_compiler_wl= | ||
7727 | lt_prog_compiler_pic= | ||
7728 | lt_prog_compiler_static= | ||
7729 | |||
7730 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | ||
7731 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | ||
7732 | |||
7733 | if test "$GCC" = yes; then | ||
7734 | lt_prog_compiler_wl='-Wl,' | ||
7735 | lt_prog_compiler_static='-static' | ||
7736 | |||
7737 | case $host_os in | ||
7738 | aix*) | ||
7739 | # All AIX code is PIC. | ||
7740 | if test "$host_cpu" = ia64; then | ||
7741 | # AIX 5 now supports IA64 processor | ||
7742 | lt_prog_compiler_static='-Bstatic' | ||
7743 | fi | ||
7744 | ;; | ||
7745 | |||
7746 | amigaos*) | ||
7747 | case $host_cpu in | ||
7748 | powerpc) | ||
7749 | # see comment about AmigaOS4 .so support | ||
7750 | lt_prog_compiler_pic='-fPIC' | ||
7751 | ;; | ||
7752 | m68k) | ||
7753 | # FIXME: we need at least 68020 code to build shared libraries, but | ||
7754 | # adding the `-m68020' flag to GCC prevents building anything better, | ||
7755 | # like `-m68040'. | ||
7756 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | ||
7757 | ;; | ||
7758 | esac | ||
7759 | ;; | ||
7760 | |||
7761 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | ||
7762 | # PIC is the default for these OSes. | ||
7763 | ;; | ||
7764 | |||
7765 | mingw* | cygwin* | pw32* | os2*) | ||
7766 | # This hack is so that the source file can tell whether it is being | ||
7767 | # built for inclusion in a dll (and should export symbols for example). | ||
7768 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | ||
7769 | # (--disable-auto-import) libraries | ||
7770 | lt_prog_compiler_pic='-DDLL_EXPORT' | ||
7771 | ;; | ||
7772 | |||
7773 | darwin* | rhapsody*) | ||
7774 | # PIC is the default on this platform | ||
7775 | # Common symbols not allowed in MH_DYLIB files | ||
7776 | lt_prog_compiler_pic='-fno-common' | ||
7777 | ;; | ||
7778 | |||
7779 | hpux*) | ||
7780 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | ||
7781 | # not for PA HP-UX. | ||
7782 | case $host_cpu in | ||
7783 | hppa*64*|ia64*) | ||
7784 | # +Z the default | ||
7785 | ;; | ||
7786 | *) | ||
7787 | lt_prog_compiler_pic='-fPIC' | ||
7788 | ;; | ||
7789 | esac | ||
7790 | ;; | ||
7791 | |||
7792 | interix[3-9]*) | ||
7793 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | ||
7794 | # Instead, we relocate shared libraries at runtime. | ||
7795 | ;; | ||
7796 | |||
7797 | msdosdjgpp*) | ||
7798 | # Just because we use GCC doesn't mean we suddenly get shared libraries | ||
7799 | # on systems that don't support them. | ||
7800 | lt_prog_compiler_can_build_shared=no | ||
7801 | enable_shared=no | ||
7802 | ;; | ||
7803 | |||
7804 | *nto* | *qnx*) | ||
7805 | # QNX uses GNU C++, but need to define -shared option too, otherwise | ||
7806 | # it will coredump. | ||
7807 | lt_prog_compiler_pic='-fPIC -shared' | ||
7808 | ;; | ||
7809 | |||
7810 | sysv4*MP*) | ||
7811 | if test -d /usr/nec; then | ||
7812 | lt_prog_compiler_pic=-Kconform_pic | ||
7813 | fi | ||
7814 | ;; | ||
7815 | |||
7816 | *) | ||
7817 | lt_prog_compiler_pic='-fPIC' | ||
7818 | ;; | ||
7819 | esac | ||
7820 | else | ||
7821 | # PORTME Check for flag to pass linker flags through the system compiler. | ||
7822 | case $host_os in | ||
7823 | aix*) | ||
7824 | lt_prog_compiler_wl='-Wl,' | ||
7825 | if test "$host_cpu" = ia64; then | ||
7826 | # AIX 5 now supports IA64 processor | ||
7827 | lt_prog_compiler_static='-Bstatic' | ||
7828 | else | ||
7829 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | ||
7830 | fi | ||
7831 | ;; | ||
7832 | |||
7833 | mingw* | cygwin* | pw32* | os2*) | ||
7834 | # This hack is so that the source file can tell whether it is being | ||
7835 | # built for inclusion in a dll (and should export symbols for example). | ||
7836 | lt_prog_compiler_pic='-DDLL_EXPORT' | ||
7837 | ;; | ||
7838 | |||
7839 | hpux9* | hpux10* | hpux11*) | ||
7840 | lt_prog_compiler_wl='-Wl,' | ||
7841 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | ||
7842 | # not for PA HP-UX. | ||
7843 | case $host_cpu in | ||
7844 | hppa*64*|ia64*) | ||
7845 | # +Z the default | ||
7846 | ;; | ||
7847 | *) | ||
7848 | lt_prog_compiler_pic='+Z' | ||
7849 | ;; | ||
7850 | esac | ||
7851 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | ||
7852 | lt_prog_compiler_static='${wl}-a ${wl}archive' | ||
7853 | ;; | ||
7854 | |||
7855 | irix5* | irix6* | nonstopux*) | ||
7856 | lt_prog_compiler_wl='-Wl,' | ||
7857 | # PIC (with -KPIC) is the default. | ||
7858 | lt_prog_compiler_static='-non_shared' | ||
7859 | ;; | ||
7860 | |||
7861 | linux* | k*bsd*-gnu) | ||
7862 | case $cc_basename in | ||
7863 | icc* | ecc* | ifort*) | ||
7864 | lt_prog_compiler_wl='-Wl,' | ||
7865 | lt_prog_compiler_pic='-KPIC' | ||
7866 | lt_prog_compiler_static='-static' | ||
7867 | ;; | ||
7868 | pgcc* | pgf77* | pgf90* | pgf95*) | ||
7869 | # Portland Group compilers (*not* the Pentium gcc compiler, | ||
7870 | # which looks to be a dead project) | ||
7871 | lt_prog_compiler_wl='-Wl,' | ||
7872 | lt_prog_compiler_pic='-fpic' | ||
7873 | lt_prog_compiler_static='-Bstatic' | ||
7874 | ;; | ||
7875 | ccc*) | ||
7876 | lt_prog_compiler_wl='-Wl,' | ||
7877 | # All Alpha code is PIC. | ||
7878 | lt_prog_compiler_static='-non_shared' | ||
7879 | ;; | ||
7880 | xl*) | ||
7881 | # IBM XL C 8.0/Fortran 10.1 on PPC | ||
7882 | lt_prog_compiler_wl='-Wl,' | ||
7883 | lt_prog_compiler_pic='-qpic' | ||
7884 | lt_prog_compiler_static='-qstaticlink' | ||
7885 | ;; | ||
7886 | *) | ||
7887 | case `$CC -V 2>&1 | sed 5q` in | ||
7888 | *Sun\ C*) | ||
7889 | # Sun C 5.9 | ||
7890 | lt_prog_compiler_pic='-KPIC' | ||
7891 | lt_prog_compiler_static='-Bstatic' | ||
7892 | lt_prog_compiler_wl='-Wl,' | ||
7893 | ;; | ||
7894 | *Sun\ F*) | ||
7895 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | ||
7896 | lt_prog_compiler_pic='-KPIC' | ||
7897 | lt_prog_compiler_static='-Bstatic' | ||
7898 | lt_prog_compiler_wl='' | ||
7899 | ;; | ||
7900 | esac | ||
7901 | ;; | ||
7902 | esac | ||
7903 | ;; | ||
7904 | |||
7905 | newsos6) | ||
7906 | lt_prog_compiler_pic='-KPIC' | ||
7907 | lt_prog_compiler_static='-Bstatic' | ||
7908 | ;; | ||
7909 | |||
7910 | *nto* | *qnx*) | ||
7911 | # QNX uses GNU C++, but need to define -shared option too, otherwise | ||
7912 | # it will coredump. | ||
7913 | lt_prog_compiler_pic='-fPIC -shared' | ||
7914 | ;; | ||
7915 | |||
7916 | osf3* | osf4* | osf5*) | ||
7917 | lt_prog_compiler_wl='-Wl,' | ||
7918 | # All OSF/1 code is PIC. | ||
7919 | lt_prog_compiler_static='-non_shared' | ||
7920 | ;; | ||
7921 | |||
7922 | rdos*) | ||
7923 | lt_prog_compiler_static='-non_shared' | ||
7924 | ;; | ||
7925 | |||
7926 | solaris*) | ||
7927 | lt_prog_compiler_pic='-KPIC' | ||
7928 | lt_prog_compiler_static='-Bstatic' | ||
7929 | case $cc_basename in | ||
7930 | f77* | f90* | f95*) | ||
7931 | lt_prog_compiler_wl='-Qoption ld ';; | ||
7932 | *) | ||
7933 | lt_prog_compiler_wl='-Wl,';; | ||
7934 | esac | ||
7935 | ;; | ||
7936 | |||
7937 | sunos4*) | ||
7938 | lt_prog_compiler_wl='-Qoption ld ' | ||
7939 | lt_prog_compiler_pic='-PIC' | ||
7940 | lt_prog_compiler_static='-Bstatic' | ||
7941 | ;; | ||
7942 | |||
7943 | sysv4 | sysv4.2uw2* | sysv4.3*) | ||
7944 | lt_prog_compiler_wl='-Wl,' | ||
7945 | lt_prog_compiler_pic='-KPIC' | ||
7946 | lt_prog_compiler_static='-Bstatic' | ||
7947 | ;; | ||
7948 | |||
7949 | sysv4*MP*) | ||
7950 | if test -d /usr/nec ;then | ||
7951 | lt_prog_compiler_pic='-Kconform_pic' | ||
7952 | lt_prog_compiler_static='-Bstatic' | ||
7953 | fi | ||
7954 | ;; | ||
7955 | |||
7956 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | ||
7957 | lt_prog_compiler_wl='-Wl,' | ||
7958 | lt_prog_compiler_pic='-KPIC' | ||
7959 | lt_prog_compiler_static='-Bstatic' | ||
7960 | ;; | ||
7961 | |||
7962 | unicos*) | ||
7963 | lt_prog_compiler_wl='-Wl,' | ||
7964 | lt_prog_compiler_can_build_shared=no | ||
7965 | ;; | ||
7966 | |||
7967 | uts4*) | ||
7968 | lt_prog_compiler_pic='-pic' | ||
7969 | lt_prog_compiler_static='-Bstatic' | ||
7970 | ;; | ||
7971 | |||
7972 | *) | ||
7973 | lt_prog_compiler_can_build_shared=no | ||
7974 | ;; | ||
7975 | esac | ||
7976 | fi | ||
7977 | |||
7978 | case $host_os in | ||
7979 | # For platforms which do not support PIC, -DPIC is meaningless: | ||
7980 | *djgpp*) | ||
7981 | lt_prog_compiler_pic= | ||
7982 | ;; | ||
7983 | *) | ||
7984 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | ||
7985 | ;; | ||
7986 | esac | ||
7987 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 | ||
7988 | $as_echo "$lt_prog_compiler_pic" >&6; } | ||
7989 | |||
7990 | |||
7991 | |||
7992 | |||
7993 | |||
7994 | |||
7995 | # | ||
7996 | # Check to make sure the PIC flag actually works. | ||
7997 | # | ||
7998 | if test -n "$lt_prog_compiler_pic"; then | ||
7999 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | ||
8000 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | ||
8001 | if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : | ||
8002 | $as_echo_n "(cached) " >&6 | ||
8003 | else | ||
8004 | lt_cv_prog_compiler_pic_works=no | ||
8005 | ac_outfile=conftest.$ac_objext | ||
8006 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
8007 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | ||
8008 | # Insert the option either (1) after the last *FLAGS variable, or | ||
8009 | # (2) before a word containing "conftest.", or (3) at the end. | ||
8010 | # Note that $ac_compile itself does not contain backslashes and begins | ||
8011 | # with a dollar sign (not a hyphen), so the echo should work correctly. | ||
8012 | # The option is referenced via a variable to avoid confusing sed. | ||
8013 | lt_compile=`echo "$ac_compile" | $SED \ | ||
8014 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | ||
8015 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | ||
8016 | -e 's:$: $lt_compiler_flag:'` | ||
8017 | (eval echo "\"\$as_me:8017: $lt_compile\"" >&5) | ||
8018 | (eval "$lt_compile" 2>conftest.err) | ||
8019 | ac_status=$? | ||
8020 | cat conftest.err >&5 | ||
8021 | echo "$as_me:8021: \$? = $ac_status" >&5 | ||
8022 | if (exit $ac_status) && test -s "$ac_outfile"; then | ||
8023 | # The compiler can only warn and ignore the option if not recognized | ||
8024 | # So say no if there are warnings other than the usual output. | ||
8025 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | ||
8026 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | ||
8027 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | ||
8028 | lt_cv_prog_compiler_pic_works=yes | ||
8029 | fi | ||
8030 | fi | ||
8031 | $RM conftest* | ||
8032 | |||
8033 | fi | ||
8034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 | ||
8035 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | ||
8036 | |||
8037 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then | ||
8038 | case $lt_prog_compiler_pic in | ||
8039 | "" | " "*) ;; | ||
8040 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | ||
8041 | esac | ||
8042 | else | ||
8043 | lt_prog_compiler_pic= | ||
8044 | lt_prog_compiler_can_build_shared=no | ||
8045 | fi | ||
8046 | |||
8047 | fi | ||
8048 | |||
8049 | |||
8050 | |||
8051 | |||
8052 | |||
8053 | |||
8054 | # | ||
8055 | # Check to make sure the static flag actually works. | ||
8056 | # | ||
8057 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | ||
8058 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | ||
8059 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | ||
8060 | if test "${lt_cv_prog_compiler_static_works+set}" = set; then : | ||
8061 | $as_echo_n "(cached) " >&6 | ||
8062 | else | ||
8063 | lt_cv_prog_compiler_static_works=no | ||
8064 | save_LDFLAGS="$LDFLAGS" | ||
8065 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | ||
8066 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | ||
8067 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | ||
8068 | # The linker can only warn and ignore the option if not recognized | ||
8069 | # So say no if there are warnings | ||
8070 | if test -s conftest.err; then | ||
8071 | # Append any errors to the config.log. | ||
8072 | cat conftest.err 1>&5 | ||
8073 | $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | ||
8074 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | ||
8075 | if diff conftest.exp conftest.er2 >/dev/null; then | ||
8076 | lt_cv_prog_compiler_static_works=yes | ||
8077 | fi | ||
8078 | else | ||
8079 | lt_cv_prog_compiler_static_works=yes | ||
8080 | fi | ||
8081 | fi | ||
8082 | $RM -r conftest* | ||
8083 | LDFLAGS="$save_LDFLAGS" | ||
8084 | |||
8085 | fi | ||
8086 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 | ||
8087 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | ||
8088 | |||
8089 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then | ||
8090 | : | ||
8091 | else | ||
8092 | lt_prog_compiler_static= | ||
8093 | fi | ||
8094 | |||
8095 | |||
8096 | |||
8097 | |||
8098 | |||
8099 | |||
8100 | |||
8101 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | ||
8102 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | ||
8103 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then : | ||
8104 | $as_echo_n "(cached) " >&6 | ||
8105 | else | ||
8106 | lt_cv_prog_compiler_c_o=no | ||
8107 | $RM -r conftest 2>/dev/null | ||
8108 | mkdir conftest | ||
8109 | cd conftest | ||
8110 | mkdir out | ||
8111 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
8112 | |||
8113 | lt_compiler_flag="-o out/conftest2.$ac_objext" | ||
8114 | # Insert the option either (1) after the last *FLAGS variable, or | ||
8115 | # (2) before a word containing "conftest.", or (3) at the end. | ||
8116 | # Note that $ac_compile itself does not contain backslashes and begins | ||
8117 | # with a dollar sign (not a hyphen), so the echo should work correctly. | ||
8118 | lt_compile=`echo "$ac_compile" | $SED \ | ||
8119 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | ||
8120 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | ||
8121 | -e 's:$: $lt_compiler_flag:'` | ||
8122 | (eval echo "\"\$as_me:8122: $lt_compile\"" >&5) | ||
8123 | (eval "$lt_compile" 2>out/conftest.err) | ||
8124 | ac_status=$? | ||
8125 | cat out/conftest.err >&5 | ||
8126 | echo "$as_me:8126: \$? = $ac_status" >&5 | ||
8127 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | ||
8128 | then | ||
8129 | # The compiler can only warn and ignore the option if not recognized | ||
8130 | # So say no if there are warnings | ||
8131 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | ||
8132 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | ||
8133 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | ||
8134 | lt_cv_prog_compiler_c_o=yes | ||
8135 | fi | ||
8136 | fi | ||
8137 | chmod u+w . 2>&5 | ||
8138 | $RM conftest* | ||
8139 | # SGI C++ compiler will create directory out/ii_files/ for | ||
8140 | # template instantiation | ||
8141 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | ||
8142 | $RM out/* && rmdir out | ||
8143 | cd .. | ||
8144 | $RM -r conftest | ||
8145 | $RM conftest* | ||
8146 | |||
8147 | fi | ||
8148 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | ||
8149 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | ||
8150 | |||
8151 | |||
8152 | |||
8153 | |||
8154 | |||
8155 | |||
8156 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | ||
8157 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | ||
8158 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then : | ||
8159 | $as_echo_n "(cached) " >&6 | ||
8160 | else | ||
8161 | lt_cv_prog_compiler_c_o=no | ||
8162 | $RM -r conftest 2>/dev/null | ||
8163 | mkdir conftest | ||
8164 | cd conftest | ||
8165 | mkdir out | ||
8166 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
8167 | |||
8168 | lt_compiler_flag="-o out/conftest2.$ac_objext" | ||
8169 | # Insert the option either (1) after the last *FLAGS variable, or | ||
8170 | # (2) before a word containing "conftest.", or (3) at the end. | ||
8171 | # Note that $ac_compile itself does not contain backslashes and begins | ||
8172 | # with a dollar sign (not a hyphen), so the echo should work correctly. | ||
8173 | lt_compile=`echo "$ac_compile" | $SED \ | ||
8174 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | ||
8175 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | ||
8176 | -e 's:$: $lt_compiler_flag:'` | ||
8177 | (eval echo "\"\$as_me:8177: $lt_compile\"" >&5) | ||
8178 | (eval "$lt_compile" 2>out/conftest.err) | ||
8179 | ac_status=$? | ||
8180 | cat out/conftest.err >&5 | ||
8181 | echo "$as_me:8181: \$? = $ac_status" >&5 | ||
8182 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | ||
8183 | then | ||
8184 | # The compiler can only warn and ignore the option if not recognized | ||
8185 | # So say no if there are warnings | ||
8186 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | ||
8187 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | ||
8188 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | ||
8189 | lt_cv_prog_compiler_c_o=yes | ||
8190 | fi | ||
8191 | fi | ||
8192 | chmod u+w . 2>&5 | ||
8193 | $RM conftest* | ||
8194 | # SGI C++ compiler will create directory out/ii_files/ for | ||
8195 | # template instantiation | ||
8196 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | ||
8197 | $RM out/* && rmdir out | ||
8198 | cd .. | ||
8199 | $RM -r conftest | ||
8200 | $RM conftest* | ||
8201 | |||
8202 | fi | ||
8203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | ||
8204 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | ||
8205 | |||
8206 | |||
8207 | |||
8208 | |||
8209 | hard_links="nottested" | ||
8210 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | ||
8211 | # do not overwrite the value of need_locks provided by the user | ||
8212 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | ||
8213 | $as_echo_n "checking if we can lock with hard links... " >&6; } | ||
8214 | hard_links=yes | ||
8215 | $RM conftest* | ||
8216 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | ||
8217 | touch conftest.a | ||
8218 | ln conftest.a conftest.b 2>&5 || hard_links=no | ||
8219 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | ||
8220 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | ||
8221 | $as_echo "$hard_links" >&6; } | ||
8222 | if test "$hard_links" = no; then | ||
8223 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | ||
8224 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | ||
8225 | need_locks=warn | ||
8226 | fi | ||
8227 | else | ||
8228 | need_locks=no | ||
8229 | fi | ||
8230 | |||
8231 | |||
8232 | |||
8233 | |||
8234 | |||
8235 | |||
8236 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | ||
8237 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | ||
8238 | |||
8239 | runpath_var= | ||
8240 | allow_undefined_flag= | ||
8241 | always_export_symbols=no | ||
8242 | archive_cmds= | ||
8243 | archive_expsym_cmds= | ||
8244 | compiler_needs_object=no | ||
8245 | enable_shared_with_static_runtimes=no | ||
8246 | export_dynamic_flag_spec= | ||
8247 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | ||
8248 | hardcode_automatic=no | ||
8249 | hardcode_direct=no | ||
8250 | hardcode_direct_absolute=no | ||
8251 | hardcode_libdir_flag_spec= | ||
8252 | hardcode_libdir_flag_spec_ld= | ||
8253 | hardcode_libdir_separator= | ||
8254 | hardcode_minus_L=no | ||
8255 | hardcode_shlibpath_var=unsupported | ||
8256 | inherit_rpath=no | ||
8257 | link_all_deplibs=unknown | ||
8258 | module_cmds= | ||
8259 | module_expsym_cmds= | ||
8260 | old_archive_from_new_cmds= | ||
8261 | old_archive_from_expsyms_cmds= | ||
8262 | thread_safe_flag_spec= | ||
8263 | whole_archive_flag_spec= | ||
8264 | # include_expsyms should be a list of space-separated symbols to be *always* | ||
8265 | # included in the symbol list | ||
8266 | include_expsyms= | ||
8267 | # exclude_expsyms can be an extended regexp of symbols to exclude | ||
8268 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | ||
8269 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | ||
8270 | # as well as any symbol that contains `d'. | ||
8271 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | ||
8272 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | ||
8273 | # platforms (ab)use it in PIC code, but their linkers get confused if | ||
8274 | # the symbol is explicitly referenced. Since portable code cannot | ||
8275 | # rely on this symbol name, it's probably fine to never include it in | ||
8276 | # preloaded symbol tables. | ||
8277 | # Exclude shared library initialization/finalization symbols. | ||
8278 | extract_expsyms_cmds= | ||
8279 | |||
8280 | case $host_os in | ||
8281 | cygwin* | mingw* | pw32*) | ||
8282 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | ||
8283 | # When not using gcc, we currently assume that we are using | ||
8284 | # Microsoft Visual C++. | ||
8285 | if test "$GCC" != yes; then | ||
8286 | with_gnu_ld=no | ||
8287 | fi | ||
8288 | ;; | ||
8289 | interix*) | ||
8290 | # we just hope/assume this is gcc and not c89 (= MSVC++) | ||
8291 | with_gnu_ld=yes | ||
8292 | ;; | ||
8293 | openbsd*) | ||
8294 | with_gnu_ld=no | ||
8295 | ;; | ||
8296 | esac | ||
8297 | |||
8298 | ld_shlibs=yes | ||
8299 | if test "$with_gnu_ld" = yes; then | ||
8300 | # If archive_cmds runs LD, not CC, wlarc should be empty | ||
8301 | wlarc='${wl}' | ||
8302 | |||
8303 | # Set some defaults for GNU ld with shared library support. These | ||
8304 | # are reset later if shared libraries are not supported. Putting them | ||
8305 | # here allows them to be overridden if necessary. | ||
8306 | runpath_var=LD_RUN_PATH | ||
8307 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | ||
8308 | export_dynamic_flag_spec='${wl}--export-dynamic' | ||
8309 | # ancient GNU ld didn't support --whole-archive et. al. | ||
8310 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | ||
8311 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | ||
8312 | else | ||
8313 | whole_archive_flag_spec= | ||
8314 | fi | ||
8315 | supports_anon_versioning=no | ||
8316 | case `$LD -v 2>&1` in | ||
8317 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | ||
8318 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | ||
8319 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | ||
8320 | *\ 2.11.*) ;; # other 2.11 versions | ||
8321 | *) supports_anon_versioning=yes ;; | ||
8322 | esac | ||
8323 | |||
8324 | # See if GNU ld supports shared libraries. | ||
8325 | case $host_os in | ||
8326 | aix[3-9]*) | ||
8327 | # On AIX/PPC, the GNU linker is very broken | ||
8328 | if test "$host_cpu" != ia64; then | ||
8329 | ld_shlibs=no | ||
8330 | cat <<_LT_EOF 1>&2 | ||
8331 | |||
8332 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported | ||
8333 | *** to be unable to reliably create shared libraries on AIX. | ||
8334 | *** Therefore, libtool is disabling shared libraries support. If you | ||
8335 | *** really care for shared libraries, you may want to modify your PATH | ||
8336 | *** so that a non-GNU linker is found, and then restart. | ||
8337 | |||
8338 | _LT_EOF | ||
8339 | fi | ||
8340 | ;; | ||
8341 | |||
8342 | amigaos*) | ||
8343 | case $host_cpu in | ||
8344 | powerpc) | ||
8345 | # see comment about AmigaOS4 .so support | ||
8346 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
8347 | archive_expsym_cmds='' | ||
8348 | ;; | ||
8349 | m68k) | ||
8350 | 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)' | ||
8351 | hardcode_libdir_flag_spec='-L$libdir' | ||
8352 | hardcode_minus_L=yes | ||
8353 | ;; | ||
8354 | esac | ||
8355 | ;; | ||
8356 | |||
8357 | beos*) | ||
8358 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | ||
8359 | allow_undefined_flag=unsupported | ||
8360 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | ||
8361 | # support --undefined. This deserves some investigation. FIXME | ||
8362 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
8363 | else | ||
8364 | ld_shlibs=no | ||
8365 | fi | ||
8366 | ;; | ||
8367 | |||
8368 | cygwin* | mingw* | pw32*) | ||
8369 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | ||
8370 | # as there is no search path for DLLs. | ||
8371 | hardcode_libdir_flag_spec='-L$libdir' | ||
8372 | allow_undefined_flag=unsupported | ||
8373 | always_export_symbols=no | ||
8374 | enable_shared_with_static_runtimes=yes | ||
8375 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | ||
8376 | |||
8377 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | ||
8378 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | ||
8379 | # If the export-symbols file already is a .def file (1st line | ||
8380 | # is EXPORTS), use it as is; otherwise, prepend... | ||
8381 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | ||
8382 | cp $export_symbols $output_objdir/$soname.def; | ||
8383 | else | ||
8384 | echo EXPORTS > $output_objdir/$soname.def; | ||
8385 | cat $export_symbols >> $output_objdir/$soname.def; | ||
8386 | fi~ | ||
8387 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | ||
8388 | else | ||
8389 | ld_shlibs=no | ||
8390 | fi | ||
8391 | ;; | ||
8392 | |||
8393 | interix[3-9]*) | ||
8394 | hardcode_direct=no | ||
8395 | hardcode_shlibpath_var=no | ||
8396 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | ||
8397 | export_dynamic_flag_spec='${wl}-E' | ||
8398 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | ||
8399 | # Instead, shared libraries are loaded at an image base (0x10000000 by | ||
8400 | # default) and relocated if they conflict, which is a slow very memory | ||
8401 | # consuming and fragmenting process. To avoid this, we pick a random, | ||
8402 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | ||
8403 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | ||
8404 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | ||
8405 | 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' | ||
8406 | ;; | ||
8407 | |||
8408 | gnu* | linux* | tpf* | k*bsd*-gnu) | ||
8409 | tmp_diet=no | ||
8410 | if test "$host_os" = linux-dietlibc; then | ||
8411 | case $cc_basename in | ||
8412 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | ||
8413 | esac | ||
8414 | fi | ||
8415 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | ||
8416 | && test "$tmp_diet" = no | ||
8417 | then | ||
8418 | tmp_addflag= | ||
8419 | tmp_sharedflag='-shared' | ||
8420 | case $cc_basename,$host_cpu in | ||
8421 | pgcc*) # Portland Group C compiler | ||
8422 | 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' | ||
8423 | tmp_addflag=' $pic_flag' | ||
8424 | ;; | ||
8425 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers | ||
8426 | 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' | ||
8427 | tmp_addflag=' $pic_flag -Mnomain' ;; | ||
8428 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | ||
8429 | tmp_addflag=' -i_dynamic' ;; | ||
8430 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | ||
8431 | tmp_addflag=' -i_dynamic -nofor_main' ;; | ||
8432 | ifc* | ifort*) # Intel Fortran compiler | ||
8433 | tmp_addflag=' -nofor_main' ;; | ||
8434 | xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) | ||
8435 | tmp_sharedflag='-qmkshrobj' | ||
8436 | tmp_addflag= ;; | ||
8437 | esac | ||
8438 | case `$CC -V 2>&1 | sed 5q` in | ||
8439 | *Sun\ C*) # Sun C 5.9 | ||
8440 | 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' | ||
8441 | compiler_needs_object=yes | ||
8442 | tmp_sharedflag='-G' ;; | ||
8443 | *Sun\ F*) # Sun Fortran 8.3 | ||
8444 | tmp_sharedflag='-G' ;; | ||
8445 | esac | ||
8446 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
8447 | |||
8448 | if test "x$supports_anon_versioning" = xyes; then | ||
8449 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | ||
8450 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | ||
8451 | echo "local: *; };" >> $output_objdir/$libname.ver~ | ||
8452 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | ||
8453 | fi | ||
8454 | |||
8455 | case $cc_basename in | ||
8456 | xlf*) | ||
8457 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | ||
8458 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | ||
8459 | hardcode_libdir_flag_spec= | ||
8460 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | ||
8461 | archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | ||
8462 | if test "x$supports_anon_versioning" = xyes; then | ||
8463 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | ||
8464 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | ||
8465 | echo "local: *; };" >> $output_objdir/$libname.ver~ | ||
8466 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | ||
8467 | fi | ||
8468 | ;; | ||
8469 | esac | ||
8470 | else | ||
8471 | ld_shlibs=no | ||
8472 | fi | ||
8473 | ;; | ||
8474 | |||
8475 | netbsd* | netbsdelf*-gnu) | ||
8476 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | ||
8477 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | ||
8478 | wlarc= | ||
8479 | else | ||
8480 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
8481 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
8482 | fi | ||
8483 | ;; | ||
8484 | |||
8485 | solaris*) | ||
8486 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | ||
8487 | ld_shlibs=no | ||
8488 | cat <<_LT_EOF 1>&2 | ||
8489 | |||
8490 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | ||
8491 | *** create shared libraries on Solaris systems. Therefore, libtool | ||
8492 | *** is disabling shared libraries support. We urge you to upgrade GNU | ||
8493 | *** binutils to release 2.9.1 or newer. Another option is to modify | ||
8494 | *** your PATH or compiler configuration so that the native linker is | ||
8495 | *** used, and then restart. | ||
8496 | |||
8497 | _LT_EOF | ||
8498 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | ||
8499 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
8500 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
8501 | else | ||
8502 | ld_shlibs=no | ||
8503 | fi | ||
8504 | ;; | ||
8505 | |||
8506 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | ||
8507 | case `$LD -v 2>&1` in | ||
8508 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | ||
8509 | ld_shlibs=no | ||
8510 | cat <<_LT_EOF 1>&2 | ||
8511 | |||
8512 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | ||
8513 | *** reliably create shared libraries on SCO systems. Therefore, libtool | ||
8514 | *** is disabling shared libraries support. We urge you to upgrade GNU | ||
8515 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | ||
8516 | *** your PATH or compiler configuration so that the native linker is | ||
8517 | *** used, and then restart. | ||
8518 | |||
8519 | _LT_EOF | ||
8520 | ;; | ||
8521 | *) | ||
8522 | # For security reasons, it is highly recommended that you always | ||
8523 | # use absolute paths for naming shared libraries, and exclude the | ||
8524 | # DT_RUNPATH tag from executables and libraries. But doing so | ||
8525 | # requires that you compile everything twice, which is a pain. | ||
8526 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | ||
8527 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | ||
8528 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
8529 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
8530 | else | ||
8531 | ld_shlibs=no | ||
8532 | fi | ||
8533 | ;; | ||
8534 | esac | ||
8535 | ;; | ||
8536 | |||
8537 | sunos4*) | ||
8538 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | ||
8539 | wlarc= | ||
8540 | hardcode_direct=yes | ||
8541 | hardcode_shlibpath_var=no | ||
8542 | ;; | ||
8543 | |||
8544 | *) | ||
8545 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | ||
8546 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
8547 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
8548 | else | ||
8549 | ld_shlibs=no | ||
8550 | fi | ||
8551 | ;; | ||
8552 | esac | ||
8553 | |||
8554 | if test "$ld_shlibs" = no; then | ||
8555 | runpath_var= | ||
8556 | hardcode_libdir_flag_spec= | ||
8557 | export_dynamic_flag_spec= | ||
8558 | whole_archive_flag_spec= | ||
8559 | fi | ||
8560 | else | ||
8561 | # PORTME fill in a description of your system's linker (not GNU ld) | ||
8562 | case $host_os in | ||
8563 | aix3*) | ||
8564 | allow_undefined_flag=unsupported | ||
8565 | always_export_symbols=yes | ||
8566 | 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' | ||
8567 | # Note: this linker hardcodes the directories in LIBPATH if there | ||
8568 | # are no directories specified by -L. | ||
8569 | hardcode_minus_L=yes | ||
8570 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | ||
8571 | # Neither direct hardcoding nor static linking is supported with a | ||
8572 | # broken collect2. | ||
8573 | hardcode_direct=unsupported | ||
8574 | fi | ||
8575 | ;; | ||
8576 | |||
8577 | aix[4-9]*) | ||
8578 | if test "$host_cpu" = ia64; then | ||
8579 | # On IA64, the linker does run time linking by default, so we don't | ||
8580 | # have to do anything special. | ||
8581 | aix_use_runtimelinking=no | ||
8582 | exp_sym_flag='-Bexport' | ||
8583 | no_entry_flag="" | ||
8584 | else | ||
8585 | # If we're using GNU nm, then we don't want the "-C" option. | ||
8586 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | ||
8587 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | ||
8588 | 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' | ||
8589 | else | ||
8590 | 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' | ||
8591 | fi | ||
8592 | aix_use_runtimelinking=no | ||
8593 | |||
8594 | # Test if we are trying to use run time linking or normal | ||
8595 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | ||
8596 | # need to do runtime linking. | ||
8597 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | ||
8598 | for ld_flag in $LDFLAGS; do | ||
8599 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | ||
8600 | aix_use_runtimelinking=yes | ||
8601 | break | ||
8602 | fi | ||
8603 | done | ||
8604 | ;; | ||
8605 | esac | ||
8606 | |||
8607 | exp_sym_flag='-bexport' | ||
8608 | no_entry_flag='-bnoentry' | ||
8609 | fi | ||
8610 | |||
8611 | # When large executables or shared objects are built, AIX ld can | ||
8612 | # have problems creating the table of contents. If linking a library | ||
8613 | # or program results in "error TOC overflow" add -mminimal-toc to | ||
8614 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | ||
8615 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | ||
8616 | |||
8617 | archive_cmds='' | ||
8618 | hardcode_direct=yes | ||
8619 | hardcode_direct_absolute=yes | ||
8620 | hardcode_libdir_separator=':' | ||
8621 | link_all_deplibs=yes | ||
8622 | file_list_spec='${wl}-f,' | ||
8623 | |||
8624 | if test "$GCC" = yes; then | ||
8625 | case $host_os in aix4.[012]|aix4.[012].*) | ||
8626 | # We only want to do this on AIX 4.2 and lower, the check | ||
8627 | # below for broken collect2 doesn't work under 4.3+ | ||
8628 | collect2name=`${CC} -print-prog-name=collect2` | ||
8629 | if test -f "$collect2name" && | ||
8630 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | ||
8631 | then | ||
8632 | # We have reworked collect2 | ||
8633 | : | ||
8634 | else | ||
8635 | # We have old collect2 | ||
8636 | hardcode_direct=unsupported | ||
8637 | # It fails to find uninstalled libraries when the uninstalled | ||
8638 | # path is not listed in the libpath. Setting hardcode_minus_L | ||
8639 | # to unsupported forces relinking | ||
8640 | hardcode_minus_L=yes | ||
8641 | hardcode_libdir_flag_spec='-L$libdir' | ||
8642 | hardcode_libdir_separator= | ||
8643 | fi | ||
8644 | ;; | ||
8645 | esac | ||
8646 | shared_flag='-shared' | ||
8647 | if test "$aix_use_runtimelinking" = yes; then | ||
8648 | shared_flag="$shared_flag "'${wl}-G' | ||
8649 | fi | ||
8650 | link_all_deplibs=no | ||
8651 | else | ||
8652 | # not using gcc | ||
8653 | if test "$host_cpu" = ia64; then | ||
8654 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | ||
8655 | # chokes on -Wl,-G. The following line is correct: | ||
8656 | shared_flag='-G' | ||
8657 | else | ||
8658 | if test "$aix_use_runtimelinking" = yes; then | ||
8659 | shared_flag='${wl}-G' | ||
8660 | else | ||
8661 | shared_flag='${wl}-bM:SRE' | ||
8662 | fi | ||
8663 | fi | ||
8664 | fi | ||
8665 | |||
8666 | # It seems that -bexpall does not export symbols beginning with | ||
8667 | # underscore (_), so it is better to generate a list of symbols to export. | ||
8668 | always_export_symbols=yes | ||
8669 | if test "$aix_use_runtimelinking" = yes; then | ||
8670 | # Warning - without using the other runtime loading flags (-brtl), | ||
8671 | # -berok will link without error, but may produce a broken library. | ||
8672 | allow_undefined_flag='-berok' | ||
8673 | # Determine the default libpath from the value encoded in an | ||
8674 | # empty executable. | ||
8675 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8676 | /* end confdefs.h. */ | ||
8677 | |||
8678 | int | ||
8679 | main () | ||
8680 | { | ||
8681 | |||
8682 | ; | ||
8683 | return 0; | ||
8684 | } | ||
8685 | _ACEOF | ||
8686 | if ac_fn_c_try_link "$LINENO"; then : | ||
8687 | |||
8688 | lt_aix_libpath_sed=' | ||
8689 | /Import File Strings/,/^$/ { | ||
8690 | /^0/ { | ||
8691 | s/^0 *\(.*\)$/\1/ | ||
8692 | p | ||
8693 | } | ||
8694 | }' | ||
8695 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
8696 | # Check for a 64-bit object if we didn't find anything. | ||
8697 | if test -z "$aix_libpath"; then | ||
8698 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
8699 | fi | ||
8700 | fi | ||
8701 | rm -f core conftest.err conftest.$ac_objext \ | ||
8702 | conftest$ac_exeext conftest.$ac_ext | ||
8703 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
8704 | |||
8705 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | ||
8706 | 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" | ||
8707 | else | ||
8708 | if test "$host_cpu" = ia64; then | ||
8709 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | ||
8710 | allow_undefined_flag="-z nodefs" | ||
8711 | 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" | ||
8712 | else | ||
8713 | # Determine the default libpath from the value encoded in an | ||
8714 | # empty executable. | ||
8715 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8716 | /* end confdefs.h. */ | ||
8717 | |||
8718 | int | ||
8719 | main () | ||
8720 | { | ||
8721 | |||
8722 | ; | ||
8723 | return 0; | ||
8724 | } | ||
8725 | _ACEOF | ||
8726 | if ac_fn_c_try_link "$LINENO"; then : | ||
8727 | |||
8728 | lt_aix_libpath_sed=' | ||
8729 | /Import File Strings/,/^$/ { | ||
8730 | /^0/ { | ||
8731 | s/^0 *\(.*\)$/\1/ | ||
8732 | p | ||
8733 | } | ||
8734 | }' | ||
8735 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
8736 | # Check for a 64-bit object if we didn't find anything. | ||
8737 | if test -z "$aix_libpath"; then | ||
8738 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
8739 | fi | ||
8740 | fi | ||
8741 | rm -f core conftest.err conftest.$ac_objext \ | ||
8742 | conftest$ac_exeext conftest.$ac_ext | ||
8743 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
8744 | |||
8745 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | ||
8746 | # Warning - without using the other run time loading flags, | ||
8747 | # -berok will link without error, but may produce a broken library. | ||
8748 | no_undefined_flag=' ${wl}-bernotok' | ||
8749 | allow_undefined_flag=' ${wl}-berok' | ||
8750 | # Exported symbols can be pulled into shared objects from archives | ||
8751 | whole_archive_flag_spec='$convenience' | ||
8752 | archive_cmds_need_lc=yes | ||
8753 | # This is similar to how AIX traditionally builds its shared libraries. | ||
8754 | 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' | ||
8755 | fi | ||
8756 | fi | ||
8757 | ;; | ||
8758 | |||
8759 | amigaos*) | ||
8760 | case $host_cpu in | ||
8761 | powerpc) | ||
8762 | # see comment about AmigaOS4 .so support | ||
8763 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
8764 | archive_expsym_cmds='' | ||
8765 | ;; | ||
8766 | m68k) | ||
8767 | 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)' | ||
8768 | hardcode_libdir_flag_spec='-L$libdir' | ||
8769 | hardcode_minus_L=yes | ||
8770 | ;; | ||
8771 | esac | ||
8772 | ;; | ||
8773 | |||
8774 | bsdi[45]*) | ||
8775 | export_dynamic_flag_spec=-rdynamic | ||
8776 | ;; | ||
8777 | |||
8778 | cygwin* | mingw* | pw32*) | ||
8779 | # When not using gcc, we currently assume that we are using | ||
8780 | # Microsoft Visual C++. | ||
8781 | # hardcode_libdir_flag_spec is actually meaningless, as there is | ||
8782 | # no search path for DLLs. | ||
8783 | hardcode_libdir_flag_spec=' ' | ||
8784 | allow_undefined_flag=unsupported | ||
8785 | # Tell ltmain to make .lib files, not .a files. | ||
8786 | libext=lib | ||
8787 | # Tell ltmain to make .dll files, not .so files. | ||
8788 | shrext_cmds=".dll" | ||
8789 | # FIXME: Setting linknames here is a bad hack. | ||
8790 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' | ||
8791 | # The linker will automatically build a .lib file if we build a DLL. | ||
8792 | old_archive_from_new_cmds='true' | ||
8793 | # FIXME: Should let the user specify the lib program. | ||
8794 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | ||
8795 | fix_srcfile_path='`cygpath -w "$srcfile"`' | ||
8796 | enable_shared_with_static_runtimes=yes | ||
8797 | ;; | ||
8798 | |||
8799 | darwin* | rhapsody*) | ||
8800 | |||
8801 | |||
8802 | archive_cmds_need_lc=no | ||
8803 | hardcode_direct=no | ||
8804 | hardcode_automatic=yes | ||
8805 | hardcode_shlibpath_var=unsupported | ||
8806 | whole_archive_flag_spec='' | ||
8807 | link_all_deplibs=yes | ||
8808 | allow_undefined_flag="$_lt_dar_allow_undefined" | ||
8809 | if test "$GCC" = "yes"; then | ||
8810 | output_verbose_link_cmd=echo | ||
8811 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" | ||
8812 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | ||
8813 | 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}" | ||
8814 | 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}" | ||
8815 | |||
8816 | else | ||
8817 | ld_shlibs=no | ||
8818 | fi | ||
8819 | |||
8820 | ;; | ||
8821 | |||
8822 | dgux*) | ||
8823 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
8824 | hardcode_libdir_flag_spec='-L$libdir' | ||
8825 | hardcode_shlibpath_var=no | ||
8826 | ;; | ||
8827 | |||
8828 | freebsd1*) | ||
8829 | ld_shlibs=no | ||
8830 | ;; | ||
8831 | |||
8832 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | ||
8833 | # support. Future versions do this automatically, but an explicit c++rt0.o | ||
8834 | # does not break anything, and helps significantly (at the cost of a little | ||
8835 | # extra space). | ||
8836 | freebsd2.2*) | ||
8837 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | ||
8838 | hardcode_libdir_flag_spec='-R$libdir' | ||
8839 | hardcode_direct=yes | ||
8840 | hardcode_shlibpath_var=no | ||
8841 | ;; | ||
8842 | |||
8843 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | ||
8844 | freebsd2*) | ||
8845 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | ||
8846 | hardcode_direct=yes | ||
8847 | hardcode_minus_L=yes | ||
8848 | hardcode_shlibpath_var=no | ||
8849 | ;; | ||
8850 | |||
8851 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | ||
8852 | freebsd* | dragonfly*) | ||
8853 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | ||
8854 | hardcode_libdir_flag_spec='-R$libdir' | ||
8855 | hardcode_direct=yes | ||
8856 | hardcode_shlibpath_var=no | ||
8857 | ;; | ||
8858 | |||
8859 | hpux9*) | ||
8860 | if test "$GCC" = yes; then | ||
8861 | 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' | ||
8862 | else | ||
8863 | 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' | ||
8864 | fi | ||
8865 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | ||
8866 | hardcode_libdir_separator=: | ||
8867 | hardcode_direct=yes | ||
8868 | |||
8869 | # hardcode_minus_L: Not really in the search PATH, | ||
8870 | # but as the default location of the library. | ||
8871 | hardcode_minus_L=yes | ||
8872 | export_dynamic_flag_spec='${wl}-E' | ||
8873 | ;; | ||
8874 | |||
8875 | hpux10*) | ||
8876 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | ||
8877 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
8878 | else | ||
8879 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | ||
8880 | fi | ||
8881 | if test "$with_gnu_ld" = no; then | ||
8882 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | ||
8883 | hardcode_libdir_flag_spec_ld='+b $libdir' | ||
8884 | hardcode_libdir_separator=: | ||
8885 | hardcode_direct=yes | ||
8886 | hardcode_direct_absolute=yes | ||
8887 | export_dynamic_flag_spec='${wl}-E' | ||
8888 | # hardcode_minus_L: Not really in the search PATH, | ||
8889 | # but as the default location of the library. | ||
8890 | hardcode_minus_L=yes | ||
8891 | fi | ||
8892 | ;; | ||
8893 | |||
8894 | hpux11*) | ||
8895 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | ||
8896 | case $host_cpu in | ||
8897 | hppa*64*) | ||
8898 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
8899 | ;; | ||
8900 | ia64*) | ||
8901 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | ||
8902 | ;; | ||
8903 | *) | ||
8904 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
8905 | ;; | ||
8906 | esac | ||
8907 | else | ||
8908 | case $host_cpu in | ||
8909 | hppa*64*) | ||
8910 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
8911 | ;; | ||
8912 | ia64*) | ||
8913 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | ||
8914 | ;; | ||
8915 | *) | ||
8916 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
8917 | ;; | ||
8918 | esac | ||
8919 | fi | ||
8920 | if test "$with_gnu_ld" = no; then | ||
8921 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | ||
8922 | hardcode_libdir_separator=: | ||
8923 | |||
8924 | case $host_cpu in | ||
8925 | hppa*64*|ia64*) | ||
8926 | hardcode_direct=no | ||
8927 | hardcode_shlibpath_var=no | ||
8928 | ;; | ||
8929 | *) | ||
8930 | hardcode_direct=yes | ||
8931 | hardcode_direct_absolute=yes | ||
8932 | export_dynamic_flag_spec='${wl}-E' | ||
8933 | |||
8934 | # hardcode_minus_L: Not really in the search PATH, | ||
8935 | # but as the default location of the library. | ||
8936 | hardcode_minus_L=yes | ||
8937 | ;; | ||
8938 | esac | ||
8939 | fi | ||
8940 | ;; | ||
8941 | |||
8942 | irix5* | irix6* | nonstopux*) | ||
8943 | if test "$GCC" = yes; then | ||
8944 | 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' | ||
8945 | # Try to use the -exported_symbol ld option, if it does not | ||
8946 | # work, assume that -exports_file does not work either and | ||
8947 | # implicitly export all symbols. | ||
8948 | save_LDFLAGS="$LDFLAGS" | ||
8949 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | ||
8950 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8951 | /* end confdefs.h. */ | ||
8952 | int foo(void) {} | ||
8953 | _ACEOF | ||
8954 | if ac_fn_c_try_link "$LINENO"; then : | ||
8955 | 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' | ||
8956 | |||
8957 | fi | ||
8958 | rm -f core conftest.err conftest.$ac_objext \ | ||
8959 | conftest$ac_exeext conftest.$ac_ext | ||
8960 | LDFLAGS="$save_LDFLAGS" | ||
8961 | else | ||
8962 | 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' | ||
8963 | 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' | ||
8964 | fi | ||
8965 | archive_cmds_need_lc='no' | ||
8966 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | ||
8967 | hardcode_libdir_separator=: | ||
8968 | inherit_rpath=yes | ||
8969 | link_all_deplibs=yes | ||
8970 | ;; | ||
8971 | |||
8972 | netbsd* | netbsdelf*-gnu) | ||
8973 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | ||
8974 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | ||
8975 | else | ||
8976 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | ||
8977 | fi | ||
8978 | hardcode_libdir_flag_spec='-R$libdir' | ||
8979 | hardcode_direct=yes | ||
8980 | hardcode_shlibpath_var=no | ||
8981 | ;; | ||
8982 | |||
8983 | newsos6) | ||
8984 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
8985 | hardcode_direct=yes | ||
8986 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | ||
8987 | hardcode_libdir_separator=: | ||
8988 | hardcode_shlibpath_var=no | ||
8989 | ;; | ||
8990 | |||
8991 | *nto* | *qnx*) | ||
8992 | ;; | ||
8993 | |||
8994 | openbsd*) | ||
8995 | if test -f /usr/libexec/ld.so; then | ||
8996 | hardcode_direct=yes | ||
8997 | hardcode_shlibpath_var=no | ||
8998 | hardcode_direct_absolute=yes | ||
8999 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | ||
9000 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | ||
9001 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | ||
9002 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | ||
9003 | export_dynamic_flag_spec='${wl}-E' | ||
9004 | else | ||
9005 | case $host_os in | ||
9006 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | ||
9007 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | ||
9008 | hardcode_libdir_flag_spec='-R$libdir' | ||
9009 | ;; | ||
9010 | *) | ||
9011 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | ||
9012 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | ||
9013 | ;; | ||
9014 | esac | ||
9015 | fi | ||
9016 | else | ||
9017 | ld_shlibs=no | ||
9018 | fi | ||
9019 | ;; | ||
9020 | |||
9021 | os2*) | ||
9022 | hardcode_libdir_flag_spec='-L$libdir' | ||
9023 | hardcode_minus_L=yes | ||
9024 | allow_undefined_flag=unsupported | ||
9025 | 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' | ||
9026 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | ||
9027 | ;; | ||
9028 | |||
9029 | osf3*) | ||
9030 | if test "$GCC" = yes; then | ||
9031 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | ||
9032 | 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' | ||
9033 | else | ||
9034 | allow_undefined_flag=' -expect_unresolved \*' | ||
9035 | 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' | ||
9036 | fi | ||
9037 | archive_cmds_need_lc='no' | ||
9038 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | ||
9039 | hardcode_libdir_separator=: | ||
9040 | ;; | ||
9041 | |||
9042 | osf4* | osf5*) # as osf3* with the addition of -msym flag | ||
9043 | if test "$GCC" = yes; then | ||
9044 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | ||
9045 | 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' | ||
9046 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | ||
9047 | else | ||
9048 | allow_undefined_flag=' -expect_unresolved \*' | ||
9049 | 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' | ||
9050 | 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~ | ||
9051 | $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' | ||
9052 | |||
9053 | # Both c and cxx compiler support -rpath directly | ||
9054 | hardcode_libdir_flag_spec='-rpath $libdir' | ||
9055 | fi | ||
9056 | archive_cmds_need_lc='no' | ||
9057 | hardcode_libdir_separator=: | ||
9058 | ;; | ||
9059 | |||
9060 | solaris*) | ||
9061 | no_undefined_flag=' -z defs' | ||
9062 | if test "$GCC" = yes; then | ||
9063 | wlarc='${wl}' | ||
9064 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
9065 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | ||
9066 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | ||
9067 | else | ||
9068 | case `$CC -V 2>&1` in | ||
9069 | *"Compilers 5.0"*) | ||
9070 | wlarc='' | ||
9071 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
9072 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | ||
9073 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | ||
9074 | ;; | ||
9075 | *) | ||
9076 | wlarc='${wl}' | ||
9077 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | ||
9078 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | ||
9079 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | ||
9080 | ;; | ||
9081 | esac | ||
9082 | fi | ||
9083 | hardcode_libdir_flag_spec='-R$libdir' | ||
9084 | hardcode_shlibpath_var=no | ||
9085 | case $host_os in | ||
9086 | solaris2.[0-5] | solaris2.[0-5].*) ;; | ||
9087 | *) | ||
9088 | # The compiler driver will combine and reorder linker options, | ||
9089 | # but understands `-z linker_flag'. GCC discards it without `$wl', | ||
9090 | # but is careful enough not to reorder. | ||
9091 | # Supported since Solaris 2.6 (maybe 2.5.1?) | ||
9092 | if test "$GCC" = yes; then | ||
9093 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | ||
9094 | else | ||
9095 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | ||
9096 | fi | ||
9097 | ;; | ||
9098 | esac | ||
9099 | link_all_deplibs=yes | ||
9100 | ;; | ||
9101 | |||
9102 | sunos4*) | ||
9103 | if test "x$host_vendor" = xsequent; then | ||
9104 | # Use $CC to link under sequent, because it throws in some extra .o | ||
9105 | # files that make .init and .fini sections work. | ||
9106 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | ||
9107 | else | ||
9108 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | ||
9109 | fi | ||
9110 | hardcode_libdir_flag_spec='-L$libdir' | ||
9111 | hardcode_direct=yes | ||
9112 | hardcode_minus_L=yes | ||
9113 | hardcode_shlibpath_var=no | ||
9114 | ;; | ||
9115 | |||
9116 | sysv4) | ||
9117 | case $host_vendor in | ||
9118 | sni) | ||
9119 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
9120 | hardcode_direct=yes # is this really true??? | ||
9121 | ;; | ||
9122 | siemens) | ||
9123 | ## LD is ld it makes a PLAMLIB | ||
9124 | ## CC just makes a GrossModule. | ||
9125 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | ||
9126 | reload_cmds='$CC -r -o $output$reload_objs' | ||
9127 | hardcode_direct=no | ||
9128 | ;; | ||
9129 | motorola) | ||
9130 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
9131 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | ||
9132 | ;; | ||
9133 | esac | ||
9134 | runpath_var='LD_RUN_PATH' | ||
9135 | hardcode_shlibpath_var=no | ||
9136 | ;; | ||
9137 | |||
9138 | sysv4.3*) | ||
9139 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
9140 | hardcode_shlibpath_var=no | ||
9141 | export_dynamic_flag_spec='-Bexport' | ||
9142 | ;; | ||
9143 | |||
9144 | sysv4*MP*) | ||
9145 | if test -d /usr/nec; then | ||
9146 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
9147 | hardcode_shlibpath_var=no | ||
9148 | runpath_var=LD_RUN_PATH | ||
9149 | hardcode_runpath_var=yes | ||
9150 | ld_shlibs=yes | ||
9151 | fi | ||
9152 | ;; | ||
9153 | |||
9154 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | ||
9155 | no_undefined_flag='${wl}-z,text' | ||
9156 | archive_cmds_need_lc=no | ||
9157 | hardcode_shlibpath_var=no | ||
9158 | runpath_var='LD_RUN_PATH' | ||
9159 | |||
9160 | if test "$GCC" = yes; then | ||
9161 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
9162 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
9163 | else | ||
9164 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
9165 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
9166 | fi | ||
9167 | ;; | ||
9168 | |||
9169 | sysv5* | sco3.2v5* | sco5v6*) | ||
9170 | # Note: We can NOT use -z defs as we might desire, because we do not | ||
9171 | # link with -lc, and that would cause any symbols used from libc to | ||
9172 | # always be unresolved, which means just about no library would | ||
9173 | # ever link correctly. If we're not using GNU ld we use -z text | ||
9174 | # though, which does catch some bad symbols but isn't as heavy-handed | ||
9175 | # as -z defs. | ||
9176 | no_undefined_flag='${wl}-z,text' | ||
9177 | allow_undefined_flag='${wl}-z,nodefs' | ||
9178 | archive_cmds_need_lc=no | ||
9179 | hardcode_shlibpath_var=no | ||
9180 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | ||
9181 | hardcode_libdir_separator=':' | ||
9182 | link_all_deplibs=yes | ||
9183 | export_dynamic_flag_spec='${wl}-Bexport' | ||
9184 | runpath_var='LD_RUN_PATH' | ||
9185 | |||
9186 | if test "$GCC" = yes; then | ||
9187 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
9188 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
9189 | else | ||
9190 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
9191 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
9192 | fi | ||
9193 | ;; | ||
9194 | |||
9195 | uts4*) | ||
9196 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
9197 | hardcode_libdir_flag_spec='-L$libdir' | ||
9198 | hardcode_shlibpath_var=no | ||
9199 | ;; | ||
9200 | |||
9201 | *) | ||
9202 | ld_shlibs=no | ||
9203 | ;; | ||
9204 | esac | ||
9205 | |||
9206 | if test x$host_vendor = xsni; then | ||
9207 | case $host in | ||
9208 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | ||
9209 | export_dynamic_flag_spec='${wl}-Blargedynsym' | ||
9210 | ;; | ||
9211 | esac | ||
9212 | fi | ||
9213 | fi | ||
9214 | |||
9215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 | ||
9216 | $as_echo "$ld_shlibs" >&6; } | ||
9217 | test "$ld_shlibs" = no && can_build_shared=no | ||
9218 | |||
9219 | with_gnu_ld=$with_gnu_ld | ||
9220 | |||
9221 | |||
9222 | |||
9223 | |||
9224 | |||
9225 | |||
9226 | |||
9227 | |||
9228 | |||
9229 | |||
9230 | |||
9231 | |||
9232 | |||
9233 | |||
9234 | |||
9235 | # | ||
9236 | # Do we need to explicitly link libc? | ||
9237 | # | ||
9238 | case "x$archive_cmds_need_lc" in | ||
9239 | x|xyes) | ||
9240 | # Assume -lc should be added | ||
9241 | archive_cmds_need_lc=yes | ||
9242 | |||
9243 | if test "$enable_shared" = yes && test "$GCC" = yes; then | ||
9244 | case $archive_cmds in | ||
9245 | *'~'*) | ||
9246 | # FIXME: we may have to deal with multi-command sequences. | ||
9247 | ;; | ||
9248 | '$CC '*) | ||
9249 | # Test whether the compiler implicitly links with -lc since on some | ||
9250 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | ||
9251 | # to ld, don't add -lc before -lgcc. | ||
9252 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | ||
9253 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | ||
9254 | $RM conftest* | ||
9255 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
9256 | |||
9257 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | ||
9258 | (eval $ac_compile) 2>&5 | ||
9259 | ac_status=$? | ||
9260 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
9261 | test $ac_status = 0; } 2>conftest.err; then | ||
9262 | soname=conftest | ||
9263 | lib=conftest | ||
9264 | libobjs=conftest.$ac_objext | ||
9265 | deplibs= | ||
9266 | wl=$lt_prog_compiler_wl | ||
9267 | pic_flag=$lt_prog_compiler_pic | ||
9268 | compiler_flags=-v | ||
9269 | linker_flags=-v | ||
9270 | verstring= | ||
9271 | output_objdir=. | ||
9272 | libname=conftest | ||
9273 | lt_save_allow_undefined_flag=$allow_undefined_flag | ||
9274 | allow_undefined_flag= | ||
9275 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | ||
9276 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | ||
9277 | ac_status=$? | ||
9278 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
9279 | test $ac_status = 0; } | ||
9280 | then | ||
9281 | archive_cmds_need_lc=no | ||
9282 | else | ||
9283 | archive_cmds_need_lc=yes | ||
9284 | fi | ||
9285 | allow_undefined_flag=$lt_save_allow_undefined_flag | ||
9286 | else | ||
9287 | cat conftest.err 1>&5 | ||
9288 | fi | ||
9289 | $RM conftest* | ||
9290 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5 | ||
9291 | $as_echo "$archive_cmds_need_lc" >&6; } | ||
9292 | ;; | ||
9293 | esac | ||
9294 | fi | ||
9295 | ;; | ||
9296 | esac | ||
9297 | |||
9298 | |||
9299 | |||
9300 | |||
9301 | |||
9302 | |||
9303 | |||
9304 | |||
9305 | |||
9306 | |||
9307 | |||
9308 | |||
9309 | |||
9310 | |||
9311 | |||
9312 | |||
9313 | |||
9314 | |||
9315 | |||
9316 | |||
9317 | |||
9318 | |||
9319 | |||
9320 | |||
9321 | |||
9322 | |||
9323 | |||
9324 | |||
9325 | |||
9326 | |||
9327 | |||
9328 | |||
9329 | |||
9330 | |||
9331 | |||
9332 | |||
9333 | |||
9334 | |||
9335 | |||
9336 | |||
9337 | |||
9338 | |||
9339 | |||
9340 | |||
9341 | |||
9342 | |||
9343 | |||
9344 | |||
9345 | |||
9346 | |||
9347 | |||
9348 | |||
9349 | |||
9350 | |||
9351 | |||
9352 | |||
9353 | |||
9354 | |||
9355 | |||
9356 | |||
9357 | |||
9358 | |||
9359 | |||
9360 | |||
9361 | |||
9362 | |||
9363 | |||
9364 | |||
9365 | |||
9366 | |||
9367 | |||
9368 | |||
9369 | |||
9370 | |||
9371 | |||
9372 | |||
9373 | |||
9374 | |||
9375 | |||
9376 | |||
9377 | |||
9378 | |||
9379 | |||
9380 | |||
9381 | |||
9382 | |||
9383 | |||
9384 | |||
9385 | |||
9386 | |||
9387 | |||
9388 | |||
9389 | |||
9390 | |||
9391 | |||
9392 | |||
9393 | |||
9394 | |||
9395 | |||
9396 | |||
9397 | |||
9398 | |||
9399 | |||
9400 | |||
9401 | |||
9402 | |||
9403 | |||
9404 | |||
9405 | |||
9406 | |||
9407 | |||
9408 | |||
9409 | |||
9410 | |||
9411 | |||
9412 | |||
9413 | |||
9414 | |||
9415 | |||
9416 | |||
9417 | |||
9418 | |||
9419 | |||
9420 | |||
9421 | |||
9422 | |||
9423 | |||
9424 | |||
9425 | |||
9426 | |||
9427 | |||
9428 | |||
9429 | |||
9430 | |||
9431 | |||
9432 | |||
9433 | |||
9434 | |||
9435 | |||
9436 | |||
9437 | |||
9438 | |||
9439 | |||
9440 | |||
9441 | |||
9442 | |||
9443 | |||
9444 | |||
9445 | |||
9446 | |||
9447 | |||
9448 | |||
9449 | |||
9450 | |||
9451 | |||
9452 | |||
9453 | |||
9454 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | ||
9455 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | ||
9456 | |||
9457 | if test "$GCC" = yes; then | ||
9458 | case $host_os in | ||
9459 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | ||
9460 | *) lt_awk_arg="/^libraries:/" ;; | ||
9461 | esac | ||
9462 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` | ||
9463 | if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then | ||
9464 | # if the path contains ";" then we assume it to be the separator | ||
9465 | # otherwise default to the standard path separator (i.e. ":") - it is | ||
9466 | # assumed that no part of a normal pathname contains ";" but that should | ||
9467 | # okay in the real world where ";" in dirpaths is itself problematic. | ||
9468 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` | ||
9469 | else | ||
9470 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | ||
9471 | fi | ||
9472 | # Ok, now we have the path, separated by spaces, we can step through it | ||
9473 | # and add multilib dir if necessary. | ||
9474 | lt_tmp_lt_search_path_spec= | ||
9475 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | ||
9476 | for lt_sys_path in $lt_search_path_spec; do | ||
9477 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | ||
9478 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | ||
9479 | else | ||
9480 | test -d "$lt_sys_path" && \ | ||
9481 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | ||
9482 | fi | ||
9483 | done | ||
9484 | lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' | ||
9485 | BEGIN {RS=" "; FS="/|\n";} { | ||
9486 | lt_foo=""; | ||
9487 | lt_count=0; | ||
9488 | for (lt_i = NF; lt_i > 0; lt_i--) { | ||
9489 | if ($lt_i != "" && $lt_i != ".") { | ||
9490 | if ($lt_i == "..") { | ||
9491 | lt_count++; | ||
9492 | } else { | ||
9493 | if (lt_count == 0) { | ||
9494 | lt_foo="/" $lt_i lt_foo; | ||
9495 | } else { | ||
9496 | lt_count--; | ||
9497 | } | ||
9498 | } | ||
9499 | } | ||
9500 | } | ||
9501 | if (lt_foo != "") { lt_freq[lt_foo]++; } | ||
9502 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | ||
9503 | }'` | ||
9504 | sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` | ||
9505 | else | ||
9506 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | ||
9507 | fi | ||
9508 | library_names_spec= | ||
9509 | libname_spec='lib$name' | ||
9510 | soname_spec= | ||
9511 | shrext_cmds=".so" | ||
9512 | postinstall_cmds= | ||
9513 | postuninstall_cmds= | ||
9514 | finish_cmds= | ||
9515 | finish_eval= | ||
9516 | shlibpath_var= | ||
9517 | shlibpath_overrides_runpath=unknown | ||
9518 | version_type=none | ||
9519 | dynamic_linker="$host_os ld.so" | ||
9520 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | ||
9521 | need_lib_prefix=unknown | ||
9522 | hardcode_into_libs=no | ||
9523 | |||
9524 | # when you set need_version to no, make sure it does not cause -set_version | ||
9525 | # flags to be left without arguments | ||
9526 | need_version=unknown | ||
9527 | |||
9528 | case $host_os in | ||
9529 | aix3*) | ||
9530 | version_type=linux | ||
9531 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | ||
9532 | shlibpath_var=LIBPATH | ||
9533 | |||
9534 | # AIX 3 has no versioning support, so we append a major version to the name. | ||
9535 | soname_spec='${libname}${release}${shared_ext}$major' | ||
9536 | ;; | ||
9537 | |||
9538 | aix[4-9]*) | ||
9539 | version_type=linux | ||
9540 | need_lib_prefix=no | ||
9541 | need_version=no | ||
9542 | hardcode_into_libs=yes | ||
9543 | if test "$host_cpu" = ia64; then | ||
9544 | # AIX 5 supports IA64 | ||
9545 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | ||
9546 | shlibpath_var=LD_LIBRARY_PATH | ||
9547 | else | ||
9548 | # With GCC up to 2.95.x, collect2 would create an import file | ||
9549 | # for dependence libraries. The import file would start with | ||
9550 | # the line `#! .'. This would cause the generated library to | ||
9551 | # depend on `.', always an invalid library. This was fixed in | ||
9552 | # development snapshots of GCC prior to 3.0. | ||
9553 | case $host_os in | ||
9554 | aix4 | aix4.[01] | aix4.[01].*) | ||
9555 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | ||
9556 | echo ' yes ' | ||
9557 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | ||
9558 | : | ||
9559 | else | ||
9560 | can_build_shared=no | ||
9561 | fi | ||
9562 | ;; | ||
9563 | esac | ||
9564 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | ||
9565 | # soname into executable. Probably we can add versioning support to | ||
9566 | # collect2, so additional links can be useful in future. | ||
9567 | if test "$aix_use_runtimelinking" = yes; then | ||
9568 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | ||
9569 | # instead of lib<name>.a to let people know that these are not | ||
9570 | # typical AIX shared libraries. | ||
9571 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
9572 | else | ||
9573 | # We preserve .a as extension for shared libraries through AIX4.2 | ||
9574 | # and later when we are not doing run time linking. | ||
9575 | library_names_spec='${libname}${release}.a $libname.a' | ||
9576 | soname_spec='${libname}${release}${shared_ext}$major' | ||
9577 | fi | ||
9578 | shlibpath_var=LIBPATH | ||
9579 | fi | ||
9580 | ;; | ||
9581 | |||
9582 | amigaos*) | ||
9583 | case $host_cpu in | ||
9584 | powerpc) | ||
9585 | # Since July 2007 AmigaOS4 officially supports .so libraries. | ||
9586 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | ||
9587 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
9588 | ;; | ||
9589 | m68k) | ||
9590 | library_names_spec='$libname.ixlibrary $libname.a' | ||
9591 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | ||
9592 | 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' | ||
9593 | ;; | ||
9594 | esac | ||
9595 | ;; | ||
9596 | |||
9597 | beos*) | ||
9598 | library_names_spec='${libname}${shared_ext}' | ||
9599 | dynamic_linker="$host_os ld.so" | ||
9600 | shlibpath_var=LIBRARY_PATH | ||
9601 | ;; | ||
9602 | |||
9603 | bsdi[45]*) | ||
9604 | version_type=linux | ||
9605 | need_version=no | ||
9606 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
9607 | soname_spec='${libname}${release}${shared_ext}$major' | ||
9608 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | ||
9609 | shlibpath_var=LD_LIBRARY_PATH | ||
9610 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | ||
9611 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | ||
9612 | # the default ld.so.conf also contains /usr/contrib/lib and | ||
9613 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | ||
9614 | # libtool to hard-code these into programs | ||
9615 | ;; | ||
9616 | |||
9617 | cygwin* | mingw* | pw32*) | ||
9618 | version_type=windows | ||
9619 | shrext_cmds=".dll" | ||
9620 | need_version=no | ||
9621 | need_lib_prefix=no | ||
9622 | |||
9623 | case $GCC,$host_os in | ||
9624 | yes,cygwin* | yes,mingw* | yes,pw32*) | ||
9625 | library_names_spec='$libname.dll.a' | ||
9626 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | ||
9627 | postinstall_cmds='base_file=`basename \${file}`~ | ||
9628 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | ||
9629 | dldir=$destdir/`dirname \$dlpath`~ | ||
9630 | test -d \$dldir || mkdir -p \$dldir~ | ||
9631 | $install_prog $dir/$dlname \$dldir/$dlname~ | ||
9632 | chmod a+x \$dldir/$dlname~ | ||
9633 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | ||
9634 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | ||
9635 | fi' | ||
9636 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | ||
9637 | dlpath=$dir/\$dldll~ | ||
9638 | $RM \$dlpath' | ||
9639 | shlibpath_overrides_runpath=yes | ||
9640 | |||
9641 | case $host_os in | ||
9642 | cygwin*) | ||
9643 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | ||
9644 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | ||
9645 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | ||
9646 | ;; | ||
9647 | mingw*) | ||
9648 | # MinGW DLLs use traditional 'lib' prefix | ||
9649 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | ||
9650 | sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | ||
9651 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | ||
9652 | # It is most probably a Windows format PATH printed by | ||
9653 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | ||
9654 | # path with ; separators, and with drive letters. We can handle the | ||
9655 | # drive letters (cygwin fileutils understands them), so leave them, | ||
9656 | # especially as we might pass files found there to a mingw objdump, | ||
9657 | # which wouldn't understand a cygwinified path. Ahh. | ||
9658 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | ||
9659 | else | ||
9660 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | ||
9661 | fi | ||
9662 | ;; | ||
9663 | pw32*) | ||
9664 | # pw32 DLLs use 'pw' prefix rather than 'lib' | ||
9665 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | ||
9666 | ;; | ||
9667 | esac | ||
9668 | ;; | ||
9669 | |||
9670 | *) | ||
9671 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | ||
9672 | ;; | ||
9673 | esac | ||
9674 | dynamic_linker='Win32 ld.exe' | ||
9675 | # FIXME: first we should search . and the directory the executable is in | ||
9676 | shlibpath_var=PATH | ||
9677 | ;; | ||
9678 | |||
9679 | darwin* | rhapsody*) | ||
9680 | dynamic_linker="$host_os dyld" | ||
9681 | version_type=darwin | ||
9682 | need_lib_prefix=no | ||
9683 | need_version=no | ||
9684 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | ||
9685 | soname_spec='${libname}${release}${major}$shared_ext' | ||
9686 | shlibpath_overrides_runpath=yes | ||
9687 | shlibpath_var=DYLD_LIBRARY_PATH | ||
9688 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | ||
9689 | |||
9690 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | ||
9691 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | ||
9692 | ;; | ||
9693 | |||
9694 | dgux*) | ||
9695 | version_type=linux | ||
9696 | need_lib_prefix=no | ||
9697 | need_version=no | ||
9698 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | ||
9699 | soname_spec='${libname}${release}${shared_ext}$major' | ||
9700 | shlibpath_var=LD_LIBRARY_PATH | ||
9701 | ;; | ||
9702 | |||
9703 | freebsd1*) | ||
9704 | dynamic_linker=no | ||
9705 | ;; | ||
9706 | |||
9707 | freebsd* | dragonfly*) | ||
9708 | # DragonFly does not have aout. When/if they implement a new | ||
9709 | # versioning mechanism, adjust this. | ||
9710 | if test -x /usr/bin/objformat; then | ||
9711 | objformat=`/usr/bin/objformat` | ||
9712 | else | ||
9713 | case $host_os in | ||
9714 | freebsd[123]*) objformat=aout ;; | ||
9715 | *) objformat=elf ;; | ||
9716 | esac | ||
9717 | fi | ||
9718 | version_type=freebsd-$objformat | ||
9719 | case $version_type in | ||
9720 | freebsd-elf*) | ||
9721 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | ||
9722 | need_version=no | ||
9723 | need_lib_prefix=no | ||
9724 | ;; | ||
9725 | freebsd-*) | ||
9726 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | ||
9727 | need_version=yes | ||
9728 | ;; | ||
9729 | esac | ||
9730 | shlibpath_var=LD_LIBRARY_PATH | ||
9731 | case $host_os in | ||
9732 | freebsd2*) | ||
9733 | shlibpath_overrides_runpath=yes | ||
9734 | ;; | ||
9735 | freebsd3.[01]* | freebsdelf3.[01]*) | ||
9736 | shlibpath_overrides_runpath=yes | ||
9737 | hardcode_into_libs=yes | ||
9738 | ;; | ||
9739 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | ||
9740 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | ||
9741 | shlibpath_overrides_runpath=no | ||
9742 | hardcode_into_libs=yes | ||
9743 | ;; | ||
9744 | *) # from 4.6 on, and DragonFly | ||
9745 | shlibpath_overrides_runpath=yes | ||
9746 | hardcode_into_libs=yes | ||
9747 | ;; | ||
9748 | esac | ||
9749 | ;; | ||
9750 | |||
9751 | gnu*) | ||
9752 | version_type=linux | ||
9753 | need_lib_prefix=no | ||
9754 | need_version=no | ||
9755 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | ||
9756 | soname_spec='${libname}${release}${shared_ext}$major' | ||
9757 | shlibpath_var=LD_LIBRARY_PATH | ||
9758 | hardcode_into_libs=yes | ||
9759 | ;; | ||
9760 | |||
9761 | hpux9* | hpux10* | hpux11*) | ||
9762 | # Give a soname corresponding to the major version so that dld.sl refuses to | ||
9763 | # link against other versions. | ||
9764 | version_type=sunos | ||
9765 | need_lib_prefix=no | ||
9766 | need_version=no | ||
9767 | case $host_cpu in | ||
9768 | ia64*) | ||
9769 | shrext_cmds='.so' | ||
9770 | hardcode_into_libs=yes | ||
9771 | dynamic_linker="$host_os dld.so" | ||
9772 | shlibpath_var=LD_LIBRARY_PATH | ||
9773 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | ||
9774 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
9775 | soname_spec='${libname}${release}${shared_ext}$major' | ||
9776 | if test "X$HPUX_IA64_MODE" = X32; then | ||
9777 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | ||
9778 | else | ||
9779 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | ||
9780 | fi | ||
9781 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | ||
9782 | ;; | ||
9783 | hppa*64*) | ||
9784 | shrext_cmds='.sl' | ||
9785 | hardcode_into_libs=yes | ||
9786 | dynamic_linker="$host_os dld.sl" | ||
9787 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | ||
9788 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | ||
9789 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
9790 | soname_spec='${libname}${release}${shared_ext}$major' | ||
9791 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | ||
9792 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | ||
9793 | ;; | ||
9794 | *) | ||
9795 | shrext_cmds='.sl' | ||
9796 | dynamic_linker="$host_os dld.sl" | ||
9797 | shlibpath_var=SHLIB_PATH | ||
9798 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | ||
9799 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
9800 | soname_spec='${libname}${release}${shared_ext}$major' | ||
9801 | ;; | ||
9802 | esac | ||
9803 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | ||
9804 | postinstall_cmds='chmod 555 $lib' | ||
9805 | ;; | ||
9806 | |||
9807 | interix[3-9]*) | ||
9808 | version_type=linux | ||
9809 | need_lib_prefix=no | ||
9810 | need_version=no | ||
9811 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
9812 | soname_spec='${libname}${release}${shared_ext}$major' | ||
9813 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | ||
9814 | shlibpath_var=LD_LIBRARY_PATH | ||
9815 | shlibpath_overrides_runpath=no | ||
9816 | hardcode_into_libs=yes | ||
9817 | ;; | ||
9818 | |||
9819 | irix5* | irix6* | nonstopux*) | ||
9820 | case $host_os in | ||
9821 | nonstopux*) version_type=nonstopux ;; | ||
9822 | *) | ||
9823 | if test "$lt_cv_prog_gnu_ld" = yes; then | ||
9824 | version_type=linux | ||
9825 | else | ||
9826 | version_type=irix | ||
9827 | fi ;; | ||
9828 | esac | ||
9829 | need_lib_prefix=no | ||
9830 | need_version=no | ||
9831 | soname_spec='${libname}${release}${shared_ext}$major' | ||
9832 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | ||
9833 | case $host_os in | ||
9834 | irix5* | nonstopux*) | ||
9835 | libsuff= shlibsuff= | ||
9836 | ;; | ||
9837 | *) | ||
9838 | case $LD in # libtool.m4 will add one of these switches to LD | ||
9839 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | ||
9840 | libsuff= shlibsuff= libmagic=32-bit;; | ||
9841 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | ||
9842 | libsuff=32 shlibsuff=N32 libmagic=N32;; | ||
9843 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | ||
9844 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | ||
9845 | *) libsuff= shlibsuff= libmagic=never-match;; | ||
9846 | esac | ||
9847 | ;; | ||
9848 | esac | ||
9849 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | ||
9850 | shlibpath_overrides_runpath=no | ||
9851 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | ||
9852 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | ||
9853 | hardcode_into_libs=yes | ||
9854 | ;; | ||
9855 | |||
9856 | # No shared lib support for Linux oldld, aout, or coff. | ||
9857 | linux*oldld* | linux*aout* | linux*coff*) | ||
9858 | dynamic_linker=no | ||
9859 | ;; | ||
9860 | |||
9861 | # This must be Linux ELF. | ||
9862 | linux* | k*bsd*-gnu) | ||
9863 | version_type=linux | ||
9864 | need_lib_prefix=no | ||
9865 | need_version=no | ||
9866 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
9867 | soname_spec='${libname}${release}${shared_ext}$major' | ||
9868 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | ||
9869 | shlibpath_var=LD_LIBRARY_PATH | ||
9870 | shlibpath_overrides_runpath=no | ||
9871 | # Some binutils ld are patched to set DT_RUNPATH | ||
9872 | save_LDFLAGS=$LDFLAGS | ||
9873 | save_libdir=$libdir | ||
9874 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | ||
9875 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | ||
9876 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9877 | /* end confdefs.h. */ | ||
9878 | |||
9879 | int | ||
9880 | main () | ||
9881 | { | ||
9882 | |||
9883 | ; | ||
9884 | return 0; | ||
9885 | } | ||
9886 | _ACEOF | ||
9887 | if ac_fn_c_try_link "$LINENO"; then : | ||
9888 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | ||
9889 | shlibpath_overrides_runpath=yes | ||
9890 | fi | ||
9891 | fi | ||
9892 | rm -f core conftest.err conftest.$ac_objext \ | ||
9893 | conftest$ac_exeext conftest.$ac_ext | ||
9894 | LDFLAGS=$save_LDFLAGS | ||
9895 | libdir=$save_libdir | ||
9896 | |||
9897 | # This implies no fast_install, which is unacceptable. | ||
9898 | # Some rework will be needed to allow for fast_install | ||
9899 | # before this can be enabled. | ||
9900 | hardcode_into_libs=yes | ||
9901 | |||
9902 | # Append ld.so.conf contents to the search path | ||
9903 | if test -f /etc/ld.so.conf; then | ||
9904 | 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' ' '` | ||
9905 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | ||
9906 | fi | ||
9907 | |||
9908 | # We used to test for /lib/ld.so.1 and disable shared libraries on | ||
9909 | # powerpc, because MkLinux only supported shared libraries with the | ||
9910 | # GNU dynamic linker. Since this was broken with cross compilers, | ||
9911 | # most powerpc-linux boxes support dynamic linking these days and | ||
9912 | # people can always --disable-shared, the test was removed, and we | ||
9913 | # assume the GNU/Linux dynamic linker is in use. | ||
9914 | dynamic_linker='GNU/Linux ld.so' | ||
9915 | ;; | ||
9916 | |||
9917 | netbsdelf*-gnu) | ||
9918 | version_type=linux | ||
9919 | need_lib_prefix=no | ||
9920 | need_version=no | ||
9921 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
9922 | soname_spec='${libname}${release}${shared_ext}$major' | ||
9923 | shlibpath_var=LD_LIBRARY_PATH | ||
9924 | shlibpath_overrides_runpath=no | ||
9925 | hardcode_into_libs=yes | ||
9926 | dynamic_linker='NetBSD ld.elf_so' | ||
9927 | ;; | ||
9928 | |||
9929 | netbsd*) | ||
9930 | version_type=sunos | ||
9931 | need_lib_prefix=no | ||
9932 | need_version=no | ||
9933 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | ||
9934 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | ||
9935 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | ||
9936 | dynamic_linker='NetBSD (a.out) ld.so' | ||
9937 | else | ||
9938 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
9939 | soname_spec='${libname}${release}${shared_ext}$major' | ||
9940 | dynamic_linker='NetBSD ld.elf_so' | ||
9941 | fi | ||
9942 | shlibpath_var=LD_LIBRARY_PATH | ||
9943 | shlibpath_overrides_runpath=yes | ||
9944 | hardcode_into_libs=yes | ||
9945 | ;; | ||
9946 | |||
9947 | newsos6) | ||
9948 | version_type=linux | ||
9949 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
9950 | shlibpath_var=LD_LIBRARY_PATH | ||
9951 | shlibpath_overrides_runpath=yes | ||
9952 | ;; | ||
9953 | |||
9954 | *nto* | *qnx*) | ||
9955 | version_type=qnx | ||
9956 | need_lib_prefix=no | ||
9957 | need_version=no | ||
9958 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
9959 | soname_spec='${libname}${release}${shared_ext}$major' | ||
9960 | shlibpath_var=LD_LIBRARY_PATH | ||
9961 | shlibpath_overrides_runpath=no | ||
9962 | hardcode_into_libs=yes | ||
9963 | dynamic_linker='ldqnx.so' | ||
9964 | ;; | ||
9965 | |||
9966 | openbsd*) | ||
9967 | version_type=sunos | ||
9968 | sys_lib_dlsearch_path_spec="/usr/lib" | ||
9969 | need_lib_prefix=no | ||
9970 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | ||
9971 | case $host_os in | ||
9972 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | ||
9973 | *) need_version=no ;; | ||
9974 | esac | ||
9975 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | ||
9976 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | ||
9977 | shlibpath_var=LD_LIBRARY_PATH | ||
9978 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | ||
9979 | case $host_os in | ||
9980 | openbsd2.[89] | openbsd2.[89].*) | ||
9981 | shlibpath_overrides_runpath=no | ||
9982 | ;; | ||
9983 | *) | ||
9984 | shlibpath_overrides_runpath=yes | ||
9985 | ;; | ||
9986 | esac | ||
9987 | else | ||
9988 | shlibpath_overrides_runpath=yes | ||
9989 | fi | ||
9990 | ;; | ||
9991 | |||
9992 | os2*) | ||
9993 | libname_spec='$name' | ||
9994 | shrext_cmds=".dll" | ||
9995 | need_lib_prefix=no | ||
9996 | library_names_spec='$libname${shared_ext} $libname.a' | ||
9997 | dynamic_linker='OS/2 ld.exe' | ||
9998 | shlibpath_var=LIBPATH | ||
9999 | ;; | ||
10000 | |||
10001 | osf3* | osf4* | osf5*) | ||
10002 | version_type=osf | ||
10003 | need_lib_prefix=no | ||
10004 | need_version=no | ||
10005 | soname_spec='${libname}${release}${shared_ext}$major' | ||
10006 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
10007 | shlibpath_var=LD_LIBRARY_PATH | ||
10008 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | ||
10009 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | ||
10010 | ;; | ||
10011 | |||
10012 | rdos*) | ||
10013 | dynamic_linker=no | ||
10014 | ;; | ||
10015 | |||
10016 | solaris*) | ||
10017 | version_type=linux | ||
10018 | need_lib_prefix=no | ||
10019 | need_version=no | ||
10020 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
10021 | soname_spec='${libname}${release}${shared_ext}$major' | ||
10022 | shlibpath_var=LD_LIBRARY_PATH | ||
10023 | shlibpath_overrides_runpath=yes | ||
10024 | hardcode_into_libs=yes | ||
10025 | # ldd complains unless libraries are executable | ||
10026 | postinstall_cmds='chmod +x $lib' | ||
10027 | ;; | ||
10028 | |||
10029 | sunos4*) | ||
10030 | version_type=sunos | ||
10031 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | ||
10032 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | ||
10033 | shlibpath_var=LD_LIBRARY_PATH | ||
10034 | shlibpath_overrides_runpath=yes | ||
10035 | if test "$with_gnu_ld" = yes; then | ||
10036 | need_lib_prefix=no | ||
10037 | fi | ||
10038 | need_version=yes | ||
10039 | ;; | ||
10040 | |||
10041 | sysv4 | sysv4.3*) | ||
10042 | version_type=linux | ||
10043 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
10044 | soname_spec='${libname}${release}${shared_ext}$major' | ||
10045 | shlibpath_var=LD_LIBRARY_PATH | ||
10046 | case $host_vendor in | ||
10047 | sni) | ||
10048 | shlibpath_overrides_runpath=no | ||
10049 | need_lib_prefix=no | ||
10050 | runpath_var=LD_RUN_PATH | ||
10051 | ;; | ||
10052 | siemens) | ||
10053 | need_lib_prefix=no | ||
10054 | ;; | ||
10055 | motorola) | ||
10056 | need_lib_prefix=no | ||
10057 | need_version=no | ||
10058 | shlibpath_overrides_runpath=no | ||
10059 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | ||
10060 | ;; | ||
10061 | esac | ||
10062 | ;; | ||
10063 | |||
10064 | sysv4*MP*) | ||
10065 | if test -d /usr/nec ;then | ||
10066 | version_type=linux | ||
10067 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | ||
10068 | soname_spec='$libname${shared_ext}.$major' | ||
10069 | shlibpath_var=LD_LIBRARY_PATH | ||
10070 | fi | ||
10071 | ;; | ||
10072 | |||
10073 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | ||
10074 | version_type=freebsd-elf | ||
10075 | need_lib_prefix=no | ||
10076 | need_version=no | ||
10077 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | ||
10078 | soname_spec='${libname}${release}${shared_ext}$major' | ||
10079 | shlibpath_var=LD_LIBRARY_PATH | ||
10080 | shlibpath_overrides_runpath=yes | ||
10081 | hardcode_into_libs=yes | ||
10082 | if test "$with_gnu_ld" = yes; then | ||
10083 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | ||
10084 | else | ||
10085 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | ||
10086 | case $host_os in | ||
10087 | sco3.2v5*) | ||
10088 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | ||
10089 | ;; | ||
10090 | esac | ||
10091 | fi | ||
10092 | sys_lib_dlsearch_path_spec='/usr/lib' | ||
10093 | ;; | ||
10094 | |||
10095 | tpf*) | ||
10096 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | ||
10097 | version_type=linux | ||
10098 | need_lib_prefix=no | ||
10099 | need_version=no | ||
10100 | library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
10101 | shlibpath_var=LD_LIBRARY_PATH | ||
10102 | shlibpath_overrides_runpath=no | ||
10103 | hardcode_into_libs=yes | ||
10104 | ;; | ||
10105 | |||
10106 | uts4*) | ||
10107 | version_type=linux | ||
10108 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
10109 | soname_spec='${libname}${release}${shared_ext}$major' | ||
10110 | shlibpath_var=LD_LIBRARY_PATH | ||
10111 | ;; | ||
10112 | |||
10113 | *) | ||
10114 | dynamic_linker=no | ||
10115 | ;; | ||
10116 | esac | ||
10117 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | ||
10118 | $as_echo "$dynamic_linker" >&6; } | ||
10119 | test "$dynamic_linker" = no && can_build_shared=no | ||
10120 | |||
10121 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | ||
10122 | if test "$GCC" = yes; then | ||
10123 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | ||
10124 | fi | ||
10125 | |||
10126 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then | ||
10127 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | ||
10128 | fi | ||
10129 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | ||
10130 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | ||
10131 | fi | ||
10132 | |||
10133 | |||
10134 | |||
10135 | |||
10136 | |||
10137 | |||
10138 | |||
10139 | |||
10140 | |||
10141 | |||
10142 | |||
10143 | |||
10144 | |||
10145 | |||
10146 | |||
10147 | |||
10148 | |||
10149 | |||
10150 | |||
10151 | |||
10152 | |||
10153 | |||
10154 | |||
10155 | |||
10156 | |||
10157 | |||
10158 | |||
10159 | |||
10160 | |||
10161 | |||
10162 | |||
10163 | |||
10164 | |||
10165 | |||
10166 | |||
10167 | |||
10168 | |||
10169 | |||
10170 | |||
10171 | |||
10172 | |||
10173 | |||
10174 | |||
10175 | |||
10176 | |||
10177 | |||
10178 | |||
10179 | |||
10180 | |||
10181 | |||
10182 | |||
10183 | |||
10184 | |||
10185 | |||
10186 | |||
10187 | |||
10188 | |||
10189 | |||
10190 | |||
10191 | |||
10192 | |||
10193 | |||
10194 | |||
10195 | |||
10196 | |||
10197 | |||
10198 | |||
10199 | |||
10200 | |||
10201 | |||
10202 | |||
10203 | |||
10204 | |||
10205 | |||
10206 | |||
10207 | |||
10208 | |||
10209 | |||
10210 | |||
10211 | |||
10212 | |||
10213 | |||
10214 | |||
10215 | |||
10216 | |||
10217 | |||
10218 | |||
10219 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | ||
10220 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | ||
10221 | hardcode_action= | ||
10222 | if test -n "$hardcode_libdir_flag_spec" || | ||
10223 | test -n "$runpath_var" || | ||
10224 | test "X$hardcode_automatic" = "Xyes" ; then | ||
10225 | |||
10226 | # We can hardcode non-existent directories. | ||
10227 | if test "$hardcode_direct" != no && | ||
10228 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | ||
10229 | # have to relink, otherwise we might link with an installed library | ||
10230 | # when we should be linking with a yet-to-be-installed one | ||
10231 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | ||
10232 | test "$hardcode_minus_L" != no; then | ||
10233 | # Linking always hardcodes the temporary library directory. | ||
10234 | hardcode_action=relink | ||
10235 | else | ||
10236 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | ||
10237 | hardcode_action=immediate | ||
10238 | fi | ||
10239 | else | ||
10240 | # We cannot hardcode anything, or else we can only hardcode existing | ||
10241 | # directories. | ||
10242 | hardcode_action=unsupported | ||
10243 | fi | ||
10244 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 | ||
10245 | $as_echo "$hardcode_action" >&6; } | ||
10246 | |||
10247 | if test "$hardcode_action" = relink || | ||
10248 | test "$inherit_rpath" = yes; then | ||
10249 | # Fast installation is not supported | ||
10250 | enable_fast_install=no | ||
10251 | elif test "$shlibpath_overrides_runpath" = yes || | ||
10252 | test "$enable_shared" = no; then | ||
10253 | # Fast installation is not necessary | ||
10254 | enable_fast_install=needless | ||
10255 | fi | ||
10256 | |||
10257 | |||
10258 | |||
10259 | |||
10260 | |||
10261 | |||
10262 | if test "x$enable_dlopen" != xyes; then | ||
10263 | enable_dlopen=unknown | ||
10264 | enable_dlopen_self=unknown | ||
10265 | enable_dlopen_self_static=unknown | ||
10266 | else | ||
10267 | lt_cv_dlopen=no | ||
10268 | lt_cv_dlopen_libs= | ||
10269 | |||
10270 | case $host_os in | ||
10271 | beos*) | ||
10272 | lt_cv_dlopen="load_add_on" | ||
10273 | lt_cv_dlopen_libs= | ||
10274 | lt_cv_dlopen_self=yes | ||
10275 | ;; | ||
10276 | |||
10277 | mingw* | pw32*) | ||
10278 | lt_cv_dlopen="LoadLibrary" | ||
10279 | lt_cv_dlopen_libs= | ||
10280 | ;; | ||
10281 | |||
10282 | cygwin*) | ||
10283 | lt_cv_dlopen="dlopen" | ||
10284 | lt_cv_dlopen_libs= | ||
10285 | ;; | ||
10286 | |||
10287 | darwin*) | ||
10288 | # if libdl is installed we need to link against it | ||
10289 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | ||
10290 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | ||
10291 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : | ||
10292 | $as_echo_n "(cached) " >&6 | ||
10293 | else | ||
10294 | ac_check_lib_save_LIBS=$LIBS | ||
10295 | LIBS="-ldl $LIBS" | ||
10296 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10297 | /* end confdefs.h. */ | ||
10298 | |||
10299 | /* Override any GCC internal prototype to avoid an error. | ||
10300 | Use char because int might match the return type of a GCC | ||
10301 | builtin and then its argument prototype would still apply. */ | ||
10302 | #ifdef __cplusplus | ||
10303 | extern "C" | ||
10304 | #endif | ||
10305 | char dlopen (); | ||
10306 | int | ||
10307 | main () | ||
10308 | { | ||
10309 | return dlopen (); | ||
10310 | ; | ||
10311 | return 0; | ||
10312 | } | ||
10313 | _ACEOF | ||
10314 | if ac_fn_c_try_link "$LINENO"; then : | ||
10315 | ac_cv_lib_dl_dlopen=yes | ||
10316 | else | ||
10317 | ac_cv_lib_dl_dlopen=no | ||
10318 | fi | ||
10319 | rm -f core conftest.err conftest.$ac_objext \ | ||
10320 | conftest$ac_exeext conftest.$ac_ext | ||
10321 | LIBS=$ac_check_lib_save_LIBS | ||
10322 | fi | ||
10323 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | ||
10324 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | ||
10325 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : | ||
10326 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | ||
10327 | else | ||
10328 | |||
10329 | lt_cv_dlopen="dyld" | ||
10330 | lt_cv_dlopen_libs= | ||
10331 | lt_cv_dlopen_self=yes | ||
10332 | |||
10333 | fi | ||
10334 | |||
10335 | ;; | ||
10336 | |||
10337 | *) | ||
10338 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" | ||
10339 | if test "x$ac_cv_func_shl_load" = x""yes; then : | ||
10340 | lt_cv_dlopen="shl_load" | ||
10341 | else | ||
10342 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 | ||
10343 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | ||
10344 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then : | ||
10345 | $as_echo_n "(cached) " >&6 | ||
10346 | else | ||
10347 | ac_check_lib_save_LIBS=$LIBS | ||
10348 | LIBS="-ldld $LIBS" | ||
10349 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10350 | /* end confdefs.h. */ | ||
10351 | |||
10352 | /* Override any GCC internal prototype to avoid an error. | ||
10353 | Use char because int might match the return type of a GCC | ||
10354 | builtin and then its argument prototype would still apply. */ | ||
10355 | #ifdef __cplusplus | ||
10356 | extern "C" | ||
10357 | #endif | ||
10358 | char shl_load (); | ||
10359 | int | ||
10360 | main () | ||
10361 | { | ||
10362 | return shl_load (); | ||
10363 | ; | ||
10364 | return 0; | ||
10365 | } | ||
10366 | _ACEOF | ||
10367 | if ac_fn_c_try_link "$LINENO"; then : | ||
10368 | ac_cv_lib_dld_shl_load=yes | ||
10369 | else | ||
10370 | ac_cv_lib_dld_shl_load=no | ||
10371 | fi | ||
10372 | rm -f core conftest.err conftest.$ac_objext \ | ||
10373 | conftest$ac_exeext conftest.$ac_ext | ||
10374 | LIBS=$ac_check_lib_save_LIBS | ||
10375 | fi | ||
10376 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 | ||
10377 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | ||
10378 | if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : | ||
10379 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" | ||
10380 | else | ||
10381 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | ||
10382 | if test "x$ac_cv_func_dlopen" = x""yes; then : | ||
10383 | lt_cv_dlopen="dlopen" | ||
10384 | else | ||
10385 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | ||
10386 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | ||
10387 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : | ||
10388 | $as_echo_n "(cached) " >&6 | ||
10389 | else | ||
10390 | ac_check_lib_save_LIBS=$LIBS | ||
10391 | LIBS="-ldl $LIBS" | ||
10392 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10393 | /* end confdefs.h. */ | ||
10394 | |||
10395 | /* Override any GCC internal prototype to avoid an error. | ||
10396 | Use char because int might match the return type of a GCC | ||
10397 | builtin and then its argument prototype would still apply. */ | ||
10398 | #ifdef __cplusplus | ||
10399 | extern "C" | ||
10400 | #endif | ||
10401 | char dlopen (); | ||
10402 | int | ||
10403 | main () | ||
10404 | { | ||
10405 | return dlopen (); | ||
10406 | ; | ||
10407 | return 0; | ||
10408 | } | ||
10409 | _ACEOF | ||
10410 | if ac_fn_c_try_link "$LINENO"; then : | ||
10411 | ac_cv_lib_dl_dlopen=yes | ||
10412 | else | ||
10413 | ac_cv_lib_dl_dlopen=no | ||
10414 | fi | ||
10415 | rm -f core conftest.err conftest.$ac_objext \ | ||
10416 | conftest$ac_exeext conftest.$ac_ext | ||
10417 | LIBS=$ac_check_lib_save_LIBS | ||
10418 | fi | ||
10419 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | ||
10420 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | ||
10421 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : | ||
10422 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | ||
10423 | else | ||
10424 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 | ||
10425 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | ||
10426 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then : | ||
10427 | $as_echo_n "(cached) " >&6 | ||
10428 | else | ||
10429 | ac_check_lib_save_LIBS=$LIBS | ||
10430 | LIBS="-lsvld $LIBS" | ||
10431 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10432 | /* end confdefs.h. */ | ||
10433 | |||
10434 | /* Override any GCC internal prototype to avoid an error. | ||
10435 | Use char because int might match the return type of a GCC | ||
10436 | builtin and then its argument prototype would still apply. */ | ||
10437 | #ifdef __cplusplus | ||
10438 | extern "C" | ||
10439 | #endif | ||
10440 | char dlopen (); | ||
10441 | int | ||
10442 | main () | ||
10443 | { | ||
10444 | return dlopen (); | ||
10445 | ; | ||
10446 | return 0; | ||
10447 | } | ||
10448 | _ACEOF | ||
10449 | if ac_fn_c_try_link "$LINENO"; then : | ||
10450 | ac_cv_lib_svld_dlopen=yes | ||
10451 | else | ||
10452 | ac_cv_lib_svld_dlopen=no | ||
10453 | fi | ||
10454 | rm -f core conftest.err conftest.$ac_objext \ | ||
10455 | conftest$ac_exeext conftest.$ac_ext | ||
10456 | LIBS=$ac_check_lib_save_LIBS | ||
10457 | fi | ||
10458 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 | ||
10459 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | ||
10460 | if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : | ||
10461 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | ||
10462 | else | ||
10463 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 | ||
10464 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | ||
10465 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then : | ||
10466 | $as_echo_n "(cached) " >&6 | ||
10467 | else | ||
10468 | ac_check_lib_save_LIBS=$LIBS | ||
10469 | LIBS="-ldld $LIBS" | ||
10470 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10471 | /* end confdefs.h. */ | ||
10472 | |||
10473 | /* Override any GCC internal prototype to avoid an error. | ||
10474 | Use char because int might match the return type of a GCC | ||
10475 | builtin and then its argument prototype would still apply. */ | ||
10476 | #ifdef __cplusplus | ||
10477 | extern "C" | ||
10478 | #endif | ||
10479 | char dld_link (); | ||
10480 | int | ||
10481 | main () | ||
10482 | { | ||
10483 | return dld_link (); | ||
10484 | ; | ||
10485 | return 0; | ||
10486 | } | ||
10487 | _ACEOF | ||
10488 | if ac_fn_c_try_link "$LINENO"; then : | ||
10489 | ac_cv_lib_dld_dld_link=yes | ||
10490 | else | ||
10491 | ac_cv_lib_dld_dld_link=no | ||
10492 | fi | ||
10493 | rm -f core conftest.err conftest.$ac_objext \ | ||
10494 | conftest$ac_exeext conftest.$ac_ext | ||
10495 | LIBS=$ac_check_lib_save_LIBS | ||
10496 | fi | ||
10497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 | ||
10498 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | ||
10499 | if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : | ||
10500 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" | ||
10501 | fi | ||
10502 | |||
10503 | |||
10504 | fi | ||
10505 | |||
10506 | |||
10507 | fi | ||
10508 | |||
10509 | |||
10510 | fi | ||
10511 | |||
10512 | |||
10513 | fi | ||
10514 | |||
10515 | |||
10516 | fi | ||
10517 | |||
10518 | ;; | ||
10519 | esac | ||
10520 | |||
10521 | if test "x$lt_cv_dlopen" != xno; then | ||
10522 | enable_dlopen=yes | ||
10523 | else | ||
10524 | enable_dlopen=no | ||
10525 | fi | ||
10526 | |||
10527 | case $lt_cv_dlopen in | ||
10528 | dlopen) | ||
10529 | save_CPPFLAGS="$CPPFLAGS" | ||
10530 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | ||
10531 | |||
10532 | save_LDFLAGS="$LDFLAGS" | ||
10533 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | ||
10534 | |||
10535 | save_LIBS="$LIBS" | ||
10536 | LIBS="$lt_cv_dlopen_libs $LIBS" | ||
10537 | |||
10538 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 | ||
10539 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } | ||
10540 | if test "${lt_cv_dlopen_self+set}" = set; then : | ||
10541 | $as_echo_n "(cached) " >&6 | ||
10542 | else | ||
10543 | if test "$cross_compiling" = yes; then : | ||
10544 | lt_cv_dlopen_self=cross | ||
10545 | else | ||
10546 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | ||
10547 | lt_status=$lt_dlunknown | ||
10548 | cat > conftest.$ac_ext <<_LT_EOF | ||
10549 | #line 10549 "configure" | ||
10550 | #include "confdefs.h" | ||
10551 | |||
10552 | #if HAVE_DLFCN_H | ||
10553 | #include <dlfcn.h> | ||
10554 | #endif | ||
10555 | |||
10556 | #include <stdio.h> | ||
10557 | |||
10558 | #ifdef RTLD_GLOBAL | ||
10559 | # define LT_DLGLOBAL RTLD_GLOBAL | ||
10560 | #else | ||
10561 | # ifdef DL_GLOBAL | ||
10562 | # define LT_DLGLOBAL DL_GLOBAL | ||
10563 | # else | ||
10564 | # define LT_DLGLOBAL 0 | ||
10565 | # endif | ||
10566 | #endif | ||
10567 | |||
10568 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | ||
10569 | find out it does not work in some platform. */ | ||
10570 | #ifndef LT_DLLAZY_OR_NOW | ||
10571 | # ifdef RTLD_LAZY | ||
10572 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | ||
10573 | # else | ||
10574 | # ifdef DL_LAZY | ||
10575 | # define LT_DLLAZY_OR_NOW DL_LAZY | ||
10576 | # else | ||
10577 | # ifdef RTLD_NOW | ||
10578 | # define LT_DLLAZY_OR_NOW RTLD_NOW | ||
10579 | # else | ||
10580 | # ifdef DL_NOW | ||
10581 | # define LT_DLLAZY_OR_NOW DL_NOW | ||
10582 | # else | ||
10583 | # define LT_DLLAZY_OR_NOW 0 | ||
10584 | # endif | ||
10585 | # endif | ||
10586 | # endif | ||
10587 | # endif | ||
10588 | #endif | ||
10589 | |||
10590 | #ifdef __cplusplus | ||
10591 | extern "C" void exit (int); | ||
10592 | #endif | ||
10593 | |||
10594 | void fnord() { int i=42;} | ||
10595 | int main () | ||
10596 | { | ||
10597 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | ||
10598 | int status = $lt_dlunknown; | ||
10599 | |||
10600 | if (self) | ||
10601 | { | ||
10602 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | ||
10603 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | ||
10604 | /* dlclose (self); */ | ||
10605 | } | ||
10606 | else | ||
10607 | puts (dlerror ()); | ||
10608 | |||
10609 | exit (status); | ||
10610 | } | ||
10611 | _LT_EOF | ||
10612 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | ||
10613 | (eval $ac_link) 2>&5 | ||
10614 | ac_status=$? | ||
10615 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
10616 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | ||
10617 | (./conftest; exit; ) >&5 2>/dev/null | ||
10618 | lt_status=$? | ||
10619 | case x$lt_status in | ||
10620 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | ||
10621 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | ||
10622 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | ||
10623 | esac | ||
10624 | else : | ||
10625 | # compilation failed | ||
10626 | lt_cv_dlopen_self=no | ||
10627 | fi | ||
10628 | fi | ||
10629 | rm -fr conftest* | ||
10630 | |||
10631 | |||
10632 | fi | ||
10633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 | ||
10634 | $as_echo "$lt_cv_dlopen_self" >&6; } | ||
10635 | |||
10636 | if test "x$lt_cv_dlopen_self" = xyes; then | ||
10637 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | ||
10638 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 | ||
10639 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | ||
10640 | if test "${lt_cv_dlopen_self_static+set}" = set; then : | ||
10641 | $as_echo_n "(cached) " >&6 | ||
10642 | else | ||
10643 | if test "$cross_compiling" = yes; then : | ||
10644 | lt_cv_dlopen_self_static=cross | ||
10645 | else | ||
10646 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | ||
10647 | lt_status=$lt_dlunknown | ||
10648 | cat > conftest.$ac_ext <<_LT_EOF | ||
10649 | #line 10649 "configure" | ||
10650 | #include "confdefs.h" | ||
10651 | |||
10652 | #if HAVE_DLFCN_H | ||
10653 | #include <dlfcn.h> | ||
10654 | #endif | ||
10655 | |||
10656 | #include <stdio.h> | ||
10657 | |||
10658 | #ifdef RTLD_GLOBAL | ||
10659 | # define LT_DLGLOBAL RTLD_GLOBAL | ||
10660 | #else | ||
10661 | # ifdef DL_GLOBAL | ||
10662 | # define LT_DLGLOBAL DL_GLOBAL | ||
10663 | # else | ||
10664 | # define LT_DLGLOBAL 0 | ||
10665 | # endif | ||
10666 | #endif | ||
10667 | |||
10668 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | ||
10669 | find out it does not work in some platform. */ | ||
10670 | #ifndef LT_DLLAZY_OR_NOW | ||
10671 | # ifdef RTLD_LAZY | ||
10672 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | ||
10673 | # else | ||
10674 | # ifdef DL_LAZY | ||
10675 | # define LT_DLLAZY_OR_NOW DL_LAZY | ||
10676 | # else | ||
10677 | # ifdef RTLD_NOW | ||
10678 | # define LT_DLLAZY_OR_NOW RTLD_NOW | ||
10679 | # else | ||
10680 | # ifdef DL_NOW | ||
10681 | # define LT_DLLAZY_OR_NOW DL_NOW | ||
10682 | # else | ||
10683 | # define LT_DLLAZY_OR_NOW 0 | ||
10684 | # endif | ||
10685 | # endif | ||
10686 | # endif | ||
10687 | # endif | ||
10688 | #endif | ||
10689 | |||
10690 | #ifdef __cplusplus | ||
10691 | extern "C" void exit (int); | ||
10692 | #endif | ||
10693 | |||
10694 | void fnord() { int i=42;} | ||
10695 | int main () | ||
10696 | { | ||
10697 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | ||
10698 | int status = $lt_dlunknown; | ||
10699 | |||
10700 | if (self) | ||
10701 | { | ||
10702 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | ||
10703 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | ||
10704 | /* dlclose (self); */ | ||
10705 | } | ||
10706 | else | ||
10707 | puts (dlerror ()); | ||
10708 | |||
10709 | exit (status); | ||
10710 | } | ||
10711 | _LT_EOF | ||
10712 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | ||
10713 | (eval $ac_link) 2>&5 | ||
10714 | ac_status=$? | ||
10715 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
10716 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | ||
10717 | (./conftest; exit; ) >&5 2>/dev/null | ||
10718 | lt_status=$? | ||
10719 | case x$lt_status in | ||
10720 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | ||
10721 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | ||
10722 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | ||
10723 | esac | ||
10724 | else : | ||
10725 | # compilation failed | ||
10726 | lt_cv_dlopen_self_static=no | ||
10727 | fi | ||
10728 | fi | ||
10729 | rm -fr conftest* | ||
10730 | |||
10731 | |||
10732 | fi | ||
10733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 | ||
10734 | $as_echo "$lt_cv_dlopen_self_static" >&6; } | ||
10735 | fi | ||
10736 | |||
10737 | CPPFLAGS="$save_CPPFLAGS" | ||
10738 | LDFLAGS="$save_LDFLAGS" | ||
10739 | LIBS="$save_LIBS" | ||
10740 | ;; | ||
10741 | esac | ||
10742 | |||
10743 | case $lt_cv_dlopen_self in | ||
10744 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | ||
10745 | *) enable_dlopen_self=unknown ;; | ||
10746 | esac | ||
10747 | |||
10748 | case $lt_cv_dlopen_self_static in | ||
10749 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | ||
10750 | *) enable_dlopen_self_static=unknown ;; | ||
10751 | esac | ||
10752 | fi | ||
10753 | |||
10754 | |||
10755 | |||
10756 | |||
10757 | |||
10758 | |||
10759 | |||
10760 | |||
10761 | |||
10762 | |||
10763 | |||
10764 | |||
10765 | |||
10766 | |||
10767 | |||
10768 | |||
10769 | |||
10770 | striplib= | ||
10771 | old_striplib= | ||
10772 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 | ||
10773 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } | ||
10774 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | ||
10775 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | ||
10776 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | ||
10777 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
10778 | $as_echo "yes" >&6; } | ||
10779 | else | ||
10780 | # FIXME - insert some real tests, host_os isn't really good enough | ||
10781 | case $host_os in | ||
10782 | darwin*) | ||
10783 | if test -n "$STRIP" ; then | ||
10784 | striplib="$STRIP -x" | ||
10785 | old_striplib="$STRIP -S" | ||
10786 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
10787 | $as_echo "yes" >&6; } | ||
10788 | else | ||
10789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
10790 | $as_echo "no" >&6; } | ||
10791 | fi | ||
10792 | ;; | ||
10793 | *) | ||
10794 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
10795 | $as_echo "no" >&6; } | ||
10796 | ;; | ||
10797 | esac | ||
10798 | fi | ||
10799 | |||
10800 | |||
10801 | |||
10802 | |||
10803 | |||
10804 | |||
10805 | |||
10806 | |||
10807 | |||
10808 | |||
10809 | |||
10810 | |||
10811 | # Report which library types will actually be built | ||
10812 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 | ||
10813 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | ||
10814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | ||
10815 | $as_echo "$can_build_shared" >&6; } | ||
10816 | |||
10817 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 | ||
10818 | $as_echo_n "checking whether to build shared libraries... " >&6; } | ||
10819 | test "$can_build_shared" = "no" && enable_shared=no | ||
10820 | |||
10821 | # On AIX, shared libraries and static libraries use the same namespace, and | ||
10822 | # are all built from PIC. | ||
10823 | case $host_os in | ||
10824 | aix3*) | ||
10825 | test "$enable_shared" = yes && enable_static=no | ||
10826 | if test -n "$RANLIB"; then | ||
10827 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | ||
10828 | postinstall_cmds='$RANLIB $lib' | ||
10829 | fi | ||
10830 | ;; | ||
10831 | |||
10832 | aix[4-9]*) | ||
10833 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | ||
10834 | test "$enable_shared" = yes && enable_static=no | ||
10835 | fi | ||
10836 | ;; | ||
10837 | esac | ||
10838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 | ||
10839 | $as_echo "$enable_shared" >&6; } | ||
10840 | |||
10841 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 | ||
10842 | $as_echo_n "checking whether to build static libraries... " >&6; } | ||
10843 | # Make sure either enable_shared or enable_static is yes. | ||
10844 | test "$enable_shared" = yes || enable_static=yes | ||
10845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 | ||
10846 | $as_echo "$enable_static" >&6; } | ||
10847 | |||
10848 | |||
10849 | |||
10850 | |||
10851 | fi | ||
10852 | ac_ext=c | ||
10853 | ac_cpp='$CPP $CPPFLAGS' | ||
10854 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
10855 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
10856 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
10857 | |||
10858 | CC="$lt_save_CC" | ||
10859 | |||
10860 | |||
10861 | |||
10862 | |||
10863 | |||
10864 | |||
10865 | |||
10866 | |||
10867 | |||
10868 | |||
10869 | |||
10870 | |||
10871 | |||
10872 | ac_config_commands="$ac_config_commands libtool" | ||
10873 | |||
10874 | |||
10875 | |||
10876 | |||
10877 | # Only expand once: | ||
10878 | |||
10879 | |||
10880 | |||
10881 | ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## | ||
10882 | ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## | ||
10883 | |||
10884 | |||
10885 | |||
10886 | cat >>confdefs.h <<_ACEOF | ||
10887 | #define VMAJ 1 | ||
10888 | _ACEOF | ||
10889 | |||
10890 | |||
10891 | cat >>confdefs.h <<_ACEOF | ||
10892 | #define VMIN 1 | ||
10893 | _ACEOF | ||
10894 | |||
10895 | |||
10896 | cat >>confdefs.h <<_ACEOF | ||
10897 | #define VMIC 0 | ||
10898 | _ACEOF | ||
10899 | |||
10900 | |||
10901 | cat >>confdefs.h <<_ACEOF | ||
10902 | #define VREV 0 | ||
10903 | _ACEOF | ||
10904 | |||
10905 | version_info="2:0:1" | ||
10906 | release_info="" | ||
10907 | |||
10908 | |||
10909 | ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## | ||
10910 | ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## | ||
10911 | VMAJ=1 | ||
10912 | |||
10913 | |||
10914 | |||
10915 | cat >>confdefs.h <<_ACEOF | ||
10916 | #define SHARED_LIB_SUFFIX "$shrext_cmds" | ||
10917 | _ACEOF | ||
10918 | |||
10919 | |||
10920 | ### Default options with respect to host | ||
10921 | |||
10922 | |||
10923 | |||
10924 | |||
10925 | case "$host_os" in | ||
10926 | mingw32ce* | cegcc*) | ||
10927 | MODULE_ARCH="$host_os-$host_cpu" | ||
10928 | install_vim="no" | ||
10929 | have_edje_cc="no" | ||
10930 | ;; | ||
10931 | *) | ||
10932 | MODULE_ARCH="$host_os-$host_cpu-1.0.0" | ||
10933 | install_vim="yes" | ||
10934 | have_edje_cc="yes" | ||
10935 | ;; | ||
10936 | esac | ||
10937 | |||
10938 | requirement_edje="" | ||
10939 | |||
10940 | |||
10941 | |||
10942 | cat >>confdefs.h <<_ACEOF | ||
10943 | #define MODULE_ARCH "${MODULE_ARCH}" | ||
10944 | _ACEOF | ||
10945 | |||
10946 | |||
10947 | ### Additional options to configure | ||
10948 | |||
10949 | # Check whether --enable-amalgamation was given. | ||
10950 | if test "${enable_amalgamation+set}" = set; then : | ||
10951 | enableval=$enable_amalgamation; if test "x${enableval}" = "xyes"; then | ||
10952 | do_amalgamation="yes" | ||
10953 | else | ||
10954 | do_amalgamation="no" | ||
10955 | fi | ||
10956 | |||
10957 | else | ||
10958 | do_amalgamation="no" | ||
10959 | |||
10960 | fi | ||
10961 | |||
10962 | if test "x${do_amalgamation}" = "xyes"; then | ||
10963 | EDJE_AMALGAMATION_TRUE= | ||
10964 | EDJE_AMALGAMATION_FALSE='#' | ||
10965 | else | ||
10966 | EDJE_AMALGAMATION_TRUE='#' | ||
10967 | EDJE_AMALGAMATION_FALSE= | ||
10968 | fi | ||
10969 | |||
10970 | |||
10971 | |||
10972 | |||
10973 | |||
10974 | have_edje_cc="yes" | ||
10975 | |||
10976 | |||
10977 | # Check whether --enable-edje-cc was given. | ||
10978 | if test "${enable_edje_cc+set}" = set; then : | ||
10979 | enableval=$enable_edje_cc; | ||
10980 | if test "x${enableval}" = "xyes" ; then | ||
10981 | have_edje_cc="yes" | ||
10982 | else | ||
10983 | have_edje_cc="no" | ||
10984 | fi | ||
10985 | |||
10986 | fi | ||
10987 | |||
10988 | |||
10989 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build edje_cc binary" >&5 | ||
10990 | $as_echo_n "checking whether to build edje_cc binary... " >&6; } | ||
10991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_edje_cc" >&5 | ||
10992 | $as_echo "$have_edje_cc" >&6; } | ||
10993 | |||
10994 | if test "x$have_edje_cc" = "xyes"; then | ||
10995 | EDJE_CC_PRG=edje_cc${EXEEXT} | ||
10996 | fi | ||
10997 | |||
10998 | |||
10999 | |||
11000 | if test "x$have_edje_cc" = "xyes"; then | ||
11001 | BUILD_EDJE_CC_TRUE= | ||
11002 | BUILD_EDJE_CC_FALSE='#' | ||
11003 | else | ||
11004 | BUILD_EDJE_CC_TRUE='#' | ||
11005 | BUILD_EDJE_CC_FALSE= | ||
11006 | fi | ||
11007 | |||
11008 | |||
11009 | if test "x$have_edje_cc" = "xyes"; then : | ||
11010 | |||
11011 | fi | ||
11012 | |||
11013 | |||
11014 | |||
11015 | |||
11016 | |||
11017 | have_edje_decc="yes" | ||
11018 | |||
11019 | |||
11020 | # Check whether --enable-edje-decc was given. | ||
11021 | if test "${enable_edje_decc+set}" = set; then : | ||
11022 | enableval=$enable_edje_decc; | ||
11023 | if test "x${enableval}" = "xyes" ; then | ||
11024 | have_edje_decc="yes" | ||
11025 | else | ||
11026 | have_edje_decc="no" | ||
11027 | fi | ||
11028 | |||
11029 | fi | ||
11030 | |||
11031 | |||
11032 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build edje_decc binary" >&5 | ||
11033 | $as_echo_n "checking whether to build edje_decc binary... " >&6; } | ||
11034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_edje_decc" >&5 | ||
11035 | $as_echo "$have_edje_decc" >&6; } | ||
11036 | |||
11037 | if test "x$have_edje_decc" = "xyes"; then | ||
11038 | EDJE_DECC_PRG=edje_decc${EXEEXT} | ||
11039 | fi | ||
11040 | |||
11041 | |||
11042 | |||
11043 | if test "x$have_edje_decc" = "xyes"; then | ||
11044 | BUILD_EDJE_DECC_TRUE= | ||
11045 | BUILD_EDJE_DECC_FALSE='#' | ||
11046 | else | ||
11047 | BUILD_EDJE_DECC_TRUE='#' | ||
11048 | BUILD_EDJE_DECC_FALSE= | ||
11049 | fi | ||
11050 | |||
11051 | |||
11052 | if test "x$have_edje_decc" = "xyes"; then : | ||
11053 | |||
11054 | fi | ||
11055 | |||
11056 | |||
11057 | |||
11058 | |||
11059 | |||
11060 | have_edje_recc="yes" | ||
11061 | |||
11062 | |||
11063 | # Check whether --enable-edje-recc was given. | ||
11064 | if test "${enable_edje_recc+set}" = set; then : | ||
11065 | enableval=$enable_edje_recc; | ||
11066 | if test "x${enableval}" = "xyes" ; then | ||
11067 | have_edje_recc="yes" | ||
11068 | else | ||
11069 | have_edje_recc="no" | ||
11070 | fi | ||
11071 | |||
11072 | fi | ||
11073 | |||
11074 | |||
11075 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build edje_recc binary" >&5 | ||
11076 | $as_echo_n "checking whether to build edje_recc binary... " >&6; } | ||
11077 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_edje_recc" >&5 | ||
11078 | $as_echo "$have_edje_recc" >&6; } | ||
11079 | |||
11080 | if test "x$have_edje_recc" = "xyes"; then | ||
11081 | EDJE_RECC_PRG=edje_recc${EXEEXT} | ||
11082 | fi | ||
11083 | |||
11084 | |||
11085 | |||
11086 | if test "x$have_edje_recc" = "xyes"; then | ||
11087 | BUILD_EDJE_RECC_TRUE= | ||
11088 | BUILD_EDJE_RECC_FALSE='#' | ||
11089 | else | ||
11090 | BUILD_EDJE_RECC_TRUE='#' | ||
11091 | BUILD_EDJE_RECC_FALSE= | ||
11092 | fi | ||
11093 | |||
11094 | |||
11095 | if test "x$have_edje_recc" = "xyes"; then : | ||
11096 | |||
11097 | fi | ||
11098 | |||
11099 | |||
11100 | |||
11101 | |||
11102 | |||
11103 | have_edje_player="yes" | ||
11104 | |||
11105 | |||
11106 | # Check whether --enable-edje-player was given. | ||
11107 | if test "${enable_edje_player+set}" = set; then : | ||
11108 | enableval=$enable_edje_player; | ||
11109 | if test "x${enableval}" = "xyes" ; then | ||
11110 | have_edje_player="yes" | ||
11111 | else | ||
11112 | have_edje_player="no" | ||
11113 | fi | ||
11114 | |||
11115 | fi | ||
11116 | |||
11117 | |||
11118 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build edje_player binary" >&5 | ||
11119 | $as_echo_n "checking whether to build edje_player binary... " >&6; } | ||
11120 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_edje_player" >&5 | ||
11121 | $as_echo "$have_edje_player" >&6; } | ||
11122 | |||
11123 | if test "x$have_edje_player" = "xyes"; then | ||
11124 | EDJE_PLAYER_PRG=edje_player${EXEEXT} | ||
11125 | fi | ||
11126 | |||
11127 | |||
11128 | |||
11129 | if test "x$have_edje_player" = "xyes"; then | ||
11130 | BUILD_EDJE_PLAYER_TRUE= | ||
11131 | BUILD_EDJE_PLAYER_FALSE='#' | ||
11132 | else | ||
11133 | BUILD_EDJE_PLAYER_TRUE='#' | ||
11134 | BUILD_EDJE_PLAYER_FALSE= | ||
11135 | fi | ||
11136 | |||
11137 | |||
11138 | if test "x$have_edje_player" = "xyes"; then : | ||
11139 | |||
11140 | fi | ||
11141 | |||
11142 | |||
11143 | |||
11144 | |||
11145 | |||
11146 | have_edje_inspector="yes" | ||
11147 | |||
11148 | |||
11149 | # Check whether --enable-edje-inspector was given. | ||
11150 | if test "${enable_edje_inspector+set}" = set; then : | ||
11151 | enableval=$enable_edje_inspector; | ||
11152 | if test "x${enableval}" = "xyes" ; then | ||
11153 | have_edje_inspector="yes" | ||
11154 | else | ||
11155 | have_edje_inspector="no" | ||
11156 | fi | ||
11157 | |||
11158 | fi | ||
11159 | |||
11160 | |||
11161 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build edje_inspector binary" >&5 | ||
11162 | $as_echo_n "checking whether to build edje_inspector binary... " >&6; } | ||
11163 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_edje_inspector" >&5 | ||
11164 | $as_echo "$have_edje_inspector" >&6; } | ||
11165 | |||
11166 | if test "x$have_edje_inspector" = "xyes"; then | ||
11167 | EDJE_INSPECTOR_PRG=edje_inspector${EXEEXT} | ||
11168 | fi | ||
11169 | |||
11170 | |||
11171 | |||
11172 | if test "x$have_edje_inspector" = "xyes"; then | ||
11173 | BUILD_EDJE_INSPECTOR_TRUE= | ||
11174 | BUILD_EDJE_INSPECTOR_FALSE='#' | ||
11175 | else | ||
11176 | BUILD_EDJE_INSPECTOR_TRUE='#' | ||
11177 | BUILD_EDJE_INSPECTOR_FALSE= | ||
11178 | fi | ||
11179 | |||
11180 | |||
11181 | if test "x$have_edje_inspector" = "xyes"; then : | ||
11182 | |||
11183 | fi | ||
11184 | |||
11185 | |||
11186 | |||
11187 | |||
11188 | |||
11189 | have_edje_external_inspector="yes" | ||
11190 | |||
11191 | |||
11192 | # Check whether --enable-edje-external-inspector was given. | ||
11193 | if test "${enable_edje_external_inspector+set}" = set; then : | ||
11194 | enableval=$enable_edje_external_inspector; | ||
11195 | if test "x${enableval}" = "xyes" ; then | ||
11196 | have_edje_external_inspector="yes" | ||
11197 | else | ||
11198 | have_edje_external_inspector="no" | ||
11199 | fi | ||
11200 | |||
11201 | fi | ||
11202 | |||
11203 | |||
11204 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build edje_external_inspector binary" >&5 | ||
11205 | $as_echo_n "checking whether to build edje_external_inspector binary... " >&6; } | ||
11206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_edje_external_inspector" >&5 | ||
11207 | $as_echo "$have_edje_external_inspector" >&6; } | ||
11208 | |||
11209 | if test "x$have_edje_external_inspector" = "xyes"; then | ||
11210 | EDJE_EXTERNAL_INSPECTOR_PRG=edje_external_inspector${EXEEXT} | ||
11211 | fi | ||
11212 | |||
11213 | |||
11214 | |||
11215 | if test "x$have_edje_external_inspector" = "xyes"; then | ||
11216 | BUILD_EDJE_EXTERNAL_INSPECTOR_TRUE= | ||
11217 | BUILD_EDJE_EXTERNAL_INSPECTOR_FALSE='#' | ||
11218 | else | ||
11219 | BUILD_EDJE_EXTERNAL_INSPECTOR_TRUE='#' | ||
11220 | BUILD_EDJE_EXTERNAL_INSPECTOR_FALSE= | ||
11221 | fi | ||
11222 | |||
11223 | |||
11224 | if test "x$have_edje_external_inspector" = "xyes"; then : | ||
11225 | |||
11226 | fi | ||
11227 | |||
11228 | |||
11229 | |||
11230 | # Optional EDJE_PROGRAM_CACHE (use much more ram, but increase speed in some cases) | ||
11231 | want_edje_program_cache="no" | ||
11232 | |||
11233 | # Check whether --enable-edje-program-cache was given. | ||
11234 | if test "${enable_edje_program_cache+set}" = set; then : | ||
11235 | enableval=$enable_edje_program_cache; want_edje_program_cache=$enableval | ||
11236 | |||
11237 | fi | ||
11238 | |||
11239 | if test "x${want_edje_program_cache}" = "xyes"; then | ||
11240 | EDJE_PROGRAM_CACHE_TRUE= | ||
11241 | EDJE_PROGRAM_CACHE_FALSE='#' | ||
11242 | else | ||
11243 | EDJE_PROGRAM_CACHE_TRUE='#' | ||
11244 | EDJE_PROGRAM_CACHE_FALSE= | ||
11245 | fi | ||
11246 | |||
11247 | |||
11248 | if test "x${want_edje_program_cache}" = "xyes" ; then | ||
11249 | |||
11250 | $as_echo "#define EDJE_PROGRAM_CACHE 1" >>confdefs.h | ||
11251 | |||
11252 | fi | ||
11253 | |||
11254 | # Optional EDJE_CALC_CACHE (use more ram, but increase speed by reducing the need to recalculate static stuff) | ||
11255 | want_edje_calc_cache="yes" | ||
11256 | |||
11257 | # Check whether --enable-edje-calc-cache was given. | ||
11258 | if test "${enable_edje_calc_cache+set}" = set; then : | ||
11259 | enableval=$enable_edje_calc_cache; want_edje_calc_cache=$enableval | ||
11260 | |||
11261 | fi | ||
11262 | |||
11263 | if test "x${want_edje_calc_cache}" = "xyes"; then | ||
11264 | EDJE_CALC_CACHE_TRUE= | ||
11265 | EDJE_CALC_CACHE_FALSE='#' | ||
11266 | else | ||
11267 | EDJE_CALC_CACHE_TRUE='#' | ||
11268 | EDJE_CALC_CACHE_FALSE= | ||
11269 | fi | ||
11270 | |||
11271 | |||
11272 | if test "x${want_edje_calc_cache}" = "xyes" ; then | ||
11273 | |||
11274 | $as_echo "#define EDJE_CALC_CACHE 1" >>confdefs.h | ||
11275 | |||
11276 | fi | ||
11277 | |||
11278 | # Enable Fixed Point use | ||
11279 | want_fixed_point="no" | ||
11280 | |||
11281 | # Check whether --enable-fixed-point was given. | ||
11282 | if test "${enable_fixed_point+set}" = set; then : | ||
11283 | enableval=$enable_fixed_point; want_fixed_point=$enableval | ||
11284 | |||
11285 | fi | ||
11286 | |||
11287 | if test "x${want_fixed_point}" = "xyes"; then | ||
11288 | BUILD_EDJE_FP_TRUE= | ||
11289 | BUILD_EDJE_FP_FALSE='#' | ||
11290 | else | ||
11291 | BUILD_EDJE_FP_TRUE='#' | ||
11292 | BUILD_EDJE_FP_FALSE= | ||
11293 | fi | ||
11294 | |||
11295 | |||
11296 | if test "x${want_fixed_point}" = "xyes" ; then | ||
11297 | |||
11298 | $as_echo "#define BUILD_EDJE_FP 1" >>confdefs.h | ||
11299 | |||
11300 | fi | ||
11301 | |||
11302 | install_vim="yes" | ||
11303 | |||
11304 | # Check whether --with-vim was given. | ||
11305 | if test "${with_vim+set}" = set; then : | ||
11306 | withval=$with_vim; | ||
11307 | if test -d "${withval}"; then | ||
11308 | vimdir="${withval}" | ||
11309 | fi | ||
11310 | |||
11311 | |||
11312 | fi | ||
11313 | |||
11314 | |||
11315 | if test "x${vimdir}" = "x" ; then | ||
11316 | if test -d "${prefix}/share/vim"; then | ||
11317 | vimdir="${prefix}/share/vim" | ||
11318 | elif test -d "/usr/share/vim"; then | ||
11319 | vimdir="/usr/share/vim" | ||
11320 | elif test -d "/usr/local/share/vim"; then | ||
11321 | vimdir="/usr/local/share/vim" | ||
11322 | elif test -d "/opt/share/vim"; then | ||
11323 | vimdir="/opt/share/vim" | ||
11324 | else | ||
11325 | install_vim="no" | ||
11326 | fi | ||
11327 | fi | ||
11328 | |||
11329 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of Vim data files" >&5 | ||
11330 | $as_echo_n "checking for location of Vim data files... " >&6; } | ||
11331 | |||
11332 | if test "${install_vim}" = "yes"; then | ||
11333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vimdir" >&5 | ||
11334 | $as_echo "$vimdir" >&6; } | ||
11335 | else | ||
11336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found, EDC syntax file will not be installed" >&5 | ||
11337 | $as_echo "Not found, EDC syntax file will not be installed" >&6; } | ||
11338 | fi | ||
11339 | |||
11340 | |||
11341 | |||
11342 | ### Checks for programs | ||
11343 | ac_ext=c | ||
11344 | ac_cpp='$CPP $CPPFLAGS' | ||
11345 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
11346 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
11347 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
11348 | if test -n "$ac_tool_prefix"; then | ||
11349 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | ||
11350 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | ||
11351 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
11352 | $as_echo_n "checking for $ac_word... " >&6; } | ||
11353 | if test "${ac_cv_prog_CC+set}" = set; then : | ||
11354 | $as_echo_n "(cached) " >&6 | ||
11355 | else | ||
11356 | if test -n "$CC"; then | ||
11357 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
11358 | else | ||
11359 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
11360 | for as_dir in $PATH | ||
11361 | do | ||
11362 | IFS=$as_save_IFS | ||
11363 | test -z "$as_dir" && as_dir=. | ||
11364 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
11365 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
11366 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | ||
11367 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
11368 | break 2 | ||
11369 | fi | ||
11370 | done | ||
11371 | done | ||
11372 | IFS=$as_save_IFS | ||
11373 | |||
11374 | fi | ||
11375 | fi | ||
11376 | CC=$ac_cv_prog_CC | ||
11377 | if test -n "$CC"; then | ||
11378 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
11379 | $as_echo "$CC" >&6; } | ||
11380 | else | ||
11381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
11382 | $as_echo "no" >&6; } | ||
11383 | fi | ||
11384 | |||
11385 | |||
11386 | fi | ||
11387 | if test -z "$ac_cv_prog_CC"; then | ||
11388 | ac_ct_CC=$CC | ||
11389 | # Extract the first word of "gcc", so it can be a program name with args. | ||
11390 | set dummy gcc; ac_word=$2 | ||
11391 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
11392 | $as_echo_n "checking for $ac_word... " >&6; } | ||
11393 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | ||
11394 | $as_echo_n "(cached) " >&6 | ||
11395 | else | ||
11396 | if test -n "$ac_ct_CC"; then | ||
11397 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
11398 | else | ||
11399 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
11400 | for as_dir in $PATH | ||
11401 | do | ||
11402 | IFS=$as_save_IFS | ||
11403 | test -z "$as_dir" && as_dir=. | ||
11404 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
11405 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
11406 | ac_cv_prog_ac_ct_CC="gcc" | ||
11407 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
11408 | break 2 | ||
11409 | fi | ||
11410 | done | ||
11411 | done | ||
11412 | IFS=$as_save_IFS | ||
11413 | |||
11414 | fi | ||
11415 | fi | ||
11416 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
11417 | if test -n "$ac_ct_CC"; then | ||
11418 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | ||
11419 | $as_echo "$ac_ct_CC" >&6; } | ||
11420 | else | ||
11421 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
11422 | $as_echo "no" >&6; } | ||
11423 | fi | ||
11424 | |||
11425 | if test "x$ac_ct_CC" = x; then | ||
11426 | CC="" | ||
11427 | else | ||
11428 | case $cross_compiling:$ac_tool_warned in | ||
11429 | yes:) | ||
11430 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
11431 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
11432 | ac_tool_warned=yes ;; | ||
11433 | esac | ||
11434 | CC=$ac_ct_CC | ||
11435 | fi | ||
11436 | else | ||
11437 | CC="$ac_cv_prog_CC" | ||
11438 | fi | ||
11439 | |||
11440 | if test -z "$CC"; then | ||
11441 | if test -n "$ac_tool_prefix"; then | ||
11442 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | ||
11443 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | ||
11444 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
11445 | $as_echo_n "checking for $ac_word... " >&6; } | ||
11446 | if test "${ac_cv_prog_CC+set}" = set; then : | ||
11447 | $as_echo_n "(cached) " >&6 | ||
11448 | else | ||
11449 | if test -n "$CC"; then | ||
11450 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
11451 | else | ||
11452 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
11453 | for as_dir in $PATH | ||
11454 | do | ||
11455 | IFS=$as_save_IFS | ||
11456 | test -z "$as_dir" && as_dir=. | ||
11457 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
11458 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
11459 | ac_cv_prog_CC="${ac_tool_prefix}cc" | ||
11460 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
11461 | break 2 | ||
11462 | fi | ||
11463 | done | ||
11464 | done | ||
11465 | IFS=$as_save_IFS | ||
11466 | |||
11467 | fi | ||
11468 | fi | ||
11469 | CC=$ac_cv_prog_CC | ||
11470 | if test -n "$CC"; then | ||
11471 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
11472 | $as_echo "$CC" >&6; } | ||
11473 | else | ||
11474 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
11475 | $as_echo "no" >&6; } | ||
11476 | fi | ||
11477 | |||
11478 | |||
11479 | fi | ||
11480 | fi | ||
11481 | if test -z "$CC"; then | ||
11482 | # Extract the first word of "cc", so it can be a program name with args. | ||
11483 | set dummy cc; ac_word=$2 | ||
11484 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
11485 | $as_echo_n "checking for $ac_word... " >&6; } | ||
11486 | if test "${ac_cv_prog_CC+set}" = set; then : | ||
11487 | $as_echo_n "(cached) " >&6 | ||
11488 | else | ||
11489 | if test -n "$CC"; then | ||
11490 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
11491 | else | ||
11492 | ac_prog_rejected=no | ||
11493 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
11494 | for as_dir in $PATH | ||
11495 | do | ||
11496 | IFS=$as_save_IFS | ||
11497 | test -z "$as_dir" && as_dir=. | ||
11498 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
11499 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
11500 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | ||
11501 | ac_prog_rejected=yes | ||
11502 | continue | ||
11503 | fi | ||
11504 | ac_cv_prog_CC="cc" | ||
11505 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
11506 | break 2 | ||
11507 | fi | ||
11508 | done | ||
11509 | done | ||
11510 | IFS=$as_save_IFS | ||
11511 | |||
11512 | if test $ac_prog_rejected = yes; then | ||
11513 | # We found a bogon in the path, so make sure we never use it. | ||
11514 | set dummy $ac_cv_prog_CC | ||
11515 | shift | ||
11516 | if test $# != 0; then | ||
11517 | # We chose a different compiler from the bogus one. | ||
11518 | # However, it has the same basename, so the bogon will be chosen | ||
11519 | # first if we set CC to just the basename; use the full file name. | ||
11520 | shift | ||
11521 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | ||
11522 | fi | ||
11523 | fi | ||
11524 | fi | ||
11525 | fi | ||
11526 | CC=$ac_cv_prog_CC | ||
11527 | if test -n "$CC"; then | ||
11528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
11529 | $as_echo "$CC" >&6; } | ||
11530 | else | ||
11531 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
11532 | $as_echo "no" >&6; } | ||
11533 | fi | ||
11534 | |||
11535 | |||
11536 | fi | ||
11537 | if test -z "$CC"; then | ||
11538 | if test -n "$ac_tool_prefix"; then | ||
11539 | for ac_prog in cl.exe | ||
11540 | do | ||
11541 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
11542 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
11543 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
11544 | $as_echo_n "checking for $ac_word... " >&6; } | ||
11545 | if test "${ac_cv_prog_CC+set}" = set; then : | ||
11546 | $as_echo_n "(cached) " >&6 | ||
11547 | else | ||
11548 | if test -n "$CC"; then | ||
11549 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
11550 | else | ||
11551 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
11552 | for as_dir in $PATH | ||
11553 | do | ||
11554 | IFS=$as_save_IFS | ||
11555 | test -z "$as_dir" && as_dir=. | ||
11556 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
11557 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
11558 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | ||
11559 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
11560 | break 2 | ||
11561 | fi | ||
11562 | done | ||
11563 | done | ||
11564 | IFS=$as_save_IFS | ||
11565 | |||
11566 | fi | ||
11567 | fi | ||
11568 | CC=$ac_cv_prog_CC | ||
11569 | if test -n "$CC"; then | ||
11570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
11571 | $as_echo "$CC" >&6; } | ||
11572 | else | ||
11573 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
11574 | $as_echo "no" >&6; } | ||
11575 | fi | ||
11576 | |||
11577 | |||
11578 | test -n "$CC" && break | ||
11579 | done | ||
11580 | fi | ||
11581 | if test -z "$CC"; then | ||
11582 | ac_ct_CC=$CC | ||
11583 | for ac_prog in cl.exe | ||
11584 | do | ||
11585 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
11586 | set dummy $ac_prog; ac_word=$2 | ||
11587 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
11588 | $as_echo_n "checking for $ac_word... " >&6; } | ||
11589 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | ||
11590 | $as_echo_n "(cached) " >&6 | ||
11591 | else | ||
11592 | if test -n "$ac_ct_CC"; then | ||
11593 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
11594 | else | ||
11595 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
11596 | for as_dir in $PATH | ||
11597 | do | ||
11598 | IFS=$as_save_IFS | ||
11599 | test -z "$as_dir" && as_dir=. | ||
11600 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
11601 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
11602 | ac_cv_prog_ac_ct_CC="$ac_prog" | ||
11603 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
11604 | break 2 | ||
11605 | fi | ||
11606 | done | ||
11607 | done | ||
11608 | IFS=$as_save_IFS | ||
11609 | |||
11610 | fi | ||
11611 | fi | ||
11612 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
11613 | if test -n "$ac_ct_CC"; then | ||
11614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | ||
11615 | $as_echo "$ac_ct_CC" >&6; } | ||
11616 | else | ||
11617 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
11618 | $as_echo "no" >&6; } | ||
11619 | fi | ||
11620 | |||
11621 | |||
11622 | test -n "$ac_ct_CC" && break | ||
11623 | done | ||
11624 | |||
11625 | if test "x$ac_ct_CC" = x; then | ||
11626 | CC="" | ||
11627 | else | ||
11628 | case $cross_compiling:$ac_tool_warned in | ||
11629 | yes:) | ||
11630 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
11631 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
11632 | ac_tool_warned=yes ;; | ||
11633 | esac | ||
11634 | CC=$ac_ct_CC | ||
11635 | fi | ||
11636 | fi | ||
11637 | |||
11638 | fi | ||
11639 | |||
11640 | |||
11641 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
11642 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
11643 | as_fn_error $? "no acceptable C compiler found in \$PATH | ||
11644 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
11645 | |||
11646 | # Provide some information about the compiler. | ||
11647 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | ||
11648 | set X $ac_compile | ||
11649 | ac_compiler=$2 | ||
11650 | for ac_option in --version -v -V -qversion; do | ||
11651 | { { ac_try="$ac_compiler $ac_option >&5" | ||
11652 | case "(($ac_try" in | ||
11653 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11654 | *) ac_try_echo=$ac_try;; | ||
11655 | esac | ||
11656 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
11657 | $as_echo "$ac_try_echo"; } >&5 | ||
11658 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | ||
11659 | ac_status=$? | ||
11660 | if test -s conftest.err; then | ||
11661 | sed '10a\ | ||
11662 | ... rest of stderr output deleted ... | ||
11663 | 10q' conftest.err >conftest.er1 | ||
11664 | cat conftest.er1 >&5 | ||
11665 | fi | ||
11666 | rm -f conftest.er1 conftest.err | ||
11667 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
11668 | test $ac_status = 0; } | ||
11669 | done | ||
11670 | |||
11671 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | ||
11672 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | ||
11673 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | ||
11674 | $as_echo_n "(cached) " >&6 | ||
11675 | else | ||
11676 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11677 | /* end confdefs.h. */ | ||
11678 | |||
11679 | int | ||
11680 | main () | ||
11681 | { | ||
11682 | #ifndef __GNUC__ | ||
11683 | choke me | ||
11684 | #endif | ||
11685 | |||
11686 | ; | ||
11687 | return 0; | ||
11688 | } | ||
11689 | _ACEOF | ||
11690 | if ac_fn_c_try_compile "$LINENO"; then : | ||
11691 | ac_compiler_gnu=yes | ||
11692 | else | ||
11693 | ac_compiler_gnu=no | ||
11694 | fi | ||
11695 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
11696 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | ||
11697 | |||
11698 | fi | ||
11699 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | ||
11700 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | ||
11701 | if test $ac_compiler_gnu = yes; then | ||
11702 | GCC=yes | ||
11703 | else | ||
11704 | GCC= | ||
11705 | fi | ||
11706 | ac_test_CFLAGS=${CFLAGS+set} | ||
11707 | ac_save_CFLAGS=$CFLAGS | ||
11708 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | ||
11709 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | ||
11710 | if test "${ac_cv_prog_cc_g+set}" = set; then : | ||
11711 | $as_echo_n "(cached) " >&6 | ||
11712 | else | ||
11713 | ac_save_c_werror_flag=$ac_c_werror_flag | ||
11714 | ac_c_werror_flag=yes | ||
11715 | ac_cv_prog_cc_g=no | ||
11716 | CFLAGS="-g" | ||
11717 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11718 | /* end confdefs.h. */ | ||
11719 | |||
11720 | int | ||
11721 | main () | ||
11722 | { | ||
11723 | |||
11724 | ; | ||
11725 | return 0; | ||
11726 | } | ||
11727 | _ACEOF | ||
11728 | if ac_fn_c_try_compile "$LINENO"; then : | ||
11729 | ac_cv_prog_cc_g=yes | ||
11730 | else | ||
11731 | CFLAGS="" | ||
11732 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11733 | /* end confdefs.h. */ | ||
11734 | |||
11735 | int | ||
11736 | main () | ||
11737 | { | ||
11738 | |||
11739 | ; | ||
11740 | return 0; | ||
11741 | } | ||
11742 | _ACEOF | ||
11743 | if ac_fn_c_try_compile "$LINENO"; then : | ||
11744 | |||
11745 | else | ||
11746 | ac_c_werror_flag=$ac_save_c_werror_flag | ||
11747 | CFLAGS="-g" | ||
11748 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11749 | /* end confdefs.h. */ | ||
11750 | |||
11751 | int | ||
11752 | main () | ||
11753 | { | ||
11754 | |||
11755 | ; | ||
11756 | return 0; | ||
11757 | } | ||
11758 | _ACEOF | ||
11759 | if ac_fn_c_try_compile "$LINENO"; then : | ||
11760 | ac_cv_prog_cc_g=yes | ||
11761 | fi | ||
11762 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
11763 | fi | ||
11764 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
11765 | fi | ||
11766 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
11767 | ac_c_werror_flag=$ac_save_c_werror_flag | ||
11768 | fi | ||
11769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | ||
11770 | $as_echo "$ac_cv_prog_cc_g" >&6; } | ||
11771 | if test "$ac_test_CFLAGS" = set; then | ||
11772 | CFLAGS=$ac_save_CFLAGS | ||
11773 | elif test $ac_cv_prog_cc_g = yes; then | ||
11774 | if test "$GCC" = yes; then | ||
11775 | CFLAGS="-g -O2" | ||
11776 | else | ||
11777 | CFLAGS="-g" | ||
11778 | fi | ||
11779 | else | ||
11780 | if test "$GCC" = yes; then | ||
11781 | CFLAGS="-O2" | ||
11782 | else | ||
11783 | CFLAGS= | ||
11784 | fi | ||
11785 | fi | ||
11786 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | ||
11787 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | ||
11788 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | ||
11789 | $as_echo_n "(cached) " >&6 | ||
11790 | else | ||
11791 | ac_cv_prog_cc_c89=no | ||
11792 | ac_save_CC=$CC | ||
11793 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11794 | /* end confdefs.h. */ | ||
11795 | #include <stdarg.h> | ||
11796 | #include <stdio.h> | ||
11797 | #include <sys/types.h> | ||
11798 | #include <sys/stat.h> | ||
11799 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | ||
11800 | struct buf { int x; }; | ||
11801 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | ||
11802 | static char *e (p, i) | ||
11803 | char **p; | ||
11804 | int i; | ||
11805 | { | ||
11806 | return p[i]; | ||
11807 | } | ||
11808 | static char *f (char * (*g) (char **, int), char **p, ...) | ||
11809 | { | ||
11810 | char *s; | ||
11811 | va_list v; | ||
11812 | va_start (v,p); | ||
11813 | s = g (p, va_arg (v,int)); | ||
11814 | va_end (v); | ||
11815 | return s; | ||
11816 | } | ||
11817 | |||
11818 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | ||
11819 | function prototypes and stuff, but not '\xHH' hex character constants. | ||
11820 | These don't provoke an error unfortunately, instead are silently treated | ||
11821 | as 'x'. The following induces an error, until -std is added to get | ||
11822 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | ||
11823 | array size at least. It's necessary to write '\x00'==0 to get something | ||
11824 | that's true only with -std. */ | ||
11825 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | ||
11826 | |||
11827 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | ||
11828 | inside strings and character constants. */ | ||
11829 | #define FOO(x) 'x' | ||
11830 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | ||
11831 | |||
11832 | int test (int i, double x); | ||
11833 | struct s1 {int (*f) (int a);}; | ||
11834 | struct s2 {int (*f) (double a);}; | ||
11835 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | ||
11836 | int argc; | ||
11837 | char **argv; | ||
11838 | int | ||
11839 | main () | ||
11840 | { | ||
11841 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | ||
11842 | ; | ||
11843 | return 0; | ||
11844 | } | ||
11845 | _ACEOF | ||
11846 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | ||
11847 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | ||
11848 | do | ||
11849 | CC="$ac_save_CC $ac_arg" | ||
11850 | if ac_fn_c_try_compile "$LINENO"; then : | ||
11851 | ac_cv_prog_cc_c89=$ac_arg | ||
11852 | fi | ||
11853 | rm -f core conftest.err conftest.$ac_objext | ||
11854 | test "x$ac_cv_prog_cc_c89" != "xno" && break | ||
11855 | done | ||
11856 | rm -f conftest.$ac_ext | ||
11857 | CC=$ac_save_CC | ||
11858 | |||
11859 | fi | ||
11860 | # AC_CACHE_VAL | ||
11861 | case "x$ac_cv_prog_cc_c89" in | ||
11862 | x) | ||
11863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | ||
11864 | $as_echo "none needed" >&6; } ;; | ||
11865 | xno) | ||
11866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | ||
11867 | $as_echo "unsupported" >&6; } ;; | ||
11868 | *) | ||
11869 | CC="$CC $ac_cv_prog_cc_c89" | ||
11870 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | ||
11871 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | ||
11872 | esac | ||
11873 | if test "x$ac_cv_prog_cc_c89" != xno; then : | ||
11874 | |||
11875 | fi | ||
11876 | |||
11877 | ac_ext=c | ||
11878 | ac_cpp='$CPP $CPPFLAGS' | ||
11879 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
11880 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
11881 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
11882 | |||
11883 | depcc="$CC" am_compiler_list= | ||
11884 | |||
11885 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | ||
11886 | $as_echo_n "checking dependency style of $depcc... " >&6; } | ||
11887 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : | ||
11888 | $as_echo_n "(cached) " >&6 | ||
11889 | else | ||
11890 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | ||
11891 | # We make a subdir and do the tests there. Otherwise we can end up | ||
11892 | # making bogus files that we don't know about and never remove. For | ||
11893 | # instance it was reported that on HP-UX the gcc test will end up | ||
11894 | # making a dummy file named `D' -- because `-MD' means `put the output | ||
11895 | # in D'. | ||
11896 | mkdir conftest.dir | ||
11897 | # Copy depcomp to subdir because otherwise we won't find it if we're | ||
11898 | # using a relative directory. | ||
11899 | cp "$am_depcomp" conftest.dir | ||
11900 | cd conftest.dir | ||
11901 | # We will build objects and dependencies in a subdirectory because | ||
11902 | # it helps to detect inapplicable dependency modes. For instance | ||
11903 | # both Tru64's cc and ICC support -MD to output dependencies as a | ||
11904 | # side effect of compilation, but ICC will put the dependencies in | ||
11905 | # the current directory while Tru64 will put them in the object | ||
11906 | # directory. | ||
11907 | mkdir sub | ||
11908 | |||
11909 | am_cv_CC_dependencies_compiler_type=none | ||
11910 | if test "$am_compiler_list" = ""; then | ||
11911 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | ||
11912 | fi | ||
11913 | am__universal=false | ||
11914 | case " $depcc " in #( | ||
11915 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | ||
11916 | esac | ||
11917 | |||
11918 | for depmode in $am_compiler_list; do | ||
11919 | # Setup a source with many dependencies, because some compilers | ||
11920 | # like to wrap large dependency lists on column 80 (with \), and | ||
11921 | # we should not choose a depcomp mode which is confused by this. | ||
11922 | # | ||
11923 | # We need to recreate these files for each test, as the compiler may | ||
11924 | # overwrite some of them when testing with obscure command lines. | ||
11925 | # This happens at least with the AIX C compiler. | ||
11926 | : > sub/conftest.c | ||
11927 | for i in 1 2 3 4 5 6; do | ||
11928 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | ||
11929 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | ||
11930 | # Solaris 8's {/usr,}/bin/sh. | ||
11931 | touch sub/conftst$i.h | ||
11932 | done | ||
11933 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | ||
11934 | |||
11935 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | ||
11936 | # mode. It turns out that the SunPro C++ compiler does not properly | ||
11937 | # handle `-M -o', and we need to detect this. Also, some Intel | ||
11938 | # versions had trouble with output in subdirs | ||
11939 | am__obj=sub/conftest.${OBJEXT-o} | ||
11940 | am__minus_obj="-o $am__obj" | ||
11941 | case $depmode in | ||
11942 | gcc) | ||
11943 | # This depmode causes a compiler race in universal mode. | ||
11944 | test "$am__universal" = false || continue | ||
11945 | ;; | ||
11946 | nosideeffect) | ||
11947 | # after this tag, mechanisms are not by side-effect, so they'll | ||
11948 | # only be used when explicitly requested | ||
11949 | if test "x$enable_dependency_tracking" = xyes; then | ||
11950 | continue | ||
11951 | else | ||
11952 | break | ||
11953 | fi | ||
11954 | ;; | ||
11955 | msvisualcpp | msvcmsys) | ||
11956 | # This compiler won't grok `-c -o', but also, the minuso test has | ||
11957 | # not run yet. These depmodes are late enough in the game, and | ||
11958 | # so weak that their functioning should not be impacted. | ||
11959 | am__obj=conftest.${OBJEXT-o} | ||
11960 | am__minus_obj= | ||
11961 | ;; | ||
11962 | none) break ;; | ||
11963 | esac | ||
11964 | if depmode=$depmode \ | ||
11965 | source=sub/conftest.c object=$am__obj \ | ||
11966 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | ||
11967 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | ||
11968 | >/dev/null 2>conftest.err && | ||
11969 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | ||
11970 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | ||
11971 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | ||
11972 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | ||
11973 | # icc doesn't choke on unknown options, it will just issue warnings | ||
11974 | # or remarks (even with -Werror). So we grep stderr for any message | ||
11975 | # that says an option was ignored or not supported. | ||
11976 | # When given -MP, icc 7.0 and 7.1 complain thusly: | ||
11977 | # icc: Command line warning: ignoring option '-M'; no argument required | ||
11978 | # The diagnosis changed in icc 8.0: | ||
11979 | # icc: Command line remark: option '-MP' not supported | ||
11980 | if (grep 'ignoring option' conftest.err || | ||
11981 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | ||
11982 | am_cv_CC_dependencies_compiler_type=$depmode | ||
11983 | break | ||
11984 | fi | ||
11985 | fi | ||
11986 | done | ||
11987 | |||
11988 | cd .. | ||
11989 | rm -rf conftest.dir | ||
11990 | else | ||
11991 | am_cv_CC_dependencies_compiler_type=none | ||
11992 | fi | ||
11993 | |||
11994 | fi | ||
11995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 | ||
11996 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | ||
11997 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | ||
11998 | |||
11999 | if | ||
12000 | test "x$enable_dependency_tracking" != xno \ | ||
12001 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | ||
12002 | am__fastdepCC_TRUE= | ||
12003 | am__fastdepCC_FALSE='#' | ||
12004 | else | ||
12005 | am__fastdepCC_TRUE='#' | ||
12006 | am__fastdepCC_FALSE= | ||
12007 | fi | ||
12008 | |||
12009 | |||
12010 | |||
12011 | # doxygen program for documentation building | ||
12012 | |||
12013 | |||
12014 | |||
12015 | # Check whether --enable-doc was given. | ||
12016 | if test "${enable_doc+set}" = set; then : | ||
12017 | enableval=$enable_doc; | ||
12018 | if test "x${enableval}" = "xyes" ; then | ||
12019 | efl_enable_doc="yes" | ||
12020 | else | ||
12021 | efl_enable_doc="no" | ||
12022 | fi | ||
12023 | |||
12024 | else | ||
12025 | efl_enable_doc="yes" | ||
12026 | fi | ||
12027 | |||
12028 | |||
12029 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build documentation" >&5 | ||
12030 | $as_echo_n "checking whether to build documentation... " >&6; } | ||
12031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${efl_enable_doc}" >&5 | ||
12032 | $as_echo "${efl_enable_doc}" >&6; } | ||
12033 | |||
12034 | if test "x${efl_enable_doc}" = "xyes" ; then | ||
12035 | |||
12036 | |||
12037 | efl_doxygen="doxygen" | ||
12038 | |||
12039 | |||
12040 | # Check whether --with-doxygen was given. | ||
12041 | if test "${with_doxygen+set}" = set; then : | ||
12042 | withval=$with_doxygen; | ||
12043 | efl_doxygen=${withval} | ||
12044 | # Extract the first word of "${efl_doxygen}", so it can be a program name with args. | ||
12045 | set dummy ${efl_doxygen}; ac_word=$2 | ||
12046 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
12047 | $as_echo_n "checking for $ac_word... " >&6; } | ||
12048 | if test "${ac_cv_prog_efl_have_doxygen+set}" = set; then : | ||
12049 | $as_echo_n "(cached) " >&6 | ||
12050 | else | ||
12051 | if test -n "$efl_have_doxygen"; then | ||
12052 | ac_cv_prog_efl_have_doxygen="$efl_have_doxygen" # Let the user override the test. | ||
12053 | else | ||
12054 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
12055 | for as_dir in $PATH | ||
12056 | do | ||
12057 | IFS=$as_save_IFS | ||
12058 | test -z "$as_dir" && as_dir=. | ||
12059 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
12060 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
12061 | ac_cv_prog_efl_have_doxygen="yes" | ||
12062 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
12063 | break 2 | ||
12064 | fi | ||
12065 | done | ||
12066 | done | ||
12067 | IFS=$as_save_IFS | ||
12068 | |||
12069 | test -z "$ac_cv_prog_efl_have_doxygen" && ac_cv_prog_efl_have_doxygen="no" | ||
12070 | fi | ||
12071 | fi | ||
12072 | efl_have_doxygen=$ac_cv_prog_efl_have_doxygen | ||
12073 | if test -n "$efl_have_doxygen"; then | ||
12074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $efl_have_doxygen" >&5 | ||
12075 | $as_echo "$efl_have_doxygen" >&6; } | ||
12076 | else | ||
12077 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12078 | $as_echo "no" >&6; } | ||
12079 | fi | ||
12080 | |||
12081 | |||
12082 | if test "x${efl_have_doxygen}" = "xno" ; then | ||
12083 | echo "WARNING:" | ||
12084 | echo "The doxygen program you specified:" | ||
12085 | echo "${efl_doxygen}" | ||
12086 | echo "was not found. Please check the path and make sure " | ||
12087 | echo "the program exists and is executable." | ||
12088 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no doxygen detected. Documentation will not be built" >&5 | ||
12089 | $as_echo "$as_me: WARNING: no doxygen detected. Documentation will not be built" >&2;} | ||
12090 | fi | ||
12091 | |||
12092 | else | ||
12093 | # Extract the first word of "${efl_doxygen}", so it can be a program name with args. | ||
12094 | set dummy ${efl_doxygen}; ac_word=$2 | ||
12095 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
12096 | $as_echo_n "checking for $ac_word... " >&6; } | ||
12097 | if test "${ac_cv_prog_efl_have_doxygen+set}" = set; then : | ||
12098 | $as_echo_n "(cached) " >&6 | ||
12099 | else | ||
12100 | if test -n "$efl_have_doxygen"; then | ||
12101 | ac_cv_prog_efl_have_doxygen="$efl_have_doxygen" # Let the user override the test. | ||
12102 | else | ||
12103 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
12104 | for as_dir in $PATH | ||
12105 | do | ||
12106 | IFS=$as_save_IFS | ||
12107 | test -z "$as_dir" && as_dir=. | ||
12108 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
12109 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
12110 | ac_cv_prog_efl_have_doxygen="yes" | ||
12111 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
12112 | break 2 | ||
12113 | fi | ||
12114 | done | ||
12115 | done | ||
12116 | IFS=$as_save_IFS | ||
12117 | |||
12118 | test -z "$ac_cv_prog_efl_have_doxygen" && ac_cv_prog_efl_have_doxygen="no" | ||
12119 | fi | ||
12120 | fi | ||
12121 | efl_have_doxygen=$ac_cv_prog_efl_have_doxygen | ||
12122 | if test -n "$efl_have_doxygen"; then | ||
12123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $efl_have_doxygen" >&5 | ||
12124 | $as_echo "$efl_have_doxygen" >&6; } | ||
12125 | else | ||
12126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12127 | $as_echo "no" >&6; } | ||
12128 | fi | ||
12129 | |||
12130 | |||
12131 | if test "x${efl_have_doxygen}" = "xno" ; then | ||
12132 | echo "WARNING:" | ||
12133 | echo "The doxygen program was not found in your execute path." | ||
12134 | echo "You may have doxygen installed somewhere not covered by your path." | ||
12135 | echo "" | ||
12136 | echo "If this is the case make sure you have the packages installed, AND" | ||
12137 | echo "that the doxygen program is in your execute path (see your" | ||
12138 | echo "shell manual page on setting the \$PATH environment variable), OR" | ||
12139 | echo "alternatively, specify the program to use with --with-doxygen." | ||
12140 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no doxygen detected. Documentation will not be built" >&5 | ||
12141 | $as_echo "$as_me: WARNING: no doxygen detected. Documentation will not be built" >&2;} | ||
12142 | fi | ||
12143 | |||
12144 | fi | ||
12145 | |||
12146 | fi | ||
12147 | |||
12148 | |||
12149 | |||
12150 | if ! test "x${efl_have_doxygen}" = "xyes" ; then | ||
12151 | efl_enable_doc="no" | ||
12152 | fi | ||
12153 | |||
12154 | if test "x${efl_enable_doc}" = "xyes"; then | ||
12155 | EFL_BUILD_DOC_TRUE= | ||
12156 | EFL_BUILD_DOC_FALSE='#' | ||
12157 | else | ||
12158 | EFL_BUILD_DOC_TRUE='#' | ||
12159 | EFL_BUILD_DOC_FALSE= | ||
12160 | fi | ||
12161 | |||
12162 | |||
12163 | if test "x${efl_enable_doc}" = "xyes" ; then | ||
12164 | build_doc="yes" | ||
12165 | else | ||
12166 | build_doc="no" | ||
12167 | fi | ||
12168 | |||
12169 | |||
12170 | |||
12171 | # python | ||
12172 | |||
12173 | |||
12174 | |||
12175 | |||
12176 | |||
12177 | if test -n "$PYTHON"; then | ||
12178 | # If the user set $PYTHON, use it and don't search something else. | ||
12179 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version >= 2.5" >&5 | ||
12180 | $as_echo_n "checking whether $PYTHON version >= 2.5... " >&6; } | ||
12181 | prog="import sys | ||
12182 | # split strings by '.' and convert to numeric. Append some zeros | ||
12183 | # because we need at least 4 digits for the hex conversion. | ||
12184 | # map returns an iterator in Python 3.0 and a list in 2.x | ||
12185 | minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0] | ||
12186 | minverhex = 0 | ||
12187 | # xrange is not present in Python 3.0 and range returns an iterator | ||
12188 | for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i] | ||
12189 | sys.exit(sys.hexversion < minverhex)" | ||
12190 | if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5 | ||
12191 | ($PYTHON -c "$prog") >&5 2>&5 | ||
12192 | ac_status=$? | ||
12193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12194 | (exit $ac_status); }; then : | ||
12195 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
12196 | $as_echo "yes" >&6; } | ||
12197 | else | ||
12198 | as_fn_error $? "too old" "$LINENO" 5 | ||
12199 | fi | ||
12200 | am_display_PYTHON=$PYTHON | ||
12201 | else | ||
12202 | # Otherwise, try each interpreter until we find one that satisfies | ||
12203 | # VERSION. | ||
12204 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5 | ||
12205 | $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; } | ||
12206 | if test "${am_cv_pathless_PYTHON+set}" = set; then : | ||
12207 | $as_echo_n "(cached) " >&6 | ||
12208 | else | ||
12209 | |||
12210 | for am_cv_pathless_PYTHON in python python2 python3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do | ||
12211 | test "$am_cv_pathless_PYTHON" = none && break | ||
12212 | prog="import sys | ||
12213 | # split strings by '.' and convert to numeric. Append some zeros | ||
12214 | # because we need at least 4 digits for the hex conversion. | ||
12215 | # map returns an iterator in Python 3.0 and a list in 2.x | ||
12216 | minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0] | ||
12217 | minverhex = 0 | ||
12218 | # xrange is not present in Python 3.0 and range returns an iterator | ||
12219 | for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i] | ||
12220 | sys.exit(sys.hexversion < minverhex)" | ||
12221 | if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5 | ||
12222 | ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5 | ||
12223 | ac_status=$? | ||
12224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12225 | (exit $ac_status); }; then : | ||
12226 | break | ||
12227 | fi | ||
12228 | done | ||
12229 | fi | ||
12230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5 | ||
12231 | $as_echo "$am_cv_pathless_PYTHON" >&6; } | ||
12232 | # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON. | ||
12233 | if test "$am_cv_pathless_PYTHON" = none; then | ||
12234 | PYTHON=: | ||
12235 | else | ||
12236 | # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args. | ||
12237 | set dummy $am_cv_pathless_PYTHON; ac_word=$2 | ||
12238 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
12239 | $as_echo_n "checking for $ac_word... " >&6; } | ||
12240 | if test "${ac_cv_path_PYTHON+set}" = set; then : | ||
12241 | $as_echo_n "(cached) " >&6 | ||
12242 | else | ||
12243 | case $PYTHON in | ||
12244 | [\\/]* | ?:[\\/]*) | ||
12245 | ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. | ||
12246 | ;; | ||
12247 | *) | ||
12248 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
12249 | for as_dir in $PATH | ||
12250 | do | ||
12251 | IFS=$as_save_IFS | ||
12252 | test -z "$as_dir" && as_dir=. | ||
12253 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
12254 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
12255 | ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext" | ||
12256 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
12257 | break 2 | ||
12258 | fi | ||
12259 | done | ||
12260 | done | ||
12261 | IFS=$as_save_IFS | ||
12262 | |||
12263 | ;; | ||
12264 | esac | ||
12265 | fi | ||
12266 | PYTHON=$ac_cv_path_PYTHON | ||
12267 | if test -n "$PYTHON"; then | ||
12268 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5 | ||
12269 | $as_echo "$PYTHON" >&6; } | ||
12270 | else | ||
12271 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12272 | $as_echo "no" >&6; } | ||
12273 | fi | ||
12274 | |||
12275 | |||
12276 | fi | ||
12277 | am_display_PYTHON=$am_cv_pathless_PYTHON | ||
12278 | fi | ||
12279 | |||
12280 | |||
12281 | if test "$PYTHON" = :; then | ||
12282 | : | ||
12283 | else | ||
12284 | |||
12285 | |||
12286 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5 | ||
12287 | $as_echo_n "checking for $am_display_PYTHON version... " >&6; } | ||
12288 | if test "${am_cv_python_version+set}" = set; then : | ||
12289 | $as_echo_n "(cached) " >&6 | ||
12290 | else | ||
12291 | am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"` | ||
12292 | fi | ||
12293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5 | ||
12294 | $as_echo "$am_cv_python_version" >&6; } | ||
12295 | PYTHON_VERSION=$am_cv_python_version | ||
12296 | |||
12297 | |||
12298 | |||
12299 | PYTHON_PREFIX='${prefix}' | ||
12300 | |||
12301 | PYTHON_EXEC_PREFIX='${exec_prefix}' | ||
12302 | |||
12303 | |||
12304 | |||
12305 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5 | ||
12306 | $as_echo_n "checking for $am_display_PYTHON platform... " >&6; } | ||
12307 | if test "${am_cv_python_platform+set}" = set; then : | ||
12308 | $as_echo_n "(cached) " >&6 | ||
12309 | else | ||
12310 | am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"` | ||
12311 | fi | ||
12312 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5 | ||
12313 | $as_echo "$am_cv_python_platform" >&6; } | ||
12314 | PYTHON_PLATFORM=$am_cv_python_platform | ||
12315 | |||
12316 | |||
12317 | |||
12318 | |||
12319 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5 | ||
12320 | $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; } | ||
12321 | if test "${am_cv_python_pythondir+set}" = set; then : | ||
12322 | $as_echo_n "(cached) " >&6 | ||
12323 | else | ||
12324 | if test "x$prefix" = xNONE | ||
12325 | then | ||
12326 | am_py_prefix=$ac_default_prefix | ||
12327 | else | ||
12328 | am_py_prefix=$prefix | ||
12329 | fi | ||
12330 | am_cv_python_pythondir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(0,0,prefix='$am_py_prefix'))" 2>/dev/null || | ||
12331 | echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"` | ||
12332 | case $am_cv_python_pythondir in | ||
12333 | $am_py_prefix*) | ||
12334 | am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'` | ||
12335 | am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"` | ||
12336 | ;; | ||
12337 | *) | ||
12338 | case $am_py_prefix in | ||
12339 | /usr|/System*) ;; | ||
12340 | *) | ||
12341 | am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages | ||
12342 | ;; | ||
12343 | esac | ||
12344 | ;; | ||
12345 | esac | ||
12346 | |||
12347 | fi | ||
12348 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5 | ||
12349 | $as_echo "$am_cv_python_pythondir" >&6; } | ||
12350 | pythondir=$am_cv_python_pythondir | ||
12351 | |||
12352 | |||
12353 | |||
12354 | pkgpythondir=\${pythondir}/$PACKAGE | ||
12355 | |||
12356 | |||
12357 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5 | ||
12358 | $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; } | ||
12359 | if test "${am_cv_python_pyexecdir+set}" = set; then : | ||
12360 | $as_echo_n "(cached) " >&6 | ||
12361 | else | ||
12362 | if test "x$exec_prefix" = xNONE | ||
12363 | then | ||
12364 | am_py_exec_prefix=$am_py_prefix | ||
12365 | else | ||
12366 | am_py_exec_prefix=$exec_prefix | ||
12367 | fi | ||
12368 | am_cv_python_pyexecdir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(1,0,prefix='$am_py_exec_prefix'))" 2>/dev/null || | ||
12369 | echo "$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages"` | ||
12370 | case $am_cv_python_pyexecdir in | ||
12371 | $am_py_exec_prefix*) | ||
12372 | am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'` | ||
12373 | am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"` | ||
12374 | ;; | ||
12375 | *) | ||
12376 | case $am_py_exec_prefix in | ||
12377 | /usr|/System*) ;; | ||
12378 | *) | ||
12379 | am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages | ||
12380 | ;; | ||
12381 | esac | ||
12382 | ;; | ||
12383 | esac | ||
12384 | |||
12385 | fi | ||
12386 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5 | ||
12387 | $as_echo "$am_cv_python_pyexecdir" >&6; } | ||
12388 | pyexecdir=$am_cv_python_pyexecdir | ||
12389 | |||
12390 | |||
12391 | |||
12392 | pkgpyexecdir=\${pyexecdir}/$PACKAGE | ||
12393 | |||
12394 | |||
12395 | |||
12396 | fi | ||
12397 | |||
12398 | |||
12399 | if test "$PYTHON" != : ; then | ||
12400 | HAVE_PYTHON_TRUE= | ||
12401 | HAVE_PYTHON_FALSE='#' | ||
12402 | else | ||
12403 | HAVE_PYTHON_TRUE='#' | ||
12404 | HAVE_PYTHON_FALSE= | ||
12405 | fi | ||
12406 | |||
12407 | |||
12408 | # pkg-config | ||
12409 | |||
12410 | |||
12411 | |||
12412 | |||
12413 | |||
12414 | |||
12415 | |||
12416 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | ||
12417 | if test -n "$ac_tool_prefix"; then | ||
12418 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | ||
12419 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | ||
12420 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
12421 | $as_echo_n "checking for $ac_word... " >&6; } | ||
12422 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : | ||
12423 | $as_echo_n "(cached) " >&6 | ||
12424 | else | ||
12425 | case $PKG_CONFIG in | ||
12426 | [\\/]* | ?:[\\/]*) | ||
12427 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | ||
12428 | ;; | ||
12429 | *) | ||
12430 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
12431 | for as_dir in $PATH | ||
12432 | do | ||
12433 | IFS=$as_save_IFS | ||
12434 | test -z "$as_dir" && as_dir=. | ||
12435 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
12436 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
12437 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
12438 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
12439 | break 2 | ||
12440 | fi | ||
12441 | done | ||
12442 | done | ||
12443 | IFS=$as_save_IFS | ||
12444 | |||
12445 | ;; | ||
12446 | esac | ||
12447 | fi | ||
12448 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | ||
12449 | if test -n "$PKG_CONFIG"; then | ||
12450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | ||
12451 | $as_echo "$PKG_CONFIG" >&6; } | ||
12452 | else | ||
12453 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12454 | $as_echo "no" >&6; } | ||
12455 | fi | ||
12456 | |||
12457 | |||
12458 | fi | ||
12459 | if test -z "$ac_cv_path_PKG_CONFIG"; then | ||
12460 | ac_pt_PKG_CONFIG=$PKG_CONFIG | ||
12461 | # Extract the first word of "pkg-config", so it can be a program name with args. | ||
12462 | set dummy pkg-config; ac_word=$2 | ||
12463 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
12464 | $as_echo_n "checking for $ac_word... " >&6; } | ||
12465 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then : | ||
12466 | $as_echo_n "(cached) " >&6 | ||
12467 | else | ||
12468 | case $ac_pt_PKG_CONFIG in | ||
12469 | [\\/]* | ?:[\\/]*) | ||
12470 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | ||
12471 | ;; | ||
12472 | *) | ||
12473 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
12474 | for as_dir in $PATH | ||
12475 | do | ||
12476 | IFS=$as_save_IFS | ||
12477 | test -z "$as_dir" && as_dir=. | ||
12478 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
12479 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
12480 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
12481 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
12482 | break 2 | ||
12483 | fi | ||
12484 | done | ||
12485 | done | ||
12486 | IFS=$as_save_IFS | ||
12487 | |||
12488 | ;; | ||
12489 | esac | ||
12490 | fi | ||
12491 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | ||
12492 | if test -n "$ac_pt_PKG_CONFIG"; then | ||
12493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 | ||
12494 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | ||
12495 | else | ||
12496 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12497 | $as_echo "no" >&6; } | ||
12498 | fi | ||
12499 | |||
12500 | if test "x$ac_pt_PKG_CONFIG" = x; then | ||
12501 | PKG_CONFIG="" | ||
12502 | else | ||
12503 | case $cross_compiling:$ac_tool_warned in | ||
12504 | yes:) | ||
12505 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
12506 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
12507 | ac_tool_warned=yes ;; | ||
12508 | esac | ||
12509 | PKG_CONFIG=$ac_pt_PKG_CONFIG | ||
12510 | fi | ||
12511 | else | ||
12512 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | ||
12513 | fi | ||
12514 | |||
12515 | fi | ||
12516 | if test -n "$PKG_CONFIG"; then | ||
12517 | _pkg_min_version=0.9.0 | ||
12518 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 | ||
12519 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | ||
12520 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | ||
12521 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
12522 | $as_echo "yes" >&6; } | ||
12523 | else | ||
12524 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12525 | $as_echo "no" >&6; } | ||
12526 | PKG_CONFIG="" | ||
12527 | fi | ||
12528 | fi | ||
12529 | |||
12530 | # Check whether pkg-config supports Requires.private | ||
12531 | |||
12532 | if $PKG_CONFIG --atleast-pkgconfig-version 0.22; then | ||
12533 | pkgconfig_requires_private="Requires.private" | ||
12534 | else | ||
12535 | pkgconfig_requires_private="Requires" | ||
12536 | fi | ||
12537 | |||
12538 | |||
12539 | |||
12540 | ### Checks for libraries | ||
12541 | |||
12542 | # Evil library for compilation on Windows | ||
12543 | |||
12544 | EFL_EDJE_BUILD="" | ||
12545 | case "$host_os" in | ||
12546 | mingw*) | ||
12547 | |||
12548 | pkg_failed=no | ||
12549 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVIL" >&5 | ||
12550 | $as_echo_n "checking for EVIL... " >&6; } | ||
12551 | |||
12552 | if test -n "$EVIL_CFLAGS"; then | ||
12553 | pkg_cv_EVIL_CFLAGS="$EVIL_CFLAGS" | ||
12554 | elif test -n "$PKG_CONFIG"; then | ||
12555 | if test -n "$PKG_CONFIG" && \ | ||
12556 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"evil >= 1.0.0\""; } >&5 | ||
12557 | ($PKG_CONFIG --exists --print-errors "evil >= 1.0.0") 2>&5 | ||
12558 | ac_status=$? | ||
12559 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
12560 | test $ac_status = 0; }; then | ||
12561 | pkg_cv_EVIL_CFLAGS=`$PKG_CONFIG --cflags "evil >= 1.0.0" 2>/dev/null` | ||
12562 | else | ||
12563 | pkg_failed=yes | ||
12564 | fi | ||
12565 | else | ||
12566 | pkg_failed=untried | ||
12567 | fi | ||
12568 | if test -n "$EVIL_LIBS"; then | ||
12569 | pkg_cv_EVIL_LIBS="$EVIL_LIBS" | ||
12570 | elif test -n "$PKG_CONFIG"; then | ||
12571 | if test -n "$PKG_CONFIG" && \ | ||
12572 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"evil >= 1.0.0\""; } >&5 | ||
12573 | ($PKG_CONFIG --exists --print-errors "evil >= 1.0.0") 2>&5 | ||
12574 | ac_status=$? | ||
12575 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
12576 | test $ac_status = 0; }; then | ||
12577 | pkg_cv_EVIL_LIBS=`$PKG_CONFIG --libs "evil >= 1.0.0" 2>/dev/null` | ||
12578 | else | ||
12579 | pkg_failed=yes | ||
12580 | fi | ||
12581 | else | ||
12582 | pkg_failed=untried | ||
12583 | fi | ||
12584 | |||
12585 | |||
12586 | |||
12587 | if test $pkg_failed = yes; then | ||
12588 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12589 | $as_echo "no" >&6; } | ||
12590 | |||
12591 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
12592 | _pkg_short_errors_supported=yes | ||
12593 | else | ||
12594 | _pkg_short_errors_supported=no | ||
12595 | fi | ||
12596 | if test $_pkg_short_errors_supported = yes; then | ||
12597 | EVIL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "evil >= 1.0.0" 2>&1` | ||
12598 | else | ||
12599 | EVIL_PKG_ERRORS=`$PKG_CONFIG --print-errors "evil >= 1.0.0" 2>&1` | ||
12600 | fi | ||
12601 | # Put the nasty error message in config.log where it belongs | ||
12602 | echo "$EVIL_PKG_ERRORS" >&5 | ||
12603 | |||
12604 | as_fn_error $? "Package requirements (evil >= 1.0.0) were not met: | ||
12605 | |||
12606 | $EVIL_PKG_ERRORS | ||
12607 | |||
12608 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | ||
12609 | installed software in a non-standard prefix. | ||
12610 | |||
12611 | Alternatively, you may set the environment variables EVIL_CFLAGS | ||
12612 | and EVIL_LIBS to avoid the need to call pkg-config. | ||
12613 | See the pkg-config man page for more details." "$LINENO" 5 | ||
12614 | elif test $pkg_failed = untried; then | ||
12615 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12616 | $as_echo "no" >&6; } | ||
12617 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
12618 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
12619 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it | ||
12620 | is in your PATH or set the PKG_CONFIG environment variable to the full | ||
12621 | path to pkg-config. | ||
12622 | |||
12623 | Alternatively, you may set the environment variables EVIL_CFLAGS | ||
12624 | and EVIL_LIBS to avoid the need to call pkg-config. | ||
12625 | See the pkg-config man page for more details. | ||
12626 | |||
12627 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | ||
12628 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
12629 | else | ||
12630 | EVIL_CFLAGS=$pkg_cv_EVIL_CFLAGS | ||
12631 | EVIL_LIBS=$pkg_cv_EVIL_LIBS | ||
12632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
12633 | $as_echo "yes" >&6; } | ||
12634 | |||
12635 | fi | ||
12636 | |||
12637 | $as_echo "#define HAVE_EVIL 1" >>confdefs.h | ||
12638 | |||
12639 | requirement_edje="evil ${requirement_edje}" | ||
12640 | EFL_EDJE_BUILD="-DEFL_EDJE_BUILD" | ||
12641 | ;; | ||
12642 | esac | ||
12643 | |||
12644 | |||
12645 | # Dependencies for the library | ||
12646 | |||
12647 | # Lua pkg-config hack for different naming conventions | ||
12648 | have_lua="yes" | ||
12649 | requirement_lua="" | ||
12650 | lua_libs="" | ||
12651 | |||
12652 | pkg_failed=no | ||
12653 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5 | ||
12654 | $as_echo_n "checking for LUA... " >&6; } | ||
12655 | |||
12656 | if test -n "$LUA_CFLAGS"; then | ||
12657 | pkg_cv_LUA_CFLAGS="$LUA_CFLAGS" | ||
12658 | elif test -n "$PKG_CONFIG"; then | ||
12659 | if test -n "$PKG_CONFIG" && \ | ||
12660 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1.0\""; } >&5 | ||
12661 | ($PKG_CONFIG --exists --print-errors "lua >= 5.1.0") 2>&5 | ||
12662 | ac_status=$? | ||
12663 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
12664 | test $ac_status = 0; }; then | ||
12665 | pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1.0" 2>/dev/null` | ||
12666 | else | ||
12667 | pkg_failed=yes | ||
12668 | fi | ||
12669 | else | ||
12670 | pkg_failed=untried | ||
12671 | fi | ||
12672 | if test -n "$LUA_LIBS"; then | ||
12673 | pkg_cv_LUA_LIBS="$LUA_LIBS" | ||
12674 | elif test -n "$PKG_CONFIG"; then | ||
12675 | if test -n "$PKG_CONFIG" && \ | ||
12676 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1.0\""; } >&5 | ||
12677 | ($PKG_CONFIG --exists --print-errors "lua >= 5.1.0") 2>&5 | ||
12678 | ac_status=$? | ||
12679 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
12680 | test $ac_status = 0; }; then | ||
12681 | pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua >= 5.1.0" 2>/dev/null` | ||
12682 | else | ||
12683 | pkg_failed=yes | ||
12684 | fi | ||
12685 | else | ||
12686 | pkg_failed=untried | ||
12687 | fi | ||
12688 | |||
12689 | |||
12690 | |||
12691 | if test $pkg_failed = yes; then | ||
12692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12693 | $as_echo "no" >&6; } | ||
12694 | |||
12695 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
12696 | _pkg_short_errors_supported=yes | ||
12697 | else | ||
12698 | _pkg_short_errors_supported=no | ||
12699 | fi | ||
12700 | if test $_pkg_short_errors_supported = yes; then | ||
12701 | LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua >= 5.1.0" 2>&1` | ||
12702 | else | ||
12703 | LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua >= 5.1.0" 2>&1` | ||
12704 | fi | ||
12705 | # Put the nasty error message in config.log where it belongs | ||
12706 | echo "$LUA_PKG_ERRORS" >&5 | ||
12707 | |||
12708 | |||
12709 | pkg_failed=no | ||
12710 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5 | ||
12711 | $as_echo_n "checking for LUA... " >&6; } | ||
12712 | |||
12713 | if test -n "$LUA_CFLAGS"; then | ||
12714 | pkg_cv_LUA_CFLAGS="$LUA_CFLAGS" | ||
12715 | elif test -n "$PKG_CONFIG"; then | ||
12716 | if test -n "$PKG_CONFIG" && \ | ||
12717 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1 >= 5.1.0\""; } >&5 | ||
12718 | ($PKG_CONFIG --exists --print-errors "lua5.1 >= 5.1.0") 2>&5 | ||
12719 | ac_status=$? | ||
12720 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
12721 | test $ac_status = 0; }; then | ||
12722 | pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1 >= 5.1.0" 2>/dev/null` | ||
12723 | else | ||
12724 | pkg_failed=yes | ||
12725 | fi | ||
12726 | else | ||
12727 | pkg_failed=untried | ||
12728 | fi | ||
12729 | if test -n "$LUA_LIBS"; then | ||
12730 | pkg_cv_LUA_LIBS="$LUA_LIBS" | ||
12731 | elif test -n "$PKG_CONFIG"; then | ||
12732 | if test -n "$PKG_CONFIG" && \ | ||
12733 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1 >= 5.1.0\""; } >&5 | ||
12734 | ($PKG_CONFIG --exists --print-errors "lua5.1 >= 5.1.0") 2>&5 | ||
12735 | ac_status=$? | ||
12736 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
12737 | test $ac_status = 0; }; then | ||
12738 | pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1 >= 5.1.0" 2>/dev/null` | ||
12739 | else | ||
12740 | pkg_failed=yes | ||
12741 | fi | ||
12742 | else | ||
12743 | pkg_failed=untried | ||
12744 | fi | ||
12745 | |||
12746 | |||
12747 | |||
12748 | if test $pkg_failed = yes; then | ||
12749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12750 | $as_echo "no" >&6; } | ||
12751 | |||
12752 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
12753 | _pkg_short_errors_supported=yes | ||
12754 | else | ||
12755 | _pkg_short_errors_supported=no | ||
12756 | fi | ||
12757 | if test $_pkg_short_errors_supported = yes; then | ||
12758 | LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua5.1 >= 5.1.0" 2>&1` | ||
12759 | else | ||
12760 | LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua5.1 >= 5.1.0" 2>&1` | ||
12761 | fi | ||
12762 | # Put the nasty error message in config.log where it belongs | ||
12763 | echo "$LUA_PKG_ERRORS" >&5 | ||
12764 | |||
12765 | |||
12766 | pkg_failed=no | ||
12767 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5 | ||
12768 | $as_echo_n "checking for LUA... " >&6; } | ||
12769 | |||
12770 | if test -n "$LUA_CFLAGS"; then | ||
12771 | pkg_cv_LUA_CFLAGS="$LUA_CFLAGS" | ||
12772 | elif test -n "$PKG_CONFIG"; then | ||
12773 | if test -n "$PKG_CONFIG" && \ | ||
12774 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1.0\""; } >&5 | ||
12775 | ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1.0") 2>&5 | ||
12776 | ac_status=$? | ||
12777 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
12778 | test $ac_status = 0; }; then | ||
12779 | pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1 >= 5.1.0" 2>/dev/null` | ||
12780 | else | ||
12781 | pkg_failed=yes | ||
12782 | fi | ||
12783 | else | ||
12784 | pkg_failed=untried | ||
12785 | fi | ||
12786 | if test -n "$LUA_LIBS"; then | ||
12787 | pkg_cv_LUA_LIBS="$LUA_LIBS" | ||
12788 | elif test -n "$PKG_CONFIG"; then | ||
12789 | if test -n "$PKG_CONFIG" && \ | ||
12790 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1.0\""; } >&5 | ||
12791 | ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1.0") 2>&5 | ||
12792 | ac_status=$? | ||
12793 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
12794 | test $ac_status = 0; }; then | ||
12795 | pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1 >= 5.1.0" 2>/dev/null` | ||
12796 | else | ||
12797 | pkg_failed=yes | ||
12798 | fi | ||
12799 | else | ||
12800 | pkg_failed=untried | ||
12801 | fi | ||
12802 | |||
12803 | |||
12804 | |||
12805 | if test $pkg_failed = yes; then | ||
12806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12807 | $as_echo "no" >&6; } | ||
12808 | |||
12809 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
12810 | _pkg_short_errors_supported=yes | ||
12811 | else | ||
12812 | _pkg_short_errors_supported=no | ||
12813 | fi | ||
12814 | if test $_pkg_short_errors_supported = yes; then | ||
12815 | LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua-5.1 >= 5.1.0" 2>&1` | ||
12816 | else | ||
12817 | LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua-5.1 >= 5.1.0" 2>&1` | ||
12818 | fi | ||
12819 | # Put the nasty error message in config.log where it belongs | ||
12820 | echo "$LUA_PKG_ERRORS" >&5 | ||
12821 | |||
12822 | |||
12823 | pkg_failed=no | ||
12824 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5 | ||
12825 | $as_echo_n "checking for LUA... " >&6; } | ||
12826 | |||
12827 | if test -n "$LUA_CFLAGS"; then | ||
12828 | pkg_cv_LUA_CFLAGS="$LUA_CFLAGS" | ||
12829 | elif test -n "$PKG_CONFIG"; then | ||
12830 | if test -n "$PKG_CONFIG" && \ | ||
12831 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51 >= 5.1.0\""; } >&5 | ||
12832 | ($PKG_CONFIG --exists --print-errors "lua51 >= 5.1.0") 2>&5 | ||
12833 | ac_status=$? | ||
12834 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
12835 | test $ac_status = 0; }; then | ||
12836 | pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51 >= 5.1.0" 2>/dev/null` | ||
12837 | else | ||
12838 | pkg_failed=yes | ||
12839 | fi | ||
12840 | else | ||
12841 | pkg_failed=untried | ||
12842 | fi | ||
12843 | if test -n "$LUA_LIBS"; then | ||
12844 | pkg_cv_LUA_LIBS="$LUA_LIBS" | ||
12845 | elif test -n "$PKG_CONFIG"; then | ||
12846 | if test -n "$PKG_CONFIG" && \ | ||
12847 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51 >= 5.1.0\""; } >&5 | ||
12848 | ($PKG_CONFIG --exists --print-errors "lua51 >= 5.1.0") 2>&5 | ||
12849 | ac_status=$? | ||
12850 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
12851 | test $ac_status = 0; }; then | ||
12852 | pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51 >= 5.1.0" 2>/dev/null` | ||
12853 | else | ||
12854 | pkg_failed=yes | ||
12855 | fi | ||
12856 | else | ||
12857 | pkg_failed=untried | ||
12858 | fi | ||
12859 | |||
12860 | |||
12861 | |||
12862 | if test $pkg_failed = yes; then | ||
12863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12864 | $as_echo "no" >&6; } | ||
12865 | |||
12866 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
12867 | _pkg_short_errors_supported=yes | ||
12868 | else | ||
12869 | _pkg_short_errors_supported=no | ||
12870 | fi | ||
12871 | if test $_pkg_short_errors_supported = yes; then | ||
12872 | LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua51 >= 5.1.0" 2>&1` | ||
12873 | else | ||
12874 | LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua51 >= 5.1.0" 2>&1` | ||
12875 | fi | ||
12876 | # Put the nasty error message in config.log where it belongs | ||
12877 | echo "$LUA_PKG_ERRORS" >&5 | ||
12878 | |||
12879 | have_lua="no" | ||
12880 | elif test $pkg_failed = untried; then | ||
12881 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12882 | $as_echo "no" >&6; } | ||
12883 | have_lua="no" | ||
12884 | else | ||
12885 | LUA_CFLAGS=$pkg_cv_LUA_CFLAGS | ||
12886 | LUA_LIBS=$pkg_cv_LUA_LIBS | ||
12887 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
12888 | $as_echo "yes" >&6; } | ||
12889 | requirement_lua="lua51" | ||
12890 | fi | ||
12891 | elif test $pkg_failed = untried; then | ||
12892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12893 | $as_echo "no" >&6; } | ||
12894 | |||
12895 | pkg_failed=no | ||
12896 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5 | ||
12897 | $as_echo_n "checking for LUA... " >&6; } | ||
12898 | |||
12899 | if test -n "$LUA_CFLAGS"; then | ||
12900 | pkg_cv_LUA_CFLAGS="$LUA_CFLAGS" | ||
12901 | elif test -n "$PKG_CONFIG"; then | ||
12902 | if test -n "$PKG_CONFIG" && \ | ||
12903 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51 >= 5.1.0\""; } >&5 | ||
12904 | ($PKG_CONFIG --exists --print-errors "lua51 >= 5.1.0") 2>&5 | ||
12905 | ac_status=$? | ||
12906 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
12907 | test $ac_status = 0; }; then | ||
12908 | pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51 >= 5.1.0" 2>/dev/null` | ||
12909 | else | ||
12910 | pkg_failed=yes | ||
12911 | fi | ||
12912 | else | ||
12913 | pkg_failed=untried | ||
12914 | fi | ||
12915 | if test -n "$LUA_LIBS"; then | ||
12916 | pkg_cv_LUA_LIBS="$LUA_LIBS" | ||
12917 | elif test -n "$PKG_CONFIG"; then | ||
12918 | if test -n "$PKG_CONFIG" && \ | ||
12919 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51 >= 5.1.0\""; } >&5 | ||
12920 | ($PKG_CONFIG --exists --print-errors "lua51 >= 5.1.0") 2>&5 | ||
12921 | ac_status=$? | ||
12922 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
12923 | test $ac_status = 0; }; then | ||
12924 | pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51 >= 5.1.0" 2>/dev/null` | ||
12925 | else | ||
12926 | pkg_failed=yes | ||
12927 | fi | ||
12928 | else | ||
12929 | pkg_failed=untried | ||
12930 | fi | ||
12931 | |||
12932 | |||
12933 | |||
12934 | if test $pkg_failed = yes; then | ||
12935 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12936 | $as_echo "no" >&6; } | ||
12937 | |||
12938 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
12939 | _pkg_short_errors_supported=yes | ||
12940 | else | ||
12941 | _pkg_short_errors_supported=no | ||
12942 | fi | ||
12943 | if test $_pkg_short_errors_supported = yes; then | ||
12944 | LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua51 >= 5.1.0" 2>&1` | ||
12945 | else | ||
12946 | LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua51 >= 5.1.0" 2>&1` | ||
12947 | fi | ||
12948 | # Put the nasty error message in config.log where it belongs | ||
12949 | echo "$LUA_PKG_ERRORS" >&5 | ||
12950 | |||
12951 | have_lua="no" | ||
12952 | elif test $pkg_failed = untried; then | ||
12953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12954 | $as_echo "no" >&6; } | ||
12955 | have_lua="no" | ||
12956 | else | ||
12957 | LUA_CFLAGS=$pkg_cv_LUA_CFLAGS | ||
12958 | LUA_LIBS=$pkg_cv_LUA_LIBS | ||
12959 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
12960 | $as_echo "yes" >&6; } | ||
12961 | requirement_lua="lua51" | ||
12962 | fi | ||
12963 | else | ||
12964 | LUA_CFLAGS=$pkg_cv_LUA_CFLAGS | ||
12965 | LUA_LIBS=$pkg_cv_LUA_LIBS | ||
12966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
12967 | $as_echo "yes" >&6; } | ||
12968 | requirement_lua="lua-5.1" | ||
12969 | fi | ||
12970 | elif test $pkg_failed = untried; then | ||
12971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12972 | $as_echo "no" >&6; } | ||
12973 | |||
12974 | pkg_failed=no | ||
12975 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5 | ||
12976 | $as_echo_n "checking for LUA... " >&6; } | ||
12977 | |||
12978 | if test -n "$LUA_CFLAGS"; then | ||
12979 | pkg_cv_LUA_CFLAGS="$LUA_CFLAGS" | ||
12980 | elif test -n "$PKG_CONFIG"; then | ||
12981 | if test -n "$PKG_CONFIG" && \ | ||
12982 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1.0\""; } >&5 | ||
12983 | ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1.0") 2>&5 | ||
12984 | ac_status=$? | ||
12985 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
12986 | test $ac_status = 0; }; then | ||
12987 | pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1 >= 5.1.0" 2>/dev/null` | ||
12988 | else | ||
12989 | pkg_failed=yes | ||
12990 | fi | ||
12991 | else | ||
12992 | pkg_failed=untried | ||
12993 | fi | ||
12994 | if test -n "$LUA_LIBS"; then | ||
12995 | pkg_cv_LUA_LIBS="$LUA_LIBS" | ||
12996 | elif test -n "$PKG_CONFIG"; then | ||
12997 | if test -n "$PKG_CONFIG" && \ | ||
12998 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1.0\""; } >&5 | ||
12999 | ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1.0") 2>&5 | ||
13000 | ac_status=$? | ||
13001 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
13002 | test $ac_status = 0; }; then | ||
13003 | pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1 >= 5.1.0" 2>/dev/null` | ||
13004 | else | ||
13005 | pkg_failed=yes | ||
13006 | fi | ||
13007 | else | ||
13008 | pkg_failed=untried | ||
13009 | fi | ||
13010 | |||
13011 | |||
13012 | |||
13013 | if test $pkg_failed = yes; then | ||
13014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
13015 | $as_echo "no" >&6; } | ||
13016 | |||
13017 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
13018 | _pkg_short_errors_supported=yes | ||
13019 | else | ||
13020 | _pkg_short_errors_supported=no | ||
13021 | fi | ||
13022 | if test $_pkg_short_errors_supported = yes; then | ||
13023 | LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua-5.1 >= 5.1.0" 2>&1` | ||
13024 | else | ||
13025 | LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua-5.1 >= 5.1.0" 2>&1` | ||
13026 | fi | ||
13027 | # Put the nasty error message in config.log where it belongs | ||
13028 | echo "$LUA_PKG_ERRORS" >&5 | ||
13029 | |||
13030 | |||
13031 | pkg_failed=no | ||
13032 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5 | ||
13033 | $as_echo_n "checking for LUA... " >&6; } | ||
13034 | |||
13035 | if test -n "$LUA_CFLAGS"; then | ||
13036 | pkg_cv_LUA_CFLAGS="$LUA_CFLAGS" | ||
13037 | elif test -n "$PKG_CONFIG"; then | ||
13038 | if test -n "$PKG_CONFIG" && \ | ||
13039 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51 >= 5.1.0\""; } >&5 | ||
13040 | ($PKG_CONFIG --exists --print-errors "lua51 >= 5.1.0") 2>&5 | ||
13041 | ac_status=$? | ||
13042 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
13043 | test $ac_status = 0; }; then | ||
13044 | pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51 >= 5.1.0" 2>/dev/null` | ||
13045 | else | ||
13046 | pkg_failed=yes | ||
13047 | fi | ||
13048 | else | ||
13049 | pkg_failed=untried | ||
13050 | fi | ||
13051 | if test -n "$LUA_LIBS"; then | ||
13052 | pkg_cv_LUA_LIBS="$LUA_LIBS" | ||
13053 | elif test -n "$PKG_CONFIG"; then | ||
13054 | if test -n "$PKG_CONFIG" && \ | ||
13055 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51 >= 5.1.0\""; } >&5 | ||
13056 | ($PKG_CONFIG --exists --print-errors "lua51 >= 5.1.0") 2>&5 | ||
13057 | ac_status=$? | ||
13058 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
13059 | test $ac_status = 0; }; then | ||
13060 | pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51 >= 5.1.0" 2>/dev/null` | ||
13061 | else | ||
13062 | pkg_failed=yes | ||
13063 | fi | ||
13064 | else | ||
13065 | pkg_failed=untried | ||
13066 | fi | ||
13067 | |||
13068 | |||
13069 | |||
13070 | if test $pkg_failed = yes; then | ||
13071 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
13072 | $as_echo "no" >&6; } | ||
13073 | |||
13074 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
13075 | _pkg_short_errors_supported=yes | ||
13076 | else | ||
13077 | _pkg_short_errors_supported=no | ||
13078 | fi | ||
13079 | if test $_pkg_short_errors_supported = yes; then | ||
13080 | LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua51 >= 5.1.0" 2>&1` | ||
13081 | else | ||
13082 | LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua51 >= 5.1.0" 2>&1` | ||
13083 | fi | ||
13084 | # Put the nasty error message in config.log where it belongs | ||
13085 | echo "$LUA_PKG_ERRORS" >&5 | ||
13086 | |||
13087 | have_lua="no" | ||
13088 | elif test $pkg_failed = untried; then | ||
13089 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
13090 | $as_echo "no" >&6; } | ||
13091 | have_lua="no" | ||
13092 | else | ||
13093 | LUA_CFLAGS=$pkg_cv_LUA_CFLAGS | ||
13094 | LUA_LIBS=$pkg_cv_LUA_LIBS | ||
13095 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
13096 | $as_echo "yes" >&6; } | ||
13097 | requirement_lua="lua51" | ||
13098 | fi | ||
13099 | elif test $pkg_failed = untried; then | ||
13100 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
13101 | $as_echo "no" >&6; } | ||
13102 | |||
13103 | pkg_failed=no | ||
13104 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5 | ||
13105 | $as_echo_n "checking for LUA... " >&6; } | ||
13106 | |||
13107 | if test -n "$LUA_CFLAGS"; then | ||
13108 | pkg_cv_LUA_CFLAGS="$LUA_CFLAGS" | ||
13109 | elif test -n "$PKG_CONFIG"; then | ||
13110 | if test -n "$PKG_CONFIG" && \ | ||
13111 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51 >= 5.1.0\""; } >&5 | ||
13112 | ($PKG_CONFIG --exists --print-errors "lua51 >= 5.1.0") 2>&5 | ||
13113 | ac_status=$? | ||
13114 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
13115 | test $ac_status = 0; }; then | ||
13116 | pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51 >= 5.1.0" 2>/dev/null` | ||
13117 | else | ||
13118 | pkg_failed=yes | ||
13119 | fi | ||
13120 | else | ||
13121 | pkg_failed=untried | ||
13122 | fi | ||
13123 | if test -n "$LUA_LIBS"; then | ||
13124 | pkg_cv_LUA_LIBS="$LUA_LIBS" | ||
13125 | elif test -n "$PKG_CONFIG"; then | ||
13126 | if test -n "$PKG_CONFIG" && \ | ||
13127 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51 >= 5.1.0\""; } >&5 | ||
13128 | ($PKG_CONFIG --exists --print-errors "lua51 >= 5.1.0") 2>&5 | ||
13129 | ac_status=$? | ||
13130 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
13131 | test $ac_status = 0; }; then | ||
13132 | pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51 >= 5.1.0" 2>/dev/null` | ||
13133 | else | ||
13134 | pkg_failed=yes | ||
13135 | fi | ||
13136 | else | ||
13137 | pkg_failed=untried | ||
13138 | fi | ||
13139 | |||
13140 | |||
13141 | |||
13142 | if test $pkg_failed = yes; then | ||
13143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
13144 | $as_echo "no" >&6; } | ||
13145 | |||
13146 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
13147 | _pkg_short_errors_supported=yes | ||
13148 | else | ||
13149 | _pkg_short_errors_supported=no | ||
13150 | fi | ||
13151 | if test $_pkg_short_errors_supported = yes; then | ||
13152 | LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua51 >= 5.1.0" 2>&1` | ||
13153 | else | ||
13154 | LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua51 >= 5.1.0" 2>&1` | ||
13155 | fi | ||
13156 | # Put the nasty error message in config.log where it belongs | ||
13157 | echo "$LUA_PKG_ERRORS" >&5 | ||
13158 | |||
13159 | have_lua="no" | ||
13160 | elif test $pkg_failed = untried; then | ||
13161 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
13162 | $as_echo "no" >&6; } | ||
13163 | have_lua="no" | ||
13164 | else | ||
13165 | LUA_CFLAGS=$pkg_cv_LUA_CFLAGS | ||
13166 | LUA_LIBS=$pkg_cv_LUA_LIBS | ||
13167 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
13168 | $as_echo "yes" >&6; } | ||
13169 | requirement_lua="lua51" | ||
13170 | fi | ||
13171 | else | ||
13172 | LUA_CFLAGS=$pkg_cv_LUA_CFLAGS | ||
13173 | LUA_LIBS=$pkg_cv_LUA_LIBS | ||
13174 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
13175 | $as_echo "yes" >&6; } | ||
13176 | requirement_lua="lua-5.1" | ||
13177 | fi | ||
13178 | else | ||
13179 | LUA_CFLAGS=$pkg_cv_LUA_CFLAGS | ||
13180 | LUA_LIBS=$pkg_cv_LUA_LIBS | ||
13181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
13182 | $as_echo "yes" >&6; } | ||
13183 | requirement_lua="lua5.1" | ||
13184 | fi | ||
13185 | elif test $pkg_failed = untried; then | ||
13186 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
13187 | $as_echo "no" >&6; } | ||
13188 | |||
13189 | pkg_failed=no | ||
13190 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5 | ||
13191 | $as_echo_n "checking for LUA... " >&6; } | ||
13192 | |||
13193 | if test -n "$LUA_CFLAGS"; then | ||
13194 | pkg_cv_LUA_CFLAGS="$LUA_CFLAGS" | ||
13195 | elif test -n "$PKG_CONFIG"; then | ||
13196 | if test -n "$PKG_CONFIG" && \ | ||
13197 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1 >= 5.1.0\""; } >&5 | ||
13198 | ($PKG_CONFIG --exists --print-errors "lua5.1 >= 5.1.0") 2>&5 | ||
13199 | ac_status=$? | ||
13200 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
13201 | test $ac_status = 0; }; then | ||
13202 | pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1 >= 5.1.0" 2>/dev/null` | ||
13203 | else | ||
13204 | pkg_failed=yes | ||
13205 | fi | ||
13206 | else | ||
13207 | pkg_failed=untried | ||
13208 | fi | ||
13209 | if test -n "$LUA_LIBS"; then | ||
13210 | pkg_cv_LUA_LIBS="$LUA_LIBS" | ||
13211 | elif test -n "$PKG_CONFIG"; then | ||
13212 | if test -n "$PKG_CONFIG" && \ | ||
13213 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1 >= 5.1.0\""; } >&5 | ||
13214 | ($PKG_CONFIG --exists --print-errors "lua5.1 >= 5.1.0") 2>&5 | ||
13215 | ac_status=$? | ||
13216 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
13217 | test $ac_status = 0; }; then | ||
13218 | pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1 >= 5.1.0" 2>/dev/null` | ||
13219 | else | ||
13220 | pkg_failed=yes | ||
13221 | fi | ||
13222 | else | ||
13223 | pkg_failed=untried | ||
13224 | fi | ||
13225 | |||
13226 | |||
13227 | |||
13228 | if test $pkg_failed = yes; then | ||
13229 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
13230 | $as_echo "no" >&6; } | ||
13231 | |||
13232 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
13233 | _pkg_short_errors_supported=yes | ||
13234 | else | ||
13235 | _pkg_short_errors_supported=no | ||
13236 | fi | ||
13237 | if test $_pkg_short_errors_supported = yes; then | ||
13238 | LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua5.1 >= 5.1.0" 2>&1` | ||
13239 | else | ||
13240 | LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua5.1 >= 5.1.0" 2>&1` | ||
13241 | fi | ||
13242 | # Put the nasty error message in config.log where it belongs | ||
13243 | echo "$LUA_PKG_ERRORS" >&5 | ||
13244 | |||
13245 | |||
13246 | pkg_failed=no | ||
13247 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5 | ||
13248 | $as_echo_n "checking for LUA... " >&6; } | ||
13249 | |||
13250 | if test -n "$LUA_CFLAGS"; then | ||
13251 | pkg_cv_LUA_CFLAGS="$LUA_CFLAGS" | ||
13252 | elif test -n "$PKG_CONFIG"; then | ||
13253 | if test -n "$PKG_CONFIG" && \ | ||
13254 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1.0\""; } >&5 | ||
13255 | ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1.0") 2>&5 | ||
13256 | ac_status=$? | ||
13257 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
13258 | test $ac_status = 0; }; then | ||
13259 | pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1 >= 5.1.0" 2>/dev/null` | ||
13260 | else | ||
13261 | pkg_failed=yes | ||
13262 | fi | ||
13263 | else | ||
13264 | pkg_failed=untried | ||
13265 | fi | ||
13266 | if test -n "$LUA_LIBS"; then | ||
13267 | pkg_cv_LUA_LIBS="$LUA_LIBS" | ||
13268 | elif test -n "$PKG_CONFIG"; then | ||
13269 | if test -n "$PKG_CONFIG" && \ | ||
13270 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1.0\""; } >&5 | ||
13271 | ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1.0") 2>&5 | ||
13272 | ac_status=$? | ||
13273 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
13274 | test $ac_status = 0; }; then | ||
13275 | pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1 >= 5.1.0" 2>/dev/null` | ||
13276 | else | ||
13277 | pkg_failed=yes | ||
13278 | fi | ||
13279 | else | ||
13280 | pkg_failed=untried | ||
13281 | fi | ||
13282 | |||
13283 | |||
13284 | |||
13285 | if test $pkg_failed = yes; then | ||
13286 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
13287 | $as_echo "no" >&6; } | ||
13288 | |||
13289 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
13290 | _pkg_short_errors_supported=yes | ||
13291 | else | ||
13292 | _pkg_short_errors_supported=no | ||
13293 | fi | ||
13294 | if test $_pkg_short_errors_supported = yes; then | ||
13295 | LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua-5.1 >= 5.1.0" 2>&1` | ||
13296 | else | ||
13297 | LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua-5.1 >= 5.1.0" 2>&1` | ||
13298 | fi | ||
13299 | # Put the nasty error message in config.log where it belongs | ||
13300 | echo "$LUA_PKG_ERRORS" >&5 | ||
13301 | |||
13302 | |||
13303 | pkg_failed=no | ||
13304 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5 | ||
13305 | $as_echo_n "checking for LUA... " >&6; } | ||
13306 | |||
13307 | if test -n "$LUA_CFLAGS"; then | ||
13308 | pkg_cv_LUA_CFLAGS="$LUA_CFLAGS" | ||
13309 | elif test -n "$PKG_CONFIG"; then | ||
13310 | if test -n "$PKG_CONFIG" && \ | ||
13311 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51 >= 5.1.0\""; } >&5 | ||
13312 | ($PKG_CONFIG --exists --print-errors "lua51 >= 5.1.0") 2>&5 | ||
13313 | ac_status=$? | ||
13314 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
13315 | test $ac_status = 0; }; then | ||
13316 | pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51 >= 5.1.0" 2>/dev/null` | ||
13317 | else | ||
13318 | pkg_failed=yes | ||
13319 | fi | ||
13320 | else | ||
13321 | pkg_failed=untried | ||
13322 | fi | ||
13323 | if test -n "$LUA_LIBS"; then | ||
13324 | pkg_cv_LUA_LIBS="$LUA_LIBS" | ||
13325 | elif test -n "$PKG_CONFIG"; then | ||
13326 | if test -n "$PKG_CONFIG" && \ | ||
13327 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51 >= 5.1.0\""; } >&5 | ||
13328 | ($PKG_CONFIG --exists --print-errors "lua51 >= 5.1.0") 2>&5 | ||
13329 | ac_status=$? | ||
13330 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
13331 | test $ac_status = 0; }; then | ||
13332 | pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51 >= 5.1.0" 2>/dev/null` | ||
13333 | else | ||
13334 | pkg_failed=yes | ||
13335 | fi | ||
13336 | else | ||
13337 | pkg_failed=untried | ||
13338 | fi | ||
13339 | |||
13340 | |||
13341 | |||
13342 | if test $pkg_failed = yes; then | ||
13343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
13344 | $as_echo "no" >&6; } | ||
13345 | |||
13346 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
13347 | _pkg_short_errors_supported=yes | ||
13348 | else | ||
13349 | _pkg_short_errors_supported=no | ||
13350 | fi | ||
13351 | if test $_pkg_short_errors_supported = yes; then | ||
13352 | LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua51 >= 5.1.0" 2>&1` | ||
13353 | else | ||
13354 | LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua51 >= 5.1.0" 2>&1` | ||
13355 | fi | ||
13356 | # Put the nasty error message in config.log where it belongs | ||
13357 | echo "$LUA_PKG_ERRORS" >&5 | ||
13358 | |||
13359 | have_lua="no" | ||
13360 | elif test $pkg_failed = untried; then | ||
13361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
13362 | $as_echo "no" >&6; } | ||
13363 | have_lua="no" | ||
13364 | else | ||
13365 | LUA_CFLAGS=$pkg_cv_LUA_CFLAGS | ||
13366 | LUA_LIBS=$pkg_cv_LUA_LIBS | ||
13367 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
13368 | $as_echo "yes" >&6; } | ||
13369 | requirement_lua="lua51" | ||
13370 | fi | ||
13371 | elif test $pkg_failed = untried; then | ||
13372 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
13373 | $as_echo "no" >&6; } | ||
13374 | |||
13375 | pkg_failed=no | ||
13376 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5 | ||
13377 | $as_echo_n "checking for LUA... " >&6; } | ||
13378 | |||
13379 | if test -n "$LUA_CFLAGS"; then | ||
13380 | pkg_cv_LUA_CFLAGS="$LUA_CFLAGS" | ||
13381 | elif test -n "$PKG_CONFIG"; then | ||
13382 | if test -n "$PKG_CONFIG" && \ | ||
13383 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51 >= 5.1.0\""; } >&5 | ||
13384 | ($PKG_CONFIG --exists --print-errors "lua51 >= 5.1.0") 2>&5 | ||
13385 | ac_status=$? | ||
13386 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
13387 | test $ac_status = 0; }; then | ||
13388 | pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51 >= 5.1.0" 2>/dev/null` | ||
13389 | else | ||
13390 | pkg_failed=yes | ||
13391 | fi | ||
13392 | else | ||
13393 | pkg_failed=untried | ||
13394 | fi | ||
13395 | if test -n "$LUA_LIBS"; then | ||
13396 | pkg_cv_LUA_LIBS="$LUA_LIBS" | ||
13397 | elif test -n "$PKG_CONFIG"; then | ||
13398 | if test -n "$PKG_CONFIG" && \ | ||
13399 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51 >= 5.1.0\""; } >&5 | ||
13400 | ($PKG_CONFIG --exists --print-errors "lua51 >= 5.1.0") 2>&5 | ||
13401 | ac_status=$? | ||
13402 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
13403 | test $ac_status = 0; }; then | ||
13404 | pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51 >= 5.1.0" 2>/dev/null` | ||
13405 | else | ||
13406 | pkg_failed=yes | ||
13407 | fi | ||
13408 | else | ||
13409 | pkg_failed=untried | ||
13410 | fi | ||
13411 | |||
13412 | |||
13413 | |||
13414 | if test $pkg_failed = yes; then | ||
13415 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
13416 | $as_echo "no" >&6; } | ||
13417 | |||
13418 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
13419 | _pkg_short_errors_supported=yes | ||
13420 | else | ||
13421 | _pkg_short_errors_supported=no | ||
13422 | fi | ||
13423 | if test $_pkg_short_errors_supported = yes; then | ||
13424 | LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua51 >= 5.1.0" 2>&1` | ||
13425 | else | ||
13426 | LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua51 >= 5.1.0" 2>&1` | ||
13427 | fi | ||
13428 | # Put the nasty error message in config.log where it belongs | ||
13429 | echo "$LUA_PKG_ERRORS" >&5 | ||
13430 | |||
13431 | have_lua="no" | ||
13432 | elif test $pkg_failed = untried; then | ||
13433 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
13434 | $as_echo "no" >&6; } | ||
13435 | have_lua="no" | ||
13436 | else | ||
13437 | LUA_CFLAGS=$pkg_cv_LUA_CFLAGS | ||
13438 | LUA_LIBS=$pkg_cv_LUA_LIBS | ||
13439 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
13440 | $as_echo "yes" >&6; } | ||
13441 | requirement_lua="lua51" | ||
13442 | fi | ||
13443 | else | ||
13444 | LUA_CFLAGS=$pkg_cv_LUA_CFLAGS | ||
13445 | LUA_LIBS=$pkg_cv_LUA_LIBS | ||
13446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
13447 | $as_echo "yes" >&6; } | ||
13448 | requirement_lua="lua-5.1" | ||
13449 | fi | ||
13450 | elif test $pkg_failed = untried; then | ||
13451 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
13452 | $as_echo "no" >&6; } | ||
13453 | |||
13454 | pkg_failed=no | ||
13455 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5 | ||
13456 | $as_echo_n "checking for LUA... " >&6; } | ||
13457 | |||
13458 | if test -n "$LUA_CFLAGS"; then | ||
13459 | pkg_cv_LUA_CFLAGS="$LUA_CFLAGS" | ||
13460 | elif test -n "$PKG_CONFIG"; then | ||
13461 | if test -n "$PKG_CONFIG" && \ | ||
13462 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1.0\""; } >&5 | ||
13463 | ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1.0") 2>&5 | ||
13464 | ac_status=$? | ||
13465 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
13466 | test $ac_status = 0; }; then | ||
13467 | pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1 >= 5.1.0" 2>/dev/null` | ||
13468 | else | ||
13469 | pkg_failed=yes | ||
13470 | fi | ||
13471 | else | ||
13472 | pkg_failed=untried | ||
13473 | fi | ||
13474 | if test -n "$LUA_LIBS"; then | ||
13475 | pkg_cv_LUA_LIBS="$LUA_LIBS" | ||
13476 | elif test -n "$PKG_CONFIG"; then | ||
13477 | if test -n "$PKG_CONFIG" && \ | ||
13478 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1.0\""; } >&5 | ||
13479 | ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1.0") 2>&5 | ||
13480 | ac_status=$? | ||
13481 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
13482 | test $ac_status = 0; }; then | ||
13483 | pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1 >= 5.1.0" 2>/dev/null` | ||
13484 | else | ||
13485 | pkg_failed=yes | ||
13486 | fi | ||
13487 | else | ||
13488 | pkg_failed=untried | ||
13489 | fi | ||
13490 | |||
13491 | |||
13492 | |||
13493 | if test $pkg_failed = yes; then | ||
13494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
13495 | $as_echo "no" >&6; } | ||
13496 | |||
13497 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
13498 | _pkg_short_errors_supported=yes | ||
13499 | else | ||
13500 | _pkg_short_errors_supported=no | ||
13501 | fi | ||
13502 | if test $_pkg_short_errors_supported = yes; then | ||
13503 | LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua-5.1 >= 5.1.0" 2>&1` | ||
13504 | else | ||
13505 | LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua-5.1 >= 5.1.0" 2>&1` | ||
13506 | fi | ||
13507 | # Put the nasty error message in config.log where it belongs | ||
13508 | echo "$LUA_PKG_ERRORS" >&5 | ||
13509 | |||
13510 | |||
13511 | pkg_failed=no | ||
13512 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5 | ||
13513 | $as_echo_n "checking for LUA... " >&6; } | ||
13514 | |||
13515 | if test -n "$LUA_CFLAGS"; then | ||
13516 | pkg_cv_LUA_CFLAGS="$LUA_CFLAGS" | ||
13517 | elif test -n "$PKG_CONFIG"; then | ||
13518 | if test -n "$PKG_CONFIG" && \ | ||
13519 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51 >= 5.1.0\""; } >&5 | ||
13520 | ($PKG_CONFIG --exists --print-errors "lua51 >= 5.1.0") 2>&5 | ||
13521 | ac_status=$? | ||
13522 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
13523 | test $ac_status = 0; }; then | ||
13524 | pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51 >= 5.1.0" 2>/dev/null` | ||
13525 | else | ||
13526 | pkg_failed=yes | ||
13527 | fi | ||
13528 | else | ||
13529 | pkg_failed=untried | ||
13530 | fi | ||
13531 | if test -n "$LUA_LIBS"; then | ||
13532 | pkg_cv_LUA_LIBS="$LUA_LIBS" | ||
13533 | elif test -n "$PKG_CONFIG"; then | ||
13534 | if test -n "$PKG_CONFIG" && \ | ||
13535 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51 >= 5.1.0\""; } >&5 | ||
13536 | ($PKG_CONFIG --exists --print-errors "lua51 >= 5.1.0") 2>&5 | ||
13537 | ac_status=$? | ||
13538 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
13539 | test $ac_status = 0; }; then | ||
13540 | pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51 >= 5.1.0" 2>/dev/null` | ||
13541 | else | ||
13542 | pkg_failed=yes | ||
13543 | fi | ||
13544 | else | ||
13545 | pkg_failed=untried | ||
13546 | fi | ||
13547 | |||
13548 | |||
13549 | |||
13550 | if test $pkg_failed = yes; then | ||
13551 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
13552 | $as_echo "no" >&6; } | ||
13553 | |||
13554 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
13555 | _pkg_short_errors_supported=yes | ||
13556 | else | ||
13557 | _pkg_short_errors_supported=no | ||
13558 | fi | ||
13559 | if test $_pkg_short_errors_supported = yes; then | ||
13560 | LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua51 >= 5.1.0" 2>&1` | ||
13561 | else | ||
13562 | LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua51 >= 5.1.0" 2>&1` | ||
13563 | fi | ||
13564 | # Put the nasty error message in config.log where it belongs | ||
13565 | echo "$LUA_PKG_ERRORS" >&5 | ||
13566 | |||
13567 | have_lua="no" | ||
13568 | elif test $pkg_failed = untried; then | ||
13569 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
13570 | $as_echo "no" >&6; } | ||
13571 | have_lua="no" | ||
13572 | else | ||
13573 | LUA_CFLAGS=$pkg_cv_LUA_CFLAGS | ||
13574 | LUA_LIBS=$pkg_cv_LUA_LIBS | ||
13575 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
13576 | $as_echo "yes" >&6; } | ||
13577 | requirement_lua="lua51" | ||
13578 | fi | ||
13579 | elif test $pkg_failed = untried; then | ||
13580 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
13581 | $as_echo "no" >&6; } | ||
13582 | |||
13583 | pkg_failed=no | ||
13584 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5 | ||
13585 | $as_echo_n "checking for LUA... " >&6; } | ||
13586 | |||
13587 | if test -n "$LUA_CFLAGS"; then | ||
13588 | pkg_cv_LUA_CFLAGS="$LUA_CFLAGS" | ||
13589 | elif test -n "$PKG_CONFIG"; then | ||
13590 | if test -n "$PKG_CONFIG" && \ | ||
13591 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51 >= 5.1.0\""; } >&5 | ||
13592 | ($PKG_CONFIG --exists --print-errors "lua51 >= 5.1.0") 2>&5 | ||
13593 | ac_status=$? | ||
13594 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
13595 | test $ac_status = 0; }; then | ||
13596 | pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51 >= 5.1.0" 2>/dev/null` | ||
13597 | else | ||
13598 | pkg_failed=yes | ||
13599 | fi | ||
13600 | else | ||
13601 | pkg_failed=untried | ||
13602 | fi | ||
13603 | if test -n "$LUA_LIBS"; then | ||
13604 | pkg_cv_LUA_LIBS="$LUA_LIBS" | ||
13605 | elif test -n "$PKG_CONFIG"; then | ||
13606 | if test -n "$PKG_CONFIG" && \ | ||
13607 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51 >= 5.1.0\""; } >&5 | ||
13608 | ($PKG_CONFIG --exists --print-errors "lua51 >= 5.1.0") 2>&5 | ||
13609 | ac_status=$? | ||
13610 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
13611 | test $ac_status = 0; }; then | ||
13612 | pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51 >= 5.1.0" 2>/dev/null` | ||
13613 | else | ||
13614 | pkg_failed=yes | ||
13615 | fi | ||
13616 | else | ||
13617 | pkg_failed=untried | ||
13618 | fi | ||
13619 | |||
13620 | |||
13621 | |||
13622 | if test $pkg_failed = yes; then | ||
13623 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
13624 | $as_echo "no" >&6; } | ||
13625 | |||
13626 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
13627 | _pkg_short_errors_supported=yes | ||
13628 | else | ||
13629 | _pkg_short_errors_supported=no | ||
13630 | fi | ||
13631 | if test $_pkg_short_errors_supported = yes; then | ||
13632 | LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua51 >= 5.1.0" 2>&1` | ||
13633 | else | ||
13634 | LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua51 >= 5.1.0" 2>&1` | ||
13635 | fi | ||
13636 | # Put the nasty error message in config.log where it belongs | ||
13637 | echo "$LUA_PKG_ERRORS" >&5 | ||
13638 | |||
13639 | have_lua="no" | ||
13640 | elif test $pkg_failed = untried; then | ||
13641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
13642 | $as_echo "no" >&6; } | ||
13643 | have_lua="no" | ||
13644 | else | ||
13645 | LUA_CFLAGS=$pkg_cv_LUA_CFLAGS | ||
13646 | LUA_LIBS=$pkg_cv_LUA_LIBS | ||
13647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
13648 | $as_echo "yes" >&6; } | ||
13649 | requirement_lua="lua51" | ||
13650 | fi | ||
13651 | else | ||
13652 | LUA_CFLAGS=$pkg_cv_LUA_CFLAGS | ||
13653 | LUA_LIBS=$pkg_cv_LUA_LIBS | ||
13654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
13655 | $as_echo "yes" >&6; } | ||
13656 | requirement_lua="lua-5.1" | ||
13657 | fi | ||
13658 | else | ||
13659 | LUA_CFLAGS=$pkg_cv_LUA_CFLAGS | ||
13660 | LUA_LIBS=$pkg_cv_LUA_LIBS | ||
13661 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
13662 | $as_echo "yes" >&6; } | ||
13663 | requirement_lua="lua5.1" | ||
13664 | fi | ||
13665 | else | ||
13666 | LUA_CFLAGS=$pkg_cv_LUA_CFLAGS | ||
13667 | LUA_LIBS=$pkg_cv_LUA_LIBS | ||
13668 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
13669 | $as_echo "yes" >&6; } | ||
13670 | requirement_lua="lua" | ||
13671 | fi | ||
13672 | |||
13673 | if test "x${have_lua}" = "xno" ; then | ||
13674 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lua_newstate() is in liblua" >&5 | ||
13675 | $as_echo_n "checking whether lua_newstate() is in liblua... " >&6; } | ||
13676 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua_newstate in -llua" >&5 | ||
13677 | $as_echo_n "checking for lua_newstate in -llua... " >&6; } | ||
13678 | if test "${ac_cv_lib_lua_lua_newstate+set}" = set; then : | ||
13679 | $as_echo_n "(cached) " >&6 | ||
13680 | else | ||
13681 | ac_check_lib_save_LIBS=$LIBS | ||
13682 | LIBS="-llua $LIBS" | ||
13683 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13684 | /* end confdefs.h. */ | ||
13685 | |||
13686 | /* Override any GCC internal prototype to avoid an error. | ||
13687 | Use char because int might match the return type of a GCC | ||
13688 | builtin and then its argument prototype would still apply. */ | ||
13689 | #ifdef __cplusplus | ||
13690 | extern "C" | ||
13691 | #endif | ||
13692 | char lua_newstate (); | ||
13693 | int | ||
13694 | main () | ||
13695 | { | ||
13696 | return lua_newstate (); | ||
13697 | ; | ||
13698 | return 0; | ||
13699 | } | ||
13700 | _ACEOF | ||
13701 | if ac_fn_c_try_link "$LINENO"; then : | ||
13702 | ac_cv_lib_lua_lua_newstate=yes | ||
13703 | else | ||
13704 | ac_cv_lib_lua_lua_newstate=no | ||
13705 | fi | ||
13706 | rm -f core conftest.err conftest.$ac_objext \ | ||
13707 | conftest$ac_exeext conftest.$ac_ext | ||
13708 | LIBS=$ac_check_lib_save_LIBS | ||
13709 | fi | ||
13710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lua_lua_newstate" >&5 | ||
13711 | $as_echo "$ac_cv_lib_lua_lua_newstate" >&6; } | ||
13712 | if test "x$ac_cv_lib_lua_lua_newstate" = x""yes; then : | ||
13713 | |||
13714 | have_lua="yes" | ||
13715 | lua_libs="-llua" | ||
13716 | |||
13717 | else | ||
13718 | have_lua="no" | ||
13719 | fi | ||
13720 | |||
13721 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_lua}" >&5 | ||
13722 | $as_echo "${have_lua}" >&6; } | ||
13723 | fi | ||
13724 | |||
13725 | |||
13726 | if test "x${have_lua}" = "xno" ; then | ||
13727 | as_fn_error $? "Cannot find lua library. Be sure that you have installed it and set CFLAGS and LDFLAGS correctly" "$LINENO" 5 | ||
13728 | fi | ||
13729 | |||
13730 | |||
13731 | pkg_failed=no | ||
13732 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MINIMAL" >&5 | ||
13733 | $as_echo_n "checking for MINIMAL... " >&6; } | ||
13734 | |||
13735 | if test -n "$MINIMAL_CFLAGS"; then | ||
13736 | pkg_cv_MINIMAL_CFLAGS="$MINIMAL_CFLAGS" | ||
13737 | elif test -n "$PKG_CONFIG"; then | ||
13738 | if test -n "$PKG_CONFIG" && \ | ||
13739 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" | ||
13740 | eina >= 1.1.0 | ||
13741 | eet >= 1.5.0 | ||
13742 | \""; } >&5 | ||
13743 | ($PKG_CONFIG --exists --print-errors " | ||
13744 | eina >= 1.1.0 | ||
13745 | eet >= 1.5.0 | ||
13746 | ") 2>&5 | ||
13747 | ac_status=$? | ||
13748 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
13749 | test $ac_status = 0; }; then | ||
13750 | pkg_cv_MINIMAL_CFLAGS=`$PKG_CONFIG --cflags " | ||
13751 | eina >= 1.1.0 | ||
13752 | eet >= 1.5.0 | ||
13753 | " 2>/dev/null` | ||
13754 | else | ||
13755 | pkg_failed=yes | ||
13756 | fi | ||
13757 | else | ||
13758 | pkg_failed=untried | ||
13759 | fi | ||
13760 | if test -n "$MINIMAL_LIBS"; then | ||
13761 | pkg_cv_MINIMAL_LIBS="$MINIMAL_LIBS" | ||
13762 | elif test -n "$PKG_CONFIG"; then | ||
13763 | if test -n "$PKG_CONFIG" && \ | ||
13764 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" | ||
13765 | eina >= 1.1.0 | ||
13766 | eet >= 1.5.0 | ||
13767 | \""; } >&5 | ||
13768 | ($PKG_CONFIG --exists --print-errors " | ||
13769 | eina >= 1.1.0 | ||
13770 | eet >= 1.5.0 | ||
13771 | ") 2>&5 | ||
13772 | ac_status=$? | ||
13773 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
13774 | test $ac_status = 0; }; then | ||
13775 | pkg_cv_MINIMAL_LIBS=`$PKG_CONFIG --libs " | ||
13776 | eina >= 1.1.0 | ||
13777 | eet >= 1.5.0 | ||
13778 | " 2>/dev/null` | ||
13779 | else | ||
13780 | pkg_failed=yes | ||
13781 | fi | ||
13782 | else | ||
13783 | pkg_failed=untried | ||
13784 | fi | ||
13785 | |||
13786 | |||
13787 | |||
13788 | if test $pkg_failed = yes; then | ||
13789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
13790 | $as_echo "no" >&6; } | ||
13791 | |||
13792 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
13793 | _pkg_short_errors_supported=yes | ||
13794 | else | ||
13795 | _pkg_short_errors_supported=no | ||
13796 | fi | ||
13797 | if test $_pkg_short_errors_supported = yes; then | ||
13798 | MINIMAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors " | ||
13799 | eina >= 1.1.0 | ||
13800 | eet >= 1.5.0 | ||
13801 | " 2>&1` | ||
13802 | else | ||
13803 | MINIMAL_PKG_ERRORS=`$PKG_CONFIG --print-errors " | ||
13804 | eina >= 1.1.0 | ||
13805 | eet >= 1.5.0 | ||
13806 | " 2>&1` | ||
13807 | fi | ||
13808 | # Put the nasty error message in config.log where it belongs | ||
13809 | echo "$MINIMAL_PKG_ERRORS" >&5 | ||
13810 | |||
13811 | as_fn_error $? "Package requirements ( | ||
13812 | eina >= 1.1.0 | ||
13813 | eet >= 1.5.0 | ||
13814 | ) were not met: | ||
13815 | |||
13816 | $MINIMAL_PKG_ERRORS | ||
13817 | |||
13818 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | ||
13819 | installed software in a non-standard prefix. | ||
13820 | |||
13821 | Alternatively, you may set the environment variables MINIMAL_CFLAGS | ||
13822 | and MINIMAL_LIBS to avoid the need to call pkg-config. | ||
13823 | See the pkg-config man page for more details." "$LINENO" 5 | ||
13824 | elif test $pkg_failed = untried; then | ||
13825 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
13826 | $as_echo "no" >&6; } | ||
13827 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
13828 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
13829 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it | ||
13830 | is in your PATH or set the PKG_CONFIG environment variable to the full | ||
13831 | path to pkg-config. | ||
13832 | |||
13833 | Alternatively, you may set the environment variables MINIMAL_CFLAGS | ||
13834 | and MINIMAL_LIBS to avoid the need to call pkg-config. | ||
13835 | See the pkg-config man page for more details. | ||
13836 | |||
13837 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | ||
13838 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
13839 | else | ||
13840 | MINIMAL_CFLAGS=$pkg_cv_MINIMAL_CFLAGS | ||
13841 | MINIMAL_LIBS=$pkg_cv_MINIMAL_LIBS | ||
13842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
13843 | $as_echo "yes" >&6; } | ||
13844 | |||
13845 | fi | ||
13846 | |||
13847 | |||
13848 | pkg_failed=no | ||
13849 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EDJE" >&5 | ||
13850 | $as_echo_n "checking for EDJE... " >&6; } | ||
13851 | |||
13852 | if test -n "$EDJE_CFLAGS"; then | ||
13853 | pkg_cv_EDJE_CFLAGS="$EDJE_CFLAGS" | ||
13854 | elif test -n "$PKG_CONFIG"; then | ||
13855 | if test -n "$PKG_CONFIG" && \ | ||
13856 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" | ||
13857 | eina >= 1.1.0 | ||
13858 | eet >= 1.5.0 | ||
13859 | evas >= 1.1.0 | ||
13860 | ecore >= 1.1.0 | ||
13861 | ecore-evas >= 1.1.0 | ||
13862 | ecore-file >= 1.1.0 | ||
13863 | embryo >= 1.1.0 | ||
13864 | \""; } >&5 | ||
13865 | ($PKG_CONFIG --exists --print-errors " | ||
13866 | eina >= 1.1.0 | ||
13867 | eet >= 1.5.0 | ||
13868 | evas >= 1.1.0 | ||
13869 | ecore >= 1.1.0 | ||
13870 | ecore-evas >= 1.1.0 | ||
13871 | ecore-file >= 1.1.0 | ||
13872 | embryo >= 1.1.0 | ||
13873 | ") 2>&5 | ||
13874 | ac_status=$? | ||
13875 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
13876 | test $ac_status = 0; }; then | ||
13877 | pkg_cv_EDJE_CFLAGS=`$PKG_CONFIG --cflags " | ||
13878 | eina >= 1.1.0 | ||
13879 | eet >= 1.5.0 | ||
13880 | evas >= 1.1.0 | ||
13881 | ecore >= 1.1.0 | ||
13882 | ecore-evas >= 1.1.0 | ||
13883 | ecore-file >= 1.1.0 | ||
13884 | embryo >= 1.1.0 | ||
13885 | " 2>/dev/null` | ||
13886 | else | ||
13887 | pkg_failed=yes | ||
13888 | fi | ||
13889 | else | ||
13890 | pkg_failed=untried | ||
13891 | fi | ||
13892 | if test -n "$EDJE_LIBS"; then | ||
13893 | pkg_cv_EDJE_LIBS="$EDJE_LIBS" | ||
13894 | elif test -n "$PKG_CONFIG"; then | ||
13895 | if test -n "$PKG_CONFIG" && \ | ||
13896 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" | ||
13897 | eina >= 1.1.0 | ||
13898 | eet >= 1.5.0 | ||
13899 | evas >= 1.1.0 | ||
13900 | ecore >= 1.1.0 | ||
13901 | ecore-evas >= 1.1.0 | ||
13902 | ecore-file >= 1.1.0 | ||
13903 | embryo >= 1.1.0 | ||
13904 | \""; } >&5 | ||
13905 | ($PKG_CONFIG --exists --print-errors " | ||
13906 | eina >= 1.1.0 | ||
13907 | eet >= 1.5.0 | ||
13908 | evas >= 1.1.0 | ||
13909 | ecore >= 1.1.0 | ||
13910 | ecore-evas >= 1.1.0 | ||
13911 | ecore-file >= 1.1.0 | ||
13912 | embryo >= 1.1.0 | ||
13913 | ") 2>&5 | ||
13914 | ac_status=$? | ||
13915 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
13916 | test $ac_status = 0; }; then | ||
13917 | pkg_cv_EDJE_LIBS=`$PKG_CONFIG --libs " | ||
13918 | eina >= 1.1.0 | ||
13919 | eet >= 1.5.0 | ||
13920 | evas >= 1.1.0 | ||
13921 | ecore >= 1.1.0 | ||
13922 | ecore-evas >= 1.1.0 | ||
13923 | ecore-file >= 1.1.0 | ||
13924 | embryo >= 1.1.0 | ||
13925 | " 2>/dev/null` | ||
13926 | else | ||
13927 | pkg_failed=yes | ||
13928 | fi | ||
13929 | else | ||
13930 | pkg_failed=untried | ||
13931 | fi | ||
13932 | |||
13933 | |||
13934 | |||
13935 | if test $pkg_failed = yes; then | ||
13936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
13937 | $as_echo "no" >&6; } | ||
13938 | |||
13939 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
13940 | _pkg_short_errors_supported=yes | ||
13941 | else | ||
13942 | _pkg_short_errors_supported=no | ||
13943 | fi | ||
13944 | if test $_pkg_short_errors_supported = yes; then | ||
13945 | EDJE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors " | ||
13946 | eina >= 1.1.0 | ||
13947 | eet >= 1.5.0 | ||
13948 | evas >= 1.1.0 | ||
13949 | ecore >= 1.1.0 | ||
13950 | ecore-evas >= 1.1.0 | ||
13951 | ecore-file >= 1.1.0 | ||
13952 | embryo >= 1.1.0 | ||
13953 | " 2>&1` | ||
13954 | else | ||
13955 | EDJE_PKG_ERRORS=`$PKG_CONFIG --print-errors " | ||
13956 | eina >= 1.1.0 | ||
13957 | eet >= 1.5.0 | ||
13958 | evas >= 1.1.0 | ||
13959 | ecore >= 1.1.0 | ||
13960 | ecore-evas >= 1.1.0 | ||
13961 | ecore-file >= 1.1.0 | ||
13962 | embryo >= 1.1.0 | ||
13963 | " 2>&1` | ||
13964 | fi | ||
13965 | # Put the nasty error message in config.log where it belongs | ||
13966 | echo "$EDJE_PKG_ERRORS" >&5 | ||
13967 | |||
13968 | as_fn_error $? "Package requirements ( | ||
13969 | eina >= 1.1.0 | ||
13970 | eet >= 1.5.0 | ||
13971 | evas >= 1.1.0 | ||
13972 | ecore >= 1.1.0 | ||
13973 | ecore-evas >= 1.1.0 | ||
13974 | ecore-file >= 1.1.0 | ||
13975 | embryo >= 1.1.0 | ||
13976 | ) were not met: | ||
13977 | |||
13978 | $EDJE_PKG_ERRORS | ||
13979 | |||
13980 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | ||
13981 | installed software in a non-standard prefix. | ||
13982 | |||
13983 | Alternatively, you may set the environment variables EDJE_CFLAGS | ||
13984 | and EDJE_LIBS to avoid the need to call pkg-config. | ||
13985 | See the pkg-config man page for more details." "$LINENO" 5 | ||
13986 | elif test $pkg_failed = untried; then | ||
13987 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
13988 | $as_echo "no" >&6; } | ||
13989 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
13990 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
13991 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it | ||
13992 | is in your PATH or set the PKG_CONFIG environment variable to the full | ||
13993 | path to pkg-config. | ||
13994 | |||
13995 | Alternatively, you may set the environment variables EDJE_CFLAGS | ||
13996 | and EDJE_LIBS to avoid the need to call pkg-config. | ||
13997 | See the pkg-config man page for more details. | ||
13998 | |||
13999 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | ||
14000 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
14001 | else | ||
14002 | EDJE_CFLAGS=$pkg_cv_EDJE_CFLAGS | ||
14003 | EDJE_LIBS=$pkg_cv_EDJE_LIBS | ||
14004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
14005 | $as_echo "yes" >&6; } | ||
14006 | |||
14007 | fi | ||
14008 | |||
14009 | EDJE_LIBS="${EDJE_LIBS} ${LUA_LIBS} ${lua_libs}" | ||
14010 | EDJE_CFLAGS="${EDJE_CFLAGS} ${LUA_CFLAGS}" | ||
14011 | |||
14012 | requirement_edje="embryo >= 1.1.0 ecore-evas >= 1.1.0 ecore >= 1.1.0 evas >= 1.1.0 eet >= 1.5.0 eina >= 1.1.0 ${requirement_edje}" | ||
14013 | requirement_edje="${requirement_lua} ${requirement_edje}" | ||
14014 | |||
14015 | have_ecore_imf="no" | ||
14016 | |||
14017 | pkg_failed=no | ||
14018 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECORE_IMF" >&5 | ||
14019 | $as_echo_n "checking for ECORE_IMF... " >&6; } | ||
14020 | |||
14021 | if test -n "$ECORE_IMF_CFLAGS"; then | ||
14022 | pkg_cv_ECORE_IMF_CFLAGS="$ECORE_IMF_CFLAGS" | ||
14023 | elif test -n "$PKG_CONFIG"; then | ||
14024 | if test -n "$PKG_CONFIG" && \ | ||
14025 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" | ||
14026 | ecore-imf >= 1.1.0 | ||
14027 | ecore-imf-evas >= 1.1.0 | ||
14028 | \""; } >&5 | ||
14029 | ($PKG_CONFIG --exists --print-errors " | ||
14030 | ecore-imf >= 1.1.0 | ||
14031 | ecore-imf-evas >= 1.1.0 | ||
14032 | ") 2>&5 | ||
14033 | ac_status=$? | ||
14034 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
14035 | test $ac_status = 0; }; then | ||
14036 | pkg_cv_ECORE_IMF_CFLAGS=`$PKG_CONFIG --cflags " | ||
14037 | ecore-imf >= 1.1.0 | ||
14038 | ecore-imf-evas >= 1.1.0 | ||
14039 | " 2>/dev/null` | ||
14040 | else | ||
14041 | pkg_failed=yes | ||
14042 | fi | ||
14043 | else | ||
14044 | pkg_failed=untried | ||
14045 | fi | ||
14046 | if test -n "$ECORE_IMF_LIBS"; then | ||
14047 | pkg_cv_ECORE_IMF_LIBS="$ECORE_IMF_LIBS" | ||
14048 | elif test -n "$PKG_CONFIG"; then | ||
14049 | if test -n "$PKG_CONFIG" && \ | ||
14050 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" | ||
14051 | ecore-imf >= 1.1.0 | ||
14052 | ecore-imf-evas >= 1.1.0 | ||
14053 | \""; } >&5 | ||
14054 | ($PKG_CONFIG --exists --print-errors " | ||
14055 | ecore-imf >= 1.1.0 | ||
14056 | ecore-imf-evas >= 1.1.0 | ||
14057 | ") 2>&5 | ||
14058 | ac_status=$? | ||
14059 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
14060 | test $ac_status = 0; }; then | ||
14061 | pkg_cv_ECORE_IMF_LIBS=`$PKG_CONFIG --libs " | ||
14062 | ecore-imf >= 1.1.0 | ||
14063 | ecore-imf-evas >= 1.1.0 | ||
14064 | " 2>/dev/null` | ||
14065 | else | ||
14066 | pkg_failed=yes | ||
14067 | fi | ||
14068 | else | ||
14069 | pkg_failed=untried | ||
14070 | fi | ||
14071 | |||
14072 | |||
14073 | |||
14074 | if test $pkg_failed = yes; then | ||
14075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
14076 | $as_echo "no" >&6; } | ||
14077 | |||
14078 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
14079 | _pkg_short_errors_supported=yes | ||
14080 | else | ||
14081 | _pkg_short_errors_supported=no | ||
14082 | fi | ||
14083 | if test $_pkg_short_errors_supported = yes; then | ||
14084 | ECORE_IMF_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors " | ||
14085 | ecore-imf >= 1.1.0 | ||
14086 | ecore-imf-evas >= 1.1.0 | ||
14087 | " 2>&1` | ||
14088 | else | ||
14089 | ECORE_IMF_PKG_ERRORS=`$PKG_CONFIG --print-errors " | ||
14090 | ecore-imf >= 1.1.0 | ||
14091 | ecore-imf-evas >= 1.1.0 | ||
14092 | " 2>&1` | ||
14093 | fi | ||
14094 | # Put the nasty error message in config.log where it belongs | ||
14095 | echo "$ECORE_IMF_PKG_ERRORS" >&5 | ||
14096 | |||
14097 | have_ecore_imf="no" | ||
14098 | elif test $pkg_failed = untried; then | ||
14099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
14100 | $as_echo "no" >&6; } | ||
14101 | have_ecore_imf="no" | ||
14102 | else | ||
14103 | ECORE_IMF_CFLAGS=$pkg_cv_ECORE_IMF_CFLAGS | ||
14104 | ECORE_IMF_LIBS=$pkg_cv_ECORE_IMF_LIBS | ||
14105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
14106 | $as_echo "yes" >&6; } | ||
14107 | |||
14108 | |||
14109 | $as_echo "#define HAVE_ECORE_IMF 1" >>confdefs.h | ||
14110 | |||
14111 | have_ecore_imf="yes" | ||
14112 | requirement_edje="ecore-imf-evas >= 1.1.0 ecore-imf >= 1.1.0 ${requirement_edje}" | ||
14113 | |||
14114 | fi | ||
14115 | |||
14116 | # Enable Multisense use | ||
14117 | want_multisense="no" | ||
14118 | if test "x${want_multisense}" = "xyes"; then | ||
14119 | ENABLE_MULTISENSE_TRUE= | ||
14120 | ENABLE_MULTISENSE_FALSE='#' | ||
14121 | else | ||
14122 | ENABLE_MULTISENSE_TRUE='#' | ||
14123 | ENABLE_MULTISENSE_FALSE= | ||
14124 | fi | ||
14125 | |||
14126 | |||
14127 | ##sndfile library | ||
14128 | have_sndfile="no" | ||
14129 | want_sndfile="auto" | ||
14130 | # Check whether --enable-sndfile was given. | ||
14131 | if test "${enable_sndfile+set}" = set; then : | ||
14132 | enableval=$enable_sndfile; want_sndfile=$enableval | ||
14133 | fi | ||
14134 | |||
14135 | |||
14136 | if test "x${want_multisense}" = "xyes" -a "x$want_sndfile" != "xno"; then | ||
14137 | |||
14138 | |||
14139 | pkg_failed=no | ||
14140 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SNDFILE" >&5 | ||
14141 | $as_echo_n "checking for SNDFILE... " >&6; } | ||
14142 | |||
14143 | if test -n "$SNDFILE_CFLAGS"; then | ||
14144 | pkg_cv_SNDFILE_CFLAGS="$SNDFILE_CFLAGS" | ||
14145 | elif test -n "$PKG_CONFIG"; then | ||
14146 | if test -n "$PKG_CONFIG" && \ | ||
14147 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndfile >= 1.0.21\""; } >&5 | ||
14148 | ($PKG_CONFIG --exists --print-errors "sndfile >= 1.0.21") 2>&5 | ||
14149 | ac_status=$? | ||
14150 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
14151 | test $ac_status = 0; }; then | ||
14152 | pkg_cv_SNDFILE_CFLAGS=`$PKG_CONFIG --cflags "sndfile >= 1.0.21" 2>/dev/null` | ||
14153 | else | ||
14154 | pkg_failed=yes | ||
14155 | fi | ||
14156 | else | ||
14157 | pkg_failed=untried | ||
14158 | fi | ||
14159 | if test -n "$SNDFILE_LIBS"; then | ||
14160 | pkg_cv_SNDFILE_LIBS="$SNDFILE_LIBS" | ||
14161 | elif test -n "$PKG_CONFIG"; then | ||
14162 | if test -n "$PKG_CONFIG" && \ | ||
14163 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndfile >= 1.0.21\""; } >&5 | ||
14164 | ($PKG_CONFIG --exists --print-errors "sndfile >= 1.0.21") 2>&5 | ||
14165 | ac_status=$? | ||
14166 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
14167 | test $ac_status = 0; }; then | ||
14168 | pkg_cv_SNDFILE_LIBS=`$PKG_CONFIG --libs "sndfile >= 1.0.21" 2>/dev/null` | ||
14169 | else | ||
14170 | pkg_failed=yes | ||
14171 | fi | ||
14172 | else | ||
14173 | pkg_failed=untried | ||
14174 | fi | ||
14175 | |||
14176 | |||
14177 | |||
14178 | if test $pkg_failed = yes; then | ||
14179 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
14180 | $as_echo "no" >&6; } | ||
14181 | |||
14182 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
14183 | _pkg_short_errors_supported=yes | ||
14184 | else | ||
14185 | _pkg_short_errors_supported=no | ||
14186 | fi | ||
14187 | if test $_pkg_short_errors_supported = yes; then | ||
14188 | SNDFILE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "sndfile >= 1.0.21" 2>&1` | ||
14189 | else | ||
14190 | SNDFILE_PKG_ERRORS=`$PKG_CONFIG --print-errors "sndfile >= 1.0.21" 2>&1` | ||
14191 | fi | ||
14192 | # Put the nasty error message in config.log where it belongs | ||
14193 | echo "$SNDFILE_PKG_ERRORS" >&5 | ||
14194 | |||
14195 | have_sndfile="no"; want_multisense="no" | ||
14196 | |||
14197 | elif test $pkg_failed = untried; then | ||
14198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
14199 | $as_echo "no" >&6; } | ||
14200 | have_sndfile="no"; want_multisense="no" | ||
14201 | |||
14202 | else | ||
14203 | SNDFILE_CFLAGS=$pkg_cv_SNDFILE_CFLAGS | ||
14204 | SNDFILE_LIBS=$pkg_cv_SNDFILE_LIBS | ||
14205 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
14206 | $as_echo "yes" >&6; } | ||
14207 | |||
14208 | |||
14209 | $as_echo "#define HAVE_LIBSNDFILE 1" >>confdefs.h | ||
14210 | |||
14211 | have_sndfile="yes" | ||
14212 | requirement_edje="sndfile >= 1.0.21 ${requirement_edje}" | ||
14213 | |||
14214 | fi | ||
14215 | |||
14216 | if test "x$want_sndfile" = "xyes" -a "x$have_sndfile" = "xno"; then | ||
14217 | as_fn_error $? "sndfile support requested, but not found by pkg-config." "$LINENO" 5 | ||
14218 | fi | ||
14219 | fi | ||
14220 | if test "x${have_sndfile}" = "xyes"; then | ||
14221 | HAVE_LIBSNDFILE_TRUE= | ||
14222 | HAVE_LIBSNDFILE_FALSE='#' | ||
14223 | else | ||
14224 | HAVE_LIBSNDFILE_TRUE='#' | ||
14225 | HAVE_LIBSNDFILE_FALSE= | ||
14226 | fi | ||
14227 | |||
14228 | |||
14229 | ##libremix library | ||
14230 | have_libremix="no" | ||
14231 | want_libremix="auto" | ||
14232 | # Check whether --enable-remix was given. | ||
14233 | if test "${enable_remix+set}" = set; then : | ||
14234 | enableval=$enable_remix; want_libremix=$enableval | ||
14235 | fi | ||
14236 | |||
14237 | |||
14238 | if test "x${want_multisense}" = "xyes" -a "x$want_libremix" != "xno"; then | ||
14239 | |||
14240 | pkg_failed=no | ||
14241 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for REMIX" >&5 | ||
14242 | $as_echo_n "checking for REMIX... " >&6; } | ||
14243 | |||
14244 | if test -n "$REMIX_CFLAGS"; then | ||
14245 | pkg_cv_REMIX_CFLAGS="$REMIX_CFLAGS" | ||
14246 | elif test -n "$PKG_CONFIG"; then | ||
14247 | if test -n "$PKG_CONFIG" && \ | ||
14248 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"remix >= 0.2.4\""; } >&5 | ||
14249 | ($PKG_CONFIG --exists --print-errors "remix >= 0.2.4") 2>&5 | ||
14250 | ac_status=$? | ||
14251 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
14252 | test $ac_status = 0; }; then | ||
14253 | pkg_cv_REMIX_CFLAGS=`$PKG_CONFIG --cflags "remix >= 0.2.4" 2>/dev/null` | ||
14254 | else | ||
14255 | pkg_failed=yes | ||
14256 | fi | ||
14257 | else | ||
14258 | pkg_failed=untried | ||
14259 | fi | ||
14260 | if test -n "$REMIX_LIBS"; then | ||
14261 | pkg_cv_REMIX_LIBS="$REMIX_LIBS" | ||
14262 | elif test -n "$PKG_CONFIG"; then | ||
14263 | if test -n "$PKG_CONFIG" && \ | ||
14264 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"remix >= 0.2.4\""; } >&5 | ||
14265 | ($PKG_CONFIG --exists --print-errors "remix >= 0.2.4") 2>&5 | ||
14266 | ac_status=$? | ||
14267 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
14268 | test $ac_status = 0; }; then | ||
14269 | pkg_cv_REMIX_LIBS=`$PKG_CONFIG --libs "remix >= 0.2.4" 2>/dev/null` | ||
14270 | else | ||
14271 | pkg_failed=yes | ||
14272 | fi | ||
14273 | else | ||
14274 | pkg_failed=untried | ||
14275 | fi | ||
14276 | |||
14277 | |||
14278 | |||
14279 | if test $pkg_failed = yes; then | ||
14280 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
14281 | $as_echo "no" >&6; } | ||
14282 | |||
14283 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
14284 | _pkg_short_errors_supported=yes | ||
14285 | else | ||
14286 | _pkg_short_errors_supported=no | ||
14287 | fi | ||
14288 | if test $_pkg_short_errors_supported = yes; then | ||
14289 | REMIX_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "remix >= 0.2.4" 2>&1` | ||
14290 | else | ||
14291 | REMIX_PKG_ERRORS=`$PKG_CONFIG --print-errors "remix >= 0.2.4" 2>&1` | ||
14292 | fi | ||
14293 | # Put the nasty error message in config.log where it belongs | ||
14294 | echo "$REMIX_PKG_ERRORS" >&5 | ||
14295 | |||
14296 | have_libremix="no"; want_multisense="no" | ||
14297 | |||
14298 | elif test $pkg_failed = untried; then | ||
14299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
14300 | $as_echo "no" >&6; } | ||
14301 | have_libremix="no"; want_multisense="no" | ||
14302 | |||
14303 | else | ||
14304 | REMIX_CFLAGS=$pkg_cv_REMIX_CFLAGS | ||
14305 | REMIX_LIBS=$pkg_cv_REMIX_LIBS | ||
14306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
14307 | $as_echo "yes" >&6; } | ||
14308 | |||
14309 | |||
14310 | $as_echo "#define HAVE_LIBREMIX 1" >>confdefs.h | ||
14311 | |||
14312 | have_libremix="yes" | ||
14313 | requirement_edje="remix >= 0.2.4 ${requirement_edje}" | ||
14314 | |||
14315 | $as_echo "#define __REMIX_PLUGIN__ 1" >>confdefs.h | ||
14316 | |||
14317 | REMIX_PLUGIN_DIR=`pkg-config --variable=libdir remix`"/remix" | ||
14318 | |||
14319 | |||
14320 | cat >>confdefs.h <<_ACEOF | ||
14321 | #define REMIX_PLUGIN_DIR "$REMIX_PLUGIN_DIR" | ||
14322 | _ACEOF | ||
14323 | |||
14324 | |||
14325 | fi | ||
14326 | |||
14327 | if test "x$want_libremix" = "xyes" -a "x$have_libremix" = "xno"; then | ||
14328 | as_fn_error $? "remix support requested, but not found by pkg-config." "$LINENO" 5 | ||
14329 | fi | ||
14330 | fi | ||
14331 | if test "x${have_libremix}" = "xyes"; then | ||
14332 | HAVE_LIBREMIX_TRUE= | ||
14333 | HAVE_LIBREMIX_FALSE='#' | ||
14334 | else | ||
14335 | HAVE_LIBREMIX_TRUE='#' | ||
14336 | HAVE_LIBREMIX_FALSE= | ||
14337 | fi | ||
14338 | |||
14339 | |||
14340 | ##vorbis/ogg library | ||
14341 | have_vorbis="no" | ||
14342 | want_vorbis="auto" | ||
14343 | # Check whether --enable-vorbisenc was given. | ||
14344 | if test "${enable_vorbisenc+set}" = set; then : | ||
14345 | enableval=$enable_vorbisenc; want_vorbis=$enableval | ||
14346 | fi | ||
14347 | |||
14348 | |||
14349 | if test "x${want_multisense}" = "xyes" -a "x$want_vorbis" != "xno"; then | ||
14350 | |||
14351 | pkg_failed=no | ||
14352 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VORBISENC" >&5 | ||
14353 | $as_echo_n "checking for VORBISENC... " >&6; } | ||
14354 | |||
14355 | if test -n "$VORBISENC_CFLAGS"; then | ||
14356 | pkg_cv_VORBISENC_CFLAGS="$VORBISENC_CFLAGS" | ||
14357 | elif test -n "$PKG_CONFIG"; then | ||
14358 | if test -n "$PKG_CONFIG" && \ | ||
14359 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" | ||
14360 | ogg >= 1.1.4 | ||
14361 | vorbis >= 1.2.3 | ||
14362 | vorbisenc >= 1.2.3 | ||
14363 | \""; } >&5 | ||
14364 | ($PKG_CONFIG --exists --print-errors " | ||
14365 | ogg >= 1.1.4 | ||
14366 | vorbis >= 1.2.3 | ||
14367 | vorbisenc >= 1.2.3 | ||
14368 | ") 2>&5 | ||
14369 | ac_status=$? | ||
14370 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
14371 | test $ac_status = 0; }; then | ||
14372 | pkg_cv_VORBISENC_CFLAGS=`$PKG_CONFIG --cflags " | ||
14373 | ogg >= 1.1.4 | ||
14374 | vorbis >= 1.2.3 | ||
14375 | vorbisenc >= 1.2.3 | ||
14376 | " 2>/dev/null` | ||
14377 | else | ||
14378 | pkg_failed=yes | ||
14379 | fi | ||
14380 | else | ||
14381 | pkg_failed=untried | ||
14382 | fi | ||
14383 | if test -n "$VORBISENC_LIBS"; then | ||
14384 | pkg_cv_VORBISENC_LIBS="$VORBISENC_LIBS" | ||
14385 | elif test -n "$PKG_CONFIG"; then | ||
14386 | if test -n "$PKG_CONFIG" && \ | ||
14387 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" | ||
14388 | ogg >= 1.1.4 | ||
14389 | vorbis >= 1.2.3 | ||
14390 | vorbisenc >= 1.2.3 | ||
14391 | \""; } >&5 | ||
14392 | ($PKG_CONFIG --exists --print-errors " | ||
14393 | ogg >= 1.1.4 | ||
14394 | vorbis >= 1.2.3 | ||
14395 | vorbisenc >= 1.2.3 | ||
14396 | ") 2>&5 | ||
14397 | ac_status=$? | ||
14398 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
14399 | test $ac_status = 0; }; then | ||
14400 | pkg_cv_VORBISENC_LIBS=`$PKG_CONFIG --libs " | ||
14401 | ogg >= 1.1.4 | ||
14402 | vorbis >= 1.2.3 | ||
14403 | vorbisenc >= 1.2.3 | ||
14404 | " 2>/dev/null` | ||
14405 | else | ||
14406 | pkg_failed=yes | ||
14407 | fi | ||
14408 | else | ||
14409 | pkg_failed=untried | ||
14410 | fi | ||
14411 | |||
14412 | |||
14413 | |||
14414 | if test $pkg_failed = yes; then | ||
14415 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
14416 | $as_echo "no" >&6; } | ||
14417 | |||
14418 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
14419 | _pkg_short_errors_supported=yes | ||
14420 | else | ||
14421 | _pkg_short_errors_supported=no | ||
14422 | fi | ||
14423 | if test $_pkg_short_errors_supported = yes; then | ||
14424 | VORBISENC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors " | ||
14425 | ogg >= 1.1.4 | ||
14426 | vorbis >= 1.2.3 | ||
14427 | vorbisenc >= 1.2.3 | ||
14428 | " 2>&1` | ||
14429 | else | ||
14430 | VORBISENC_PKG_ERRORS=`$PKG_CONFIG --print-errors " | ||
14431 | ogg >= 1.1.4 | ||
14432 | vorbis >= 1.2.3 | ||
14433 | vorbisenc >= 1.2.3 | ||
14434 | " 2>&1` | ||
14435 | fi | ||
14436 | # Put the nasty error message in config.log where it belongs | ||
14437 | echo "$VORBISENC_PKG_ERRORS" >&5 | ||
14438 | |||
14439 | have_vorbis="no"; want_multisense="no" | ||
14440 | |||
14441 | elif test $pkg_failed = untried; then | ||
14442 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
14443 | $as_echo "no" >&6; } | ||
14444 | have_vorbis="no"; want_multisense="no" | ||
14445 | |||
14446 | else | ||
14447 | VORBISENC_CFLAGS=$pkg_cv_VORBISENC_CFLAGS | ||
14448 | VORBISENC_LIBS=$pkg_cv_VORBISENC_LIBS | ||
14449 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
14450 | $as_echo "yes" >&6; } | ||
14451 | |||
14452 | |||
14453 | $as_echo "#define HAVE_VORBIS 1" >>confdefs.h | ||
14454 | |||
14455 | have_vorbis="yes" | ||
14456 | requirement_edje="ogg >= 1.1.4 vorbis >= 1.2.3 vorbisenc >= 1.2.3 ${requirement_edje}" | ||
14457 | |||
14458 | fi | ||
14459 | |||
14460 | if test "x$want_vorbis" = "xyes" -a "x$have_vorbis" = "xno"; then | ||
14461 | as_fn_error $? "vorbisenc support requested, but not found by pkg-config." "$LINENO" 5 | ||
14462 | fi | ||
14463 | fi | ||
14464 | |||
14465 | ##alsa library | ||
14466 | have_alsa_lib="no" | ||
14467 | want_alsa_lib="auto" | ||
14468 | # Check whether --enable-flac was given. | ||
14469 | if test "${enable_flac+set}" = set; then : | ||
14470 | enableval=$enable_flac; want_alsa_lib=$enableval | ||
14471 | fi | ||
14472 | |||
14473 | |||
14474 | if test "x${want_multisense}" = "xyes" -a "x$want_alsa_lib" != "xno"; then | ||
14475 | |||
14476 | pkg_failed=no | ||
14477 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA" >&5 | ||
14478 | $as_echo_n "checking for ALSA... " >&6; } | ||
14479 | |||
14480 | if test -n "$ALSA_CFLAGS"; then | ||
14481 | pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS" | ||
14482 | elif test -n "$PKG_CONFIG"; then | ||
14483 | if test -n "$PKG_CONFIG" && \ | ||
14484 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" | ||
14485 | alsa >= 1.0.21 | ||
14486 | \""; } >&5 | ||
14487 | ($PKG_CONFIG --exists --print-errors " | ||
14488 | alsa >= 1.0.21 | ||
14489 | ") 2>&5 | ||
14490 | ac_status=$? | ||
14491 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
14492 | test $ac_status = 0; }; then | ||
14493 | pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags " | ||
14494 | alsa >= 1.0.21 | ||
14495 | " 2>/dev/null` | ||
14496 | else | ||
14497 | pkg_failed=yes | ||
14498 | fi | ||
14499 | else | ||
14500 | pkg_failed=untried | ||
14501 | fi | ||
14502 | if test -n "$ALSA_LIBS"; then | ||
14503 | pkg_cv_ALSA_LIBS="$ALSA_LIBS" | ||
14504 | elif test -n "$PKG_CONFIG"; then | ||
14505 | if test -n "$PKG_CONFIG" && \ | ||
14506 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" | ||
14507 | alsa >= 1.0.21 | ||
14508 | \""; } >&5 | ||
14509 | ($PKG_CONFIG --exists --print-errors " | ||
14510 | alsa >= 1.0.21 | ||
14511 | ") 2>&5 | ||
14512 | ac_status=$? | ||
14513 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
14514 | test $ac_status = 0; }; then | ||
14515 | pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs " | ||
14516 | alsa >= 1.0.21 | ||
14517 | " 2>/dev/null` | ||
14518 | else | ||
14519 | pkg_failed=yes | ||
14520 | fi | ||
14521 | else | ||
14522 | pkg_failed=untried | ||
14523 | fi | ||
14524 | |||
14525 | |||
14526 | |||
14527 | if test $pkg_failed = yes; then | ||
14528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
14529 | $as_echo "no" >&6; } | ||
14530 | |||
14531 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
14532 | _pkg_short_errors_supported=yes | ||
14533 | else | ||
14534 | _pkg_short_errors_supported=no | ||
14535 | fi | ||
14536 | if test $_pkg_short_errors_supported = yes; then | ||
14537 | ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors " | ||
14538 | alsa >= 1.0.21 | ||
14539 | " 2>&1` | ||
14540 | else | ||
14541 | ALSA_PKG_ERRORS=`$PKG_CONFIG --print-errors " | ||
14542 | alsa >= 1.0.21 | ||
14543 | " 2>&1` | ||
14544 | fi | ||
14545 | # Put the nasty error message in config.log where it belongs | ||
14546 | echo "$ALSA_PKG_ERRORS" >&5 | ||
14547 | |||
14548 | have_alsa_lib="no"; want_multisense="no" | ||
14549 | |||
14550 | elif test $pkg_failed = untried; then | ||
14551 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
14552 | $as_echo "no" >&6; } | ||
14553 | have_alsa_lib="no"; want_multisense="no" | ||
14554 | |||
14555 | else | ||
14556 | ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS | ||
14557 | ALSA_LIBS=$pkg_cv_ALSA_LIBS | ||
14558 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
14559 | $as_echo "yes" >&6; } | ||
14560 | |||
14561 | |||
14562 | $as_echo "#define HAVE_LIBALSA 1" >>confdefs.h | ||
14563 | |||
14564 | have_alsa_lib="yes" | ||
14565 | requirement_edje="alsa >= 1.0.21 ${requirement_edje}" | ||
14566 | |||
14567 | fi | ||
14568 | |||
14569 | if test "x$want_alsa_lib" = "xyes" -a "x$have_alsa_lib" = "xno"; then | ||
14570 | as_fn_error $? "alsa support requested, but not found by pkg-config." "$LINENO" 5 | ||
14571 | fi | ||
14572 | fi | ||
14573 | if test "x${have_alsa_lib}" = "xyes"; then | ||
14574 | HAVE_LIBALSA_TRUE= | ||
14575 | HAVE_LIBALSA_FALSE='#' | ||
14576 | else | ||
14577 | HAVE_LIBALSA_TRUE='#' | ||
14578 | HAVE_LIBALSA_FALSE= | ||
14579 | fi | ||
14580 | |||
14581 | |||
14582 | |||
14583 | ##flac library | ||
14584 | have_flac_lib="no" | ||
14585 | want_flac_lib="auto" | ||
14586 | # Check whether --enable-flac was given. | ||
14587 | if test "${enable_flac+set}" = set; then : | ||
14588 | enableval=$enable_flac; want_flac_lib=$enableval | ||
14589 | fi | ||
14590 | |||
14591 | |||
14592 | if test "x${want_multisense}" = "xyes" -a "x$want_flac_lib" != "xno"; then | ||
14593 | |||
14594 | pkg_failed=no | ||
14595 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FLAC" >&5 | ||
14596 | $as_echo_n "checking for FLAC... " >&6; } | ||
14597 | |||
14598 | if test -n "$FLAC_CFLAGS"; then | ||
14599 | pkg_cv_FLAC_CFLAGS="$FLAC_CFLAGS" | ||
14600 | elif test -n "$PKG_CONFIG"; then | ||
14601 | if test -n "$PKG_CONFIG" && \ | ||
14602 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" | ||
14603 | flac >= 1.2.1 | ||
14604 | \""; } >&5 | ||
14605 | ($PKG_CONFIG --exists --print-errors " | ||
14606 | flac >= 1.2.1 | ||
14607 | ") 2>&5 | ||
14608 | ac_status=$? | ||
14609 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
14610 | test $ac_status = 0; }; then | ||
14611 | pkg_cv_FLAC_CFLAGS=`$PKG_CONFIG --cflags " | ||
14612 | flac >= 1.2.1 | ||
14613 | " 2>/dev/null` | ||
14614 | else | ||
14615 | pkg_failed=yes | ||
14616 | fi | ||
14617 | else | ||
14618 | pkg_failed=untried | ||
14619 | fi | ||
14620 | if test -n "$FLAC_LIBS"; then | ||
14621 | pkg_cv_FLAC_LIBS="$FLAC_LIBS" | ||
14622 | elif test -n "$PKG_CONFIG"; then | ||
14623 | if test -n "$PKG_CONFIG" && \ | ||
14624 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" | ||
14625 | flac >= 1.2.1 | ||
14626 | \""; } >&5 | ||
14627 | ($PKG_CONFIG --exists --print-errors " | ||
14628 | flac >= 1.2.1 | ||
14629 | ") 2>&5 | ||
14630 | ac_status=$? | ||
14631 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
14632 | test $ac_status = 0; }; then | ||
14633 | pkg_cv_FLAC_LIBS=`$PKG_CONFIG --libs " | ||
14634 | flac >= 1.2.1 | ||
14635 | " 2>/dev/null` | ||
14636 | else | ||
14637 | pkg_failed=yes | ||
14638 | fi | ||
14639 | else | ||
14640 | pkg_failed=untried | ||
14641 | fi | ||
14642 | |||
14643 | |||
14644 | |||
14645 | if test $pkg_failed = yes; then | ||
14646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
14647 | $as_echo "no" >&6; } | ||
14648 | |||
14649 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
14650 | _pkg_short_errors_supported=yes | ||
14651 | else | ||
14652 | _pkg_short_errors_supported=no | ||
14653 | fi | ||
14654 | if test $_pkg_short_errors_supported = yes; then | ||
14655 | FLAC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors " | ||
14656 | flac >= 1.2.1 | ||
14657 | " 2>&1` | ||
14658 | else | ||
14659 | FLAC_PKG_ERRORS=`$PKG_CONFIG --print-errors " | ||
14660 | flac >= 1.2.1 | ||
14661 | " 2>&1` | ||
14662 | fi | ||
14663 | # Put the nasty error message in config.log where it belongs | ||
14664 | echo "$FLAC_PKG_ERRORS" >&5 | ||
14665 | |||
14666 | have_flac_lib="no"; want_multisense="no" | ||
14667 | |||
14668 | elif test $pkg_failed = untried; then | ||
14669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
14670 | $as_echo "no" >&6; } | ||
14671 | have_flac_lib="no"; want_multisense="no" | ||
14672 | |||
14673 | else | ||
14674 | FLAC_CFLAGS=$pkg_cv_FLAC_CFLAGS | ||
14675 | FLAC_LIBS=$pkg_cv_FLAC_LIBS | ||
14676 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
14677 | $as_echo "yes" >&6; } | ||
14678 | |||
14679 | |||
14680 | $as_echo "#define HAVE_LIBFLAC 1" >>confdefs.h | ||
14681 | |||
14682 | have_flac_lib="yes" | ||
14683 | # disabled because this adds flac include dirs to cflags... and | ||
14684 | # FLAC has an assert.h in its include dirs that ends up | ||
14685 | # overriding the system assert.h and thus causes all sorts of | ||
14686 | # mayhem | ||
14687 | #requirement_edje="flac >= 1.2.1 ${requirement_edje}" | ||
14688 | |||
14689 | fi | ||
14690 | if test "x$want_flac_lib" = "xyes" -a "x$have_flac_lib" = "xno"; then | ||
14691 | as_fn_error $? "flac support requested, but not found by pkg-config." "$LINENO" 5 | ||
14692 | fi | ||
14693 | fi | ||
14694 | |||
14695 | if test "x${want_multisense}" = "xyes" ; then | ||
14696 | |||
14697 | $as_echo "#define ENABLE_MULTISENSE 1" >>confdefs.h | ||
14698 | |||
14699 | fi | ||
14700 | |||
14701 | # Dependencies for the binaries | ||
14702 | |||
14703 | if test "x$have_edje_cc" = "xyes"; then | ||
14704 | |||
14705 | pkg_failed=no | ||
14706 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EDJE_CC" >&5 | ||
14707 | $as_echo_n "checking for EDJE_CC... " >&6; } | ||
14708 | |||
14709 | if test -n "$EDJE_CC_CFLAGS"; then | ||
14710 | pkg_cv_EDJE_CC_CFLAGS="$EDJE_CC_CFLAGS" | ||
14711 | elif test -n "$PKG_CONFIG"; then | ||
14712 | if test -n "$PKG_CONFIG" && \ | ||
14713 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ecore-file >= 1.1.0 ecore-evas >= 1.1.0 ecore >= 1.1.0 evas >= 1.1.0 eet >= 1.5.0 eina >= 1.1.0\""; } >&5 | ||
14714 | ($PKG_CONFIG --exists --print-errors "ecore-file >= 1.1.0 ecore-evas >= 1.1.0 ecore >= 1.1.0 evas >= 1.1.0 eet >= 1.5.0 eina >= 1.1.0") 2>&5 | ||
14715 | ac_status=$? | ||
14716 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
14717 | test $ac_status = 0; }; then | ||
14718 | pkg_cv_EDJE_CC_CFLAGS=`$PKG_CONFIG --cflags "ecore-file >= 1.1.0 ecore-evas >= 1.1.0 ecore >= 1.1.0 evas >= 1.1.0 eet >= 1.5.0 eina >= 1.1.0" 2>/dev/null` | ||
14719 | else | ||
14720 | pkg_failed=yes | ||
14721 | fi | ||
14722 | else | ||
14723 | pkg_failed=untried | ||
14724 | fi | ||
14725 | if test -n "$EDJE_CC_LIBS"; then | ||
14726 | pkg_cv_EDJE_CC_LIBS="$EDJE_CC_LIBS" | ||
14727 | elif test -n "$PKG_CONFIG"; then | ||
14728 | if test -n "$PKG_CONFIG" && \ | ||
14729 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ecore-file >= 1.1.0 ecore-evas >= 1.1.0 ecore >= 1.1.0 evas >= 1.1.0 eet >= 1.5.0 eina >= 1.1.0\""; } >&5 | ||
14730 | ($PKG_CONFIG --exists --print-errors "ecore-file >= 1.1.0 ecore-evas >= 1.1.0 ecore >= 1.1.0 evas >= 1.1.0 eet >= 1.5.0 eina >= 1.1.0") 2>&5 | ||
14731 | ac_status=$? | ||
14732 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
14733 | test $ac_status = 0; }; then | ||
14734 | pkg_cv_EDJE_CC_LIBS=`$PKG_CONFIG --libs "ecore-file >= 1.1.0 ecore-evas >= 1.1.0 ecore >= 1.1.0 evas >= 1.1.0 eet >= 1.5.0 eina >= 1.1.0" 2>/dev/null` | ||
14735 | else | ||
14736 | pkg_failed=yes | ||
14737 | fi | ||
14738 | else | ||
14739 | pkg_failed=untried | ||
14740 | fi | ||
14741 | |||
14742 | |||
14743 | |||
14744 | if test $pkg_failed = yes; then | ||
14745 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
14746 | $as_echo "no" >&6; } | ||
14747 | |||
14748 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
14749 | _pkg_short_errors_supported=yes | ||
14750 | else | ||
14751 | _pkg_short_errors_supported=no | ||
14752 | fi | ||
14753 | if test $_pkg_short_errors_supported = yes; then | ||
14754 | EDJE_CC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "ecore-file >= 1.1.0 ecore-evas >= 1.1.0 ecore >= 1.1.0 evas >= 1.1.0 eet >= 1.5.0 eina >= 1.1.0" 2>&1` | ||
14755 | else | ||
14756 | EDJE_CC_PKG_ERRORS=`$PKG_CONFIG --print-errors "ecore-file >= 1.1.0 ecore-evas >= 1.1.0 ecore >= 1.1.0 evas >= 1.1.0 eet >= 1.5.0 eina >= 1.1.0" 2>&1` | ||
14757 | fi | ||
14758 | # Put the nasty error message in config.log where it belongs | ||
14759 | echo "$EDJE_CC_PKG_ERRORS" >&5 | ||
14760 | |||
14761 | as_fn_error $? "Package requirements (ecore-file >= 1.1.0 ecore-evas >= 1.1.0 ecore >= 1.1.0 evas >= 1.1.0 eet >= 1.5.0 eina >= 1.1.0) were not met: | ||
14762 | |||
14763 | $EDJE_CC_PKG_ERRORS | ||
14764 | |||
14765 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | ||
14766 | installed software in a non-standard prefix. | ||
14767 | |||
14768 | Alternatively, you may set the environment variables EDJE_CC_CFLAGS | ||
14769 | and EDJE_CC_LIBS to avoid the need to call pkg-config. | ||
14770 | See the pkg-config man page for more details." "$LINENO" 5 | ||
14771 | elif test $pkg_failed = untried; then | ||
14772 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
14773 | $as_echo "no" >&6; } | ||
14774 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
14775 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
14776 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it | ||
14777 | is in your PATH or set the PKG_CONFIG environment variable to the full | ||
14778 | path to pkg-config. | ||
14779 | |||
14780 | Alternatively, you may set the environment variables EDJE_CC_CFLAGS | ||
14781 | and EDJE_CC_LIBS to avoid the need to call pkg-config. | ||
14782 | See the pkg-config man page for more details. | ||
14783 | |||
14784 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | ||
14785 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
14786 | else | ||
14787 | EDJE_CC_CFLAGS=$pkg_cv_EDJE_CC_CFLAGS | ||
14788 | EDJE_CC_LIBS=$pkg_cv_EDJE_CC_LIBS | ||
14789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
14790 | $as_echo "yes" >&6; } | ||
14791 | |||
14792 | fi | ||
14793 | EDJE_CC_LIBS="${EDJE_CC_LIBS} ${LUA_LIBS} ${lua_libs}" | ||
14794 | fi | ||
14795 | |||
14796 | if test "x$have_edje_cc" = "xyes"; then | ||
14797 | BUILD_EPP_TRUE= | ||
14798 | BUILD_EPP_FALSE='#' | ||
14799 | else | ||
14800 | BUILD_EPP_TRUE='#' | ||
14801 | BUILD_EPP_FALSE= | ||
14802 | fi | ||
14803 | |||
14804 | |||
14805 | if test "x$have_edje_decc" = "xyes"; then | ||
14806 | |||
14807 | pkg_failed=no | ||
14808 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EDJE_DECC" >&5 | ||
14809 | $as_echo_n "checking for EDJE_DECC... " >&6; } | ||
14810 | |||
14811 | if test -n "$EDJE_DECC_CFLAGS"; then | ||
14812 | pkg_cv_EDJE_DECC_CFLAGS="$EDJE_DECC_CFLAGS" | ||
14813 | elif test -n "$PKG_CONFIG"; then | ||
14814 | if test -n "$PKG_CONFIG" && \ | ||
14815 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ecore-file >= 1.1.0 ecore-evas >= 1.1.0 ecore >= 1.1.0 evas >= 1.1.0 eet >= 1.5.0 eina >= 1.1.0\""; } >&5 | ||
14816 | ($PKG_CONFIG --exists --print-errors "ecore-file >= 1.1.0 ecore-evas >= 1.1.0 ecore >= 1.1.0 evas >= 1.1.0 eet >= 1.5.0 eina >= 1.1.0") 2>&5 | ||
14817 | ac_status=$? | ||
14818 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
14819 | test $ac_status = 0; }; then | ||
14820 | pkg_cv_EDJE_DECC_CFLAGS=`$PKG_CONFIG --cflags "ecore-file >= 1.1.0 ecore-evas >= 1.1.0 ecore >= 1.1.0 evas >= 1.1.0 eet >= 1.5.0 eina >= 1.1.0" 2>/dev/null` | ||
14821 | else | ||
14822 | pkg_failed=yes | ||
14823 | fi | ||
14824 | else | ||
14825 | pkg_failed=untried | ||
14826 | fi | ||
14827 | if test -n "$EDJE_DECC_LIBS"; then | ||
14828 | pkg_cv_EDJE_DECC_LIBS="$EDJE_DECC_LIBS" | ||
14829 | elif test -n "$PKG_CONFIG"; then | ||
14830 | if test -n "$PKG_CONFIG" && \ | ||
14831 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ecore-file >= 1.1.0 ecore-evas >= 1.1.0 ecore >= 1.1.0 evas >= 1.1.0 eet >= 1.5.0 eina >= 1.1.0\""; } >&5 | ||
14832 | ($PKG_CONFIG --exists --print-errors "ecore-file >= 1.1.0 ecore-evas >= 1.1.0 ecore >= 1.1.0 evas >= 1.1.0 eet >= 1.5.0 eina >= 1.1.0") 2>&5 | ||
14833 | ac_status=$? | ||
14834 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
14835 | test $ac_status = 0; }; then | ||
14836 | pkg_cv_EDJE_DECC_LIBS=`$PKG_CONFIG --libs "ecore-file >= 1.1.0 ecore-evas >= 1.1.0 ecore >= 1.1.0 evas >= 1.1.0 eet >= 1.5.0 eina >= 1.1.0" 2>/dev/null` | ||
14837 | else | ||
14838 | pkg_failed=yes | ||
14839 | fi | ||
14840 | else | ||
14841 | pkg_failed=untried | ||
14842 | fi | ||
14843 | |||
14844 | |||
14845 | |||
14846 | if test $pkg_failed = yes; then | ||
14847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
14848 | $as_echo "no" >&6; } | ||
14849 | |||
14850 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
14851 | _pkg_short_errors_supported=yes | ||
14852 | else | ||
14853 | _pkg_short_errors_supported=no | ||
14854 | fi | ||
14855 | if test $_pkg_short_errors_supported = yes; then | ||
14856 | EDJE_DECC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "ecore-file >= 1.1.0 ecore-evas >= 1.1.0 ecore >= 1.1.0 evas >= 1.1.0 eet >= 1.5.0 eina >= 1.1.0" 2>&1` | ||
14857 | else | ||
14858 | EDJE_DECC_PKG_ERRORS=`$PKG_CONFIG --print-errors "ecore-file >= 1.1.0 ecore-evas >= 1.1.0 ecore >= 1.1.0 evas >= 1.1.0 eet >= 1.5.0 eina >= 1.1.0" 2>&1` | ||
14859 | fi | ||
14860 | # Put the nasty error message in config.log where it belongs | ||
14861 | echo "$EDJE_DECC_PKG_ERRORS" >&5 | ||
14862 | |||
14863 | as_fn_error $? "Package requirements (ecore-file >= 1.1.0 ecore-evas >= 1.1.0 ecore >= 1.1.0 evas >= 1.1.0 eet >= 1.5.0 eina >= 1.1.0) were not met: | ||
14864 | |||
14865 | $EDJE_DECC_PKG_ERRORS | ||
14866 | |||
14867 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | ||
14868 | installed software in a non-standard prefix. | ||
14869 | |||
14870 | Alternatively, you may set the environment variables EDJE_DECC_CFLAGS | ||
14871 | and EDJE_DECC_LIBS to avoid the need to call pkg-config. | ||
14872 | See the pkg-config man page for more details." "$LINENO" 5 | ||
14873 | elif test $pkg_failed = untried; then | ||
14874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
14875 | $as_echo "no" >&6; } | ||
14876 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
14877 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
14878 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it | ||
14879 | is in your PATH or set the PKG_CONFIG environment variable to the full | ||
14880 | path to pkg-config. | ||
14881 | |||
14882 | Alternatively, you may set the environment variables EDJE_DECC_CFLAGS | ||
14883 | and EDJE_DECC_LIBS to avoid the need to call pkg-config. | ||
14884 | See the pkg-config man page for more details. | ||
14885 | |||
14886 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | ||
14887 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
14888 | else | ||
14889 | EDJE_DECC_CFLAGS=$pkg_cv_EDJE_DECC_CFLAGS | ||
14890 | EDJE_DECC_LIBS=$pkg_cv_EDJE_DECC_LIBS | ||
14891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
14892 | $as_echo "yes" >&6; } | ||
14893 | |||
14894 | fi | ||
14895 | fi | ||
14896 | |||
14897 | if test "x$have_edje_player" = "xyes"; then | ||
14898 | |||
14899 | pkg_failed=no | ||
14900 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EDJE_PLAYER" >&5 | ||
14901 | $as_echo_n "checking for EDJE_PLAYER... " >&6; } | ||
14902 | |||
14903 | if test -n "$EDJE_PLAYER_CFLAGS"; then | ||
14904 | pkg_cv_EDJE_PLAYER_CFLAGS="$EDJE_PLAYER_CFLAGS" | ||
14905 | elif test -n "$PKG_CONFIG"; then | ||
14906 | if test -n "$PKG_CONFIG" && \ | ||
14907 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ecore-evas >= 1.1.0 ecore >= 1.1.0 evas >= 1.1.0 eina >= 1.1.0\""; } >&5 | ||
14908 | ($PKG_CONFIG --exists --print-errors "ecore-evas >= 1.1.0 ecore >= 1.1.0 evas >= 1.1.0 eina >= 1.1.0") 2>&5 | ||
14909 | ac_status=$? | ||
14910 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
14911 | test $ac_status = 0; }; then | ||
14912 | pkg_cv_EDJE_PLAYER_CFLAGS=`$PKG_CONFIG --cflags "ecore-evas >= 1.1.0 ecore >= 1.1.0 evas >= 1.1.0 eina >= 1.1.0" 2>/dev/null` | ||
14913 | else | ||
14914 | pkg_failed=yes | ||
14915 | fi | ||
14916 | else | ||
14917 | pkg_failed=untried | ||
14918 | fi | ||
14919 | if test -n "$EDJE_PLAYER_LIBS"; then | ||
14920 | pkg_cv_EDJE_PLAYER_LIBS="$EDJE_PLAYER_LIBS" | ||
14921 | elif test -n "$PKG_CONFIG"; then | ||
14922 | if test -n "$PKG_CONFIG" && \ | ||
14923 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ecore-evas >= 1.1.0 ecore >= 1.1.0 evas >= 1.1.0 eina >= 1.1.0\""; } >&5 | ||
14924 | ($PKG_CONFIG --exists --print-errors "ecore-evas >= 1.1.0 ecore >= 1.1.0 evas >= 1.1.0 eina >= 1.1.0") 2>&5 | ||
14925 | ac_status=$? | ||
14926 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
14927 | test $ac_status = 0; }; then | ||
14928 | pkg_cv_EDJE_PLAYER_LIBS=`$PKG_CONFIG --libs "ecore-evas >= 1.1.0 ecore >= 1.1.0 evas >= 1.1.0 eina >= 1.1.0" 2>/dev/null` | ||
14929 | else | ||
14930 | pkg_failed=yes | ||
14931 | fi | ||
14932 | else | ||
14933 | pkg_failed=untried | ||
14934 | fi | ||
14935 | |||
14936 | |||
14937 | |||
14938 | if test $pkg_failed = yes; then | ||
14939 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
14940 | $as_echo "no" >&6; } | ||
14941 | |||
14942 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
14943 | _pkg_short_errors_supported=yes | ||
14944 | else | ||
14945 | _pkg_short_errors_supported=no | ||
14946 | fi | ||
14947 | if test $_pkg_short_errors_supported = yes; then | ||
14948 | EDJE_PLAYER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "ecore-evas >= 1.1.0 ecore >= 1.1.0 evas >= 1.1.0 eina >= 1.1.0" 2>&1` | ||
14949 | else | ||
14950 | EDJE_PLAYER_PKG_ERRORS=`$PKG_CONFIG --print-errors "ecore-evas >= 1.1.0 ecore >= 1.1.0 evas >= 1.1.0 eina >= 1.1.0" 2>&1` | ||
14951 | fi | ||
14952 | # Put the nasty error message in config.log where it belongs | ||
14953 | echo "$EDJE_PLAYER_PKG_ERRORS" >&5 | ||
14954 | |||
14955 | as_fn_error $? "Package requirements (ecore-evas >= 1.1.0 ecore >= 1.1.0 evas >= 1.1.0 eina >= 1.1.0) were not met: | ||
14956 | |||
14957 | $EDJE_PLAYER_PKG_ERRORS | ||
14958 | |||
14959 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | ||
14960 | installed software in a non-standard prefix. | ||
14961 | |||
14962 | Alternatively, you may set the environment variables EDJE_PLAYER_CFLAGS | ||
14963 | and EDJE_PLAYER_LIBS to avoid the need to call pkg-config. | ||
14964 | See the pkg-config man page for more details." "$LINENO" 5 | ||
14965 | elif test $pkg_failed = untried; then | ||
14966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
14967 | $as_echo "no" >&6; } | ||
14968 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
14969 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
14970 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it | ||
14971 | is in your PATH or set the PKG_CONFIG environment variable to the full | ||
14972 | path to pkg-config. | ||
14973 | |||
14974 | Alternatively, you may set the environment variables EDJE_PLAYER_CFLAGS | ||
14975 | and EDJE_PLAYER_LIBS to avoid the need to call pkg-config. | ||
14976 | See the pkg-config man page for more details. | ||
14977 | |||
14978 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | ||
14979 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
14980 | else | ||
14981 | EDJE_PLAYER_CFLAGS=$pkg_cv_EDJE_PLAYER_CFLAGS | ||
14982 | EDJE_PLAYER_LIBS=$pkg_cv_EDJE_PLAYER_LIBS | ||
14983 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
14984 | $as_echo "yes" >&6; } | ||
14985 | |||
14986 | fi | ||
14987 | fi | ||
14988 | |||
14989 | if test "x$have_edje_inspector" = "xyes"; then | ||
14990 | |||
14991 | pkg_failed=no | ||
14992 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EDJE_INSPECTOR" >&5 | ||
14993 | $as_echo_n "checking for EDJE_INSPECTOR... " >&6; } | ||
14994 | |||
14995 | if test -n "$EDJE_INSPECTOR_CFLAGS"; then | ||
14996 | pkg_cv_EDJE_INSPECTOR_CFLAGS="$EDJE_INSPECTOR_CFLAGS" | ||
14997 | elif test -n "$PKG_CONFIG"; then | ||
14998 | if test -n "$PKG_CONFIG" && \ | ||
14999 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ecore-evas >= 1.1.0 ecore >= 1.1.0 evas >= 1.1.0 eina >= 1.1.0\""; } >&5 | ||
15000 | ($PKG_CONFIG --exists --print-errors "ecore-evas >= 1.1.0 ecore >= 1.1.0 evas >= 1.1.0 eina >= 1.1.0") 2>&5 | ||
15001 | ac_status=$? | ||
15002 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
15003 | test $ac_status = 0; }; then | ||
15004 | pkg_cv_EDJE_INSPECTOR_CFLAGS=`$PKG_CONFIG --cflags "ecore-evas >= 1.1.0 ecore >= 1.1.0 evas >= 1.1.0 eina >= 1.1.0" 2>/dev/null` | ||
15005 | else | ||
15006 | pkg_failed=yes | ||
15007 | fi | ||
15008 | else | ||
15009 | pkg_failed=untried | ||
15010 | fi | ||
15011 | if test -n "$EDJE_INSPECTOR_LIBS"; then | ||
15012 | pkg_cv_EDJE_INSPECTOR_LIBS="$EDJE_INSPECTOR_LIBS" | ||
15013 | elif test -n "$PKG_CONFIG"; then | ||
15014 | if test -n "$PKG_CONFIG" && \ | ||
15015 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ecore-evas >= 1.1.0 ecore >= 1.1.0 evas >= 1.1.0 eina >= 1.1.0\""; } >&5 | ||
15016 | ($PKG_CONFIG --exists --print-errors "ecore-evas >= 1.1.0 ecore >= 1.1.0 evas >= 1.1.0 eina >= 1.1.0") 2>&5 | ||
15017 | ac_status=$? | ||
15018 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
15019 | test $ac_status = 0; }; then | ||
15020 | pkg_cv_EDJE_INSPECTOR_LIBS=`$PKG_CONFIG --libs "ecore-evas >= 1.1.0 ecore >= 1.1.0 evas >= 1.1.0 eina >= 1.1.0" 2>/dev/null` | ||
15021 | else | ||
15022 | pkg_failed=yes | ||
15023 | fi | ||
15024 | else | ||
15025 | pkg_failed=untried | ||
15026 | fi | ||
15027 | |||
15028 | |||
15029 | |||
15030 | if test $pkg_failed = yes; then | ||
15031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
15032 | $as_echo "no" >&6; } | ||
15033 | |||
15034 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
15035 | _pkg_short_errors_supported=yes | ||
15036 | else | ||
15037 | _pkg_short_errors_supported=no | ||
15038 | fi | ||
15039 | if test $_pkg_short_errors_supported = yes; then | ||
15040 | EDJE_INSPECTOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "ecore-evas >= 1.1.0 ecore >= 1.1.0 evas >= 1.1.0 eina >= 1.1.0" 2>&1` | ||
15041 | else | ||
15042 | EDJE_INSPECTOR_PKG_ERRORS=`$PKG_CONFIG --print-errors "ecore-evas >= 1.1.0 ecore >= 1.1.0 evas >= 1.1.0 eina >= 1.1.0" 2>&1` | ||
15043 | fi | ||
15044 | # Put the nasty error message in config.log where it belongs | ||
15045 | echo "$EDJE_INSPECTOR_PKG_ERRORS" >&5 | ||
15046 | |||
15047 | as_fn_error $? "Package requirements (ecore-evas >= 1.1.0 ecore >= 1.1.0 evas >= 1.1.0 eina >= 1.1.0) were not met: | ||
15048 | |||
15049 | $EDJE_INSPECTOR_PKG_ERRORS | ||
15050 | |||
15051 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | ||
15052 | installed software in a non-standard prefix. | ||
15053 | |||
15054 | Alternatively, you may set the environment variables EDJE_INSPECTOR_CFLAGS | ||
15055 | and EDJE_INSPECTOR_LIBS to avoid the need to call pkg-config. | ||
15056 | See the pkg-config man page for more details." "$LINENO" 5 | ||
15057 | elif test $pkg_failed = untried; then | ||
15058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
15059 | $as_echo "no" >&6; } | ||
15060 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
15061 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
15062 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it | ||
15063 | is in your PATH or set the PKG_CONFIG environment variable to the full | ||
15064 | path to pkg-config. | ||
15065 | |||
15066 | Alternatively, you may set the environment variables EDJE_INSPECTOR_CFLAGS | ||
15067 | and EDJE_INSPECTOR_LIBS to avoid the need to call pkg-config. | ||
15068 | See the pkg-config man page for more details. | ||
15069 | |||
15070 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | ||
15071 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
15072 | else | ||
15073 | EDJE_INSPECTOR_CFLAGS=$pkg_cv_EDJE_INSPECTOR_CFLAGS | ||
15074 | EDJE_INSPECTOR_LIBS=$pkg_cv_EDJE_INSPECTOR_LIBS | ||
15075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
15076 | $as_echo "yes" >&6; } | ||
15077 | |||
15078 | fi | ||
15079 | fi | ||
15080 | |||
15081 | if test "x$have_edje_external_inspector" = "xyes"; then | ||
15082 | |||
15083 | pkg_failed=no | ||
15084 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EDJE_EXTERNAL_INSPECTOR" >&5 | ||
15085 | $as_echo_n "checking for EDJE_EXTERNAL_INSPECTOR... " >&6; } | ||
15086 | |||
15087 | if test -n "$EDJE_EXTERNAL_INSPECTOR_CFLAGS"; then | ||
15088 | pkg_cv_EDJE_EXTERNAL_INSPECTOR_CFLAGS="$EDJE_EXTERNAL_INSPECTOR_CFLAGS" | ||
15089 | elif test -n "$PKG_CONFIG"; then | ||
15090 | if test -n "$PKG_CONFIG" && \ | ||
15091 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ecore >= 1.1.0 evas >= 1.1.0 eina >= 1.1.0\""; } >&5 | ||
15092 | ($PKG_CONFIG --exists --print-errors "ecore >= 1.1.0 evas >= 1.1.0 eina >= 1.1.0") 2>&5 | ||
15093 | ac_status=$? | ||
15094 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
15095 | test $ac_status = 0; }; then | ||
15096 | pkg_cv_EDJE_EXTERNAL_INSPECTOR_CFLAGS=`$PKG_CONFIG --cflags "ecore >= 1.1.0 evas >= 1.1.0 eina >= 1.1.0" 2>/dev/null` | ||
15097 | else | ||
15098 | pkg_failed=yes | ||
15099 | fi | ||
15100 | else | ||
15101 | pkg_failed=untried | ||
15102 | fi | ||
15103 | if test -n "$EDJE_EXTERNAL_INSPECTOR_LIBS"; then | ||
15104 | pkg_cv_EDJE_EXTERNAL_INSPECTOR_LIBS="$EDJE_EXTERNAL_INSPECTOR_LIBS" | ||
15105 | elif test -n "$PKG_CONFIG"; then | ||
15106 | if test -n "$PKG_CONFIG" && \ | ||
15107 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ecore >= 1.1.0 evas >= 1.1.0 eina >= 1.1.0\""; } >&5 | ||
15108 | ($PKG_CONFIG --exists --print-errors "ecore >= 1.1.0 evas >= 1.1.0 eina >= 1.1.0") 2>&5 | ||
15109 | ac_status=$? | ||
15110 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
15111 | test $ac_status = 0; }; then | ||
15112 | pkg_cv_EDJE_EXTERNAL_INSPECTOR_LIBS=`$PKG_CONFIG --libs "ecore >= 1.1.0 evas >= 1.1.0 eina >= 1.1.0" 2>/dev/null` | ||
15113 | else | ||
15114 | pkg_failed=yes | ||
15115 | fi | ||
15116 | else | ||
15117 | pkg_failed=untried | ||
15118 | fi | ||
15119 | |||
15120 | |||
15121 | |||
15122 | if test $pkg_failed = yes; then | ||
15123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
15124 | $as_echo "no" >&6; } | ||
15125 | |||
15126 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
15127 | _pkg_short_errors_supported=yes | ||
15128 | else | ||
15129 | _pkg_short_errors_supported=no | ||
15130 | fi | ||
15131 | if test $_pkg_short_errors_supported = yes; then | ||
15132 | EDJE_EXTERNAL_INSPECTOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "ecore >= 1.1.0 evas >= 1.1.0 eina >= 1.1.0" 2>&1` | ||
15133 | else | ||
15134 | EDJE_EXTERNAL_INSPECTOR_PKG_ERRORS=`$PKG_CONFIG --print-errors "ecore >= 1.1.0 evas >= 1.1.0 eina >= 1.1.0" 2>&1` | ||
15135 | fi | ||
15136 | # Put the nasty error message in config.log where it belongs | ||
15137 | echo "$EDJE_EXTERNAL_INSPECTOR_PKG_ERRORS" >&5 | ||
15138 | |||
15139 | as_fn_error $? "Package requirements (ecore >= 1.1.0 evas >= 1.1.0 eina >= 1.1.0) were not met: | ||
15140 | |||
15141 | $EDJE_EXTERNAL_INSPECTOR_PKG_ERRORS | ||
15142 | |||
15143 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | ||
15144 | installed software in a non-standard prefix. | ||
15145 | |||
15146 | Alternatively, you may set the environment variables EDJE_EXTERNAL_INSPECTOR_CFLAGS | ||
15147 | and EDJE_EXTERNAL_INSPECTOR_LIBS to avoid the need to call pkg-config. | ||
15148 | See the pkg-config man page for more details." "$LINENO" 5 | ||
15149 | elif test $pkg_failed = untried; then | ||
15150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
15151 | $as_echo "no" >&6; } | ||
15152 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
15153 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
15154 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it | ||
15155 | is in your PATH or set the PKG_CONFIG environment variable to the full | ||
15156 | path to pkg-config. | ||
15157 | |||
15158 | Alternatively, you may set the environment variables EDJE_EXTERNAL_INSPECTOR_CFLAGS | ||
15159 | and EDJE_EXTERNAL_INSPECTOR_LIBS to avoid the need to call pkg-config. | ||
15160 | See the pkg-config man page for more details. | ||
15161 | |||
15162 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | ||
15163 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
15164 | else | ||
15165 | EDJE_EXTERNAL_INSPECTOR_CFLAGS=$pkg_cv_EDJE_EXTERNAL_INSPECTOR_CFLAGS | ||
15166 | EDJE_EXTERNAL_INSPECTOR_LIBS=$pkg_cv_EDJE_EXTERNAL_INSPECTOR_LIBS | ||
15167 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
15168 | $as_echo "yes" >&6; } | ||
15169 | |||
15170 | fi | ||
15171 | fi | ||
15172 | |||
15173 | |||
15174 | ### Checks for header files | ||
15175 | for ac_header in locale.h sys/resource.h | ||
15176 | do : | ||
15177 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
15178 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | ||
15179 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | ||
15180 | cat >>confdefs.h <<_ACEOF | ||
15181 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
15182 | _ACEOF | ||
15183 | |||
15184 | fi | ||
15185 | |||
15186 | done | ||
15187 | |||
15188 | |||
15189 | |||
15190 | |||
15191 | default_max="4096" | ||
15192 | ac_ext=c | ||
15193 | ac_cpp='$CPP $CPPFLAGS' | ||
15194 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
15195 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
15196 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
15197 | |||
15198 | |||
15199 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PATH_MAX in limits.h" >&5 | ||
15200 | $as_echo_n "checking for PATH_MAX in limits.h... " >&6; } | ||
15201 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15202 | /* end confdefs.h. */ | ||
15203 | |||
15204 | #include <limits.h> | ||
15205 | |||
15206 | int | ||
15207 | main () | ||
15208 | { | ||
15209 | |||
15210 | int i = PATH_MAX; | ||
15211 | |||
15212 | ; | ||
15213 | return 0; | ||
15214 | } | ||
15215 | _ACEOF | ||
15216 | if ac_fn_c_try_compile "$LINENO"; then : | ||
15217 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
15218 | $as_echo "yes" >&6; } | ||
15219 | else | ||
15220 | |||
15221 | |||
15222 | cat >>confdefs.h <<_ACEOF | ||
15223 | #define PATH_MAX ${default_max} | ||
15224 | _ACEOF | ||
15225 | |||
15226 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: using ${default_max}" >&5 | ||
15227 | $as_echo "no: using ${default_max}" >&6; } | ||
15228 | |||
15229 | fi | ||
15230 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15231 | |||
15232 | ac_ext=c | ||
15233 | ac_cpp='$CPP $CPPFLAGS' | ||
15234 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
15235 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
15236 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
15237 | |||
15238 | |||
15239 | |||
15240 | |||
15241 | |||
15242 | ### Checks for types | ||
15243 | |||
15244 | |||
15245 | ### Checks for structures | ||
15246 | |||
15247 | |||
15248 | ### Checks for compiler characteristics | ||
15249 | if test "x$CC" != xcc; then | ||
15250 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5 | ||
15251 | $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } | ||
15252 | else | ||
15253 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5 | ||
15254 | $as_echo_n "checking whether cc understands -c and -o together... " >&6; } | ||
15255 | fi | ||
15256 | set dummy $CC; ac_cc=`$as_echo "$2" | | ||
15257 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` | ||
15258 | if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\"" = set; then : | ||
15259 | $as_echo_n "(cached) " >&6 | ||
15260 | else | ||
15261 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15262 | /* end confdefs.h. */ | ||
15263 | |||
15264 | int | ||
15265 | main () | ||
15266 | { | ||
15267 | |||
15268 | ; | ||
15269 | return 0; | ||
15270 | } | ||
15271 | _ACEOF | ||
15272 | # Make sure it works both with $CC and with simple cc. | ||
15273 | # We do the test twice because some compilers refuse to overwrite an | ||
15274 | # existing .o file with -o, though they will create one. | ||
15275 | ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' | ||
15276 | rm -f conftest2.* | ||
15277 | if { { case "(($ac_try" in | ||
15278 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15279 | *) ac_try_echo=$ac_try;; | ||
15280 | esac | ||
15281 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
15282 | $as_echo "$ac_try_echo"; } >&5 | ||
15283 | (eval "$ac_try") 2>&5 | ||
15284 | ac_status=$? | ||
15285 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
15286 | test $ac_status = 0; } && | ||
15287 | test -f conftest2.$ac_objext && { { case "(($ac_try" in | ||
15288 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15289 | *) ac_try_echo=$ac_try;; | ||
15290 | esac | ||
15291 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
15292 | $as_echo "$ac_try_echo"; } >&5 | ||
15293 | (eval "$ac_try") 2>&5 | ||
15294 | ac_status=$? | ||
15295 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
15296 | test $ac_status = 0; }; | ||
15297 | then | ||
15298 | eval ac_cv_prog_cc_${ac_cc}_c_o=yes | ||
15299 | if test "x$CC" != xcc; then | ||
15300 | # Test first that cc exists at all. | ||
15301 | if { ac_try='cc -c conftest.$ac_ext >&5' | ||
15302 | { { case "(($ac_try" in | ||
15303 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15304 | *) ac_try_echo=$ac_try;; | ||
15305 | esac | ||
15306 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
15307 | $as_echo "$ac_try_echo"; } >&5 | ||
15308 | (eval "$ac_try") 2>&5 | ||
15309 | ac_status=$? | ||
15310 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
15311 | test $ac_status = 0; }; }; then | ||
15312 | ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' | ||
15313 | rm -f conftest2.* | ||
15314 | if { { case "(($ac_try" in | ||
15315 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15316 | *) ac_try_echo=$ac_try;; | ||
15317 | esac | ||
15318 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
15319 | $as_echo "$ac_try_echo"; } >&5 | ||
15320 | (eval "$ac_try") 2>&5 | ||
15321 | ac_status=$? | ||
15322 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
15323 | test $ac_status = 0; } && | ||
15324 | test -f conftest2.$ac_objext && { { case "(($ac_try" in | ||
15325 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15326 | *) ac_try_echo=$ac_try;; | ||
15327 | esac | ||
15328 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
15329 | $as_echo "$ac_try_echo"; } >&5 | ||
15330 | (eval "$ac_try") 2>&5 | ||
15331 | ac_status=$? | ||
15332 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
15333 | test $ac_status = 0; }; | ||
15334 | then | ||
15335 | # cc works too. | ||
15336 | : | ||
15337 | else | ||
15338 | # cc exists but doesn't like -o. | ||
15339 | eval ac_cv_prog_cc_${ac_cc}_c_o=no | ||
15340 | fi | ||
15341 | fi | ||
15342 | fi | ||
15343 | else | ||
15344 | eval ac_cv_prog_cc_${ac_cc}_c_o=no | ||
15345 | fi | ||
15346 | rm -f core conftest* | ||
15347 | |||
15348 | fi | ||
15349 | if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then | ||
15350 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
15351 | $as_echo "yes" >&6; } | ||
15352 | else | ||
15353 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
15354 | $as_echo "no" >&6; } | ||
15355 | |||
15356 | $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h | ||
15357 | |||
15358 | fi | ||
15359 | |||
15360 | # FIXME: we rely on the cache variable name because | ||
15361 | # there is no other way. | ||
15362 | set dummy $CC | ||
15363 | am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` | ||
15364 | eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o | ||
15365 | if test "$am_t" != yes; then | ||
15366 | # Losing compiler, so override with the script. | ||
15367 | # FIXME: It is wrong to rewrite CC. | ||
15368 | # But if we don't then we get into trouble of one sort or another. | ||
15369 | # A longer-term fix would be to have automake use am__CC in this case, | ||
15370 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | ||
15371 | CC="$am_aux_dir/compile $CC" | ||
15372 | fi | ||
15373 | |||
15374 | |||
15375 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 | ||
15376 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | ||
15377 | if test "${ac_cv_c_const+set}" = set; then : | ||
15378 | $as_echo_n "(cached) " >&6 | ||
15379 | else | ||
15380 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15381 | /* end confdefs.h. */ | ||
15382 | |||
15383 | int | ||
15384 | main () | ||
15385 | { | ||
15386 | /* FIXME: Include the comments suggested by Paul. */ | ||
15387 | #ifndef __cplusplus | ||
15388 | /* Ultrix mips cc rejects this. */ | ||
15389 | typedef int charset[2]; | ||
15390 | const charset cs; | ||
15391 | /* SunOS 4.1.1 cc rejects this. */ | ||
15392 | char const *const *pcpcc; | ||
15393 | char **ppc; | ||
15394 | /* NEC SVR4.0.2 mips cc rejects this. */ | ||
15395 | struct point {int x, y;}; | ||
15396 | static struct point const zero = {0,0}; | ||
15397 | /* AIX XL C 1.02.0.0 rejects this. | ||
15398 | It does not let you subtract one const X* pointer from another in | ||
15399 | an arm of an if-expression whose if-part is not a constant | ||
15400 | expression */ | ||
15401 | const char *g = "string"; | ||
15402 | pcpcc = &g + (g ? g-g : 0); | ||
15403 | /* HPUX 7.0 cc rejects these. */ | ||
15404 | ++pcpcc; | ||
15405 | ppc = (char**) pcpcc; | ||
15406 | pcpcc = (char const *const *) ppc; | ||
15407 | { /* SCO 3.2v4 cc rejects this. */ | ||
15408 | char *t; | ||
15409 | char const *s = 0 ? (char *) 0 : (char const *) 0; | ||
15410 | |||
15411 | *t++ = 0; | ||
15412 | if (s) return 0; | ||
15413 | } | ||
15414 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | ||
15415 | int x[] = {25, 17}; | ||
15416 | const int *foo = &x[0]; | ||
15417 | ++foo; | ||
15418 | } | ||
15419 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | ||
15420 | typedef const int *iptr; | ||
15421 | iptr p = 0; | ||
15422 | ++p; | ||
15423 | } | ||
15424 | { /* AIX XL C 1.02.0.0 rejects this saying | ||
15425 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | ||
15426 | struct s { int j; const int *ap[3]; }; | ||
15427 | struct s *b; b->j = 5; | ||
15428 | } | ||
15429 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | ||
15430 | const int foo = 10; | ||
15431 | if (!foo) return 0; | ||
15432 | } | ||
15433 | return !cs[0] && !zero.x; | ||
15434 | #endif | ||
15435 | |||
15436 | ; | ||
15437 | return 0; | ||
15438 | } | ||
15439 | _ACEOF | ||
15440 | if ac_fn_c_try_compile "$LINENO"; then : | ||
15441 | ac_cv_c_const=yes | ||
15442 | else | ||
15443 | ac_cv_c_const=no | ||
15444 | fi | ||
15445 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15446 | fi | ||
15447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 | ||
15448 | $as_echo "$ac_cv_c_const" >&6; } | ||
15449 | if test $ac_cv_c_const = no; then | ||
15450 | |||
15451 | $as_echo "#define const /**/" >>confdefs.h | ||
15452 | |||
15453 | fi | ||
15454 | |||
15455 | case $ac_cv_prog_cc_stdc in #( | ||
15456 | no) : | ||
15457 | ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #( | ||
15458 | *) : | ||
15459 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 | ||
15460 | $as_echo_n "checking for $CC option to accept ISO C99... " >&6; } | ||
15461 | if test "${ac_cv_prog_cc_c99+set}" = set; then : | ||
15462 | $as_echo_n "(cached) " >&6 | ||
15463 | else | ||
15464 | ac_cv_prog_cc_c99=no | ||
15465 | ac_save_CC=$CC | ||
15466 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15467 | /* end confdefs.h. */ | ||
15468 | #include <stdarg.h> | ||
15469 | #include <stdbool.h> | ||
15470 | #include <stdlib.h> | ||
15471 | #include <wchar.h> | ||
15472 | #include <stdio.h> | ||
15473 | |||
15474 | // Check varargs macros. These examples are taken from C99 6.10.3.5. | ||
15475 | #define debug(...) fprintf (stderr, __VA_ARGS__) | ||
15476 | #define showlist(...) puts (#__VA_ARGS__) | ||
15477 | #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) | ||
15478 | static void | ||
15479 | test_varargs_macros (void) | ||
15480 | { | ||
15481 | int x = 1234; | ||
15482 | int y = 5678; | ||
15483 | debug ("Flag"); | ||
15484 | debug ("X = %d\n", x); | ||
15485 | showlist (The first, second, and third items.); | ||
15486 | report (x>y, "x is %d but y is %d", x, y); | ||
15487 | } | ||
15488 | |||
15489 | // Check long long types. | ||
15490 | #define BIG64 18446744073709551615ull | ||
15491 | #define BIG32 4294967295ul | ||
15492 | #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) | ||
15493 | #if !BIG_OK | ||
15494 | your preprocessor is broken; | ||
15495 | #endif | ||
15496 | #if BIG_OK | ||
15497 | #else | ||
15498 | your preprocessor is broken; | ||
15499 | #endif | ||
15500 | static long long int bignum = -9223372036854775807LL; | ||
15501 | static unsigned long long int ubignum = BIG64; | ||
15502 | |||
15503 | struct incomplete_array | ||
15504 | { | ||
15505 | int datasize; | ||
15506 | double data[]; | ||
15507 | }; | ||
15508 | |||
15509 | struct named_init { | ||
15510 | int number; | ||
15511 | const wchar_t *name; | ||
15512 | double average; | ||
15513 | }; | ||
15514 | |||
15515 | typedef const char *ccp; | ||
15516 | |||
15517 | static inline int | ||
15518 | test_restrict (ccp restrict text) | ||
15519 | { | ||
15520 | // See if C++-style comments work. | ||
15521 | // Iterate through items via the restricted pointer. | ||
15522 | // Also check for declarations in for loops. | ||
15523 | for (unsigned int i = 0; *(text+i) != '\0'; ++i) | ||
15524 | continue; | ||
15525 | return 0; | ||
15526 | } | ||
15527 | |||
15528 | // Check varargs and va_copy. | ||
15529 | static void | ||
15530 | test_varargs (const char *format, ...) | ||
15531 | { | ||
15532 | va_list args; | ||
15533 | va_start (args, format); | ||
15534 | va_list args_copy; | ||
15535 | va_copy (args_copy, args); | ||
15536 | |||
15537 | const char *str; | ||
15538 | int number; | ||
15539 | float fnumber; | ||
15540 | |||
15541 | while (*format) | ||
15542 | { | ||
15543 | switch (*format++) | ||
15544 | { | ||
15545 | case 's': // string | ||
15546 | str = va_arg (args_copy, const char *); | ||
15547 | break; | ||
15548 | case 'd': // int | ||
15549 | number = va_arg (args_copy, int); | ||
15550 | break; | ||
15551 | case 'f': // float | ||
15552 | fnumber = va_arg (args_copy, double); | ||
15553 | break; | ||
15554 | default: | ||
15555 | break; | ||
15556 | } | ||
15557 | } | ||
15558 | va_end (args_copy); | ||
15559 | va_end (args); | ||
15560 | } | ||
15561 | |||
15562 | int | ||
15563 | main () | ||
15564 | { | ||
15565 | |||
15566 | // Check bool. | ||
15567 | _Bool success = false; | ||
15568 | |||
15569 | // Check restrict. | ||
15570 | if (test_restrict ("String literal") == 0) | ||
15571 | success = true; | ||
15572 | char *restrict newvar = "Another string"; | ||
15573 | |||
15574 | // Check varargs. | ||
15575 | test_varargs ("s, d' f .", "string", 65, 34.234); | ||
15576 | test_varargs_macros (); | ||
15577 | |||
15578 | // Check flexible array members. | ||
15579 | struct incomplete_array *ia = | ||
15580 | malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); | ||
15581 | ia->datasize = 10; | ||
15582 | for (int i = 0; i < ia->datasize; ++i) | ||
15583 | ia->data[i] = i * 1.234; | ||
15584 | |||
15585 | // Check named initializers. | ||
15586 | struct named_init ni = { | ||
15587 | .number = 34, | ||
15588 | .name = L"Test wide string", | ||
15589 | .average = 543.34343, | ||
15590 | }; | ||
15591 | |||
15592 | ni.number = 58; | ||
15593 | |||
15594 | int dynamic_array[ni.number]; | ||
15595 | dynamic_array[ni.number - 1] = 543; | ||
15596 | |||
15597 | // work around unused variable warnings | ||
15598 | return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' | ||
15599 | || dynamic_array[ni.number - 1] != 543); | ||
15600 | |||
15601 | ; | ||
15602 | return 0; | ||
15603 | } | ||
15604 | _ACEOF | ||
15605 | for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 | ||
15606 | do | ||
15607 | CC="$ac_save_CC $ac_arg" | ||
15608 | if ac_fn_c_try_compile "$LINENO"; then : | ||
15609 | ac_cv_prog_cc_c99=$ac_arg | ||
15610 | fi | ||
15611 | rm -f core conftest.err conftest.$ac_objext | ||
15612 | test "x$ac_cv_prog_cc_c99" != "xno" && break | ||
15613 | done | ||
15614 | rm -f conftest.$ac_ext | ||
15615 | CC=$ac_save_CC | ||
15616 | |||
15617 | fi | ||
15618 | # AC_CACHE_VAL | ||
15619 | case "x$ac_cv_prog_cc_c99" in | ||
15620 | x) | ||
15621 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | ||
15622 | $as_echo "none needed" >&6; } ;; | ||
15623 | xno) | ||
15624 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | ||
15625 | $as_echo "unsupported" >&6; } ;; | ||
15626 | *) | ||
15627 | CC="$CC $ac_cv_prog_cc_c99" | ||
15628 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 | ||
15629 | $as_echo "$ac_cv_prog_cc_c99" >&6; } ;; | ||
15630 | esac | ||
15631 | if test "x$ac_cv_prog_cc_c99" != xno; then : | ||
15632 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 | ||
15633 | else | ||
15634 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | ||
15635 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | ||
15636 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | ||
15637 | $as_echo_n "(cached) " >&6 | ||
15638 | else | ||
15639 | ac_cv_prog_cc_c89=no | ||
15640 | ac_save_CC=$CC | ||
15641 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15642 | /* end confdefs.h. */ | ||
15643 | #include <stdarg.h> | ||
15644 | #include <stdio.h> | ||
15645 | #include <sys/types.h> | ||
15646 | #include <sys/stat.h> | ||
15647 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | ||
15648 | struct buf { int x; }; | ||
15649 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | ||
15650 | static char *e (p, i) | ||
15651 | char **p; | ||
15652 | int i; | ||
15653 | { | ||
15654 | return p[i]; | ||
15655 | } | ||
15656 | static char *f (char * (*g) (char **, int), char **p, ...) | ||
15657 | { | ||
15658 | char *s; | ||
15659 | va_list v; | ||
15660 | va_start (v,p); | ||
15661 | s = g (p, va_arg (v,int)); | ||
15662 | va_end (v); | ||
15663 | return s; | ||
15664 | } | ||
15665 | |||
15666 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | ||
15667 | function prototypes and stuff, but not '\xHH' hex character constants. | ||
15668 | These don't provoke an error unfortunately, instead are silently treated | ||
15669 | as 'x'. The following induces an error, until -std is added to get | ||
15670 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | ||
15671 | array size at least. It's necessary to write '\x00'==0 to get something | ||
15672 | that's true only with -std. */ | ||
15673 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | ||
15674 | |||
15675 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | ||
15676 | inside strings and character constants. */ | ||
15677 | #define FOO(x) 'x' | ||
15678 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | ||
15679 | |||
15680 | int test (int i, double x); | ||
15681 | struct s1 {int (*f) (int a);}; | ||
15682 | struct s2 {int (*f) (double a);}; | ||
15683 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | ||
15684 | int argc; | ||
15685 | char **argv; | ||
15686 | int | ||
15687 | main () | ||
15688 | { | ||
15689 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | ||
15690 | ; | ||
15691 | return 0; | ||
15692 | } | ||
15693 | _ACEOF | ||
15694 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | ||
15695 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | ||
15696 | do | ||
15697 | CC="$ac_save_CC $ac_arg" | ||
15698 | if ac_fn_c_try_compile "$LINENO"; then : | ||
15699 | ac_cv_prog_cc_c89=$ac_arg | ||
15700 | fi | ||
15701 | rm -f core conftest.err conftest.$ac_objext | ||
15702 | test "x$ac_cv_prog_cc_c89" != "xno" && break | ||
15703 | done | ||
15704 | rm -f conftest.$ac_ext | ||
15705 | CC=$ac_save_CC | ||
15706 | |||
15707 | fi | ||
15708 | # AC_CACHE_VAL | ||
15709 | case "x$ac_cv_prog_cc_c89" in | ||
15710 | x) | ||
15711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | ||
15712 | $as_echo "none needed" >&6; } ;; | ||
15713 | xno) | ||
15714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | ||
15715 | $as_echo "unsupported" >&6; } ;; | ||
15716 | *) | ||
15717 | CC="$CC $ac_cv_prog_cc_c89" | ||
15718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | ||
15719 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | ||
15720 | esac | ||
15721 | if test "x$ac_cv_prog_cc_c89" != xno; then : | ||
15722 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 | ||
15723 | else | ||
15724 | ac_cv_prog_cc_stdc=no | ||
15725 | fi | ||
15726 | |||
15727 | fi | ||
15728 | ;; | ||
15729 | esac | ||
15730 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5 | ||
15731 | $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; } | ||
15732 | if test "${ac_cv_prog_cc_stdc+set}" = set; then : | ||
15733 | $as_echo_n "(cached) " >&6 | ||
15734 | fi | ||
15735 | |||
15736 | case $ac_cv_prog_cc_stdc in #( | ||
15737 | no) : | ||
15738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | ||
15739 | $as_echo "unsupported" >&6; } ;; #( | ||
15740 | '') : | ||
15741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | ||
15742 | $as_echo "none needed" >&6; } ;; #( | ||
15743 | *) : | ||
15744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5 | ||
15745 | $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;; | ||
15746 | esac | ||
15747 | |||
15748 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | ||
15749 | $as_echo_n "checking for ANSI C header files... " >&6; } | ||
15750 | if test "${ac_cv_header_stdc+set}" = set; then : | ||
15751 | $as_echo_n "(cached) " >&6 | ||
15752 | else | ||
15753 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15754 | /* end confdefs.h. */ | ||
15755 | #include <stdlib.h> | ||
15756 | #include <stdarg.h> | ||
15757 | #include <string.h> | ||
15758 | #include <float.h> | ||
15759 | |||
15760 | int | ||
15761 | main () | ||
15762 | { | ||
15763 | |||
15764 | ; | ||
15765 | return 0; | ||
15766 | } | ||
15767 | _ACEOF | ||
15768 | if ac_fn_c_try_compile "$LINENO"; then : | ||
15769 | ac_cv_header_stdc=yes | ||
15770 | else | ||
15771 | ac_cv_header_stdc=no | ||
15772 | fi | ||
15773 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15774 | |||
15775 | if test $ac_cv_header_stdc = yes; then | ||
15776 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | ||
15777 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15778 | /* end confdefs.h. */ | ||
15779 | #include <string.h> | ||
15780 | |||
15781 | _ACEOF | ||
15782 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
15783 | $EGREP "memchr" >/dev/null 2>&1; then : | ||
15784 | |||
15785 | else | ||
15786 | ac_cv_header_stdc=no | ||
15787 | fi | ||
15788 | rm -f conftest* | ||
15789 | |||
15790 | fi | ||
15791 | |||
15792 | if test $ac_cv_header_stdc = yes; then | ||
15793 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | ||
15794 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15795 | /* end confdefs.h. */ | ||
15796 | #include <stdlib.h> | ||
15797 | |||
15798 | _ACEOF | ||
15799 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
15800 | $EGREP "free" >/dev/null 2>&1; then : | ||
15801 | |||
15802 | else | ||
15803 | ac_cv_header_stdc=no | ||
15804 | fi | ||
15805 | rm -f conftest* | ||
15806 | |||
15807 | fi | ||
15808 | |||
15809 | if test $ac_cv_header_stdc = yes; then | ||
15810 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | ||
15811 | if test "$cross_compiling" = yes; then : | ||
15812 | : | ||
15813 | else | ||
15814 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15815 | /* end confdefs.h. */ | ||
15816 | #include <ctype.h> | ||
15817 | #include <stdlib.h> | ||
15818 | #if ((' ' & 0x0FF) == 0x020) | ||
15819 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | ||
15820 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | ||
15821 | #else | ||
15822 | # define ISLOWER(c) \ | ||
15823 | (('a' <= (c) && (c) <= 'i') \ | ||
15824 | || ('j' <= (c) && (c) <= 'r') \ | ||
15825 | || ('s' <= (c) && (c) <= 'z')) | ||
15826 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | ||
15827 | #endif | ||
15828 | |||
15829 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | ||
15830 | int | ||
15831 | main () | ||
15832 | { | ||
15833 | int i; | ||
15834 | for (i = 0; i < 256; i++) | ||
15835 | if (XOR (islower (i), ISLOWER (i)) | ||
15836 | || toupper (i) != TOUPPER (i)) | ||
15837 | return 2; | ||
15838 | return 0; | ||
15839 | } | ||
15840 | _ACEOF | ||
15841 | if ac_fn_c_try_run "$LINENO"; then : | ||
15842 | |||
15843 | else | ||
15844 | ac_cv_header_stdc=no | ||
15845 | fi | ||
15846 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
15847 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
15848 | fi | ||
15849 | |||
15850 | fi | ||
15851 | fi | ||
15852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | ||
15853 | $as_echo "$ac_cv_header_stdc" >&6; } | ||
15854 | if test $ac_cv_header_stdc = yes; then | ||
15855 | |||
15856 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | ||
15857 | |||
15858 | fi | ||
15859 | |||
15860 | |||
15861 | |||
15862 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5 | ||
15863 | $as_echo_n "checking for __attribute__... " >&6; } | ||
15864 | |||
15865 | if test "${ac_cv___attribute__+set}" = set; then : | ||
15866 | $as_echo_n "(cached) " >&6 | ||
15867 | else | ||
15868 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15869 | /* end confdefs.h. */ | ||
15870 | |||
15871 | #include <stdlib.h> | ||
15872 | |||
15873 | int func(int x); | ||
15874 | int foo(int x __attribute__ ((unused))) | ||
15875 | { | ||
15876 | exit(1); | ||
15877 | } | ||
15878 | |||
15879 | int | ||
15880 | main () | ||
15881 | { | ||
15882 | |||
15883 | ; | ||
15884 | return 0; | ||
15885 | } | ||
15886 | _ACEOF | ||
15887 | if ac_fn_c_try_compile "$LINENO"; then : | ||
15888 | ac_cv___attribute__="yes" | ||
15889 | else | ||
15890 | ac_cv___attribute__="no" | ||
15891 | |||
15892 | fi | ||
15893 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15894 | fi | ||
15895 | |||
15896 | |||
15897 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___attribute__" >&5 | ||
15898 | $as_echo "$ac_cv___attribute__" >&6; } | ||
15899 | |||
15900 | if test "x${ac_cv___attribute__}" = "xyes" ; then | ||
15901 | |||
15902 | $as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h | ||
15903 | |||
15904 | |||
15905 | $as_echo "#define __UNUSED__ __attribute__((unused))" >>confdefs.h | ||
15906 | |||
15907 | else | ||
15908 | |||
15909 | $as_echo "#define __UNUSED__ /**/" >>confdefs.h | ||
15910 | |||
15911 | fi | ||
15912 | |||
15913 | |||
15914 | |||
15915 | case "$host_os" in | ||
15916 | mingw32ce*) | ||
15917 | EDJE_CFLAGS="${EDJE_CFLAGS} -D_WIN32_WCE=0x0420" | ||
15918 | ;; | ||
15919 | cegcc*) | ||
15920 | EDJE_CFLAGS="${EDJE_CFLAGS} -mwin32 -D_WIN32_WCE=0x0420" | ||
15921 | ;; | ||
15922 | esac | ||
15923 | |||
15924 | |||
15925 | ### Checks for linker characteristics | ||
15926 | |||
15927 | lt_enable_auto_import="" | ||
15928 | case "$host_os" in | ||
15929 | mingw* | cegcc*) | ||
15930 | lt_enable_auto_import="-Wl,--enable-auto-import" | ||
15931 | ;; | ||
15932 | esac | ||
15933 | |||
15934 | |||
15935 | |||
15936 | ### Checks for library functions | ||
15937 | |||
15938 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5 | ||
15939 | $as_echo_n "checking for library containing strerror... " >&6; } | ||
15940 | if test "${ac_cv_search_strerror+set}" = set; then : | ||
15941 | $as_echo_n "(cached) " >&6 | ||
15942 | else | ||
15943 | ac_func_search_save_LIBS=$LIBS | ||
15944 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15945 | /* end confdefs.h. */ | ||
15946 | |||
15947 | /* Override any GCC internal prototype to avoid an error. | ||
15948 | Use char because int might match the return type of a GCC | ||
15949 | builtin and then its argument prototype would still apply. */ | ||
15950 | #ifdef __cplusplus | ||
15951 | extern "C" | ||
15952 | #endif | ||
15953 | char strerror (); | ||
15954 | int | ||
15955 | main () | ||
15956 | { | ||
15957 | return strerror (); | ||
15958 | ; | ||
15959 | return 0; | ||
15960 | } | ||
15961 | _ACEOF | ||
15962 | for ac_lib in '' cposix; do | ||
15963 | if test -z "$ac_lib"; then | ||
15964 | ac_res="none required" | ||
15965 | else | ||
15966 | ac_res=-l$ac_lib | ||
15967 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
15968 | fi | ||
15969 | if ac_fn_c_try_link "$LINENO"; then : | ||
15970 | ac_cv_search_strerror=$ac_res | ||
15971 | fi | ||
15972 | rm -f core conftest.err conftest.$ac_objext \ | ||
15973 | conftest$ac_exeext | ||
15974 | if test "${ac_cv_search_strerror+set}" = set; then : | ||
15975 | break | ||
15976 | fi | ||
15977 | done | ||
15978 | if test "${ac_cv_search_strerror+set}" = set; then : | ||
15979 | |||
15980 | else | ||
15981 | ac_cv_search_strerror=no | ||
15982 | fi | ||
15983 | rm conftest.$ac_ext | ||
15984 | LIBS=$ac_func_search_save_LIBS | ||
15985 | fi | ||
15986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5 | ||
15987 | $as_echo "$ac_cv_search_strerror" >&6; } | ||
15988 | ac_res=$ac_cv_search_strerror | ||
15989 | if test "$ac_res" != no; then : | ||
15990 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
15991 | |||
15992 | fi | ||
15993 | |||
15994 | |||
15995 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | ||
15996 | # for constant arguments. Useless! | ||
15997 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 | ||
15998 | $as_echo_n "checking for working alloca.h... " >&6; } | ||
15999 | if test "${ac_cv_working_alloca_h+set}" = set; then : | ||
16000 | $as_echo_n "(cached) " >&6 | ||
16001 | else | ||
16002 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16003 | /* end confdefs.h. */ | ||
16004 | #include <alloca.h> | ||
16005 | int | ||
16006 | main () | ||
16007 | { | ||
16008 | char *p = (char *) alloca (2 * sizeof (int)); | ||
16009 | if (p) return 0; | ||
16010 | ; | ||
16011 | return 0; | ||
16012 | } | ||
16013 | _ACEOF | ||
16014 | if ac_fn_c_try_link "$LINENO"; then : | ||
16015 | ac_cv_working_alloca_h=yes | ||
16016 | else | ||
16017 | ac_cv_working_alloca_h=no | ||
16018 | fi | ||
16019 | rm -f core conftest.err conftest.$ac_objext \ | ||
16020 | conftest$ac_exeext conftest.$ac_ext | ||
16021 | fi | ||
16022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 | ||
16023 | $as_echo "$ac_cv_working_alloca_h" >&6; } | ||
16024 | if test $ac_cv_working_alloca_h = yes; then | ||
16025 | |||
16026 | $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h | ||
16027 | |||
16028 | fi | ||
16029 | |||
16030 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 | ||
16031 | $as_echo_n "checking for alloca... " >&6; } | ||
16032 | if test "${ac_cv_func_alloca_works+set}" = set; then : | ||
16033 | $as_echo_n "(cached) " >&6 | ||
16034 | else | ||
16035 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16036 | /* end confdefs.h. */ | ||
16037 | #ifdef __GNUC__ | ||
16038 | # define alloca __builtin_alloca | ||
16039 | #else | ||
16040 | # ifdef _MSC_VER | ||
16041 | # include <malloc.h> | ||
16042 | # define alloca _alloca | ||
16043 | # else | ||
16044 | # ifdef HAVE_ALLOCA_H | ||
16045 | # include <alloca.h> | ||
16046 | # else | ||
16047 | # ifdef _AIX | ||
16048 | #pragma alloca | ||
16049 | # else | ||
16050 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | ||
16051 | char *alloca (); | ||
16052 | # endif | ||
16053 | # endif | ||
16054 | # endif | ||
16055 | # endif | ||
16056 | #endif | ||
16057 | |||
16058 | int | ||
16059 | main () | ||
16060 | { | ||
16061 | char *p = (char *) alloca (1); | ||
16062 | if (p) return 0; | ||
16063 | ; | ||
16064 | return 0; | ||
16065 | } | ||
16066 | _ACEOF | ||
16067 | if ac_fn_c_try_link "$LINENO"; then : | ||
16068 | ac_cv_func_alloca_works=yes | ||
16069 | else | ||
16070 | ac_cv_func_alloca_works=no | ||
16071 | fi | ||
16072 | rm -f core conftest.err conftest.$ac_objext \ | ||
16073 | conftest$ac_exeext conftest.$ac_ext | ||
16074 | fi | ||
16075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 | ||
16076 | $as_echo "$ac_cv_func_alloca_works" >&6; } | ||
16077 | |||
16078 | if test $ac_cv_func_alloca_works = yes; then | ||
16079 | |||
16080 | $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h | ||
16081 | |||
16082 | else | ||
16083 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | ||
16084 | # that cause trouble. Some versions do not even contain alloca or | ||
16085 | # contain a buggy version. If you still want to use their alloca, | ||
16086 | # use ar to extract alloca.o from them instead of compiling alloca.c. | ||
16087 | |||
16088 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext | ||
16089 | |||
16090 | $as_echo "#define C_ALLOCA 1" >>confdefs.h | ||
16091 | |||
16092 | |||
16093 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 | ||
16094 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } | ||
16095 | if test "${ac_cv_os_cray+set}" = set; then : | ||
16096 | $as_echo_n "(cached) " >&6 | ||
16097 | else | ||
16098 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16099 | /* end confdefs.h. */ | ||
16100 | #if defined CRAY && ! defined CRAY2 | ||
16101 | webecray | ||
16102 | #else | ||
16103 | wenotbecray | ||
16104 | #endif | ||
16105 | |||
16106 | _ACEOF | ||
16107 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
16108 | $EGREP "webecray" >/dev/null 2>&1; then : | ||
16109 | ac_cv_os_cray=yes | ||
16110 | else | ||
16111 | ac_cv_os_cray=no | ||
16112 | fi | ||
16113 | rm -f conftest* | ||
16114 | |||
16115 | fi | ||
16116 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 | ||
16117 | $as_echo "$ac_cv_os_cray" >&6; } | ||
16118 | if test $ac_cv_os_cray = yes; then | ||
16119 | for ac_func in _getb67 GETB67 getb67; do | ||
16120 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
16121 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
16122 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
16123 | |||
16124 | cat >>confdefs.h <<_ACEOF | ||
16125 | #define CRAY_STACKSEG_END $ac_func | ||
16126 | _ACEOF | ||
16127 | |||
16128 | break | ||
16129 | fi | ||
16130 | |||
16131 | done | ||
16132 | fi | ||
16133 | |||
16134 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 | ||
16135 | $as_echo_n "checking stack direction for C alloca... " >&6; } | ||
16136 | if test "${ac_cv_c_stack_direction+set}" = set; then : | ||
16137 | $as_echo_n "(cached) " >&6 | ||
16138 | else | ||
16139 | if test "$cross_compiling" = yes; then : | ||
16140 | ac_cv_c_stack_direction=0 | ||
16141 | else | ||
16142 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16143 | /* end confdefs.h. */ | ||
16144 | $ac_includes_default | ||
16145 | int | ||
16146 | find_stack_direction () | ||
16147 | { | ||
16148 | static char *addr = 0; | ||
16149 | auto char dummy; | ||
16150 | if (addr == 0) | ||
16151 | { | ||
16152 | addr = &dummy; | ||
16153 | return find_stack_direction (); | ||
16154 | } | ||
16155 | else | ||
16156 | return (&dummy > addr) ? 1 : -1; | ||
16157 | } | ||
16158 | |||
16159 | int | ||
16160 | main () | ||
16161 | { | ||
16162 | return find_stack_direction () < 0; | ||
16163 | } | ||
16164 | _ACEOF | ||
16165 | if ac_fn_c_try_run "$LINENO"; then : | ||
16166 | ac_cv_c_stack_direction=1 | ||
16167 | else | ||
16168 | ac_cv_c_stack_direction=-1 | ||
16169 | fi | ||
16170 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
16171 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
16172 | fi | ||
16173 | |||
16174 | fi | ||
16175 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 | ||
16176 | $as_echo "$ac_cv_c_stack_direction" >&6; } | ||
16177 | cat >>confdefs.h <<_ACEOF | ||
16178 | #define STACK_DIRECTION $ac_cv_c_stack_direction | ||
16179 | _ACEOF | ||
16180 | |||
16181 | |||
16182 | fi | ||
16183 | |||
16184 | |||
16185 | case "$host_os" in | ||
16186 | mingw* | cegcc*) | ||
16187 | |||
16188 | $as_echo "#define HAVE_REALPATH 1" >>confdefs.h | ||
16189 | |||
16190 | ;; | ||
16191 | *) | ||
16192 | for ac_func in realpath | ||
16193 | do : | ||
16194 | ac_fn_c_check_func "$LINENO" "realpath" "ac_cv_func_realpath" | ||
16195 | if test "x$ac_cv_func_realpath" = x""yes; then : | ||
16196 | cat >>confdefs.h <<_ACEOF | ||
16197 | #define HAVE_REALPATH 1 | ||
16198 | _ACEOF | ||
16199 | |||
16200 | fi | ||
16201 | done | ||
16202 | |||
16203 | ;; | ||
16204 | esac | ||
16205 | |||
16206 | ### Unit tests, coverage and benchmarking | ||
16207 | |||
16208 | |||
16209 | |||
16210 | |||
16211 | # Check whether --enable-tests was given. | ||
16212 | if test "${enable_tests+set}" = set; then : | ||
16213 | enableval=$enable_tests; | ||
16214 | if test "x${enableval}" = "xyes" ; then | ||
16215 | _efl_enable_tests="yes" | ||
16216 | else | ||
16217 | _efl_enable_tests="no" | ||
16218 | fi | ||
16219 | |||
16220 | else | ||
16221 | _efl_enable_tests="no" | ||
16222 | fi | ||
16223 | |||
16224 | |||
16225 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tests are built" >&5 | ||
16226 | $as_echo_n "checking whether tests are built... " >&6; } | ||
16227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_efl_enable_tests}" >&5 | ||
16228 | $as_echo "${_efl_enable_tests}" >&6; } | ||
16229 | |||
16230 | |||
16231 | |||
16232 | if test "x${_efl_enable_tests}" = "xyes" ; then | ||
16233 | |||
16234 | pkg_failed=no | ||
16235 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHECK" >&5 | ||
16236 | $as_echo_n "checking for CHECK... " >&6; } | ||
16237 | |||
16238 | if test -n "$CHECK_CFLAGS"; then | ||
16239 | pkg_cv_CHECK_CFLAGS="$CHECK_CFLAGS" | ||
16240 | elif test -n "$PKG_CONFIG"; then | ||
16241 | if test -n "$PKG_CONFIG" && \ | ||
16242 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.5\""; } >&5 | ||
16243 | ($PKG_CONFIG --exists --print-errors "check >= 0.9.5") 2>&5 | ||
16244 | ac_status=$? | ||
16245 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
16246 | test $ac_status = 0; }; then | ||
16247 | pkg_cv_CHECK_CFLAGS=`$PKG_CONFIG --cflags "check >= 0.9.5" 2>/dev/null` | ||
16248 | else | ||
16249 | pkg_failed=yes | ||
16250 | fi | ||
16251 | else | ||
16252 | pkg_failed=untried | ||
16253 | fi | ||
16254 | if test -n "$CHECK_LIBS"; then | ||
16255 | pkg_cv_CHECK_LIBS="$CHECK_LIBS" | ||
16256 | elif test -n "$PKG_CONFIG"; then | ||
16257 | if test -n "$PKG_CONFIG" && \ | ||
16258 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.5\""; } >&5 | ||
16259 | ($PKG_CONFIG --exists --print-errors "check >= 0.9.5") 2>&5 | ||
16260 | ac_status=$? | ||
16261 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
16262 | test $ac_status = 0; }; then | ||
16263 | pkg_cv_CHECK_LIBS=`$PKG_CONFIG --libs "check >= 0.9.5" 2>/dev/null` | ||
16264 | else | ||
16265 | pkg_failed=yes | ||
16266 | fi | ||
16267 | else | ||
16268 | pkg_failed=untried | ||
16269 | fi | ||
16270 | |||
16271 | |||
16272 | |||
16273 | if test $pkg_failed = yes; then | ||
16274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
16275 | $as_echo "no" >&6; } | ||
16276 | |||
16277 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
16278 | _pkg_short_errors_supported=yes | ||
16279 | else | ||
16280 | _pkg_short_errors_supported=no | ||
16281 | fi | ||
16282 | if test $_pkg_short_errors_supported = yes; then | ||
16283 | CHECK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "check >= 0.9.5" 2>&1` | ||
16284 | else | ||
16285 | CHECK_PKG_ERRORS=`$PKG_CONFIG --print-errors "check >= 0.9.5" 2>&1` | ||
16286 | fi | ||
16287 | # Put the nasty error message in config.log where it belongs | ||
16288 | echo "$CHECK_PKG_ERRORS" >&5 | ||
16289 | |||
16290 | _efl_enable_tests="no" | ||
16291 | elif test $pkg_failed = untried; then | ||
16292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
16293 | $as_echo "no" >&6; } | ||
16294 | _efl_enable_tests="no" | ||
16295 | else | ||
16296 | CHECK_CFLAGS=$pkg_cv_CHECK_CFLAGS | ||
16297 | CHECK_LIBS=$pkg_cv_CHECK_LIBS | ||
16298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
16299 | $as_echo "yes" >&6; } | ||
16300 | dummy="yes" | ||
16301 | fi | ||
16302 | fi | ||
16303 | |||
16304 | if test "x${_efl_enable_tests}" = "xyes"; then | ||
16305 | EFL_ENABLE_TESTS_TRUE= | ||
16306 | EFL_ENABLE_TESTS_FALSE='#' | ||
16307 | else | ||
16308 | EFL_ENABLE_TESTS_TRUE='#' | ||
16309 | EFL_ENABLE_TESTS_FALSE= | ||
16310 | fi | ||
16311 | |||
16312 | |||
16313 | if test "x$_efl_enable_tests" = "xyes"; then : | ||
16314 | enable_tests="yes" | ||
16315 | else | ||
16316 | enable_tests="no" | ||
16317 | fi | ||
16318 | |||
16319 | |||
16320 | |||
16321 | |||
16322 | |||
16323 | # Check whether --enable-coverage was given. | ||
16324 | if test "${enable_coverage+set}" = set; then : | ||
16325 | enableval=$enable_coverage; | ||
16326 | if test "x${enableval}" = "xyes" ; then | ||
16327 | _efl_enable_coverage="yes" | ||
16328 | else | ||
16329 | _efl_enable_coverage="no" | ||
16330 | fi | ||
16331 | |||
16332 | else | ||
16333 | _efl_enable_coverage="no" | ||
16334 | fi | ||
16335 | |||
16336 | |||
16337 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use profiling instrumentation" >&5 | ||
16338 | $as_echo_n "checking whether to use profiling instrumentation... " >&6; } | ||
16339 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_efl_enable_coverage" >&5 | ||
16340 | $as_echo "$_efl_enable_coverage" >&6; } | ||
16341 | |||
16342 | |||
16343 | if test "x$_efl_enable_coverage" = "xyes" && test ! "x${enable_tests}" = "xyes" ; then | ||
16344 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Coverage report requested but tests not being built, disable profiling instrumentation." >&5 | ||
16345 | $as_echo "$as_me: WARNING: Coverage report requested but tests not being built, disable profiling instrumentation." >&2;} | ||
16346 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Run configure with --enable-tests" >&5 | ||
16347 | $as_echo "$as_me: WARNING: Run configure with --enable-tests" >&2;} | ||
16348 | _efl_enable_coverage="no" | ||
16349 | fi | ||
16350 | |||
16351 | if test "x$_efl_enable_coverage" = "xyes" ; then | ||
16352 | # Extract the first word of "lcov", so it can be a program name with args. | ||
16353 | set dummy lcov; ac_word=$2 | ||
16354 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
16355 | $as_echo_n "checking for $ac_word... " >&6; } | ||
16356 | if test "${ac_cv_prog_have_lcov+set}" = set; then : | ||
16357 | $as_echo_n "(cached) " >&6 | ||
16358 | else | ||
16359 | if test -n "$have_lcov"; then | ||
16360 | ac_cv_prog_have_lcov="$have_lcov" # Let the user override the test. | ||
16361 | else | ||
16362 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
16363 | for as_dir in $PATH | ||
16364 | do | ||
16365 | IFS=$as_save_IFS | ||
16366 | test -z "$as_dir" && as_dir=. | ||
16367 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
16368 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
16369 | ac_cv_prog_have_lcov="yes" | ||
16370 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
16371 | break 2 | ||
16372 | fi | ||
16373 | done | ||
16374 | done | ||
16375 | IFS=$as_save_IFS | ||
16376 | |||
16377 | test -z "$ac_cv_prog_have_lcov" && ac_cv_prog_have_lcov="no" | ||
16378 | fi | ||
16379 | fi | ||
16380 | have_lcov=$ac_cv_prog_have_lcov | ||
16381 | if test -n "$have_lcov"; then | ||
16382 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_lcov" >&5 | ||
16383 | $as_echo "$have_lcov" >&6; } | ||
16384 | else | ||
16385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
16386 | $as_echo "no" >&6; } | ||
16387 | fi | ||
16388 | |||
16389 | |||
16390 | if test "x$have_lcov" = "xyes" ; then | ||
16391 | EFL_COVERAGE_CFLAGS="-fprofile-arcs -ftest-coverage" | ||
16392 | EFL_COVERAGE_LIBS="-lgcov" | ||
16393 | # remove any optimisation flag and force debug symbols | ||
16394 | EFL_DEBUG_CFLAGS="-g -O0 -DDEBUG" | ||
16395 | else | ||
16396 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: lcov is not found, disable profiling instrumentation" >&5 | ||
16397 | $as_echo "$as_me: WARNING: lcov is not found, disable profiling instrumentation" >&2;} | ||
16398 | _efl_enable_coverage="no" | ||
16399 | fi | ||
16400 | fi | ||
16401 | |||
16402 | |||
16403 | |||
16404 | |||
16405 | if test "x${_efl_enable_coverage}" = "xyes"; then | ||
16406 | EFL_ENABLE_COVERAGE_TRUE= | ||
16407 | EFL_ENABLE_COVERAGE_FALSE='#' | ||
16408 | else | ||
16409 | EFL_ENABLE_COVERAGE_TRUE='#' | ||
16410 | EFL_ENABLE_COVERAGE_FALSE= | ||
16411 | fi | ||
16412 | |||
16413 | |||
16414 | if test "x$_efl_enable_coverage" = "xyes"; then : | ||
16415 | enable_coverage="yes" | ||
16416 | else | ||
16417 | enable_coverage="no" | ||
16418 | fi | ||
16419 | |||
16420 | EDJE_CFLAGS="${EDJE_CFLAGS} ${EFL_COVERAGE_CFLAGS}" | ||
16421 | EDJE_LIBS="${EDJE_LIBS} ${EFL_COVERAGE_LIBS}" | ||
16422 | if test "x$enable_coverage" = "xyes" ; then | ||
16423 | EDJE_CFLAGS="${EDJE_CFLAGS} ${EFL_DEBUG_CFLAGS}" | ||
16424 | fi | ||
16425 | |||
16426 | ## Examples | ||
16427 | |||
16428 | install_examples="yes" | ||
16429 | # Check whether --enable-install-examples was given. | ||
16430 | if test "${enable_install_examples+set}" = set; then : | ||
16431 | enableval=$enable_install_examples; | ||
16432 | if test "x${enableval}" = "xyes" ; then | ||
16433 | install_examples="yes" | ||
16434 | else | ||
16435 | install_examples="no" | ||
16436 | fi | ||
16437 | |||
16438 | else | ||
16439 | install_examples="yes" | ||
16440 | fi | ||
16441 | |||
16442 | if test "x${install_examples}" = "xyes"; then | ||
16443 | INSTALL_EXAMPLES_TRUE= | ||
16444 | INSTALL_EXAMPLES_FALSE='#' | ||
16445 | else | ||
16446 | INSTALL_EXAMPLES_TRUE='#' | ||
16447 | INSTALL_EXAMPLES_FALSE= | ||
16448 | fi | ||
16449 | |||
16450 | |||
16451 | build_examples="no" | ||
16452 | # Check whether --enable-build-examples was given. | ||
16453 | if test "${enable_build_examples+set}" = set; then : | ||
16454 | enableval=$enable_build_examples; | ||
16455 | if test "x${enableval}" = "xyes" ; then | ||
16456 | build_examples="yes" | ||
16457 | edje_cc=$($PKG_CONFIG --variable=prefix edje)/bin/edje_cc | ||
16458 | # put in here the dependencies for Edje' examples. They are | ||
16459 | # meant to be 'real world' usage examples, thus one will be | ||
16460 | # using higher level libraries on these programs | ||
16461 | |||
16462 | else | ||
16463 | build_examples="no" | ||
16464 | fi | ||
16465 | |||
16466 | else | ||
16467 | build_examples="no" | ||
16468 | fi | ||
16469 | |||
16470 | if test "x${build_examples}" = "xyes"; then | ||
16471 | BUILD_EXAMPLES_TRUE= | ||
16472 | BUILD_EXAMPLES_FALSE='#' | ||
16473 | else | ||
16474 | BUILD_EXAMPLES_TRUE='#' | ||
16475 | BUILD_EXAMPLES_FALSE= | ||
16476 | fi | ||
16477 | |||
16478 | |||
16479 | |||
16480 | |||
16481 | ac_config_files="$ac_config_files edje.pc edje.spec Makefile data/Makefile data/include/Makefile doc/Makefile doc/Doxyfile src/Makefile src/lib/Makefile src/bin/Makefile src/bin/epp/Makefile src/modules/Makefile src/modules/alsa_snd_player/Makefile src/modules/eet_snd_reader/Makefile src/modules/multisense_factory/Makefile src/tests/Makefile utils/Makefile src/examples/Makefile" | ||
16482 | |||
16483 | cat >confcache <<\_ACEOF | ||
16484 | # This file is a shell script that caches the results of configure | ||
16485 | # tests run on this system so they can be shared between configure | ||
16486 | # scripts and configure runs, see configure's option --config-cache. | ||
16487 | # It is not useful on other systems. If it contains results you don't | ||
16488 | # want to keep, you may remove or edit it. | ||
16489 | # | ||
16490 | # config.status only pays attention to the cache file if you give it | ||
16491 | # the --recheck option to rerun configure. | ||
16492 | # | ||
16493 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | ||
16494 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | ||
16495 | # following values. | ||
16496 | |||
16497 | _ACEOF | ||
16498 | |||
16499 | # The following way of writing the cache mishandles newlines in values, | ||
16500 | # but we know of no workaround that is simple, portable, and efficient. | ||
16501 | # So, we kill variables containing newlines. | ||
16502 | # Ultrix sh set writes to stderr and can't be redirected directly, | ||
16503 | # and sets the high bit in the cache file unless we assign to the vars. | ||
16504 | ( | ||
16505 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | ||
16506 | eval ac_val=\$$ac_var | ||
16507 | case $ac_val in #( | ||
16508 | *${as_nl}*) | ||
16509 | case $ac_var in #( | ||
16510 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | ||
16511 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | ||
16512 | esac | ||
16513 | case $ac_var in #( | ||
16514 | _ | IFS | as_nl) ;; #( | ||
16515 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | ||
16516 | *) { eval $ac_var=; unset $ac_var;} ;; | ||
16517 | esac ;; | ||
16518 | esac | ||
16519 | done | ||
16520 | |||
16521 | (set) 2>&1 | | ||
16522 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | ||
16523 | *${as_nl}ac_space=\ *) | ||
16524 | # `set' does not quote correctly, so add quotes: double-quote | ||
16525 | # substitution turns \\\\ into \\, and sed turns \\ into \. | ||
16526 | sed -n \ | ||
16527 | "s/'/'\\\\''/g; | ||
16528 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | ||
16529 | ;; #( | ||
16530 | *) | ||
16531 | # `set' quotes correctly as required by POSIX, so do not add quotes. | ||
16532 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | ||
16533 | ;; | ||
16534 | esac | | ||
16535 | sort | ||
16536 | ) | | ||
16537 | sed ' | ||
16538 | /^ac_cv_env_/b end | ||
16539 | t clear | ||
16540 | :clear | ||
16541 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | ||
16542 | t end | ||
16543 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | ||
16544 | :end' >>confcache | ||
16545 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | ||
16546 | if test -w "$cache_file"; then | ||
16547 | test "x$cache_file" != "x/dev/null" && | ||
16548 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | ||
16549 | $as_echo "$as_me: updating cache $cache_file" >&6;} | ||
16550 | cat confcache >$cache_file | ||
16551 | else | ||
16552 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | ||
16553 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | ||
16554 | fi | ||
16555 | fi | ||
16556 | rm -f confcache | ||
16557 | |||
16558 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | ||
16559 | # Let make expand exec_prefix. | ||
16560 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | ||
16561 | |||
16562 | DEFS=-DHAVE_CONFIG_H | ||
16563 | |||
16564 | ac_libobjs= | ||
16565 | ac_ltlibobjs= | ||
16566 | U= | ||
16567 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | ||
16568 | # 1. Remove the extension, and $U if already installed. | ||
16569 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | ||
16570 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | ||
16571 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | ||
16572 | # will be set to the directory where LIBOBJS objects are built. | ||
16573 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | ||
16574 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | ||
16575 | done | ||
16576 | LIBOBJS=$ac_libobjs | ||
16577 | |||
16578 | LTLIBOBJS=$ac_ltlibobjs | ||
16579 | |||
16580 | |||
16581 | if test -n "$EXEEXT"; then | ||
16582 | am__EXEEXT_TRUE= | ||
16583 | am__EXEEXT_FALSE='#' | ||
16584 | else | ||
16585 | am__EXEEXT_TRUE='#' | ||
16586 | am__EXEEXT_FALSE= | ||
16587 | fi | ||
16588 | |||
16589 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | ||
16590 | as_fn_error $? "conditional \"AMDEP\" was never defined. | ||
16591 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
16592 | fi | ||
16593 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | ||
16594 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. | ||
16595 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
16596 | fi | ||
16597 | if test -z "${EDJE_AMALGAMATION_TRUE}" && test -z "${EDJE_AMALGAMATION_FALSE}"; then | ||
16598 | as_fn_error $? "conditional \"EDJE_AMALGAMATION\" was never defined. | ||
16599 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
16600 | fi | ||
16601 | if test -z "${BUILD_EDJE_CC_TRUE}" && test -z "${BUILD_EDJE_CC_FALSE}"; then | ||
16602 | as_fn_error $? "conditional \"BUILD_EDJE_CC\" was never defined. | ||
16603 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
16604 | fi | ||
16605 | if test -z "${BUILD_EDJE_DECC_TRUE}" && test -z "${BUILD_EDJE_DECC_FALSE}"; then | ||
16606 | as_fn_error $? "conditional \"BUILD_EDJE_DECC\" was never defined. | ||
16607 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
16608 | fi | ||
16609 | if test -z "${BUILD_EDJE_RECC_TRUE}" && test -z "${BUILD_EDJE_RECC_FALSE}"; then | ||
16610 | as_fn_error $? "conditional \"BUILD_EDJE_RECC\" was never defined. | ||
16611 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
16612 | fi | ||
16613 | if test -z "${BUILD_EDJE_PLAYER_TRUE}" && test -z "${BUILD_EDJE_PLAYER_FALSE}"; then | ||
16614 | as_fn_error $? "conditional \"BUILD_EDJE_PLAYER\" was never defined. | ||
16615 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
16616 | fi | ||
16617 | if test -z "${BUILD_EDJE_INSPECTOR_TRUE}" && test -z "${BUILD_EDJE_INSPECTOR_FALSE}"; then | ||
16618 | as_fn_error $? "conditional \"BUILD_EDJE_INSPECTOR\" was never defined. | ||
16619 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
16620 | fi | ||
16621 | if test -z "${BUILD_EDJE_EXTERNAL_INSPECTOR_TRUE}" && test -z "${BUILD_EDJE_EXTERNAL_INSPECTOR_FALSE}"; then | ||
16622 | as_fn_error $? "conditional \"BUILD_EDJE_EXTERNAL_INSPECTOR\" was never defined. | ||
16623 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
16624 | fi | ||
16625 | if test -z "${EDJE_PROGRAM_CACHE_TRUE}" && test -z "${EDJE_PROGRAM_CACHE_FALSE}"; then | ||
16626 | as_fn_error $? "conditional \"EDJE_PROGRAM_CACHE\" was never defined. | ||
16627 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
16628 | fi | ||
16629 | if test -z "${EDJE_CALC_CACHE_TRUE}" && test -z "${EDJE_CALC_CACHE_FALSE}"; then | ||
16630 | as_fn_error $? "conditional \"EDJE_CALC_CACHE\" was never defined. | ||
16631 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
16632 | fi | ||
16633 | if test -z "${BUILD_EDJE_FP_TRUE}" && test -z "${BUILD_EDJE_FP_FALSE}"; then | ||
16634 | as_fn_error $? "conditional \"BUILD_EDJE_FP\" was never defined. | ||
16635 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
16636 | fi | ||
16637 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | ||
16638 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. | ||
16639 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
16640 | fi | ||
16641 | if test -z "${EFL_BUILD_DOC_TRUE}" && test -z "${EFL_BUILD_DOC_FALSE}"; then | ||
16642 | as_fn_error $? "conditional \"EFL_BUILD_DOC\" was never defined. | ||
16643 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
16644 | fi | ||
16645 | if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then | ||
16646 | as_fn_error $? "conditional \"HAVE_PYTHON\" was never defined. | ||
16647 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
16648 | fi | ||
16649 | if test -z "${ENABLE_MULTISENSE_TRUE}" && test -z "${ENABLE_MULTISENSE_FALSE}"; then | ||
16650 | as_fn_error $? "conditional \"ENABLE_MULTISENSE\" was never defined. | ||
16651 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
16652 | fi | ||
16653 | if test -z "${HAVE_LIBSNDFILE_TRUE}" && test -z "${HAVE_LIBSNDFILE_FALSE}"; then | ||
16654 | as_fn_error $? "conditional \"HAVE_LIBSNDFILE\" was never defined. | ||
16655 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
16656 | fi | ||
16657 | if test -z "${HAVE_LIBREMIX_TRUE}" && test -z "${HAVE_LIBREMIX_FALSE}"; then | ||
16658 | as_fn_error $? "conditional \"HAVE_LIBREMIX\" was never defined. | ||
16659 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
16660 | fi | ||
16661 | if test -z "${HAVE_LIBALSA_TRUE}" && test -z "${HAVE_LIBALSA_FALSE}"; then | ||
16662 | as_fn_error $? "conditional \"HAVE_LIBALSA\" was never defined. | ||
16663 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
16664 | fi | ||
16665 | if test -z "${BUILD_EPP_TRUE}" && test -z "${BUILD_EPP_FALSE}"; then | ||
16666 | as_fn_error $? "conditional \"BUILD_EPP\" was never defined. | ||
16667 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
16668 | fi | ||
16669 | if test -z "${EFL_ENABLE_TESTS_TRUE}" && test -z "${EFL_ENABLE_TESTS_FALSE}"; then | ||
16670 | as_fn_error $? "conditional \"EFL_ENABLE_TESTS\" was never defined. | ||
16671 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
16672 | fi | ||
16673 | if test -z "${EFL_ENABLE_COVERAGE_TRUE}" && test -z "${EFL_ENABLE_COVERAGE_FALSE}"; then | ||
16674 | as_fn_error $? "conditional \"EFL_ENABLE_COVERAGE\" was never defined. | ||
16675 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
16676 | fi | ||
16677 | if test -z "${INSTALL_EXAMPLES_TRUE}" && test -z "${INSTALL_EXAMPLES_FALSE}"; then | ||
16678 | as_fn_error $? "conditional \"INSTALL_EXAMPLES\" was never defined. | ||
16679 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
16680 | fi | ||
16681 | if test -z "${BUILD_EXAMPLES_TRUE}" && test -z "${BUILD_EXAMPLES_FALSE}"; then | ||
16682 | as_fn_error $? "conditional \"BUILD_EXAMPLES\" was never defined. | ||
16683 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
16684 | fi | ||
16685 | |||
16686 | : ${CONFIG_STATUS=./config.status} | ||
16687 | ac_write_fail=0 | ||
16688 | ac_clean_files_save=$ac_clean_files | ||
16689 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | ||
16690 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | ||
16691 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | ||
16692 | as_write_fail=0 | ||
16693 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | ||
16694 | #! $SHELL | ||
16695 | # Generated by $as_me. | ||
16696 | # Run this file to recreate the current configuration. | ||
16697 | # Compiler output produced by configure, useful for debugging | ||
16698 | # configure, is in config.log if it exists. | ||
16699 | |||
16700 | debug=false | ||
16701 | ac_cs_recheck=false | ||
16702 | ac_cs_silent=false | ||
16703 | |||
16704 | SHELL=\${CONFIG_SHELL-$SHELL} | ||
16705 | export SHELL | ||
16706 | _ASEOF | ||
16707 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | ||
16708 | ## -------------------- ## | ||
16709 | ## M4sh Initialization. ## | ||
16710 | ## -------------------- ## | ||
16711 | |||
16712 | # Be more Bourne compatible | ||
16713 | DUALCASE=1; export DUALCASE # for MKS sh | ||
16714 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | ||
16715 | emulate sh | ||
16716 | NULLCMD=: | ||
16717 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | ||
16718 | # is contrary to our usage. Disable this feature. | ||
16719 | alias -g '${1+"$@"}'='"$@"' | ||
16720 | setopt NO_GLOB_SUBST | ||
16721 | else | ||
16722 | case `(set -o) 2>/dev/null` in #( | ||
16723 | *posix*) : | ||
16724 | set -o posix ;; #( | ||
16725 | *) : | ||
16726 | ;; | ||
16727 | esac | ||
16728 | fi | ||
16729 | |||
16730 | |||
16731 | as_nl=' | ||
16732 | ' | ||
16733 | export as_nl | ||
16734 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | ||
16735 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | ||
16736 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | ||
16737 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | ||
16738 | # Prefer a ksh shell builtin over an external printf program on Solaris, | ||
16739 | # but without wasting forks for bash or zsh. | ||
16740 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | ||
16741 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | ||
16742 | as_echo='print -r --' | ||
16743 | as_echo_n='print -rn --' | ||
16744 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | ||
16745 | as_echo='printf %s\n' | ||
16746 | as_echo_n='printf %s' | ||
16747 | else | ||
16748 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | ||
16749 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | ||
16750 | as_echo_n='/usr/ucb/echo -n' | ||
16751 | else | ||
16752 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | ||
16753 | as_echo_n_body='eval | ||
16754 | arg=$1; | ||
16755 | case $arg in #( | ||
16756 | *"$as_nl"*) | ||
16757 | expr "X$arg" : "X\\(.*\\)$as_nl"; | ||
16758 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | ||
16759 | esac; | ||
16760 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | ||
16761 | ' | ||
16762 | export as_echo_n_body | ||
16763 | as_echo_n='sh -c $as_echo_n_body as_echo' | ||
16764 | fi | ||
16765 | export as_echo_body | ||
16766 | as_echo='sh -c $as_echo_body as_echo' | ||
16767 | fi | ||
16768 | |||
16769 | # The user is always right. | ||
16770 | if test "${PATH_SEPARATOR+set}" != set; then | ||
16771 | PATH_SEPARATOR=: | ||
16772 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | ||
16773 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | ||
16774 | PATH_SEPARATOR=';' | ||
16775 | } | ||
16776 | fi | ||
16777 | |||
16778 | |||
16779 | # IFS | ||
16780 | # We need space, tab and new line, in precisely that order. Quoting is | ||
16781 | # there to prevent editors from complaining about space-tab. | ||
16782 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | ||
16783 | # splitting by setting IFS to empty value.) | ||
16784 | IFS=" "" $as_nl" | ||
16785 | |||
16786 | # Find who we are. Look in the path if we contain no directory separator. | ||
16787 | case $0 in #(( | ||
16788 | *[\\/]* ) as_myself=$0 ;; | ||
16789 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
16790 | for as_dir in $PATH | ||
16791 | do | ||
16792 | IFS=$as_save_IFS | ||
16793 | test -z "$as_dir" && as_dir=. | ||
16794 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | ||
16795 | done | ||
16796 | IFS=$as_save_IFS | ||
16797 | |||
16798 | ;; | ||
16799 | esac | ||
16800 | # We did not find ourselves, most probably we were run as `sh COMMAND' | ||
16801 | # in which case we are not to be found in the path. | ||
16802 | if test "x$as_myself" = x; then | ||
16803 | as_myself=$0 | ||
16804 | fi | ||
16805 | if test ! -f "$as_myself"; then | ||
16806 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | ||
16807 | exit 1 | ||
16808 | fi | ||
16809 | |||
16810 | # Unset variables that we do not need and which cause bugs (e.g. in | ||
16811 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | ||
16812 | # suppresses any "Segmentation fault" message there. '((' could | ||
16813 | # trigger a bug in pdksh 5.2.14. | ||
16814 | for as_var in BASH_ENV ENV MAIL MAILPATH | ||
16815 | do eval test x\${$as_var+set} = xset \ | ||
16816 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | ||
16817 | done | ||
16818 | PS1='$ ' | ||
16819 | PS2='> ' | ||
16820 | PS4='+ ' | ||
16821 | |||
16822 | # NLS nuisances. | ||
16823 | LC_ALL=C | ||
16824 | export LC_ALL | ||
16825 | LANGUAGE=C | ||
16826 | export LANGUAGE | ||
16827 | |||
16828 | # CDPATH. | ||
16829 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | ||
16830 | |||
16831 | |||
16832 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | ||
16833 | # ---------------------------------------- | ||
16834 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | ||
16835 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | ||
16836 | # script with STATUS, using 1 if that was 0. | ||
16837 | as_fn_error () | ||
16838 | { | ||
16839 | as_status=$1; test $as_status -eq 0 && as_status=1 | ||
16840 | if test "$4"; then | ||
16841 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
16842 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | ||
16843 | fi | ||
16844 | $as_echo "$as_me: error: $2" >&2 | ||
16845 | as_fn_exit $as_status | ||
16846 | } # as_fn_error | ||
16847 | |||
16848 | |||
16849 | # as_fn_set_status STATUS | ||
16850 | # ----------------------- | ||
16851 | # Set $? to STATUS, without forking. | ||
16852 | as_fn_set_status () | ||
16853 | { | ||
16854 | return $1 | ||
16855 | } # as_fn_set_status | ||
16856 | |||
16857 | # as_fn_exit STATUS | ||
16858 | # ----------------- | ||
16859 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | ||
16860 | as_fn_exit () | ||
16861 | { | ||
16862 | set +e | ||
16863 | as_fn_set_status $1 | ||
16864 | exit $1 | ||
16865 | } # as_fn_exit | ||
16866 | |||
16867 | # as_fn_unset VAR | ||
16868 | # --------------- | ||
16869 | # Portably unset VAR. | ||
16870 | as_fn_unset () | ||
16871 | { | ||
16872 | { eval $1=; unset $1;} | ||
16873 | } | ||
16874 | as_unset=as_fn_unset | ||
16875 | # as_fn_append VAR VALUE | ||
16876 | # ---------------------- | ||
16877 | # Append the text in VALUE to the end of the definition contained in VAR. Take | ||
16878 | # advantage of any shell optimizations that allow amortized linear growth over | ||
16879 | # repeated appends, instead of the typical quadratic growth present in naive | ||
16880 | # implementations. | ||
16881 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | ||
16882 | eval 'as_fn_append () | ||
16883 | { | ||
16884 | eval $1+=\$2 | ||
16885 | }' | ||
16886 | else | ||
16887 | as_fn_append () | ||
16888 | { | ||
16889 | eval $1=\$$1\$2 | ||
16890 | } | ||
16891 | fi # as_fn_append | ||
16892 | |||
16893 | # as_fn_arith ARG... | ||
16894 | # ------------------ | ||
16895 | # Perform arithmetic evaluation on the ARGs, and store the result in the | ||
16896 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | ||
16897 | # must be portable across $(()) and expr. | ||
16898 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | ||
16899 | eval 'as_fn_arith () | ||
16900 | { | ||
16901 | as_val=$(( $* )) | ||
16902 | }' | ||
16903 | else | ||
16904 | as_fn_arith () | ||
16905 | { | ||
16906 | as_val=`expr "$@" || test $? -eq 1` | ||
16907 | } | ||
16908 | fi # as_fn_arith | ||
16909 | |||
16910 | |||
16911 | if expr a : '\(a\)' >/dev/null 2>&1 && | ||
16912 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | ||
16913 | as_expr=expr | ||
16914 | else | ||
16915 | as_expr=false | ||
16916 | fi | ||
16917 | |||
16918 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | ||
16919 | as_basename=basename | ||
16920 | else | ||
16921 | as_basename=false | ||
16922 | fi | ||
16923 | |||
16924 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | ||
16925 | as_dirname=dirname | ||
16926 | else | ||
16927 | as_dirname=false | ||
16928 | fi | ||
16929 | |||
16930 | as_me=`$as_basename -- "$0" || | ||
16931 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | ||
16932 | X"$0" : 'X\(//\)$' \| \ | ||
16933 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | ||
16934 | $as_echo X/"$0" | | ||
16935 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | ||
16936 | s//\1/ | ||
16937 | q | ||
16938 | } | ||
16939 | /^X\/\(\/\/\)$/{ | ||
16940 | s//\1/ | ||
16941 | q | ||
16942 | } | ||
16943 | /^X\/\(\/\).*/{ | ||
16944 | s//\1/ | ||
16945 | q | ||
16946 | } | ||
16947 | s/.*/./; q'` | ||
16948 | |||
16949 | # Avoid depending upon Character Ranges. | ||
16950 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | ||
16951 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | ||
16952 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | ||
16953 | as_cr_digits='0123456789' | ||
16954 | as_cr_alnum=$as_cr_Letters$as_cr_digits | ||
16955 | |||
16956 | ECHO_C= ECHO_N= ECHO_T= | ||
16957 | case `echo -n x` in #((((( | ||
16958 | -n*) | ||
16959 | case `echo 'xy\c'` in | ||
16960 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | ||
16961 | xy) ECHO_C='\c';; | ||
16962 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | ||
16963 | ECHO_T=' ';; | ||
16964 | esac;; | ||
16965 | *) | ||
16966 | ECHO_N='-n';; | ||
16967 | esac | ||
16968 | |||
16969 | rm -f conf$$ conf$$.exe conf$$.file | ||
16970 | if test -d conf$$.dir; then | ||
16971 | rm -f conf$$.dir/conf$$.file | ||
16972 | else | ||
16973 | rm -f conf$$.dir | ||
16974 | mkdir conf$$.dir 2>/dev/null | ||
16975 | fi | ||
16976 | if (echo >conf$$.file) 2>/dev/null; then | ||
16977 | if ln -s conf$$.file conf$$ 2>/dev/null; then | ||
16978 | as_ln_s='ln -s' | ||
16979 | # ... but there are two gotchas: | ||
16980 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | ||
16981 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | ||
16982 | # In both cases, we have to default to `cp -p'. | ||
16983 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | ||
16984 | as_ln_s='cp -p' | ||
16985 | elif ln conf$$.file conf$$ 2>/dev/null; then | ||
16986 | as_ln_s=ln | ||
16987 | else | ||
16988 | as_ln_s='cp -p' | ||
16989 | fi | ||
16990 | else | ||
16991 | as_ln_s='cp -p' | ||
16992 | fi | ||
16993 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | ||
16994 | rmdir conf$$.dir 2>/dev/null | ||
16995 | |||
16996 | |||
16997 | # as_fn_mkdir_p | ||
16998 | # ------------- | ||
16999 | # Create "$as_dir" as a directory, including parents if necessary. | ||
17000 | as_fn_mkdir_p () | ||
17001 | { | ||
17002 | |||
17003 | case $as_dir in #( | ||
17004 | -*) as_dir=./$as_dir;; | ||
17005 | esac | ||
17006 | test -d "$as_dir" || eval $as_mkdir_p || { | ||
17007 | as_dirs= | ||
17008 | while :; do | ||
17009 | case $as_dir in #( | ||
17010 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | ||
17011 | *) as_qdir=$as_dir;; | ||
17012 | esac | ||
17013 | as_dirs="'$as_qdir' $as_dirs" | ||
17014 | as_dir=`$as_dirname -- "$as_dir" || | ||
17015 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
17016 | X"$as_dir" : 'X\(//\)[^/]' \| \ | ||
17017 | X"$as_dir" : 'X\(//\)$' \| \ | ||
17018 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | ||
17019 | $as_echo X"$as_dir" | | ||
17020 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
17021 | s//\1/ | ||
17022 | q | ||
17023 | } | ||
17024 | /^X\(\/\/\)[^/].*/{ | ||
17025 | s//\1/ | ||
17026 | q | ||
17027 | } | ||
17028 | /^X\(\/\/\)$/{ | ||
17029 | s//\1/ | ||
17030 | q | ||
17031 | } | ||
17032 | /^X\(\/\).*/{ | ||
17033 | s//\1/ | ||
17034 | q | ||
17035 | } | ||
17036 | s/.*/./; q'` | ||
17037 | test -d "$as_dir" && break | ||
17038 | done | ||
17039 | test -z "$as_dirs" || eval "mkdir $as_dirs" | ||
17040 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | ||
17041 | |||
17042 | |||
17043 | } # as_fn_mkdir_p | ||
17044 | if mkdir -p . 2>/dev/null; then | ||
17045 | as_mkdir_p='mkdir -p "$as_dir"' | ||
17046 | else | ||
17047 | test -d ./-p && rmdir ./-p | ||
17048 | as_mkdir_p=false | ||
17049 | fi | ||
17050 | |||
17051 | if test -x / >/dev/null 2>&1; then | ||
17052 | as_test_x='test -x' | ||
17053 | else | ||
17054 | if ls -dL / >/dev/null 2>&1; then | ||
17055 | as_ls_L_option=L | ||
17056 | else | ||
17057 | as_ls_L_option= | ||
17058 | fi | ||
17059 | as_test_x=' | ||
17060 | eval sh -c '\'' | ||
17061 | if test -d "$1"; then | ||
17062 | test -d "$1/."; | ||
17063 | else | ||
17064 | case $1 in #( | ||
17065 | -*)set "./$1";; | ||
17066 | esac; | ||
17067 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | ||
17068 | ???[sx]*):;;*)false;;esac;fi | ||
17069 | '\'' sh | ||
17070 | ' | ||
17071 | fi | ||
17072 | as_executable_p=$as_test_x | ||
17073 | |||
17074 | # Sed expression to map a string onto a valid CPP name. | ||
17075 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | ||
17076 | |||
17077 | # Sed expression to map a string onto a valid variable name. | ||
17078 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | ||
17079 | |||
17080 | |||
17081 | exec 6>&1 | ||
17082 | ## ----------------------------------- ## | ||
17083 | ## Main body of $CONFIG_STATUS script. ## | ||
17084 | ## ----------------------------------- ## | ||
17085 | _ASEOF | ||
17086 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | ||
17087 | |||
17088 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
17089 | # Save the log message, to keep $0 and so on meaningful, and to | ||
17090 | # report actual input values of CONFIG_FILES etc. instead of their | ||
17091 | # values after options handling. | ||
17092 | ac_log=" | ||
17093 | This file was extended by edje $as_me 1.1.0, which was | ||
17094 | generated by GNU Autoconf 2.67. Invocation command line was | ||
17095 | |||
17096 | CONFIG_FILES = $CONFIG_FILES | ||
17097 | CONFIG_HEADERS = $CONFIG_HEADERS | ||
17098 | CONFIG_LINKS = $CONFIG_LINKS | ||
17099 | CONFIG_COMMANDS = $CONFIG_COMMANDS | ||
17100 | $ $0 $@ | ||
17101 | |||
17102 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | ||
17103 | " | ||
17104 | |||
17105 | _ACEOF | ||
17106 | |||
17107 | case $ac_config_files in *" | ||
17108 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | ||
17109 | esac | ||
17110 | |||
17111 | case $ac_config_headers in *" | ||
17112 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | ||
17113 | esac | ||
17114 | |||
17115 | |||
17116 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
17117 | # Files that config.status was made for. | ||
17118 | config_files="$ac_config_files" | ||
17119 | config_headers="$ac_config_headers" | ||
17120 | config_commands="$ac_config_commands" | ||
17121 | |||
17122 | _ACEOF | ||
17123 | |||
17124 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
17125 | ac_cs_usage="\ | ||
17126 | \`$as_me' instantiates files and other configuration actions | ||
17127 | from templates according to the current configuration. Unless the files | ||
17128 | and actions are specified as TAGs, all are instantiated by default. | ||
17129 | |||
17130 | Usage: $0 [OPTION]... [TAG]... | ||
17131 | |||
17132 | -h, --help print this help, then exit | ||
17133 | -V, --version print version number and configuration settings, then exit | ||
17134 | --config print configuration, then exit | ||
17135 | -q, --quiet, --silent | ||
17136 | do not print progress messages | ||
17137 | -d, --debug don't remove temporary files | ||
17138 | --recheck update $as_me by reconfiguring in the same conditions | ||
17139 | --file=FILE[:TEMPLATE] | ||
17140 | instantiate the configuration file FILE | ||
17141 | --header=FILE[:TEMPLATE] | ||
17142 | instantiate the configuration header FILE | ||
17143 | |||
17144 | Configuration files: | ||
17145 | $config_files | ||
17146 | |||
17147 | Configuration headers: | ||
17148 | $config_headers | ||
17149 | |||
17150 | Configuration commands: | ||
17151 | $config_commands | ||
17152 | |||
17153 | Report bugs to <enlightenment-devel@lists.sourceforge.net>." | ||
17154 | |||
17155 | _ACEOF | ||
17156 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
17157 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" | ||
17158 | ac_cs_version="\\ | ||
17159 | edje config.status 1.1.0 | ||
17160 | configured by $0, generated by GNU Autoconf 2.67, | ||
17161 | with options \\"\$ac_cs_config\\" | ||
17162 | |||
17163 | Copyright (C) 2010 Free Software Foundation, Inc. | ||
17164 | This config.status script is free software; the Free Software Foundation | ||
17165 | gives unlimited permission to copy, distribute and modify it." | ||
17166 | |||
17167 | ac_pwd='$ac_pwd' | ||
17168 | srcdir='$srcdir' | ||
17169 | INSTALL='$INSTALL' | ||
17170 | MKDIR_P='$MKDIR_P' | ||
17171 | AWK='$AWK' | ||
17172 | test -n "\$AWK" || AWK=awk | ||
17173 | _ACEOF | ||
17174 | |||
17175 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
17176 | # The default lists apply if the user does not specify any file. | ||
17177 | ac_need_defaults=: | ||
17178 | while test $# != 0 | ||
17179 | do | ||
17180 | case $1 in | ||
17181 | --*=?*) | ||
17182 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | ||
17183 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | ||
17184 | ac_shift=: | ||
17185 | ;; | ||
17186 | --*=) | ||
17187 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | ||
17188 | ac_optarg= | ||
17189 | ac_shift=: | ||
17190 | ;; | ||
17191 | *) | ||
17192 | ac_option=$1 | ||
17193 | ac_optarg=$2 | ||
17194 | ac_shift=shift | ||
17195 | ;; | ||
17196 | esac | ||
17197 | |||
17198 | case $ac_option in | ||
17199 | # Handling of the options. | ||
17200 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | ||
17201 | ac_cs_recheck=: ;; | ||
17202 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | ||
17203 | $as_echo "$ac_cs_version"; exit ;; | ||
17204 | --config | --confi | --conf | --con | --co | --c ) | ||
17205 | $as_echo "$ac_cs_config"; exit ;; | ||
17206 | --debug | --debu | --deb | --de | --d | -d ) | ||
17207 | debug=: ;; | ||
17208 | --file | --fil | --fi | --f ) | ||
17209 | $ac_shift | ||
17210 | case $ac_optarg in | ||
17211 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
17212 | '') as_fn_error $? "missing file argument" ;; | ||
17213 | esac | ||
17214 | as_fn_append CONFIG_FILES " '$ac_optarg'" | ||
17215 | ac_need_defaults=false;; | ||
17216 | --header | --heade | --head | --hea ) | ||
17217 | $ac_shift | ||
17218 | case $ac_optarg in | ||
17219 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
17220 | esac | ||
17221 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | ||
17222 | ac_need_defaults=false;; | ||
17223 | --he | --h) | ||
17224 | # Conflict between --help and --header | ||
17225 | as_fn_error $? "ambiguous option: \`$1' | ||
17226 | Try \`$0 --help' for more information.";; | ||
17227 | --help | --hel | -h ) | ||
17228 | $as_echo "$ac_cs_usage"; exit ;; | ||
17229 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
17230 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | ||
17231 | ac_cs_silent=: ;; | ||
17232 | |||
17233 | # This is an error. | ||
17234 | -*) as_fn_error $? "unrecognized option: \`$1' | ||
17235 | Try \`$0 --help' for more information." ;; | ||
17236 | |||
17237 | *) as_fn_append ac_config_targets " $1" | ||
17238 | ac_need_defaults=false ;; | ||
17239 | |||
17240 | esac | ||
17241 | shift | ||
17242 | done | ||
17243 | |||
17244 | ac_configure_extra_args= | ||
17245 | |||
17246 | if $ac_cs_silent; then | ||
17247 | exec 6>/dev/null | ||
17248 | ac_configure_extra_args="$ac_configure_extra_args --silent" | ||
17249 | fi | ||
17250 | |||
17251 | _ACEOF | ||
17252 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
17253 | if \$ac_cs_recheck; then | ||
17254 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | ||
17255 | shift | ||
17256 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | ||
17257 | CONFIG_SHELL='$SHELL' | ||
17258 | export CONFIG_SHELL | ||
17259 | exec "\$@" | ||
17260 | fi | ||
17261 | |||
17262 | _ACEOF | ||
17263 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
17264 | exec 5>>config.log | ||
17265 | { | ||
17266 | echo | ||
17267 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | ||
17268 | ## Running $as_me. ## | ||
17269 | _ASBOX | ||
17270 | $as_echo "$ac_log" | ||
17271 | } >&5 | ||
17272 | |||
17273 | _ACEOF | ||
17274 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
17275 | # | ||
17276 | # INIT-COMMANDS | ||
17277 | # | ||
17278 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" | ||
17279 | |||
17280 | |||
17281 | # The HP-UX ksh and POSIX shell print the target directory to stdout | ||
17282 | # if CDPATH is set. | ||
17283 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | ||
17284 | |||
17285 | sed_quote_subst='$sed_quote_subst' | ||
17286 | double_quote_subst='$double_quote_subst' | ||
17287 | delay_variable_subst='$delay_variable_subst' | ||
17288 | AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`' | ||
17289 | DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`' | ||
17290 | OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' | ||
17291 | macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' | ||
17292 | macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' | ||
17293 | enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' | ||
17294 | enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' | ||
17295 | pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' | ||
17296 | enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' | ||
17297 | host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' | ||
17298 | host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' | ||
17299 | host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' | ||
17300 | build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' | ||
17301 | build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' | ||
17302 | build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' | ||
17303 | SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' | ||
17304 | Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' | ||
17305 | GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' | ||
17306 | EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' | ||
17307 | FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' | ||
17308 | LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' | ||
17309 | NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' | ||
17310 | LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' | ||
17311 | max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' | ||
17312 | ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' | ||
17313 | exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' | ||
17314 | lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' | ||
17315 | lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' | ||
17316 | lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' | ||
17317 | reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' | ||
17318 | reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
17319 | deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' | ||
17320 | file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' | ||
17321 | AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' | ||
17322 | AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' | ||
17323 | STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' | ||
17324 | RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' | ||
17325 | old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
17326 | old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
17327 | old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
17328 | CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' | ||
17329 | CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' | ||
17330 | compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' | ||
17331 | GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' | ||
17332 | lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' | ||
17333 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' | ||
17334 | 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"`' | ||
17335 | 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"`' | ||
17336 | objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' | ||
17337 | SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' | ||
17338 | ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' | ||
17339 | MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' | ||
17340 | lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' | ||
17341 | lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' | ||
17342 | lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' | ||
17343 | lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' | ||
17344 | lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' | ||
17345 | need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' | ||
17346 | DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' | ||
17347 | NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' | ||
17348 | LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' | ||
17349 | OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' | ||
17350 | OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' | ||
17351 | libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' | ||
17352 | shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
17353 | extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
17354 | archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' | ||
17355 | enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' | ||
17356 | export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
17357 | whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
17358 | compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' | ||
17359 | old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
17360 | old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
17361 | archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
17362 | archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
17363 | module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
17364 | module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
17365 | with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' | ||
17366 | allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | ||
17367 | no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | ||
17368 | hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
17369 | hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' | ||
17370 | hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' | ||
17371 | hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' | ||
17372 | hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' | ||
17373 | hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' | ||
17374 | hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | ||
17375 | hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' | ||
17376 | inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' | ||
17377 | link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' | ||
17378 | fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' | ||
17379 | always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' | ||
17380 | export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
17381 | exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | ||
17382 | include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | ||
17383 | prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
17384 | file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
17385 | variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' | ||
17386 | need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' | ||
17387 | need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' | ||
17388 | version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' | ||
17389 | runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' | ||
17390 | shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | ||
17391 | shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' | ||
17392 | libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
17393 | library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
17394 | soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
17395 | postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
17396 | postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
17397 | finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
17398 | finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' | ||
17399 | hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' | ||
17400 | sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
17401 | sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
17402 | hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' | ||
17403 | enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' | ||
17404 | enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' | ||
17405 | enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' | ||
17406 | old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' | ||
17407 | striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' | ||
17408 | LD_='`$ECHO "X$LD_" | $Xsed -e "$delay_single_quote_subst"`' | ||
17409 | old_archive_cmds_='`$ECHO "X$old_archive_cmds_" | $Xsed -e "$delay_single_quote_subst"`' | ||
17410 | compiler_='`$ECHO "X$compiler_" | $Xsed -e "$delay_single_quote_subst"`' | ||
17411 | GCC_='`$ECHO "X$GCC_" | $Xsed -e "$delay_single_quote_subst"`' | ||
17412 | lt_prog_compiler_no_builtin_flag_='`$ECHO "X$lt_prog_compiler_no_builtin_flag_" | $Xsed -e "$delay_single_quote_subst"`' | ||
17413 | lt_prog_compiler_wl_='`$ECHO "X$lt_prog_compiler_wl_" | $Xsed -e "$delay_single_quote_subst"`' | ||
17414 | lt_prog_compiler_pic_='`$ECHO "X$lt_prog_compiler_pic_" | $Xsed -e "$delay_single_quote_subst"`' | ||
17415 | lt_prog_compiler_static_='`$ECHO "X$lt_prog_compiler_static_" | $Xsed -e "$delay_single_quote_subst"`' | ||
17416 | lt_cv_prog_compiler_c_o_='`$ECHO "X$lt_cv_prog_compiler_c_o_" | $Xsed -e "$delay_single_quote_subst"`' | ||
17417 | archive_cmds_need_lc_='`$ECHO "X$archive_cmds_need_lc_" | $Xsed -e "$delay_single_quote_subst"`' | ||
17418 | enable_shared_with_static_runtimes_='`$ECHO "X$enable_shared_with_static_runtimes_" | $Xsed -e "$delay_single_quote_subst"`' | ||
17419 | export_dynamic_flag_spec_='`$ECHO "X$export_dynamic_flag_spec_" | $Xsed -e "$delay_single_quote_subst"`' | ||
17420 | whole_archive_flag_spec_='`$ECHO "X$whole_archive_flag_spec_" | $Xsed -e "$delay_single_quote_subst"`' | ||
17421 | compiler_needs_object_='`$ECHO "X$compiler_needs_object_" | $Xsed -e "$delay_single_quote_subst"`' | ||
17422 | old_archive_from_new_cmds_='`$ECHO "X$old_archive_from_new_cmds_" | $Xsed -e "$delay_single_quote_subst"`' | ||
17423 | old_archive_from_expsyms_cmds_='`$ECHO "X$old_archive_from_expsyms_cmds_" | $Xsed -e "$delay_single_quote_subst"`' | ||
17424 | archive_cmds_='`$ECHO "X$archive_cmds_" | $Xsed -e "$delay_single_quote_subst"`' | ||
17425 | archive_expsym_cmds_='`$ECHO "X$archive_expsym_cmds_" | $Xsed -e "$delay_single_quote_subst"`' | ||
17426 | module_cmds_='`$ECHO "X$module_cmds_" | $Xsed -e "$delay_single_quote_subst"`' | ||
17427 | module_expsym_cmds_='`$ECHO "X$module_expsym_cmds_" | $Xsed -e "$delay_single_quote_subst"`' | ||
17428 | with_gnu_ld_='`$ECHO "X$with_gnu_ld_" | $Xsed -e "$delay_single_quote_subst"`' | ||
17429 | allow_undefined_flag_='`$ECHO "X$allow_undefined_flag_" | $Xsed -e "$delay_single_quote_subst"`' | ||
17430 | no_undefined_flag_='`$ECHO "X$no_undefined_flag_" | $Xsed -e "$delay_single_quote_subst"`' | ||
17431 | hardcode_libdir_flag_spec_='`$ECHO "X$hardcode_libdir_flag_spec_" | $Xsed -e "$delay_single_quote_subst"`' | ||
17432 | hardcode_libdir_flag_spec_ld_='`$ECHO "X$hardcode_libdir_flag_spec_ld_" | $Xsed -e "$delay_single_quote_subst"`' | ||
17433 | hardcode_libdir_separator_='`$ECHO "X$hardcode_libdir_separator_" | $Xsed -e "$delay_single_quote_subst"`' | ||
17434 | hardcode_direct_='`$ECHO "X$hardcode_direct_" | $Xsed -e "$delay_single_quote_subst"`' | ||
17435 | hardcode_direct_absolute_='`$ECHO "X$hardcode_direct_absolute_" | $Xsed -e "$delay_single_quote_subst"`' | ||
17436 | hardcode_minus_L_='`$ECHO "X$hardcode_minus_L_" | $Xsed -e "$delay_single_quote_subst"`' | ||
17437 | hardcode_shlibpath_var_='`$ECHO "X$hardcode_shlibpath_var_" | $Xsed -e "$delay_single_quote_subst"`' | ||
17438 | hardcode_automatic_='`$ECHO "X$hardcode_automatic_" | $Xsed -e "$delay_single_quote_subst"`' | ||
17439 | inherit_rpath_='`$ECHO "X$inherit_rpath_" | $Xsed -e "$delay_single_quote_subst"`' | ||
17440 | link_all_deplibs_='`$ECHO "X$link_all_deplibs_" | $Xsed -e "$delay_single_quote_subst"`' | ||
17441 | fix_srcfile_path_='`$ECHO "X$fix_srcfile_path_" | $Xsed -e "$delay_single_quote_subst"`' | ||
17442 | always_export_symbols_='`$ECHO "X$always_export_symbols_" | $Xsed -e "$delay_single_quote_subst"`' | ||
17443 | export_symbols_cmds_='`$ECHO "X$export_symbols_cmds_" | $Xsed -e "$delay_single_quote_subst"`' | ||
17444 | exclude_expsyms_='`$ECHO "X$exclude_expsyms_" | $Xsed -e "$delay_single_quote_subst"`' | ||
17445 | include_expsyms_='`$ECHO "X$include_expsyms_" | $Xsed -e "$delay_single_quote_subst"`' | ||
17446 | prelink_cmds_='`$ECHO "X$prelink_cmds_" | $Xsed -e "$delay_single_quote_subst"`' | ||
17447 | file_list_spec_='`$ECHO "X$file_list_spec_" | $Xsed -e "$delay_single_quote_subst"`' | ||
17448 | hardcode_action_='`$ECHO "X$hardcode_action_" | $Xsed -e "$delay_single_quote_subst"`' | ||
17449 | |||
17450 | LTCC='$LTCC' | ||
17451 | LTCFLAGS='$LTCFLAGS' | ||
17452 | compiler='$compiler_DEFAULT' | ||
17453 | |||
17454 | # Quote evaled strings. | ||
17455 | for var in SED \ | ||
17456 | GREP \ | ||
17457 | EGREP \ | ||
17458 | FGREP \ | ||
17459 | LD \ | ||
17460 | NM \ | ||
17461 | LN_S \ | ||
17462 | lt_SP2NL \ | ||
17463 | lt_NL2SP \ | ||
17464 | reload_flag \ | ||
17465 | deplibs_check_method \ | ||
17466 | file_magic_cmd \ | ||
17467 | AR \ | ||
17468 | AR_FLAGS \ | ||
17469 | STRIP \ | ||
17470 | RANLIB \ | ||
17471 | CC \ | ||
17472 | CFLAGS \ | ||
17473 | compiler \ | ||
17474 | lt_cv_sys_global_symbol_pipe \ | ||
17475 | lt_cv_sys_global_symbol_to_cdecl \ | ||
17476 | lt_cv_sys_global_symbol_to_c_name_address \ | ||
17477 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | ||
17478 | SHELL \ | ||
17479 | ECHO \ | ||
17480 | lt_prog_compiler_no_builtin_flag \ | ||
17481 | lt_prog_compiler_wl \ | ||
17482 | lt_prog_compiler_pic \ | ||
17483 | lt_prog_compiler_static \ | ||
17484 | lt_cv_prog_compiler_c_o \ | ||
17485 | need_locks \ | ||
17486 | DSYMUTIL \ | ||
17487 | NMEDIT \ | ||
17488 | LIPO \ | ||
17489 | OTOOL \ | ||
17490 | OTOOL64 \ | ||
17491 | shrext_cmds \ | ||
17492 | export_dynamic_flag_spec \ | ||
17493 | whole_archive_flag_spec \ | ||
17494 | compiler_needs_object \ | ||
17495 | with_gnu_ld \ | ||
17496 | allow_undefined_flag \ | ||
17497 | no_undefined_flag \ | ||
17498 | hardcode_libdir_flag_spec \ | ||
17499 | hardcode_libdir_flag_spec_ld \ | ||
17500 | hardcode_libdir_separator \ | ||
17501 | fix_srcfile_path \ | ||
17502 | exclude_expsyms \ | ||
17503 | include_expsyms \ | ||
17504 | file_list_spec \ | ||
17505 | variables_saved_for_relink \ | ||
17506 | libname_spec \ | ||
17507 | library_names_spec \ | ||
17508 | soname_spec \ | ||
17509 | finish_eval \ | ||
17510 | old_striplib \ | ||
17511 | striplib \ | ||
17512 | LD_ \ | ||
17513 | compiler_ \ | ||
17514 | lt_prog_compiler_no_builtin_flag_ \ | ||
17515 | lt_prog_compiler_wl_ \ | ||
17516 | lt_prog_compiler_pic_ \ | ||
17517 | lt_prog_compiler_static_ \ | ||
17518 | lt_cv_prog_compiler_c_o_ \ | ||
17519 | export_dynamic_flag_spec_ \ | ||
17520 | whole_archive_flag_spec_ \ | ||
17521 | compiler_needs_object_ \ | ||
17522 | with_gnu_ld_ \ | ||
17523 | allow_undefined_flag_ \ | ||
17524 | no_undefined_flag_ \ | ||
17525 | hardcode_libdir_flag_spec_ \ | ||
17526 | hardcode_libdir_flag_spec_ld_ \ | ||
17527 | hardcode_libdir_separator_ \ | ||
17528 | fix_srcfile_path_ \ | ||
17529 | exclude_expsyms_ \ | ||
17530 | include_expsyms_ \ | ||
17531 | file_list_spec_; do | ||
17532 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | ||
17533 | *[\\\\\\\`\\"\\\$]*) | ||
17534 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | ||
17535 | ;; | ||
17536 | *) | ||
17537 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | ||
17538 | ;; | ||
17539 | esac | ||
17540 | done | ||
17541 | |||
17542 | # Double-quote double-evaled strings. | ||
17543 | for var in reload_cmds \ | ||
17544 | old_postinstall_cmds \ | ||
17545 | old_postuninstall_cmds \ | ||
17546 | old_archive_cmds \ | ||
17547 | extract_expsyms_cmds \ | ||
17548 | old_archive_from_new_cmds \ | ||
17549 | old_archive_from_expsyms_cmds \ | ||
17550 | archive_cmds \ | ||
17551 | archive_expsym_cmds \ | ||
17552 | module_cmds \ | ||
17553 | module_expsym_cmds \ | ||
17554 | export_symbols_cmds \ | ||
17555 | prelink_cmds \ | ||
17556 | postinstall_cmds \ | ||
17557 | postuninstall_cmds \ | ||
17558 | finish_cmds \ | ||
17559 | sys_lib_search_path_spec \ | ||
17560 | sys_lib_dlsearch_path_spec \ | ||
17561 | old_archive_cmds_ \ | ||
17562 | old_archive_from_new_cmds_ \ | ||
17563 | old_archive_from_expsyms_cmds_ \ | ||
17564 | archive_cmds_ \ | ||
17565 | archive_expsym_cmds_ \ | ||
17566 | module_cmds_ \ | ||
17567 | module_expsym_cmds_ \ | ||
17568 | export_symbols_cmds_ \ | ||
17569 | prelink_cmds_; do | ||
17570 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | ||
17571 | *[\\\\\\\`\\"\\\$]*) | ||
17572 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" | ||
17573 | ;; | ||
17574 | *) | ||
17575 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | ||
17576 | ;; | ||
17577 | esac | ||
17578 | done | ||
17579 | |||
17580 | # Fix-up fallback echo if it was mangled by the above quoting rules. | ||
17581 | case \$lt_ECHO in | ||
17582 | *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` | ||
17583 | ;; | ||
17584 | esac | ||
17585 | |||
17586 | ac_aux_dir='$ac_aux_dir' | ||
17587 | xsi_shell='$xsi_shell' | ||
17588 | lt_shell_append='$lt_shell_append' | ||
17589 | |||
17590 | # See if we are running on zsh, and set the options which allow our | ||
17591 | # commands through without removal of \ escapes INIT. | ||
17592 | if test -n "\${ZSH_VERSION+set}" ; then | ||
17593 | setopt NO_GLOB_SUBST | ||
17594 | fi | ||
17595 | |||
17596 | |||
17597 | PACKAGE='$PACKAGE' | ||
17598 | VERSION='$VERSION' | ||
17599 | TIMESTAMP='$TIMESTAMP' | ||
17600 | RM='$RM' | ||
17601 | ofile='$ofile' | ||
17602 | |||
17603 | |||
17604 | |||
17605 | |||
17606 | _ACEOF | ||
17607 | |||
17608 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
17609 | |||
17610 | # Handling of arguments. | ||
17611 | for ac_config_target in $ac_config_targets | ||
17612 | do | ||
17613 | case $ac_config_target in | ||
17614 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | ||
17615 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | ||
17616 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | ||
17617 | "edje.pc") CONFIG_FILES="$CONFIG_FILES edje.pc" ;; | ||
17618 | "edje.spec") CONFIG_FILES="$CONFIG_FILES edje.spec" ;; | ||
17619 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | ||
17620 | "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;; | ||
17621 | "data/include/Makefile") CONFIG_FILES="$CONFIG_FILES data/include/Makefile" ;; | ||
17622 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; | ||
17623 | "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;; | ||
17624 | "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; | ||
17625 | "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;; | ||
17626 | "src/bin/Makefile") CONFIG_FILES="$CONFIG_FILES src/bin/Makefile" ;; | ||
17627 | "src/bin/epp/Makefile") CONFIG_FILES="$CONFIG_FILES src/bin/epp/Makefile" ;; | ||
17628 | "src/modules/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/Makefile" ;; | ||
17629 | "src/modules/alsa_snd_player/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/alsa_snd_player/Makefile" ;; | ||
17630 | "src/modules/eet_snd_reader/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/eet_snd_reader/Makefile" ;; | ||
17631 | "src/modules/multisense_factory/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/multisense_factory/Makefile" ;; | ||
17632 | "src/tests/Makefile") CONFIG_FILES="$CONFIG_FILES src/tests/Makefile" ;; | ||
17633 | "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;; | ||
17634 | "src/examples/Makefile") CONFIG_FILES="$CONFIG_FILES src/examples/Makefile" ;; | ||
17635 | |||
17636 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;; | ||
17637 | esac | ||
17638 | done | ||
17639 | |||
17640 | |||
17641 | # If the user did not use the arguments to specify the items to instantiate, | ||
17642 | # then the envvar interface is used. Set only those that are not. | ||
17643 | # We use the long form for the default assignment because of an extremely | ||
17644 | # bizarre bug on SunOS 4.1.3. | ||
17645 | if $ac_need_defaults; then | ||
17646 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | ||
17647 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | ||
17648 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | ||
17649 | fi | ||
17650 | |||
17651 | # Have a temporary directory for convenience. Make it in the build tree | ||
17652 | # simply because there is no reason against having it here, and in addition, | ||
17653 | # creating and moving files from /tmp can sometimes cause problems. | ||
17654 | # Hook for its removal unless debugging. | ||
17655 | # Note that there is a small window in which the directory will not be cleaned: | ||
17656 | # after its creation but before its name has been assigned to `$tmp'. | ||
17657 | $debug || | ||
17658 | { | ||
17659 | tmp= | ||
17660 | trap 'exit_status=$? | ||
17661 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | ||
17662 | ' 0 | ||
17663 | trap 'as_fn_exit 1' 1 2 13 15 | ||
17664 | } | ||
17665 | # Create a (secure) tmp directory for tmp files. | ||
17666 | |||
17667 | { | ||
17668 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | ||
17669 | test -n "$tmp" && test -d "$tmp" | ||
17670 | } || | ||
17671 | { | ||
17672 | tmp=./conf$$-$RANDOM | ||
17673 | (umask 077 && mkdir "$tmp") | ||
17674 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 | ||
17675 | |||
17676 | # Set up the scripts for CONFIG_FILES section. | ||
17677 | # No need to generate them if there are no CONFIG_FILES. | ||
17678 | # This happens for instance with `./config.status config.h'. | ||
17679 | if test -n "$CONFIG_FILES"; then | ||
17680 | |||
17681 | |||
17682 | ac_cr=`echo X | tr X '\015'` | ||
17683 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | ||
17684 | # But we know of no other shell where ac_cr would be empty at this | ||
17685 | # point, so we can use a bashism as a fallback. | ||
17686 | if test "x$ac_cr" = x; then | ||
17687 | eval ac_cr=\$\'\\r\' | ||
17688 | fi | ||
17689 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | ||
17690 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | ||
17691 | ac_cs_awk_cr='\\r' | ||
17692 | else | ||
17693 | ac_cs_awk_cr=$ac_cr | ||
17694 | fi | ||
17695 | |||
17696 | echo 'BEGIN {' >"$tmp/subs1.awk" && | ||
17697 | _ACEOF | ||
17698 | |||
17699 | |||
17700 | { | ||
17701 | echo "cat >conf$$subs.awk <<_ACEOF" && | ||
17702 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | ||
17703 | echo "_ACEOF" | ||
17704 | } >conf$$subs.sh || | ||
17705 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | ||
17706 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | ||
17707 | ac_delim='%!_!# ' | ||
17708 | for ac_last_try in false false false false false :; do | ||
17709 | . ./conf$$subs.sh || | ||
17710 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | ||
17711 | |||
17712 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | ||
17713 | if test $ac_delim_n = $ac_delim_num; then | ||
17714 | break | ||
17715 | elif $ac_last_try; then | ||
17716 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | ||
17717 | else | ||
17718 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | ||
17719 | fi | ||
17720 | done | ||
17721 | rm -f conf$$subs.sh | ||
17722 | |||
17723 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
17724 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | ||
17725 | _ACEOF | ||
17726 | sed -n ' | ||
17727 | h | ||
17728 | s/^/S["/; s/!.*/"]=/ | ||
17729 | p | ||
17730 | g | ||
17731 | s/^[^!]*!// | ||
17732 | :repl | ||
17733 | t repl | ||
17734 | s/'"$ac_delim"'$// | ||
17735 | t delim | ||
17736 | :nl | ||
17737 | h | ||
17738 | s/\(.\{148\}\)..*/\1/ | ||
17739 | t more1 | ||
17740 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | ||
17741 | p | ||
17742 | n | ||
17743 | b repl | ||
17744 | :more1 | ||
17745 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | ||
17746 | p | ||
17747 | g | ||
17748 | s/.\{148\}// | ||
17749 | t nl | ||
17750 | :delim | ||
17751 | h | ||
17752 | s/\(.\{148\}\)..*/\1/ | ||
17753 | t more2 | ||
17754 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | ||
17755 | p | ||
17756 | b | ||
17757 | :more2 | ||
17758 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | ||
17759 | p | ||
17760 | g | ||
17761 | s/.\{148\}// | ||
17762 | t delim | ||
17763 | ' <conf$$subs.awk | sed ' | ||
17764 | /^[^""]/{ | ||
17765 | N | ||
17766 | s/\n// | ||
17767 | } | ||
17768 | ' >>$CONFIG_STATUS || ac_write_fail=1 | ||
17769 | rm -f conf$$subs.awk | ||
17770 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
17771 | _ACAWK | ||
17772 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | ||
17773 | for (key in S) S_is_set[key] = 1 | ||
17774 | FS = "" | ||
17775 | |||
17776 | } | ||
17777 | { | ||
17778 | line = $ 0 | ||
17779 | nfields = split(line, field, "@") | ||
17780 | substed = 0 | ||
17781 | len = length(field[1]) | ||
17782 | for (i = 2; i < nfields; i++) { | ||
17783 | key = field[i] | ||
17784 | keylen = length(key) | ||
17785 | if (S_is_set[key]) { | ||
17786 | value = S[key] | ||
17787 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | ||
17788 | len += length(value) + length(field[++i]) | ||
17789 | substed = 1 | ||
17790 | } else | ||
17791 | len += 1 + keylen | ||
17792 | } | ||
17793 | |||
17794 | print line | ||
17795 | } | ||
17796 | |||
17797 | _ACAWK | ||
17798 | _ACEOF | ||
17799 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
17800 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | ||
17801 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | ||
17802 | else | ||
17803 | cat | ||
17804 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | ||
17805 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | ||
17806 | _ACEOF | ||
17807 | |||
17808 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), | ||
17809 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | ||
17810 | # trailing colons and then remove the whole line if VPATH becomes empty | ||
17811 | # (actually we leave an empty line to preserve line numbers). | ||
17812 | if test "x$srcdir" = x.; then | ||
17813 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ | ||
17814 | h | ||
17815 | s/// | ||
17816 | s/^/:/ | ||
17817 | s/[ ]*$/:/ | ||
17818 | s/:\$(srcdir):/:/g | ||
17819 | s/:\${srcdir}:/:/g | ||
17820 | s/:@srcdir@:/:/g | ||
17821 | s/^:*// | ||
17822 | s/:*$// | ||
17823 | x | ||
17824 | s/\(=[ ]*\).*/\1/ | ||
17825 | G | ||
17826 | s/\n// | ||
17827 | s/^[^=]*=[ ]*$// | ||
17828 | }' | ||
17829 | fi | ||
17830 | |||
17831 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
17832 | fi # test -n "$CONFIG_FILES" | ||
17833 | |||
17834 | # Set up the scripts for CONFIG_HEADERS section. | ||
17835 | # No need to generate them if there are no CONFIG_HEADERS. | ||
17836 | # This happens for instance with `./config.status Makefile'. | ||
17837 | if test -n "$CONFIG_HEADERS"; then | ||
17838 | cat >"$tmp/defines.awk" <<\_ACAWK || | ||
17839 | BEGIN { | ||
17840 | _ACEOF | ||
17841 | |||
17842 | # Transform confdefs.h into an awk script `defines.awk', embedded as | ||
17843 | # here-document in config.status, that substitutes the proper values into | ||
17844 | # config.h.in to produce config.h. | ||
17845 | |||
17846 | # Create a delimiter string that does not exist in confdefs.h, to ease | ||
17847 | # handling of long lines. | ||
17848 | ac_delim='%!_!# ' | ||
17849 | for ac_last_try in false false :; do | ||
17850 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` | ||
17851 | if test -z "$ac_t"; then | ||
17852 | break | ||
17853 | elif $ac_last_try; then | ||
17854 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 | ||
17855 | else | ||
17856 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | ||
17857 | fi | ||
17858 | done | ||
17859 | |||
17860 | # For the awk script, D is an array of macro values keyed by name, | ||
17861 | # likewise P contains macro parameters if any. Preserve backslash | ||
17862 | # newline sequences. | ||
17863 | |||
17864 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | ||
17865 | sed -n ' | ||
17866 | s/.\{148\}/&'"$ac_delim"'/g | ||
17867 | t rset | ||
17868 | :rset | ||
17869 | s/^[ ]*#[ ]*define[ ][ ]*/ / | ||
17870 | t def | ||
17871 | d | ||
17872 | :def | ||
17873 | s/\\$// | ||
17874 | t bsnl | ||
17875 | s/["\\]/\\&/g | ||
17876 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | ||
17877 | D["\1"]=" \3"/p | ||
17878 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | ||
17879 | d | ||
17880 | :bsnl | ||
17881 | s/["\\]/\\&/g | ||
17882 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | ||
17883 | D["\1"]=" \3\\\\\\n"\\/p | ||
17884 | t cont | ||
17885 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | ||
17886 | t cont | ||
17887 | d | ||
17888 | :cont | ||
17889 | n | ||
17890 | s/.\{148\}/&'"$ac_delim"'/g | ||
17891 | t clear | ||
17892 | :clear | ||
17893 | s/\\$// | ||
17894 | t bsnlc | ||
17895 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | ||
17896 | d | ||
17897 | :bsnlc | ||
17898 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | ||
17899 | b cont | ||
17900 | ' <confdefs.h | sed ' | ||
17901 | s/'"$ac_delim"'/"\\\ | ||
17902 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | ||
17903 | |||
17904 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
17905 | for (key in D) D_is_set[key] = 1 | ||
17906 | FS = "" | ||
17907 | } | ||
17908 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | ||
17909 | line = \$ 0 | ||
17910 | split(line, arg, " ") | ||
17911 | if (arg[1] == "#") { | ||
17912 | defundef = arg[2] | ||
17913 | mac1 = arg[3] | ||
17914 | } else { | ||
17915 | defundef = substr(arg[1], 2) | ||
17916 | mac1 = arg[2] | ||
17917 | } | ||
17918 | split(mac1, mac2, "(") #) | ||
17919 | macro = mac2[1] | ||
17920 | prefix = substr(line, 1, index(line, defundef) - 1) | ||
17921 | if (D_is_set[macro]) { | ||
17922 | # Preserve the white space surrounding the "#". | ||
17923 | print prefix "define", macro P[macro] D[macro] | ||
17924 | next | ||
17925 | } else { | ||
17926 | # Replace #undef with comments. This is necessary, for example, | ||
17927 | # in the case of _POSIX_SOURCE, which is predefined and required | ||
17928 | # on some systems where configure will not decide to define it. | ||
17929 | if (defundef == "undef") { | ||
17930 | print "/*", prefix defundef, macro, "*/" | ||
17931 | next | ||
17932 | } | ||
17933 | } | ||
17934 | } | ||
17935 | { print } | ||
17936 | _ACAWK | ||
17937 | _ACEOF | ||
17938 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
17939 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 | ||
17940 | fi # test -n "$CONFIG_HEADERS" | ||
17941 | |||
17942 | |||
17943 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | ||
17944 | shift | ||
17945 | for ac_tag | ||
17946 | do | ||
17947 | case $ac_tag in | ||
17948 | :[FHLC]) ac_mode=$ac_tag; continue;; | ||
17949 | esac | ||
17950 | case $ac_mode$ac_tag in | ||
17951 | :[FHL]*:*);; | ||
17952 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;; | ||
17953 | :[FH]-) ac_tag=-:-;; | ||
17954 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | ||
17955 | esac | ||
17956 | ac_save_IFS=$IFS | ||
17957 | IFS=: | ||
17958 | set x $ac_tag | ||
17959 | IFS=$ac_save_IFS | ||
17960 | shift | ||
17961 | ac_file=$1 | ||
17962 | shift | ||
17963 | |||
17964 | case $ac_mode in | ||
17965 | :L) ac_source=$1;; | ||
17966 | :[FH]) | ||
17967 | ac_file_inputs= | ||
17968 | for ac_f | ||
17969 | do | ||
17970 | case $ac_f in | ||
17971 | -) ac_f="$tmp/stdin";; | ||
17972 | *) # Look for the file first in the build tree, then in the source tree | ||
17973 | # (if the path is not absolute). The absolute path cannot be DOS-style, | ||
17974 | # because $ac_f cannot contain `:'. | ||
17975 | test -f "$ac_f" || | ||
17976 | case $ac_f in | ||
17977 | [\\/$]*) false;; | ||
17978 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | ||
17979 | esac || | ||
17980 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;; | ||
17981 | esac | ||
17982 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | ||
17983 | as_fn_append ac_file_inputs " '$ac_f'" | ||
17984 | done | ||
17985 | |||
17986 | # Let's still pretend it is `configure' which instantiates (i.e., don't | ||
17987 | # use $as_me), people would be surprised to read: | ||
17988 | # /* config.h. Generated by config.status. */ | ||
17989 | configure_input='Generated from '` | ||
17990 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | ||
17991 | `' by configure.' | ||
17992 | if test x"$ac_file" != x-; then | ||
17993 | configure_input="$ac_file. $configure_input" | ||
17994 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | ||
17995 | $as_echo "$as_me: creating $ac_file" >&6;} | ||
17996 | fi | ||
17997 | # Neutralize special characters interpreted by sed in replacement strings. | ||
17998 | case $configure_input in #( | ||
17999 | *\&* | *\|* | *\\* ) | ||
18000 | ac_sed_conf_input=`$as_echo "$configure_input" | | ||
18001 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | ||
18002 | *) ac_sed_conf_input=$configure_input;; | ||
18003 | esac | ||
18004 | |||
18005 | case $ac_tag in | ||
18006 | *:-:* | *:-) cat >"$tmp/stdin" \ | ||
18007 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | ||
18008 | esac | ||
18009 | ;; | ||
18010 | esac | ||
18011 | |||
18012 | ac_dir=`$as_dirname -- "$ac_file" || | ||
18013 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
18014 | X"$ac_file" : 'X\(//\)[^/]' \| \ | ||
18015 | X"$ac_file" : 'X\(//\)$' \| \ | ||
18016 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | ||
18017 | $as_echo X"$ac_file" | | ||
18018 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
18019 | s//\1/ | ||
18020 | q | ||
18021 | } | ||
18022 | /^X\(\/\/\)[^/].*/{ | ||
18023 | s//\1/ | ||
18024 | q | ||
18025 | } | ||
18026 | /^X\(\/\/\)$/{ | ||
18027 | s//\1/ | ||
18028 | q | ||
18029 | } | ||
18030 | /^X\(\/\).*/{ | ||
18031 | s//\1/ | ||
18032 | q | ||
18033 | } | ||
18034 | s/.*/./; q'` | ||
18035 | as_dir="$ac_dir"; as_fn_mkdir_p | ||
18036 | ac_builddir=. | ||
18037 | |||
18038 | case "$ac_dir" in | ||
18039 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
18040 | *) | ||
18041 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | ||
18042 | # A ".." for each directory in $ac_dir_suffix. | ||
18043 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | ||
18044 | case $ac_top_builddir_sub in | ||
18045 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
18046 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | ||
18047 | esac ;; | ||
18048 | esac | ||
18049 | ac_abs_top_builddir=$ac_pwd | ||
18050 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | ||
18051 | # for backward compatibility: | ||
18052 | ac_top_builddir=$ac_top_build_prefix | ||
18053 | |||
18054 | case $srcdir in | ||
18055 | .) # We are building in place. | ||
18056 | ac_srcdir=. | ||
18057 | ac_top_srcdir=$ac_top_builddir_sub | ||
18058 | ac_abs_top_srcdir=$ac_pwd ;; | ||
18059 | [\\/]* | ?:[\\/]* ) # Absolute name. | ||
18060 | ac_srcdir=$srcdir$ac_dir_suffix; | ||
18061 | ac_top_srcdir=$srcdir | ||
18062 | ac_abs_top_srcdir=$srcdir ;; | ||
18063 | *) # Relative name. | ||
18064 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | ||
18065 | ac_top_srcdir=$ac_top_build_prefix$srcdir | ||
18066 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | ||
18067 | esac | ||
18068 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | ||
18069 | |||
18070 | |||
18071 | case $ac_mode in | ||
18072 | :F) | ||
18073 | # | ||
18074 | # CONFIG_FILE | ||
18075 | # | ||
18076 | |||
18077 | case $INSTALL in | ||
18078 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | ||
18079 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | ||
18080 | esac | ||
18081 | ac_MKDIR_P=$MKDIR_P | ||
18082 | case $MKDIR_P in | ||
18083 | [\\/$]* | ?:[\\/]* ) ;; | ||
18084 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | ||
18085 | esac | ||
18086 | _ACEOF | ||
18087 | |||
18088 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
18089 | # If the template does not know about datarootdir, expand it. | ||
18090 | # FIXME: This hack should be removed a few years after 2.60. | ||
18091 | ac_datarootdir_hack=; ac_datarootdir_seen= | ||
18092 | ac_sed_dataroot=' | ||
18093 | /datarootdir/ { | ||
18094 | p | ||
18095 | q | ||
18096 | } | ||
18097 | /@datadir@/p | ||
18098 | /@docdir@/p | ||
18099 | /@infodir@/p | ||
18100 | /@localedir@/p | ||
18101 | /@mandir@/p' | ||
18102 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | ||
18103 | *datarootdir*) ac_datarootdir_seen=yes;; | ||
18104 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | ||
18105 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | ||
18106 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | ||
18107 | _ACEOF | ||
18108 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
18109 | ac_datarootdir_hack=' | ||
18110 | s&@datadir@&$datadir&g | ||
18111 | s&@docdir@&$docdir&g | ||
18112 | s&@infodir@&$infodir&g | ||
18113 | s&@localedir@&$localedir&g | ||
18114 | s&@mandir@&$mandir&g | ||
18115 | s&\\\${datarootdir}&$datarootdir&g' ;; | ||
18116 | esac | ||
18117 | _ACEOF | ||
18118 | |||
18119 | # Neutralize VPATH when `$srcdir' = `.'. | ||
18120 | # Shell code in configure.ac might set extrasub. | ||
18121 | # FIXME: do we really want to maintain this feature? | ||
18122 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
18123 | ac_sed_extra="$ac_vpsub | ||
18124 | $extrasub | ||
18125 | _ACEOF | ||
18126 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
18127 | :t | ||
18128 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | ||
18129 | s|@configure_input@|$ac_sed_conf_input|;t t | ||
18130 | s&@top_builddir@&$ac_top_builddir_sub&;t t | ||
18131 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | ||
18132 | s&@srcdir@&$ac_srcdir&;t t | ||
18133 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | ||
18134 | s&@top_srcdir@&$ac_top_srcdir&;t t | ||
18135 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | ||
18136 | s&@builddir@&$ac_builddir&;t t | ||
18137 | s&@abs_builddir@&$ac_abs_builddir&;t t | ||
18138 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | ||
18139 | s&@INSTALL@&$ac_INSTALL&;t t | ||
18140 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | ||
18141 | $ac_datarootdir_hack | ||
18142 | " | ||
18143 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | ||
18144 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | ||
18145 | |||
18146 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | ||
18147 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | ||
18148 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | ||
18149 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | ||
18150 | which seems to be undefined. Please make sure it is defined" >&5 | ||
18151 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | ||
18152 | which seems to be undefined. Please make sure it is defined" >&2;} | ||
18153 | |||
18154 | rm -f "$tmp/stdin" | ||
18155 | case $ac_file in | ||
18156 | -) cat "$tmp/out" && rm -f "$tmp/out";; | ||
18157 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | ||
18158 | esac \ | ||
18159 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | ||
18160 | ;; | ||
18161 | :H) | ||
18162 | # | ||
18163 | # CONFIG_HEADER | ||
18164 | # | ||
18165 | if test x"$ac_file" != x-; then | ||
18166 | { | ||
18167 | $as_echo "/* $configure_input */" \ | ||
18168 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | ||
18169 | } >"$tmp/config.h" \ | ||
18170 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | ||
18171 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then | ||
18172 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | ||
18173 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | ||
18174 | else | ||
18175 | rm -f "$ac_file" | ||
18176 | mv "$tmp/config.h" "$ac_file" \ | ||
18177 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | ||
18178 | fi | ||
18179 | else | ||
18180 | $as_echo "/* $configure_input */" \ | ||
18181 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | ||
18182 | || as_fn_error $? "could not create -" "$LINENO" 5 | ||
18183 | fi | ||
18184 | # Compute "$ac_file"'s index in $config_headers. | ||
18185 | _am_arg="$ac_file" | ||
18186 | _am_stamp_count=1 | ||
18187 | for _am_header in $config_headers :; do | ||
18188 | case $_am_header in | ||
18189 | $_am_arg | $_am_arg:* ) | ||
18190 | break ;; | ||
18191 | * ) | ||
18192 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | ||
18193 | esac | ||
18194 | done | ||
18195 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || | ||
18196 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
18197 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | ||
18198 | X"$_am_arg" : 'X\(//\)$' \| \ | ||
18199 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | ||
18200 | $as_echo X"$_am_arg" | | ||
18201 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
18202 | s//\1/ | ||
18203 | q | ||
18204 | } | ||
18205 | /^X\(\/\/\)[^/].*/{ | ||
18206 | s//\1/ | ||
18207 | q | ||
18208 | } | ||
18209 | /^X\(\/\/\)$/{ | ||
18210 | s//\1/ | ||
18211 | q | ||
18212 | } | ||
18213 | /^X\(\/\).*/{ | ||
18214 | s//\1/ | ||
18215 | q | ||
18216 | } | ||
18217 | s/.*/./; q'`/stamp-h$_am_stamp_count | ||
18218 | ;; | ||
18219 | |||
18220 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 | ||
18221 | $as_echo "$as_me: executing $ac_file commands" >&6;} | ||
18222 | ;; | ||
18223 | esac | ||
18224 | |||
18225 | |||
18226 | case $ac_file$ac_mode in | ||
18227 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { | ||
18228 | # Autoconf 2.62 quotes --file arguments for eval, but not when files | ||
18229 | # are listed without --file. Let's play safe and only enable the eval | ||
18230 | # if we detect the quoting. | ||
18231 | case $CONFIG_FILES in | ||
18232 | *\'*) eval set x "$CONFIG_FILES" ;; | ||
18233 | *) set x $CONFIG_FILES ;; | ||
18234 | esac | ||
18235 | shift | ||
18236 | for mf | ||
18237 | do | ||
18238 | # Strip MF so we end up with the name of the file. | ||
18239 | mf=`echo "$mf" | sed -e 's/:.*$//'` | ||
18240 | # Check whether this is an Automake generated Makefile or not. | ||
18241 | # We used to match only the files named `Makefile.in', but | ||
18242 | # some people rename them; so instead we look at the file content. | ||
18243 | # Grep'ing the first line is not enough: some people post-process | ||
18244 | # each Makefile.in and add a new line on top of each file to say so. | ||
18245 | # Grep'ing the whole file is not good either: AIX grep has a line | ||
18246 | # limit of 2048, but all sed's we know have understand at least 4000. | ||
18247 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | ||
18248 | dirpart=`$as_dirname -- "$mf" || | ||
18249 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
18250 | X"$mf" : 'X\(//\)[^/]' \| \ | ||
18251 | X"$mf" : 'X\(//\)$' \| \ | ||
18252 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || | ||
18253 | $as_echo X"$mf" | | ||
18254 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
18255 | s//\1/ | ||
18256 | q | ||
18257 | } | ||
18258 | /^X\(\/\/\)[^/].*/{ | ||
18259 | s//\1/ | ||
18260 | q | ||
18261 | } | ||
18262 | /^X\(\/\/\)$/{ | ||
18263 | s//\1/ | ||
18264 | q | ||
18265 | } | ||
18266 | /^X\(\/\).*/{ | ||
18267 | s//\1/ | ||
18268 | q | ||
18269 | } | ||
18270 | s/.*/./; q'` | ||
18271 | else | ||
18272 | continue | ||
18273 | fi | ||
18274 | # Extract the definition of DEPDIR, am__include, and am__quote | ||
18275 | # from the Makefile without running `make'. | ||
18276 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | ||
18277 | test -z "$DEPDIR" && continue | ||
18278 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | ||
18279 | test -z "am__include" && continue | ||
18280 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | ||
18281 | # When using ansi2knr, U may be empty or an underscore; expand it | ||
18282 | U=`sed -n 's/^U = //p' < "$mf"` | ||
18283 | # Find all dependency output files, they are included files with | ||
18284 | # $(DEPDIR) in their names. We invoke sed twice because it is the | ||
18285 | # simplest approach to changing $(DEPDIR) to its actual value in the | ||
18286 | # expansion. | ||
18287 | for file in `sed -n " | ||
18288 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | ||
18289 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | ||
18290 | # Make sure the directory exists. | ||
18291 | test -f "$dirpart/$file" && continue | ||
18292 | fdir=`$as_dirname -- "$file" || | ||
18293 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
18294 | X"$file" : 'X\(//\)[^/]' \| \ | ||
18295 | X"$file" : 'X\(//\)$' \| \ | ||
18296 | X"$file" : 'X\(/\)' \| . 2>/dev/null || | ||
18297 | $as_echo X"$file" | | ||
18298 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
18299 | s//\1/ | ||
18300 | q | ||
18301 | } | ||
18302 | /^X\(\/\/\)[^/].*/{ | ||
18303 | s//\1/ | ||
18304 | q | ||
18305 | } | ||
18306 | /^X\(\/\/\)$/{ | ||
18307 | s//\1/ | ||
18308 | q | ||
18309 | } | ||
18310 | /^X\(\/\).*/{ | ||
18311 | s//\1/ | ||
18312 | q | ||
18313 | } | ||
18314 | s/.*/./; q'` | ||
18315 | as_dir=$dirpart/$fdir; as_fn_mkdir_p | ||
18316 | # echo "creating $dirpart/$file" | ||
18317 | echo '# dummy' > "$dirpart/$file" | ||
18318 | done | ||
18319 | done | ||
18320 | } | ||
18321 | ;; | ||
18322 | "libtool":C) | ||
18323 | |||
18324 | # See if we are running on zsh, and set the options which allow our | ||
18325 | # commands through without removal of \ escapes. | ||
18326 | if test -n "${ZSH_VERSION+set}" ; then | ||
18327 | setopt NO_GLOB_SUBST | ||
18328 | fi | ||
18329 | |||
18330 | cfgfile="${ofile}T" | ||
18331 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | ||
18332 | $RM "$cfgfile" | ||
18333 | |||
18334 | cat <<_LT_EOF >> "$cfgfile" | ||
18335 | #! $SHELL | ||
18336 | |||
18337 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | ||
18338 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION | ||
18339 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | ||
18340 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | ||
18341 | # | ||
18342 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | ||
18343 | # 2006, 2007, 2008 Free Software Foundation, Inc. | ||
18344 | # Written by Gordon Matzigkeit, 1996 | ||
18345 | # | ||
18346 | # This file is part of GNU Libtool. | ||
18347 | # | ||
18348 | # GNU Libtool is free software; you can redistribute it and/or | ||
18349 | # modify it under the terms of the GNU General Public License as | ||
18350 | # published by the Free Software Foundation; either version 2 of | ||
18351 | # the License, or (at your option) any later version. | ||
18352 | # | ||
18353 | # As a special exception to the GNU General Public License, | ||
18354 | # if you distribute this file as part of a program or library that | ||
18355 | # is built using GNU Libtool, you may include this file under the | ||
18356 | # same distribution terms that you use for the rest of that program. | ||
18357 | # | ||
18358 | # GNU Libtool is distributed in the hope that it will be useful, | ||
18359 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
18360 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
18361 | # GNU General Public License for more details. | ||
18362 | # | ||
18363 | # You should have received a copy of the GNU General Public License | ||
18364 | # along with GNU Libtool; see the file COPYING. If not, a copy | ||
18365 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | ||
18366 | # obtained by writing to the Free Software Foundation, Inc., | ||
18367 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
18368 | |||
18369 | |||
18370 | # The names of the tagged configurations supported by this script. | ||
18371 | available_tags="" | ||
18372 | |||
18373 | # ### BEGIN LIBTOOL CONFIG | ||
18374 | |||
18375 | # Assembler program. | ||
18376 | AS=$AS | ||
18377 | |||
18378 | # DLL creation program. | ||
18379 | DLLTOOL=$DLLTOOL | ||
18380 | |||
18381 | # Object dumper program. | ||
18382 | OBJDUMP=$OBJDUMP | ||
18383 | |||
18384 | # Which release of libtool.m4 was used? | ||
18385 | macro_version=$macro_version | ||
18386 | macro_revision=$macro_revision | ||
18387 | |||
18388 | # Whether or not to build shared libraries. | ||
18389 | build_libtool_libs=$enable_shared | ||
18390 | |||
18391 | # Whether or not to build static libraries. | ||
18392 | build_old_libs=$enable_static | ||
18393 | |||
18394 | # What type of objects to build. | ||
18395 | pic_mode=$pic_mode | ||
18396 | |||
18397 | # Whether or not to optimize for fast installation. | ||
18398 | fast_install=$enable_fast_install | ||
18399 | |||
18400 | # The host system. | ||
18401 | host_alias=$host_alias | ||
18402 | host=$host | ||
18403 | host_os=$host_os | ||
18404 | |||
18405 | # The build system. | ||
18406 | build_alias=$build_alias | ||
18407 | build=$build | ||
18408 | build_os=$build_os | ||
18409 | |||
18410 | # A sed program that does not truncate output. | ||
18411 | SED=$lt_SED | ||
18412 | |||
18413 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | ||
18414 | Xsed="\$SED -e 1s/^X//" | ||
18415 | |||
18416 | # A grep program that handles long lines. | ||
18417 | GREP=$lt_GREP | ||
18418 | |||
18419 | # An ERE matcher. | ||
18420 | EGREP=$lt_EGREP | ||
18421 | |||
18422 | # A literal string matcher. | ||
18423 | FGREP=$lt_FGREP | ||
18424 | |||
18425 | # A BSD- or MS-compatible name lister. | ||
18426 | NM=$lt_NM | ||
18427 | |||
18428 | # Whether we need soft or hard links. | ||
18429 | LN_S=$lt_LN_S | ||
18430 | |||
18431 | # What is the maximum length of a command? | ||
18432 | max_cmd_len=$max_cmd_len | ||
18433 | |||
18434 | # Object file suffix (normally "o"). | ||
18435 | objext=$ac_objext | ||
18436 | |||
18437 | # Executable file suffix (normally ""). | ||
18438 | exeext=$exeext | ||
18439 | |||
18440 | # whether the shell understands "unset". | ||
18441 | lt_unset=$lt_unset | ||
18442 | |||
18443 | # turn spaces into newlines. | ||
18444 | SP2NL=$lt_lt_SP2NL | ||
18445 | |||
18446 | # turn newlines into spaces. | ||
18447 | NL2SP=$lt_lt_NL2SP | ||
18448 | |||
18449 | # How to create reloadable object files. | ||
18450 | reload_flag=$lt_reload_flag | ||
18451 | reload_cmds=$lt_reload_cmds | ||
18452 | |||
18453 | # Method to check whether dependent libraries are shared objects. | ||
18454 | deplibs_check_method=$lt_deplibs_check_method | ||
18455 | |||
18456 | # Command to use when deplibs_check_method == "file_magic". | ||
18457 | file_magic_cmd=$lt_file_magic_cmd | ||
18458 | |||
18459 | # The archiver. | ||
18460 | AR=$lt_AR | ||
18461 | AR_FLAGS=$lt_AR_FLAGS | ||
18462 | |||
18463 | # A symbol stripping program. | ||
18464 | STRIP=$lt_STRIP | ||
18465 | |||
18466 | # Commands used to install an old-style archive. | ||
18467 | RANLIB=$lt_RANLIB | ||
18468 | old_postinstall_cmds=$lt_old_postinstall_cmds | ||
18469 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | ||
18470 | |||
18471 | # A C compiler. | ||
18472 | LTCC=$lt_CC | ||
18473 | |||
18474 | # LTCC compiler flags. | ||
18475 | LTCFLAGS=$lt_CFLAGS | ||
18476 | |||
18477 | # Take the output of nm and produce a listing of raw symbols and C names. | ||
18478 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | ||
18479 | |||
18480 | # Transform the output of nm in a proper C declaration. | ||
18481 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | ||
18482 | |||
18483 | # Transform the output of nm in a C name address pair. | ||
18484 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | ||
18485 | |||
18486 | # Transform the output of nm in a C name address pair when lib prefix is needed. | ||
18487 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | ||
18488 | |||
18489 | # The name of the directory that contains temporary libtool files. | ||
18490 | objdir=$objdir | ||
18491 | |||
18492 | # Shell to use when invoking shell scripts. | ||
18493 | SHELL=$lt_SHELL | ||
18494 | |||
18495 | # An echo program that does not interpret backslashes. | ||
18496 | ECHO=$lt_ECHO | ||
18497 | |||
18498 | # Used to examine libraries when file_magic_cmd begins with "file". | ||
18499 | MAGIC_CMD=$MAGIC_CMD | ||
18500 | |||
18501 | # Must we lock files when doing compilation? | ||
18502 | need_locks=$lt_need_locks | ||
18503 | |||
18504 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. | ||
18505 | DSYMUTIL=$lt_DSYMUTIL | ||
18506 | |||
18507 | # Tool to change global to local symbols on Mac OS X. | ||
18508 | NMEDIT=$lt_NMEDIT | ||
18509 | |||
18510 | # Tool to manipulate fat objects and archives on Mac OS X. | ||
18511 | LIPO=$lt_LIPO | ||
18512 | |||
18513 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. | ||
18514 | OTOOL=$lt_OTOOL | ||
18515 | |||
18516 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | ||
18517 | OTOOL64=$lt_OTOOL64 | ||
18518 | |||
18519 | # Old archive suffix (normally "a"). | ||
18520 | libext=$libext | ||
18521 | |||
18522 | # Shared library suffix (normally ".so"). | ||
18523 | shrext_cmds=$lt_shrext_cmds | ||
18524 | |||
18525 | # The commands to extract the exported symbol list from a shared archive. | ||
18526 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | ||
18527 | |||
18528 | # Variables whose values should be saved in libtool wrapper scripts and | ||
18529 | # restored at link time. | ||
18530 | variables_saved_for_relink=$lt_variables_saved_for_relink | ||
18531 | |||
18532 | # Do we need the "lib" prefix for modules? | ||
18533 | need_lib_prefix=$need_lib_prefix | ||
18534 | |||
18535 | # Do we need a version for libraries? | ||
18536 | need_version=$need_version | ||
18537 | |||
18538 | # Library versioning type. | ||
18539 | version_type=$version_type | ||
18540 | |||
18541 | # Shared library runtime path variable. | ||
18542 | runpath_var=$runpath_var | ||
18543 | |||
18544 | # Shared library path variable. | ||
18545 | shlibpath_var=$shlibpath_var | ||
18546 | |||
18547 | # Is shlibpath searched before the hard-coded library search path? | ||
18548 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | ||
18549 | |||
18550 | # Format of library name prefix. | ||
18551 | libname_spec=$lt_libname_spec | ||
18552 | |||
18553 | # List of archive names. First name is the real one, the rest are links. | ||
18554 | # The last name is the one that the linker finds with -lNAME | ||
18555 | library_names_spec=$lt_library_names_spec | ||
18556 | |||
18557 | # The coded name of the library, if different from the real name. | ||
18558 | soname_spec=$lt_soname_spec | ||
18559 | |||
18560 | # Command to use after installation of a shared archive. | ||
18561 | postinstall_cmds=$lt_postinstall_cmds | ||
18562 | |||
18563 | # Command to use after uninstallation of a shared archive. | ||
18564 | postuninstall_cmds=$lt_postuninstall_cmds | ||
18565 | |||
18566 | # Commands used to finish a libtool library installation in a directory. | ||
18567 | finish_cmds=$lt_finish_cmds | ||
18568 | |||
18569 | # As "finish_cmds", except a single script fragment to be evaled but | ||
18570 | # not shown. | ||
18571 | finish_eval=$lt_finish_eval | ||
18572 | |||
18573 | # Whether we should hardcode library paths into libraries. | ||
18574 | hardcode_into_libs=$hardcode_into_libs | ||
18575 | |||
18576 | # Compile-time system search path for libraries. | ||
18577 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | ||
18578 | |||
18579 | # Run-time system search path for libraries. | ||
18580 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | ||
18581 | |||
18582 | # Whether dlopen is supported. | ||
18583 | dlopen_support=$enable_dlopen | ||
18584 | |||
18585 | # Whether dlopen of programs is supported. | ||
18586 | dlopen_self=$enable_dlopen_self | ||
18587 | |||
18588 | # Whether dlopen of statically linked programs is supported. | ||
18589 | dlopen_self_static=$enable_dlopen_self_static | ||
18590 | |||
18591 | # Commands to strip libraries. | ||
18592 | old_striplib=$lt_old_striplib | ||
18593 | striplib=$lt_striplib | ||
18594 | |||
18595 | |||
18596 | # The linker used to build libraries. | ||
18597 | LD=$lt_LD | ||
18598 | |||
18599 | # Commands used to build an old-style archive. | ||
18600 | old_archive_cmds=$lt_old_archive_cmds | ||
18601 | |||
18602 | # A language specific compiler. | ||
18603 | CC=$lt_compiler | ||
18604 | |||
18605 | # Is the compiler the GNU compiler? | ||
18606 | with_gcc=$GCC | ||
18607 | |||
18608 | # Compiler flag to turn off builtin functions. | ||
18609 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | ||
18610 | |||
18611 | # How to pass a linker flag through the compiler. | ||
18612 | wl=$lt_lt_prog_compiler_wl | ||
18613 | |||
18614 | # Additional compiler flags for building library objects. | ||
18615 | pic_flag=$lt_lt_prog_compiler_pic | ||
18616 | |||
18617 | # Compiler flag to prevent dynamic linking. | ||
18618 | link_static_flag=$lt_lt_prog_compiler_static | ||
18619 | |||
18620 | # Does compiler simultaneously support -c and -o options? | ||
18621 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | ||
18622 | |||
18623 | # Whether or not to add -lc for building shared libraries. | ||
18624 | build_libtool_need_lc=$archive_cmds_need_lc | ||
18625 | |||
18626 | # Whether or not to disallow shared libs when runtime libs are static. | ||
18627 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | ||
18628 | |||
18629 | # Compiler flag to allow reflexive dlopens. | ||
18630 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | ||
18631 | |||
18632 | # Compiler flag to generate shared objects directly from archives. | ||
18633 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | ||
18634 | |||
18635 | # Whether the compiler copes with passing no objects directly. | ||
18636 | compiler_needs_object=$lt_compiler_needs_object | ||
18637 | |||
18638 | # Create an old-style archive from a shared archive. | ||
18639 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | ||
18640 | |||
18641 | # Create a temporary old-style archive to link instead of a shared archive. | ||
18642 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | ||
18643 | |||
18644 | # Commands used to build a shared archive. | ||
18645 | archive_cmds=$lt_archive_cmds | ||
18646 | archive_expsym_cmds=$lt_archive_expsym_cmds | ||
18647 | |||
18648 | # Commands used to build a loadable module if different from building | ||
18649 | # a shared archive. | ||
18650 | module_cmds=$lt_module_cmds | ||
18651 | module_expsym_cmds=$lt_module_expsym_cmds | ||
18652 | |||
18653 | # Whether we are building with GNU ld or not. | ||
18654 | with_gnu_ld=$lt_with_gnu_ld | ||
18655 | |||
18656 | # Flag that allows shared libraries with undefined symbols to be built. | ||
18657 | allow_undefined_flag=$lt_allow_undefined_flag | ||
18658 | |||
18659 | # Flag that enforces no undefined symbols. | ||
18660 | no_undefined_flag=$lt_no_undefined_flag | ||
18661 | |||
18662 | # Flag to hardcode \$libdir into a binary during linking. | ||
18663 | # This must work even if \$libdir does not exist | ||
18664 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | ||
18665 | |||
18666 | # If ld is used when linking, flag to hardcode \$libdir into a binary | ||
18667 | # during linking. This must work even if \$libdir does not exist. | ||
18668 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | ||
18669 | |||
18670 | # Whether we need a single "-rpath" flag with a separated argument. | ||
18671 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | ||
18672 | |||
18673 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | ||
18674 | # DIR into the resulting binary. | ||
18675 | hardcode_direct=$hardcode_direct | ||
18676 | |||
18677 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | ||
18678 | # DIR into the resulting binary and the resulting library dependency is | ||
18679 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | ||
18680 | # library is relocated. | ||
18681 | hardcode_direct_absolute=$hardcode_direct_absolute | ||
18682 | |||
18683 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | ||
18684 | # into the resulting binary. | ||
18685 | hardcode_minus_L=$hardcode_minus_L | ||
18686 | |||
18687 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | ||
18688 | # into the resulting binary. | ||
18689 | hardcode_shlibpath_var=$hardcode_shlibpath_var | ||
18690 | |||
18691 | # Set to "yes" if building a shared library automatically hardcodes DIR | ||
18692 | # into the library and all subsequent libraries and executables linked | ||
18693 | # against it. | ||
18694 | hardcode_automatic=$hardcode_automatic | ||
18695 | |||
18696 | # Set to yes if linker adds runtime paths of dependent libraries | ||
18697 | # to runtime path list. | ||
18698 | inherit_rpath=$inherit_rpath | ||
18699 | |||
18700 | # Whether libtool must link a program against all its dependency libraries. | ||
18701 | link_all_deplibs=$link_all_deplibs | ||
18702 | |||
18703 | # Fix the shell variable \$srcfile for the compiler. | ||
18704 | fix_srcfile_path=$lt_fix_srcfile_path | ||
18705 | |||
18706 | # Set to "yes" if exported symbols are required. | ||
18707 | always_export_symbols=$always_export_symbols | ||
18708 | |||
18709 | # The commands to list exported symbols. | ||
18710 | export_symbols_cmds=$lt_export_symbols_cmds | ||
18711 | |||
18712 | # Symbols that should not be listed in the preloaded symbols. | ||
18713 | exclude_expsyms=$lt_exclude_expsyms | ||
18714 | |||
18715 | # Symbols that must always be exported. | ||
18716 | include_expsyms=$lt_include_expsyms | ||
18717 | |||
18718 | # Commands necessary for linking programs (against libraries) with templates. | ||
18719 | prelink_cmds=$lt_prelink_cmds | ||
18720 | |||
18721 | # Specify filename containing input files. | ||
18722 | file_list_spec=$lt_file_list_spec | ||
18723 | |||
18724 | # How to hardcode a shared library path into an executable. | ||
18725 | hardcode_action=$hardcode_action | ||
18726 | |||
18727 | # ### END LIBTOOL CONFIG | ||
18728 | |||
18729 | _LT_EOF | ||
18730 | |||
18731 | case $host_os in | ||
18732 | aix3*) | ||
18733 | cat <<\_LT_EOF >> "$cfgfile" | ||
18734 | # AIX sometimes has problems with the GCC collect2 program. For some | ||
18735 | # reason, if we set the COLLECT_NAMES environment variable, the problems | ||
18736 | # vanish in a puff of smoke. | ||
18737 | if test "X${COLLECT_NAMES+set}" != Xset; then | ||
18738 | COLLECT_NAMES= | ||
18739 | export COLLECT_NAMES | ||
18740 | fi | ||
18741 | _LT_EOF | ||
18742 | ;; | ||
18743 | esac | ||
18744 | |||
18745 | |||
18746 | ltmain="$ac_aux_dir/ltmain.sh" | ||
18747 | |||
18748 | |||
18749 | # We use sed instead of cat because bash on DJGPP gets confused if | ||
18750 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | ||
18751 | # text mode, it properly converts lines to CR/LF. This bash problem | ||
18752 | # is reportedly fixed, but why not run on old versions too? | ||
18753 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | ||
18754 | || (rm -f "$cfgfile"; exit 1) | ||
18755 | |||
18756 | case $xsi_shell in | ||
18757 | yes) | ||
18758 | cat << \_LT_EOF >> "$cfgfile" | ||
18759 | |||
18760 | # func_dirname file append nondir_replacement | ||
18761 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | ||
18762 | # otherwise set result to NONDIR_REPLACEMENT. | ||
18763 | func_dirname () | ||
18764 | { | ||
18765 | case ${1} in | ||
18766 | */*) func_dirname_result="${1%/*}${2}" ;; | ||
18767 | * ) func_dirname_result="${3}" ;; | ||
18768 | esac | ||
18769 | } | ||
18770 | |||
18771 | # func_basename file | ||
18772 | func_basename () | ||
18773 | { | ||
18774 | func_basename_result="${1##*/}" | ||
18775 | } | ||
18776 | |||
18777 | # func_dirname_and_basename file append nondir_replacement | ||
18778 | # perform func_basename and func_dirname in a single function | ||
18779 | # call: | ||
18780 | # dirname: Compute the dirname of FILE. If nonempty, | ||
18781 | # add APPEND to the result, otherwise set result | ||
18782 | # to NONDIR_REPLACEMENT. | ||
18783 | # value returned in "$func_dirname_result" | ||
18784 | # basename: Compute filename of FILE. | ||
18785 | # value retuned in "$func_basename_result" | ||
18786 | # Implementation must be kept synchronized with func_dirname | ||
18787 | # and func_basename. For efficiency, we do not delegate to | ||
18788 | # those functions but instead duplicate the functionality here. | ||
18789 | func_dirname_and_basename () | ||
18790 | { | ||
18791 | case ${1} in | ||
18792 | */*) func_dirname_result="${1%/*}${2}" ;; | ||
18793 | * ) func_dirname_result="${3}" ;; | ||
18794 | esac | ||
18795 | func_basename_result="${1##*/}" | ||
18796 | } | ||
18797 | |||
18798 | # func_stripname prefix suffix name | ||
18799 | # strip PREFIX and SUFFIX off of NAME. | ||
18800 | # PREFIX and SUFFIX must not contain globbing or regex special | ||
18801 | # characters, hashes, percent signs, but SUFFIX may contain a leading | ||
18802 | # dot (in which case that matches only a dot). | ||
18803 | func_stripname () | ||
18804 | { | ||
18805 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | ||
18806 | # positional parameters, so assign one to ordinary parameter first. | ||
18807 | func_stripname_result=${3} | ||
18808 | func_stripname_result=${func_stripname_result#"${1}"} | ||
18809 | func_stripname_result=${func_stripname_result%"${2}"} | ||
18810 | } | ||
18811 | |||
18812 | # func_opt_split | ||
18813 | func_opt_split () | ||
18814 | { | ||
18815 | func_opt_split_opt=${1%%=*} | ||
18816 | func_opt_split_arg=${1#*=} | ||
18817 | } | ||
18818 | |||
18819 | # func_lo2o object | ||
18820 | func_lo2o () | ||
18821 | { | ||
18822 | case ${1} in | ||
18823 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | ||
18824 | *) func_lo2o_result=${1} ;; | ||
18825 | esac | ||
18826 | } | ||
18827 | |||
18828 | # func_xform libobj-or-source | ||
18829 | func_xform () | ||
18830 | { | ||
18831 | func_xform_result=${1%.*}.lo | ||
18832 | } | ||
18833 | |||
18834 | # func_arith arithmetic-term... | ||
18835 | func_arith () | ||
18836 | { | ||
18837 | func_arith_result=$(( $* )) | ||
18838 | } | ||
18839 | |||
18840 | # func_len string | ||
18841 | # STRING may not start with a hyphen. | ||
18842 | func_len () | ||
18843 | { | ||
18844 | func_len_result=${#1} | ||
18845 | } | ||
18846 | |||
18847 | _LT_EOF | ||
18848 | ;; | ||
18849 | *) # Bourne compatible functions. | ||
18850 | cat << \_LT_EOF >> "$cfgfile" | ||
18851 | |||
18852 | # func_dirname file append nondir_replacement | ||
18853 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | ||
18854 | # otherwise set result to NONDIR_REPLACEMENT. | ||
18855 | func_dirname () | ||
18856 | { | ||
18857 | # Extract subdirectory from the argument. | ||
18858 | func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` | ||
18859 | if test "X$func_dirname_result" = "X${1}"; then | ||
18860 | func_dirname_result="${3}" | ||
18861 | else | ||
18862 | func_dirname_result="$func_dirname_result${2}" | ||
18863 | fi | ||
18864 | } | ||
18865 | |||
18866 | # func_basename file | ||
18867 | func_basename () | ||
18868 | { | ||
18869 | func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` | ||
18870 | } | ||
18871 | |||
18872 | |||
18873 | # func_stripname prefix suffix name | ||
18874 | # strip PREFIX and SUFFIX off of NAME. | ||
18875 | # PREFIX and SUFFIX must not contain globbing or regex special | ||
18876 | # characters, hashes, percent signs, but SUFFIX may contain a leading | ||
18877 | # dot (in which case that matches only a dot). | ||
18878 | # func_strip_suffix prefix name | ||
18879 | func_stripname () | ||
18880 | { | ||
18881 | case ${2} in | ||
18882 | .*) func_stripname_result=`$ECHO "X${3}" \ | ||
18883 | | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; | ||
18884 | *) func_stripname_result=`$ECHO "X${3}" \ | ||
18885 | | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; | ||
18886 | esac | ||
18887 | } | ||
18888 | |||
18889 | # sed scripts: | ||
18890 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' | ||
18891 | my_sed_long_arg='1s/^-[^=]*=//' | ||
18892 | |||
18893 | # func_opt_split | ||
18894 | func_opt_split () | ||
18895 | { | ||
18896 | func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` | ||
18897 | func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` | ||
18898 | } | ||
18899 | |||
18900 | # func_lo2o object | ||
18901 | func_lo2o () | ||
18902 | { | ||
18903 | func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` | ||
18904 | } | ||
18905 | |||
18906 | # func_xform libobj-or-source | ||
18907 | func_xform () | ||
18908 | { | ||
18909 | func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` | ||
18910 | } | ||
18911 | |||
18912 | # func_arith arithmetic-term... | ||
18913 | func_arith () | ||
18914 | { | ||
18915 | func_arith_result=`expr "$@"` | ||
18916 | } | ||
18917 | |||
18918 | # func_len string | ||
18919 | # STRING may not start with a hyphen. | ||
18920 | func_len () | ||
18921 | { | ||
18922 | func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` | ||
18923 | } | ||
18924 | |||
18925 | _LT_EOF | ||
18926 | esac | ||
18927 | |||
18928 | case $lt_shell_append in | ||
18929 | yes) | ||
18930 | cat << \_LT_EOF >> "$cfgfile" | ||
18931 | |||
18932 | # func_append var value | ||
18933 | # Append VALUE to the end of shell variable VAR. | ||
18934 | func_append () | ||
18935 | { | ||
18936 | eval "$1+=\$2" | ||
18937 | } | ||
18938 | _LT_EOF | ||
18939 | ;; | ||
18940 | *) | ||
18941 | cat << \_LT_EOF >> "$cfgfile" | ||
18942 | |||
18943 | # func_append var value | ||
18944 | # Append VALUE to the end of shell variable VAR. | ||
18945 | func_append () | ||
18946 | { | ||
18947 | eval "$1=\$$1\$2" | ||
18948 | } | ||
18949 | |||
18950 | _LT_EOF | ||
18951 | ;; | ||
18952 | esac | ||
18953 | |||
18954 | |||
18955 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ | ||
18956 | || (rm -f "$cfgfile"; exit 1) | ||
18957 | |||
18958 | mv -f "$cfgfile" "$ofile" || | ||
18959 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | ||
18960 | chmod +x "$ofile" | ||
18961 | |||
18962 | ;; | ||
18963 | |||
18964 | esac | ||
18965 | done # for ac_tag | ||
18966 | |||
18967 | |||
18968 | as_fn_exit 0 | ||
18969 | _ACEOF | ||
18970 | ac_clean_files=$ac_clean_files_save | ||
18971 | |||
18972 | test $ac_write_fail = 0 || | ||
18973 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 | ||
18974 | |||
18975 | |||
18976 | # configure is writing to config.log, and then calls config.status. | ||
18977 | # config.status does its own redirection, appending to config.log. | ||
18978 | # Unfortunately, on DOS this fails, as config.log is still kept open | ||
18979 | # by configure, so config.status won't be able to write to it; its | ||
18980 | # output is simply discarded. So we exec the FD to /dev/null, | ||
18981 | # effectively closing config.log, so it can be properly (re)opened and | ||
18982 | # appended to by config.status. When coming back to configure, we | ||
18983 | # need to make the FD available again. | ||
18984 | if test "$no_create" != yes; then | ||
18985 | ac_cs_success=: | ||
18986 | ac_config_status_args= | ||
18987 | test "$silent" = yes && | ||
18988 | ac_config_status_args="$ac_config_status_args --quiet" | ||
18989 | exec 5>/dev/null | ||
18990 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | ||
18991 | exec 5>>config.log | ||
18992 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | ||
18993 | # would make configure fail if this is the last instruction. | ||
18994 | $ac_cs_success || as_fn_exit 1 | ||
18995 | fi | ||
18996 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | ||
18997 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | ||
18998 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | ||
18999 | fi | ||
19000 | |||
19001 | |||
19002 | |||
19003 | ##################################################################### | ||
19004 | ## Info | ||
19005 | |||
19006 | echo | ||
19007 | echo | ||
19008 | echo | ||
19009 | echo "------------------------------------------------------------------------" | ||
19010 | echo "$PACKAGE $VERSION" | ||
19011 | echo "------------------------------------------------------------------------" | ||
19012 | echo | ||
19013 | echo "Configuration Options Summary:" | ||
19014 | echo | ||
19015 | echo " Amalgamation.........: ${do_amalgamation}" | ||
19016 | echo " Ecore IMF............: $have_ecore_imf" | ||
19017 | echo " Multisense...........: $want_multisense" | ||
19018 | |||
19019 | if test "x${want_multisense}" = "xyes" ; then | ||
19020 | echo " LibRemix.............: $have_libremix" | ||
19021 | echo " Libsndfile...........: $have_sndfile" | ||
19022 | echo " Ogg/Vorbis...........: $have_vorbis" | ||
19023 | echo " LibFLAC..............: $have_flac_lib" | ||
19024 | echo " LibALSA..............: $have_alsa_lib" | ||
19025 | fi | ||
19026 | |||
19027 | echo " EDJE_PROGRAM_CACHE...: $want_edje_program_cache" | ||
19028 | echo " EDJE_CALC_CACHE......: $want_edje_calc_cache" | ||
19029 | echo " Fixed point..........: $want_fixed_point" | ||
19030 | echo " Documentation........: ${build_doc}" | ||
19031 | echo " Tests................: ${enable_tests}" | ||
19032 | echo " Coverage.............: ${enable_coverage}" | ||
19033 | echo " Examples.............: install:${install_examples} build:${build_examples}" | ||
19034 | echo | ||
19035 | echo "Programs:" | ||
19036 | echo | ||
19037 | echo " Build edje_cc................: $have_edje_cc" | ||
19038 | echo " Build edje_decc..............: $have_edje_decc" | ||
19039 | echo " Build edje_recc..............: $have_edje_recc" | ||
19040 | echo " Build edje_player............: $have_edje_player" | ||
19041 | echo " Build edje_inspector.........: $have_edje_inspector" | ||
19042 | echo " Build edje_external_inspector: $have_edje_external_inspector" | ||
19043 | echo | ||
19044 | echo "Compilation............: make (or gmake)" | ||
19045 | echo " CPPFLAGS.............: $CPPFLAGS" | ||
19046 | echo " CFLAGS...............: $CFLAGS" | ||
19047 | echo " LDFLAGS..............: $LDFLAGS" | ||
19048 | echo | ||
19049 | echo "Installation...........: make install (as root if needed, with 'su' or 'sudo')" | ||
19050 | echo " prefix...............: $prefix" | ||
19051 | echo | ||