diff options
author | David Walter Seikel | 2013-01-13 17:29:19 +1000 |
---|---|---|
committer | David Walter Seikel | 2013-01-13 17:29:19 +1000 |
commit | 07274513e984f0b5544586c74508ccd16e7dcafa (patch) | |
tree | b32ff2a9136fbc1a4a6a0ed1e4d79cde0f5f16d9 /libraries/embryo/configure | |
parent | Added Irrlicht 1.8, but without all the Windows binaries. (diff) | |
download | SledjHamr-07274513e984f0b5544586c74508ccd16e7dcafa.zip SledjHamr-07274513e984f0b5544586c74508ccd16e7dcafa.tar.gz SledjHamr-07274513e984f0b5544586c74508ccd16e7dcafa.tar.bz2 SledjHamr-07274513e984f0b5544586c74508ccd16e7dcafa.tar.xz |
Remove EFL, since it's been released now.
Diffstat (limited to '')
-rwxr-xr-x | libraries/embryo/configure | 15960 | ||||
-rw-r--r-- | libraries/embryo/configure.ac | 222 |
2 files changed, 0 insertions, 16182 deletions
diff --git a/libraries/embryo/configure b/libraries/embryo/configure deleted file mode 100755 index 7f04eec..0000000 --- a/libraries/embryo/configure +++ /dev/null | |||
@@ -1,15960 +0,0 @@ | |||
1 | #! /bin/sh | ||
2 | # Guess values for system-dependent variables and create Makefiles. | ||
3 | # Generated by GNU Autoconf 2.67 for embryo 1.2.0-alpha. | ||
4 | # | ||
5 | # Report bugs to <enlightenment-devel@lists.sourceforge.net>. | ||
6 | # | ||
7 | # | ||
8 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | ||
9 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software | ||
10 | # Foundation, Inc. | ||
11 | # | ||
12 | # | ||
13 | # This configure script is free software; the Free Software Foundation | ||
14 | # gives unlimited permission to copy, distribute and modify it. | ||
15 | ## -------------------- ## | ||
16 | ## M4sh Initialization. ## | ||
17 | ## -------------------- ## | ||
18 | |||
19 | # Be more Bourne compatible | ||
20 | DUALCASE=1; export DUALCASE # for MKS sh | ||
21 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | ||
22 | emulate sh | ||
23 | NULLCMD=: | ||
24 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | ||
25 | # is contrary to our usage. Disable this feature. | ||
26 | alias -g '${1+"$@"}'='"$@"' | ||
27 | setopt NO_GLOB_SUBST | ||
28 | else | ||
29 | case `(set -o) 2>/dev/null` in #( | ||
30 | *posix*) : | ||
31 | set -o posix ;; #( | ||
32 | *) : | ||
33 | ;; | ||
34 | esac | ||
35 | fi | ||
36 | |||
37 | |||
38 | as_nl=' | ||
39 | ' | ||
40 | export as_nl | ||
41 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | ||
42 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | ||
43 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | ||
44 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | ||
45 | # Prefer a ksh shell builtin over an external printf program on Solaris, | ||
46 | # but without wasting forks for bash or zsh. | ||
47 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | ||
48 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | ||
49 | as_echo='print -r --' | ||
50 | as_echo_n='print -rn --' | ||
51 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | ||
52 | as_echo='printf %s\n' | ||
53 | as_echo_n='printf %s' | ||
54 | else | ||
55 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | ||
56 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | ||
57 | as_echo_n='/usr/ucb/echo -n' | ||
58 | else | ||
59 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | ||
60 | as_echo_n_body='eval | ||
61 | arg=$1; | ||
62 | case $arg in #( | ||
63 | *"$as_nl"*) | ||
64 | expr "X$arg" : "X\\(.*\\)$as_nl"; | ||
65 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | ||
66 | esac; | ||
67 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | ||
68 | ' | ||
69 | export as_echo_n_body | ||
70 | as_echo_n='sh -c $as_echo_n_body as_echo' | ||
71 | fi | ||
72 | export as_echo_body | ||
73 | as_echo='sh -c $as_echo_body as_echo' | ||
74 | fi | ||
75 | |||
76 | # The user is always right. | ||
77 | if test "${PATH_SEPARATOR+set}" != set; then | ||
78 | PATH_SEPARATOR=: | ||
79 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | ||
80 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | ||
81 | PATH_SEPARATOR=';' | ||
82 | } | ||
83 | fi | ||
84 | |||
85 | |||
86 | # IFS | ||
87 | # We need space, tab and new line, in precisely that order. Quoting is | ||
88 | # there to prevent editors from complaining about space-tab. | ||
89 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | ||
90 | # splitting by setting IFS to empty value.) | ||
91 | IFS=" "" $as_nl" | ||
92 | |||
93 | # Find who we are. Look in the path if we contain no directory separator. | ||
94 | case $0 in #(( | ||
95 | *[\\/]* ) as_myself=$0 ;; | ||
96 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
97 | for as_dir in $PATH | ||
98 | do | ||
99 | IFS=$as_save_IFS | ||
100 | test -z "$as_dir" && as_dir=. | ||
101 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | ||
102 | done | ||
103 | IFS=$as_save_IFS | ||
104 | |||
105 | ;; | ||
106 | esac | ||
107 | # We did not find ourselves, most probably we were run as `sh COMMAND' | ||
108 | # in which case we are not to be found in the path. | ||
109 | if test "x$as_myself" = x; then | ||
110 | as_myself=$0 | ||
111 | fi | ||
112 | if test ! -f "$as_myself"; then | ||
113 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | ||
114 | exit 1 | ||
115 | fi | ||
116 | |||
117 | # Unset variables that we do not need and which cause bugs (e.g. in | ||
118 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | ||
119 | # suppresses any "Segmentation fault" message there. '((' could | ||
120 | # trigger a bug in pdksh 5.2.14. | ||
121 | for as_var in BASH_ENV ENV MAIL MAILPATH | ||
122 | do eval test x\${$as_var+set} = xset \ | ||
123 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | ||
124 | done | ||
125 | PS1='$ ' | ||
126 | PS2='> ' | ||
127 | PS4='+ ' | ||
128 | |||
129 | # NLS nuisances. | ||
130 | LC_ALL=C | ||
131 | export LC_ALL | ||
132 | LANGUAGE=C | ||
133 | export LANGUAGE | ||
134 | |||
135 | # CDPATH. | ||
136 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | ||
137 | |||
138 | if test "x$CONFIG_SHELL" = x; then | ||
139 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | ||
140 | emulate sh | ||
141 | NULLCMD=: | ||
142 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | ||
143 | # is contrary to our usage. Disable this feature. | ||
144 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | ||
145 | setopt NO_GLOB_SUBST | ||
146 | else | ||
147 | case \`(set -o) 2>/dev/null\` in #( | ||
148 | *posix*) : | ||
149 | set -o posix ;; #( | ||
150 | *) : | ||
151 | ;; | ||
152 | esac | ||
153 | fi | ||
154 | " | ||
155 | as_required="as_fn_return () { (exit \$1); } | ||
156 | as_fn_success () { as_fn_return 0; } | ||
157 | as_fn_failure () { as_fn_return 1; } | ||
158 | as_fn_ret_success () { return 0; } | ||
159 | as_fn_ret_failure () { return 1; } | ||
160 | |||
161 | exitcode=0 | ||
162 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | ||
163 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | ||
164 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | ||
165 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | ||
166 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | ||
167 | |||
168 | else | ||
169 | exitcode=1; echo positional parameters were not saved. | ||
170 | fi | ||
171 | test x\$exitcode = x0 || exit 1" | ||
172 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | ||
173 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | ||
174 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | ||
175 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | ||
176 | test \$(( 1 + 1 )) = 2 || exit 1" | ||
177 | if (eval "$as_required") 2>/dev/null; then : | ||
178 | as_have_required=yes | ||
179 | else | ||
180 | as_have_required=no | ||
181 | fi | ||
182 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | ||
183 | |||
184 | else | ||
185 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
186 | as_found=false | ||
187 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | ||
188 | do | ||
189 | IFS=$as_save_IFS | ||
190 | test -z "$as_dir" && as_dir=. | ||
191 | as_found=: | ||
192 | case $as_dir in #( | ||
193 | /*) | ||
194 | for as_base in sh bash ksh sh5; do | ||
195 | # Try only shells that exist, to save several forks. | ||
196 | as_shell=$as_dir/$as_base | ||
197 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | ||
198 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | ||
199 | CONFIG_SHELL=$as_shell as_have_required=yes | ||
200 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | ||
201 | break 2 | ||
202 | fi | ||
203 | fi | ||
204 | done;; | ||
205 | esac | ||
206 | as_found=false | ||
207 | done | ||
208 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | ||
209 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | ||
210 | CONFIG_SHELL=$SHELL as_have_required=yes | ||
211 | fi; } | ||
212 | IFS=$as_save_IFS | ||
213 | |||
214 | |||
215 | if test "x$CONFIG_SHELL" != x; then : | ||
216 | # We cannot yet assume a decent shell, so we have to provide a | ||
217 | # neutralization value for shells without unset; and this also | ||
218 | # works around shells that cannot unset nonexistent variables. | ||
219 | BASH_ENV=/dev/null | ||
220 | ENV=/dev/null | ||
221 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | ||
222 | export CONFIG_SHELL | ||
223 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | ||
224 | fi | ||
225 | |||
226 | if test x$as_have_required = xno; then : | ||
227 | $as_echo "$0: This script requires a shell more modern than all" | ||
228 | $as_echo "$0: the shells that I found on your system." | ||
229 | if test x${ZSH_VERSION+set} = xset ; then | ||
230 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | ||
231 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | ||
232 | else | ||
233 | $as_echo "$0: Please tell bug-autoconf@gnu.org and | ||
234 | $0: enlightenment-devel@lists.sourceforge.net about your | ||
235 | $0: system, including any error possibly output before this | ||
236 | $0: message. Then install a modern shell, or manually run | ||
237 | $0: the script under such a shell if you do have one." | ||
238 | fi | ||
239 | exit 1 | ||
240 | fi | ||
241 | fi | ||
242 | fi | ||
243 | SHELL=${CONFIG_SHELL-/bin/sh} | ||
244 | export SHELL | ||
245 | # Unset more variables known to interfere with behavior of common tools. | ||
246 | CLICOLOR_FORCE= GREP_OPTIONS= | ||
247 | unset CLICOLOR_FORCE GREP_OPTIONS | ||
248 | |||
249 | ## --------------------- ## | ||
250 | ## M4sh Shell Functions. ## | ||
251 | ## --------------------- ## | ||
252 | # as_fn_unset VAR | ||
253 | # --------------- | ||
254 | # Portably unset VAR. | ||
255 | as_fn_unset () | ||
256 | { | ||
257 | { eval $1=; unset $1;} | ||
258 | } | ||
259 | as_unset=as_fn_unset | ||
260 | |||
261 | # as_fn_set_status STATUS | ||
262 | # ----------------------- | ||
263 | # Set $? to STATUS, without forking. | ||
264 | as_fn_set_status () | ||
265 | { | ||
266 | return $1 | ||
267 | } # as_fn_set_status | ||
268 | |||
269 | # as_fn_exit STATUS | ||
270 | # ----------------- | ||
271 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | ||
272 | as_fn_exit () | ||
273 | { | ||
274 | set +e | ||
275 | as_fn_set_status $1 | ||
276 | exit $1 | ||
277 | } # as_fn_exit | ||
278 | |||
279 | # as_fn_mkdir_p | ||
280 | # ------------- | ||
281 | # Create "$as_dir" as a directory, including parents if necessary. | ||
282 | as_fn_mkdir_p () | ||
283 | { | ||
284 | |||
285 | case $as_dir in #( | ||
286 | -*) as_dir=./$as_dir;; | ||
287 | esac | ||
288 | test -d "$as_dir" || eval $as_mkdir_p || { | ||
289 | as_dirs= | ||
290 | while :; do | ||
291 | case $as_dir in #( | ||
292 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | ||
293 | *) as_qdir=$as_dir;; | ||
294 | esac | ||
295 | as_dirs="'$as_qdir' $as_dirs" | ||
296 | as_dir=`$as_dirname -- "$as_dir" || | ||
297 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
298 | X"$as_dir" : 'X\(//\)[^/]' \| \ | ||
299 | X"$as_dir" : 'X\(//\)$' \| \ | ||
300 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | ||
301 | $as_echo X"$as_dir" | | ||
302 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
303 | s//\1/ | ||
304 | q | ||
305 | } | ||
306 | /^X\(\/\/\)[^/].*/{ | ||
307 | s//\1/ | ||
308 | q | ||
309 | } | ||
310 | /^X\(\/\/\)$/{ | ||
311 | s//\1/ | ||
312 | q | ||
313 | } | ||
314 | /^X\(\/\).*/{ | ||
315 | s//\1/ | ||
316 | q | ||
317 | } | ||
318 | s/.*/./; q'` | ||
319 | test -d "$as_dir" && break | ||
320 | done | ||
321 | test -z "$as_dirs" || eval "mkdir $as_dirs" | ||
322 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | ||
323 | |||
324 | |||
325 | } # as_fn_mkdir_p | ||
326 | # as_fn_append VAR VALUE | ||
327 | # ---------------------- | ||
328 | # Append the text in VALUE to the end of the definition contained in VAR. Take | ||
329 | # advantage of any shell optimizations that allow amortized linear growth over | ||
330 | # repeated appends, instead of the typical quadratic growth present in naive | ||
331 | # implementations. | ||
332 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | ||
333 | eval 'as_fn_append () | ||
334 | { | ||
335 | eval $1+=\$2 | ||
336 | }' | ||
337 | else | ||
338 | as_fn_append () | ||
339 | { | ||
340 | eval $1=\$$1\$2 | ||
341 | } | ||
342 | fi # as_fn_append | ||
343 | |||
344 | # as_fn_arith ARG... | ||
345 | # ------------------ | ||
346 | # Perform arithmetic evaluation on the ARGs, and store the result in the | ||
347 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | ||
348 | # must be portable across $(()) and expr. | ||
349 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | ||
350 | eval 'as_fn_arith () | ||
351 | { | ||
352 | as_val=$(( $* )) | ||
353 | }' | ||
354 | else | ||
355 | as_fn_arith () | ||
356 | { | ||
357 | as_val=`expr "$@" || test $? -eq 1` | ||
358 | } | ||
359 | fi # as_fn_arith | ||
360 | |||
361 | |||
362 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | ||
363 | # ---------------------------------------- | ||
364 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | ||
365 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | ||
366 | # script with STATUS, using 1 if that was 0. | ||
367 | as_fn_error () | ||
368 | { | ||
369 | as_status=$1; test $as_status -eq 0 && as_status=1 | ||
370 | if test "$4"; then | ||
371 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
372 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | ||
373 | fi | ||
374 | $as_echo "$as_me: error: $2" >&2 | ||
375 | as_fn_exit $as_status | ||
376 | } # as_fn_error | ||
377 | |||
378 | if expr a : '\(a\)' >/dev/null 2>&1 && | ||
379 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | ||
380 | as_expr=expr | ||
381 | else | ||
382 | as_expr=false | ||
383 | fi | ||
384 | |||
385 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | ||
386 | as_basename=basename | ||
387 | else | ||
388 | as_basename=false | ||
389 | fi | ||
390 | |||
391 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | ||
392 | as_dirname=dirname | ||
393 | else | ||
394 | as_dirname=false | ||
395 | fi | ||
396 | |||
397 | as_me=`$as_basename -- "$0" || | ||
398 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | ||
399 | X"$0" : 'X\(//\)$' \| \ | ||
400 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | ||
401 | $as_echo X/"$0" | | ||
402 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | ||
403 | s//\1/ | ||
404 | q | ||
405 | } | ||
406 | /^X\/\(\/\/\)$/{ | ||
407 | s//\1/ | ||
408 | q | ||
409 | } | ||
410 | /^X\/\(\/\).*/{ | ||
411 | s//\1/ | ||
412 | q | ||
413 | } | ||
414 | s/.*/./; q'` | ||
415 | |||
416 | # Avoid depending upon Character Ranges. | ||
417 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | ||
418 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | ||
419 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | ||
420 | as_cr_digits='0123456789' | ||
421 | as_cr_alnum=$as_cr_Letters$as_cr_digits | ||
422 | |||
423 | |||
424 | as_lineno_1=$LINENO as_lineno_1a=$LINENO | ||
425 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | ||
426 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | ||
427 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | ||
428 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | ||
429 | sed -n ' | ||
430 | p | ||
431 | /[$]LINENO/= | ||
432 | ' <$as_myself | | ||
433 | sed ' | ||
434 | s/[$]LINENO.*/&-/ | ||
435 | t lineno | ||
436 | b | ||
437 | :lineno | ||
438 | N | ||
439 | :loop | ||
440 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | ||
441 | t loop | ||
442 | s/-\n.*// | ||
443 | ' >$as_me.lineno && | ||
444 | chmod +x "$as_me.lineno" || | ||
445 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | ||
446 | |||
447 | # Don't try to exec as it changes $[0], causing all sort of problems | ||
448 | # (the dirname of $[0] is not the place where we might find the | ||
449 | # original and so on. Autoconf is especially sensitive to this). | ||
450 | . "./$as_me.lineno" | ||
451 | # Exit status is that of the last command. | ||
452 | exit | ||
453 | } | ||
454 | |||
455 | ECHO_C= ECHO_N= ECHO_T= | ||
456 | case `echo -n x` in #((((( | ||
457 | -n*) | ||
458 | case `echo 'xy\c'` in | ||
459 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | ||
460 | xy) ECHO_C='\c';; | ||
461 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | ||
462 | ECHO_T=' ';; | ||
463 | esac;; | ||
464 | *) | ||
465 | ECHO_N='-n';; | ||
466 | esac | ||
467 | |||
468 | rm -f conf$$ conf$$.exe conf$$.file | ||
469 | if test -d conf$$.dir; then | ||
470 | rm -f conf$$.dir/conf$$.file | ||
471 | else | ||
472 | rm -f conf$$.dir | ||
473 | mkdir conf$$.dir 2>/dev/null | ||
474 | fi | ||
475 | if (echo >conf$$.file) 2>/dev/null; then | ||
476 | if ln -s conf$$.file conf$$ 2>/dev/null; then | ||
477 | as_ln_s='ln -s' | ||
478 | # ... but there are two gotchas: | ||
479 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | ||
480 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | ||
481 | # In both cases, we have to default to `cp -p'. | ||
482 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | ||
483 | as_ln_s='cp -p' | ||
484 | elif ln conf$$.file conf$$ 2>/dev/null; then | ||
485 | as_ln_s=ln | ||
486 | else | ||
487 | as_ln_s='cp -p' | ||
488 | fi | ||
489 | else | ||
490 | as_ln_s='cp -p' | ||
491 | fi | ||
492 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | ||
493 | rmdir conf$$.dir 2>/dev/null | ||
494 | |||
495 | if mkdir -p . 2>/dev/null; then | ||
496 | as_mkdir_p='mkdir -p "$as_dir"' | ||
497 | else | ||
498 | test -d ./-p && rmdir ./-p | ||
499 | as_mkdir_p=false | ||
500 | fi | ||
501 | |||
502 | if test -x / >/dev/null 2>&1; then | ||
503 | as_test_x='test -x' | ||
504 | else | ||
505 | if ls -dL / >/dev/null 2>&1; then | ||
506 | as_ls_L_option=L | ||
507 | else | ||
508 | as_ls_L_option= | ||
509 | fi | ||
510 | as_test_x=' | ||
511 | eval sh -c '\'' | ||
512 | if test -d "$1"; then | ||
513 | test -d "$1/."; | ||
514 | else | ||
515 | case $1 in #( | ||
516 | -*)set "./$1";; | ||
517 | esac; | ||
518 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | ||
519 | ???[sx]*):;;*)false;;esac;fi | ||
520 | '\'' sh | ||
521 | ' | ||
522 | fi | ||
523 | as_executable_p=$as_test_x | ||
524 | |||
525 | # Sed expression to map a string onto a valid CPP name. | ||
526 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | ||
527 | |||
528 | # Sed expression to map a string onto a valid variable name. | ||
529 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | ||
530 | |||
531 | |||
532 | |||
533 | # Check that we are running under the correct shell. | ||
534 | SHELL=${CONFIG_SHELL-/bin/sh} | ||
535 | |||
536 | case X$lt_ECHO in | ||
537 | X*--fallback-echo) | ||
538 | # Remove one level of quotation (which was required for Make). | ||
539 | ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` | ||
540 | ;; | ||
541 | esac | ||
542 | |||
543 | ECHO=${lt_ECHO-echo} | ||
544 | if test "X$1" = X--no-reexec; then | ||
545 | # Discard the --no-reexec flag, and continue. | ||
546 | shift | ||
547 | elif test "X$1" = X--fallback-echo; then | ||
548 | # Avoid inline document here, it may be left over | ||
549 | : | ||
550 | elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then | ||
551 | # Yippee, $ECHO works! | ||
552 | : | ||
553 | else | ||
554 | # Restart under the correct shell. | ||
555 | exec $SHELL "$0" --no-reexec ${1+"$@"} | ||
556 | fi | ||
557 | |||
558 | if test "X$1" = X--fallback-echo; then | ||
559 | # used as fallback echo | ||
560 | shift | ||
561 | cat <<_LT_EOF | ||
562 | $* | ||
563 | _LT_EOF | ||
564 | exit 0 | ||
565 | fi | ||
566 | |||
567 | # The HP-UX ksh and POSIX shell print the target directory to stdout | ||
568 | # if CDPATH is set. | ||
569 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | ||
570 | |||
571 | if test -z "$lt_ECHO"; then | ||
572 | if test "X${echo_test_string+set}" != Xset; then | ||
573 | # find a string as large as possible, as long as the shell can cope with it | ||
574 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do | ||
575 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... | ||
576 | if { echo_test_string=`eval $cmd`; } 2>/dev/null && | ||
577 | { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null | ||
578 | then | ||
579 | break | ||
580 | fi | ||
581 | done | ||
582 | fi | ||
583 | |||
584 | if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && | ||
585 | echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && | ||
586 | test "X$echo_testing_string" = "X$echo_test_string"; then | ||
587 | : | ||
588 | else | ||
589 | # The Solaris, AIX, and Digital Unix default echo programs unquote | ||
590 | # backslashes. This makes it impossible to quote backslashes using | ||
591 | # echo "$something" | sed 's/\\/\\\\/g' | ||
592 | # | ||
593 | # So, first we look for a working echo in the user's PATH. | ||
594 | |||
595 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | ||
596 | for dir in $PATH /usr/ucb; do | ||
597 | IFS="$lt_save_ifs" | ||
598 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && | ||
599 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && | ||
600 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && | ||
601 | test "X$echo_testing_string" = "X$echo_test_string"; then | ||
602 | ECHO="$dir/echo" | ||
603 | break | ||
604 | fi | ||
605 | done | ||
606 | IFS="$lt_save_ifs" | ||
607 | |||
608 | if test "X$ECHO" = Xecho; then | ||
609 | # We didn't find a better echo, so look for alternatives. | ||
610 | if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && | ||
611 | echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && | ||
612 | test "X$echo_testing_string" = "X$echo_test_string"; then | ||
613 | # This shell has a builtin print -r that does the trick. | ||
614 | ECHO='print -r' | ||
615 | elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && | ||
616 | test "X$CONFIG_SHELL" != X/bin/ksh; then | ||
617 | # If we have ksh, try running configure again with it. | ||
618 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | ||
619 | export ORIGINAL_CONFIG_SHELL | ||
620 | CONFIG_SHELL=/bin/ksh | ||
621 | export CONFIG_SHELL | ||
622 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} | ||
623 | else | ||
624 | # Try using printf. | ||
625 | ECHO='printf %s\n' | ||
626 | if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && | ||
627 | echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && | ||
628 | test "X$echo_testing_string" = "X$echo_test_string"; then | ||
629 | # Cool, printf works | ||
630 | : | ||
631 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | ||
632 | test "X$echo_testing_string" = 'X\t' && | ||
633 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | ||
634 | test "X$echo_testing_string" = "X$echo_test_string"; then | ||
635 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL | ||
636 | export CONFIG_SHELL | ||
637 | SHELL="$CONFIG_SHELL" | ||
638 | export SHELL | ||
639 | ECHO="$CONFIG_SHELL $0 --fallback-echo" | ||
640 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | ||
641 | test "X$echo_testing_string" = 'X\t' && | ||
642 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | ||
643 | test "X$echo_testing_string" = "X$echo_test_string"; then | ||
644 | ECHO="$CONFIG_SHELL $0 --fallback-echo" | ||
645 | else | ||
646 | # maybe with a smaller string... | ||
647 | prev=: | ||
648 | |||
649 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do | ||
650 | if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null | ||
651 | then | ||
652 | break | ||
653 | fi | ||
654 | prev="$cmd" | ||
655 | done | ||
656 | |||
657 | if test "$prev" != 'sed 50q "$0"'; then | ||
658 | echo_test_string=`eval $prev` | ||
659 | export echo_test_string | ||
660 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} | ||
661 | else | ||
662 | # Oops. We lost completely, so just stick with echo. | ||
663 | ECHO=echo | ||
664 | fi | ||
665 | fi | ||
666 | fi | ||
667 | fi | ||
668 | fi | ||
669 | fi | ||
670 | |||
671 | # Copy echo and quote the copy suitably for passing to libtool from | ||
672 | # the Makefile, instead of quoting the original, which is used later. | ||
673 | lt_ECHO=$ECHO | ||
674 | if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then | ||
675 | lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" | ||
676 | fi | ||
677 | |||
678 | |||
679 | |||
680 | |||
681 | test -n "$DJDIR" || exec 7<&0 </dev/null | ||
682 | exec 6>&1 | ||
683 | |||
684 | # Name of the host. | ||
685 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, | ||
686 | # so uname gets run too. | ||
687 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | ||
688 | |||
689 | # | ||
690 | # Initializations. | ||
691 | # | ||
692 | ac_default_prefix=/usr/local | ||
693 | ac_clean_files= | ||
694 | ac_config_libobj_dir=. | ||
695 | LIBOBJS= | ||
696 | cross_compiling=no | ||
697 | subdirs= | ||
698 | MFLAGS= | ||
699 | MAKEFLAGS= | ||
700 | |||
701 | # Identity of this package. | ||
702 | PACKAGE_NAME='embryo' | ||
703 | PACKAGE_TARNAME='embryo' | ||
704 | PACKAGE_VERSION='1.2.0-alpha' | ||
705 | PACKAGE_STRING='embryo 1.2.0-alpha' | ||
706 | PACKAGE_BUGREPORT='enlightenment-devel@lists.sourceforge.net' | ||
707 | PACKAGE_URL='' | ||
708 | |||
709 | ac_unique_file="configure.ac" | ||
710 | # Factoring default headers for most tests. | ||
711 | ac_includes_default="\ | ||
712 | #include <stdio.h> | ||
713 | #ifdef HAVE_SYS_TYPES_H | ||
714 | # include <sys/types.h> | ||
715 | #endif | ||
716 | #ifdef HAVE_SYS_STAT_H | ||
717 | # include <sys/stat.h> | ||
718 | #endif | ||
719 | #ifdef STDC_HEADERS | ||
720 | # include <stdlib.h> | ||
721 | # include <stddef.h> | ||
722 | #else | ||
723 | # ifdef HAVE_STDLIB_H | ||
724 | # include <stdlib.h> | ||
725 | # endif | ||
726 | #endif | ||
727 | #ifdef HAVE_STRING_H | ||
728 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | ||
729 | # include <memory.h> | ||
730 | # endif | ||
731 | # include <string.h> | ||
732 | #endif | ||
733 | #ifdef HAVE_STRINGS_H | ||
734 | # include <strings.h> | ||
735 | #endif | ||
736 | #ifdef HAVE_INTTYPES_H | ||
737 | # include <inttypes.h> | ||
738 | #endif | ||
739 | #ifdef HAVE_STDINT_H | ||
740 | # include <stdint.h> | ||
741 | #endif | ||
742 | #ifdef HAVE_UNISTD_H | ||
743 | # include <unistd.h> | ||
744 | #endif" | ||
745 | |||
746 | ac_subst_vars='am__EXEEXT_FALSE | ||
747 | am__EXEEXT_TRUE | ||
748 | LTLIBOBJS | ||
749 | LIBOBJS | ||
750 | embryoincludedir | ||
751 | requirement_embryo | ||
752 | EFL_FNMATCH_LIBS | ||
753 | ALLOCA | ||
754 | lt_enable_auto_import | ||
755 | EMBRYO_CFLAGS | ||
756 | EMBRYO_CPPFLAGS | ||
757 | EXOTIC_LIBS | ||
758 | EXOTIC_CFLAGS | ||
759 | EINA_LIBS | ||
760 | EINA_CFLAGS | ||
761 | EFL_EMBRYO_BUILD | ||
762 | EVIL_LIBS | ||
763 | EVIL_CFLAGS | ||
764 | pkgconfig_requires_private | ||
765 | PKG_CONFIG_LIBDIR | ||
766 | PKG_CONFIG_PATH | ||
767 | PKG_CONFIG | ||
768 | EFL_BUILD_DOC_FALSE | ||
769 | EFL_BUILD_DOC_TRUE | ||
770 | efl_doxygen | ||
771 | efl_have_doxygen | ||
772 | BUILD_EMBRYO_CC_FALSE | ||
773 | BUILD_EMBRYO_CC_TRUE | ||
774 | EMBRYO_CC_PRG | ||
775 | VMAJ | ||
776 | release_info | ||
777 | version_info | ||
778 | CPP | ||
779 | OTOOL64 | ||
780 | OTOOL | ||
781 | LIPO | ||
782 | NMEDIT | ||
783 | DSYMUTIL | ||
784 | lt_ECHO | ||
785 | RANLIB | ||
786 | AR | ||
787 | LN_S | ||
788 | NM | ||
789 | ac_ct_DUMPBIN | ||
790 | DUMPBIN | ||
791 | LD | ||
792 | FGREP | ||
793 | EGREP | ||
794 | GREP | ||
795 | SED | ||
796 | am__fastdepCC_FALSE | ||
797 | am__fastdepCC_TRUE | ||
798 | CCDEPMODE | ||
799 | AMDEPBACKSLASH | ||
800 | AMDEP_FALSE | ||
801 | AMDEP_TRUE | ||
802 | am__quote | ||
803 | am__include | ||
804 | DEPDIR | ||
805 | OBJEXT | ||
806 | EXEEXT | ||
807 | ac_ct_CC | ||
808 | CPPFLAGS | ||
809 | LDFLAGS | ||
810 | CFLAGS | ||
811 | CC | ||
812 | LIBTOOL | ||
813 | OBJDUMP | ||
814 | DLLTOOL | ||
815 | AS | ||
816 | host_os | ||
817 | host_vendor | ||
818 | host_cpu | ||
819 | host | ||
820 | build_os | ||
821 | build_vendor | ||
822 | build_cpu | ||
823 | build | ||
824 | AM_BACKSLASH | ||
825 | AM_DEFAULT_VERBOSITY | ||
826 | am__untar | ||
827 | am__tar | ||
828 | AMTAR | ||
829 | am__leading_dot | ||
830 | SET_MAKE | ||
831 | AWK | ||
832 | mkdir_p | ||
833 | MKDIR_P | ||
834 | INSTALL_STRIP_PROGRAM | ||
835 | STRIP | ||
836 | install_sh | ||
837 | MAKEINFO | ||
838 | AUTOHEADER | ||
839 | AUTOMAKE | ||
840 | AUTOCONF | ||
841 | ACLOCAL | ||
842 | VERSION | ||
843 | PACKAGE | ||
844 | CYGPATH_W | ||
845 | am__isrc | ||
846 | INSTALL_DATA | ||
847 | INSTALL_SCRIPT | ||
848 | INSTALL_PROGRAM | ||
849 | target_alias | ||
850 | host_alias | ||
851 | build_alias | ||
852 | LIBS | ||
853 | ECHO_T | ||
854 | ECHO_N | ||
855 | ECHO_C | ||
856 | DEFS | ||
857 | mandir | ||
858 | localedir | ||
859 | libdir | ||
860 | psdir | ||
861 | pdfdir | ||
862 | dvidir | ||
863 | htmldir | ||
864 | infodir | ||
865 | docdir | ||
866 | oldincludedir | ||
867 | includedir | ||
868 | localstatedir | ||
869 | sharedstatedir | ||
870 | sysconfdir | ||
871 | datadir | ||
872 | datarootdir | ||
873 | libexecdir | ||
874 | sbindir | ||
875 | bindir | ||
876 | program_transform_name | ||
877 | prefix | ||
878 | exec_prefix | ||
879 | PACKAGE_URL | ||
880 | PACKAGE_BUGREPORT | ||
881 | PACKAGE_STRING | ||
882 | PACKAGE_VERSION | ||
883 | PACKAGE_TARNAME | ||
884 | PACKAGE_NAME | ||
885 | PATH_SEPARATOR | ||
886 | SHELL' | ||
887 | ac_subst_files='' | ||
888 | ac_user_opts=' | ||
889 | enable_option_checking | ||
890 | enable_silent_rules | ||
891 | enable_shared | ||
892 | enable_static | ||
893 | with_pic | ||
894 | enable_fast_install | ||
895 | enable_dependency_tracking | ||
896 | with_gnu_ld | ||
897 | enable_libtool_lock | ||
898 | enable_embryo_cc | ||
899 | enable_doc | ||
900 | with_doxygen | ||
901 | ' | ||
902 | ac_precious_vars='build_alias | ||
903 | host_alias | ||
904 | target_alias | ||
905 | CC | ||
906 | CFLAGS | ||
907 | LDFLAGS | ||
908 | LIBS | ||
909 | CPPFLAGS | ||
910 | CPP | ||
911 | PKG_CONFIG | ||
912 | PKG_CONFIG_PATH | ||
913 | PKG_CONFIG_LIBDIR | ||
914 | EVIL_CFLAGS | ||
915 | EVIL_LIBS | ||
916 | EINA_CFLAGS | ||
917 | EINA_LIBS | ||
918 | EXOTIC_CFLAGS | ||
919 | EXOTIC_LIBS' | ||
920 | |||
921 | |||
922 | # Initialize some variables set by options. | ||
923 | ac_init_help= | ||
924 | ac_init_version=false | ||
925 | ac_unrecognized_opts= | ||
926 | ac_unrecognized_sep= | ||
927 | # The variables have the same names as the options, with | ||
928 | # dashes changed to underlines. | ||
929 | cache_file=/dev/null | ||
930 | exec_prefix=NONE | ||
931 | no_create= | ||
932 | no_recursion= | ||
933 | prefix=NONE | ||
934 | program_prefix=NONE | ||
935 | program_suffix=NONE | ||
936 | program_transform_name=s,x,x, | ||
937 | silent= | ||
938 | site= | ||
939 | srcdir= | ||
940 | verbose= | ||
941 | x_includes=NONE | ||
942 | x_libraries=NONE | ||
943 | |||
944 | # Installation directory options. | ||
945 | # These are left unexpanded so users can "make install exec_prefix=/foo" | ||
946 | # and all the variables that are supposed to be based on exec_prefix | ||
947 | # by default will actually change. | ||
948 | # Use braces instead of parens because sh, perl, etc. also accept them. | ||
949 | # (The list follows the same order as the GNU Coding Standards.) | ||
950 | bindir='${exec_prefix}/bin' | ||
951 | sbindir='${exec_prefix}/sbin' | ||
952 | libexecdir='${exec_prefix}/libexec' | ||
953 | datarootdir='${prefix}/share' | ||
954 | datadir='${datarootdir}' | ||
955 | sysconfdir='${prefix}/etc' | ||
956 | sharedstatedir='${prefix}/com' | ||
957 | localstatedir='${prefix}/var' | ||
958 | includedir='${prefix}/include' | ||
959 | oldincludedir='/usr/include' | ||
960 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | ||
961 | infodir='${datarootdir}/info' | ||
962 | htmldir='${docdir}' | ||
963 | dvidir='${docdir}' | ||
964 | pdfdir='${docdir}' | ||
965 | psdir='${docdir}' | ||
966 | libdir='${exec_prefix}/lib' | ||
967 | localedir='${datarootdir}/locale' | ||
968 | mandir='${datarootdir}/man' | ||
969 | |||
970 | ac_prev= | ||
971 | ac_dashdash= | ||
972 | for ac_option | ||
973 | do | ||
974 | # If the previous option needs an argument, assign it. | ||
975 | if test -n "$ac_prev"; then | ||
976 | eval $ac_prev=\$ac_option | ||
977 | ac_prev= | ||
978 | continue | ||
979 | fi | ||
980 | |||
981 | case $ac_option in | ||
982 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | ||
983 | *=) ac_optarg= ;; | ||
984 | *) ac_optarg=yes ;; | ||
985 | esac | ||
986 | |||
987 | # Accept the important Cygnus configure options, so we can diagnose typos. | ||
988 | |||
989 | case $ac_dashdash$ac_option in | ||
990 | --) | ||
991 | ac_dashdash=yes ;; | ||
992 | |||
993 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | ||
994 | ac_prev=bindir ;; | ||
995 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | ||
996 | bindir=$ac_optarg ;; | ||
997 | |||
998 | -build | --build | --buil | --bui | --bu) | ||
999 | ac_prev=build_alias ;; | ||
1000 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | ||
1001 | build_alias=$ac_optarg ;; | ||
1002 | |||
1003 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | ||
1004 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | ||
1005 | ac_prev=cache_file ;; | ||
1006 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | ||
1007 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | ||
1008 | cache_file=$ac_optarg ;; | ||
1009 | |||
1010 | --config-cache | -C) | ||
1011 | cache_file=config.cache ;; | ||
1012 | |||
1013 | -datadir | --datadir | --datadi | --datad) | ||
1014 | ac_prev=datadir ;; | ||
1015 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | ||
1016 | datadir=$ac_optarg ;; | ||
1017 | |||
1018 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | ||
1019 | | --dataroo | --dataro | --datar) | ||
1020 | ac_prev=datarootdir ;; | ||
1021 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | ||
1022 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | ||
1023 | datarootdir=$ac_optarg ;; | ||
1024 | |||
1025 | -disable-* | --disable-*) | ||
1026 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | ||
1027 | # Reject names that are not valid shell variable names. | ||
1028 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | ||
1029 | as_fn_error $? "invalid feature name: $ac_useropt" | ||
1030 | ac_useropt_orig=$ac_useropt | ||
1031 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | ||
1032 | case $ac_user_opts in | ||
1033 | *" | ||
1034 | "enable_$ac_useropt" | ||
1035 | "*) ;; | ||
1036 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | ||
1037 | ac_unrecognized_sep=', ';; | ||
1038 | esac | ||
1039 | eval enable_$ac_useropt=no ;; | ||
1040 | |||
1041 | -docdir | --docdir | --docdi | --doc | --do) | ||
1042 | ac_prev=docdir ;; | ||
1043 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | ||
1044 | docdir=$ac_optarg ;; | ||
1045 | |||
1046 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | ||
1047 | ac_prev=dvidir ;; | ||
1048 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | ||
1049 | dvidir=$ac_optarg ;; | ||
1050 | |||
1051 | -enable-* | --enable-*) | ||
1052 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | ||
1053 | # Reject names that are not valid shell variable names. | ||
1054 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | ||
1055 | as_fn_error $? "invalid feature name: $ac_useropt" | ||
1056 | ac_useropt_orig=$ac_useropt | ||
1057 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | ||
1058 | case $ac_user_opts in | ||
1059 | *" | ||
1060 | "enable_$ac_useropt" | ||
1061 | "*) ;; | ||
1062 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | ||
1063 | ac_unrecognized_sep=', ';; | ||
1064 | esac | ||
1065 | eval enable_$ac_useropt=\$ac_optarg ;; | ||
1066 | |||
1067 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | ||
1068 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | ||
1069 | | --exec | --exe | --ex) | ||
1070 | ac_prev=exec_prefix ;; | ||
1071 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | ||
1072 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | ||
1073 | | --exec=* | --exe=* | --ex=*) | ||
1074 | exec_prefix=$ac_optarg ;; | ||
1075 | |||
1076 | -gas | --gas | --ga | --g) | ||
1077 | # Obsolete; use --with-gas. | ||
1078 | with_gas=yes ;; | ||
1079 | |||
1080 | -help | --help | --hel | --he | -h) | ||
1081 | ac_init_help=long ;; | ||
1082 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | ||
1083 | ac_init_help=recursive ;; | ||
1084 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | ||
1085 | ac_init_help=short ;; | ||
1086 | |||
1087 | -host | --host | --hos | --ho) | ||
1088 | ac_prev=host_alias ;; | ||
1089 | -host=* | --host=* | --hos=* | --ho=*) | ||
1090 | host_alias=$ac_optarg ;; | ||
1091 | |||
1092 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | ||
1093 | ac_prev=htmldir ;; | ||
1094 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | ||
1095 | | --ht=*) | ||
1096 | htmldir=$ac_optarg ;; | ||
1097 | |||
1098 | -includedir | --includedir | --includedi | --included | --include \ | ||
1099 | | --includ | --inclu | --incl | --inc) | ||
1100 | ac_prev=includedir ;; | ||
1101 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | ||
1102 | | --includ=* | --inclu=* | --incl=* | --inc=*) | ||
1103 | includedir=$ac_optarg ;; | ||
1104 | |||
1105 | -infodir | --infodir | --infodi | --infod | --info | --inf) | ||
1106 | ac_prev=infodir ;; | ||
1107 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | ||
1108 | infodir=$ac_optarg ;; | ||
1109 | |||
1110 | -libdir | --libdir | --libdi | --libd) | ||
1111 | ac_prev=libdir ;; | ||
1112 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | ||
1113 | libdir=$ac_optarg ;; | ||
1114 | |||
1115 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | ||
1116 | | --libexe | --libex | --libe) | ||
1117 | ac_prev=libexecdir ;; | ||
1118 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | ||
1119 | | --libexe=* | --libex=* | --libe=*) | ||
1120 | libexecdir=$ac_optarg ;; | ||
1121 | |||
1122 | -localedir | --localedir | --localedi | --localed | --locale) | ||
1123 | ac_prev=localedir ;; | ||
1124 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | ||
1125 | localedir=$ac_optarg ;; | ||
1126 | |||
1127 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | ||
1128 | | --localstate | --localstat | --localsta | --localst | --locals) | ||
1129 | ac_prev=localstatedir ;; | ||
1130 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | ||
1131 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | ||
1132 | localstatedir=$ac_optarg ;; | ||
1133 | |||
1134 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | ||
1135 | ac_prev=mandir ;; | ||
1136 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | ||
1137 | mandir=$ac_optarg ;; | ||
1138 | |||
1139 | -nfp | --nfp | --nf) | ||
1140 | # Obsolete; use --without-fp. | ||
1141 | with_fp=no ;; | ||
1142 | |||
1143 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | ||
1144 | | --no-cr | --no-c | -n) | ||
1145 | no_create=yes ;; | ||
1146 | |||
1147 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | ||
1148 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | ||
1149 | no_recursion=yes ;; | ||
1150 | |||
1151 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | ||
1152 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | ||
1153 | | --oldin | --oldi | --old | --ol | --o) | ||
1154 | ac_prev=oldincludedir ;; | ||
1155 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | ||
1156 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | ||
1157 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | ||
1158 | oldincludedir=$ac_optarg ;; | ||
1159 | |||
1160 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | ||
1161 | ac_prev=prefix ;; | ||
1162 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | ||
1163 | prefix=$ac_optarg ;; | ||
1164 | |||
1165 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | ||
1166 | | --program-pre | --program-pr | --program-p) | ||
1167 | ac_prev=program_prefix ;; | ||
1168 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | ||
1169 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | ||
1170 | program_prefix=$ac_optarg ;; | ||
1171 | |||
1172 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | ||
1173 | | --program-suf | --program-su | --program-s) | ||
1174 | ac_prev=program_suffix ;; | ||
1175 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | ||
1176 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | ||
1177 | program_suffix=$ac_optarg ;; | ||
1178 | |||
1179 | -program-transform-name | --program-transform-name \ | ||
1180 | | --program-transform-nam | --program-transform-na \ | ||
1181 | | --program-transform-n | --program-transform- \ | ||
1182 | | --program-transform | --program-transfor \ | ||
1183 | | --program-transfo | --program-transf \ | ||
1184 | | --program-trans | --program-tran \ | ||
1185 | | --progr-tra | --program-tr | --program-t) | ||
1186 | ac_prev=program_transform_name ;; | ||
1187 | -program-transform-name=* | --program-transform-name=* \ | ||
1188 | | --program-transform-nam=* | --program-transform-na=* \ | ||
1189 | | --program-transform-n=* | --program-transform-=* \ | ||
1190 | | --program-transform=* | --program-transfor=* \ | ||
1191 | | --program-transfo=* | --program-transf=* \ | ||
1192 | | --program-trans=* | --program-tran=* \ | ||
1193 | | --progr-tra=* | --program-tr=* | --program-t=*) | ||
1194 | program_transform_name=$ac_optarg ;; | ||
1195 | |||
1196 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | ||
1197 | ac_prev=pdfdir ;; | ||
1198 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | ||
1199 | pdfdir=$ac_optarg ;; | ||
1200 | |||
1201 | -psdir | --psdir | --psdi | --psd | --ps) | ||
1202 | ac_prev=psdir ;; | ||
1203 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | ||
1204 | psdir=$ac_optarg ;; | ||
1205 | |||
1206 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
1207 | | -silent | --silent | --silen | --sile | --sil) | ||
1208 | silent=yes ;; | ||
1209 | |||
1210 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | ||
1211 | ac_prev=sbindir ;; | ||
1212 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | ||
1213 | | --sbi=* | --sb=*) | ||
1214 | sbindir=$ac_optarg ;; | ||
1215 | |||
1216 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | ||
1217 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | ||
1218 | | --sharedst | --shareds | --shared | --share | --shar \ | ||
1219 | | --sha | --sh) | ||
1220 | ac_prev=sharedstatedir ;; | ||
1221 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | ||
1222 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | ||
1223 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | ||
1224 | | --sha=* | --sh=*) | ||
1225 | sharedstatedir=$ac_optarg ;; | ||
1226 | |||
1227 | -site | --site | --sit) | ||
1228 | ac_prev=site ;; | ||
1229 | -site=* | --site=* | --sit=*) | ||
1230 | site=$ac_optarg ;; | ||
1231 | |||
1232 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | ||
1233 | ac_prev=srcdir ;; | ||
1234 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | ||
1235 | srcdir=$ac_optarg ;; | ||
1236 | |||
1237 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | ||
1238 | | --syscon | --sysco | --sysc | --sys | --sy) | ||
1239 | ac_prev=sysconfdir ;; | ||
1240 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | ||
1241 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | ||
1242 | sysconfdir=$ac_optarg ;; | ||
1243 | |||
1244 | -target | --target | --targe | --targ | --tar | --ta | --t) | ||
1245 | ac_prev=target_alias ;; | ||
1246 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | ||
1247 | target_alias=$ac_optarg ;; | ||
1248 | |||
1249 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | ||
1250 | verbose=yes ;; | ||
1251 | |||
1252 | -version | --version | --versio | --versi | --vers | -V) | ||
1253 | ac_init_version=: ;; | ||
1254 | |||
1255 | -with-* | --with-*) | ||
1256 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | ||
1257 | # Reject names that are not valid shell variable names. | ||
1258 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | ||
1259 | as_fn_error $? "invalid package name: $ac_useropt" | ||
1260 | ac_useropt_orig=$ac_useropt | ||
1261 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | ||
1262 | case $ac_user_opts in | ||
1263 | *" | ||
1264 | "with_$ac_useropt" | ||
1265 | "*) ;; | ||
1266 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | ||
1267 | ac_unrecognized_sep=', ';; | ||
1268 | esac | ||
1269 | eval with_$ac_useropt=\$ac_optarg ;; | ||
1270 | |||
1271 | -without-* | --without-*) | ||
1272 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | ||
1273 | # Reject names that are not valid shell variable names. | ||
1274 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | ||
1275 | as_fn_error $? "invalid package name: $ac_useropt" | ||
1276 | ac_useropt_orig=$ac_useropt | ||
1277 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | ||
1278 | case $ac_user_opts in | ||
1279 | *" | ||
1280 | "with_$ac_useropt" | ||
1281 | "*) ;; | ||
1282 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | ||
1283 | ac_unrecognized_sep=', ';; | ||
1284 | esac | ||
1285 | eval with_$ac_useropt=no ;; | ||
1286 | |||
1287 | --x) | ||
1288 | # Obsolete; use --with-x. | ||
1289 | with_x=yes ;; | ||
1290 | |||
1291 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | ||
1292 | | --x-incl | --x-inc | --x-in | --x-i) | ||
1293 | ac_prev=x_includes ;; | ||
1294 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | ||
1295 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | ||
1296 | x_includes=$ac_optarg ;; | ||
1297 | |||
1298 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | ||
1299 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | ||
1300 | ac_prev=x_libraries ;; | ||
1301 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | ||
1302 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | ||
1303 | x_libraries=$ac_optarg ;; | ||
1304 | |||
1305 | -*) as_fn_error $? "unrecognized option: \`$ac_option' | ||
1306 | Try \`$0 --help' for more information" | ||
1307 | ;; | ||
1308 | |||
1309 | *=*) | ||
1310 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | ||
1311 | # Reject names that are not valid shell variable names. | ||
1312 | case $ac_envvar in #( | ||
1313 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | ||
1314 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; | ||
1315 | esac | ||
1316 | eval $ac_envvar=\$ac_optarg | ||
1317 | export $ac_envvar ;; | ||
1318 | |||
1319 | *) | ||
1320 | # FIXME: should be removed in autoconf 3.0. | ||
1321 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | ||
1322 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | ||
1323 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | ||
1324 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | ||
1325 | ;; | ||
1326 | |||
1327 | esac | ||
1328 | done | ||
1329 | |||
1330 | if test -n "$ac_prev"; then | ||
1331 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | ||
1332 | as_fn_error $? "missing argument to $ac_option" | ||
1333 | fi | ||
1334 | |||
1335 | if test -n "$ac_unrecognized_opts"; then | ||
1336 | case $enable_option_checking in | ||
1337 | no) ;; | ||
1338 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; | ||
1339 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | ||
1340 | esac | ||
1341 | fi | ||
1342 | |||
1343 | # Check all directory arguments for consistency. | ||
1344 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | ||
1345 | datadir sysconfdir sharedstatedir localstatedir includedir \ | ||
1346 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | ||
1347 | libdir localedir mandir | ||
1348 | do | ||
1349 | eval ac_val=\$$ac_var | ||
1350 | # Remove trailing slashes. | ||
1351 | case $ac_val in | ||
1352 | */ ) | ||
1353 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | ||
1354 | eval $ac_var=\$ac_val;; | ||
1355 | esac | ||
1356 | # Be sure to have absolute directory names. | ||
1357 | case $ac_val in | ||
1358 | [\\/$]* | ?:[\\/]* ) continue;; | ||
1359 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | ||
1360 | esac | ||
1361 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" | ||
1362 | done | ||
1363 | |||
1364 | # There might be people who depend on the old broken behavior: `$host' | ||
1365 | # used to hold the argument of --host etc. | ||
1366 | # FIXME: To remove some day. | ||
1367 | build=$build_alias | ||
1368 | host=$host_alias | ||
1369 | target=$target_alias | ||
1370 | |||
1371 | # FIXME: To remove some day. | ||
1372 | if test "x$host_alias" != x; then | ||
1373 | if test "x$build_alias" = x; then | ||
1374 | cross_compiling=maybe | ||
1375 | $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. | ||
1376 | If a cross compiler is detected then cross compile mode will be used" >&2 | ||
1377 | elif test "x$build_alias" != "x$host_alias"; then | ||
1378 | cross_compiling=yes | ||
1379 | fi | ||
1380 | fi | ||
1381 | |||
1382 | ac_tool_prefix= | ||
1383 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | ||
1384 | |||
1385 | test "$silent" = yes && exec 6>/dev/null | ||
1386 | |||
1387 | |||
1388 | ac_pwd=`pwd` && test -n "$ac_pwd" && | ||
1389 | ac_ls_di=`ls -di .` && | ||
1390 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | ||
1391 | as_fn_error $? "working directory cannot be determined" | ||
1392 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | ||
1393 | as_fn_error $? "pwd does not report name of working directory" | ||
1394 | |||
1395 | |||
1396 | # Find the source files, if location was not specified. | ||
1397 | if test -z "$srcdir"; then | ||
1398 | ac_srcdir_defaulted=yes | ||
1399 | # Try the directory containing this script, then the parent directory. | ||
1400 | ac_confdir=`$as_dirname -- "$as_myself" || | ||
1401 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
1402 | X"$as_myself" : 'X\(//\)[^/]' \| \ | ||
1403 | X"$as_myself" : 'X\(//\)$' \| \ | ||
1404 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | ||
1405 | $as_echo X"$as_myself" | | ||
1406 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
1407 | s//\1/ | ||
1408 | q | ||
1409 | } | ||
1410 | /^X\(\/\/\)[^/].*/{ | ||
1411 | s//\1/ | ||
1412 | q | ||
1413 | } | ||
1414 | /^X\(\/\/\)$/{ | ||
1415 | s//\1/ | ||
1416 | q | ||
1417 | } | ||
1418 | /^X\(\/\).*/{ | ||
1419 | s//\1/ | ||
1420 | q | ||
1421 | } | ||
1422 | s/.*/./; q'` | ||
1423 | srcdir=$ac_confdir | ||
1424 | if test ! -r "$srcdir/$ac_unique_file"; then | ||
1425 | srcdir=.. | ||
1426 | fi | ||
1427 | else | ||
1428 | ac_srcdir_defaulted=no | ||
1429 | fi | ||
1430 | if test ! -r "$srcdir/$ac_unique_file"; then | ||
1431 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | ||
1432 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" | ||
1433 | fi | ||
1434 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | ||
1435 | ac_abs_confdir=`( | ||
1436 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" | ||
1437 | pwd)` | ||
1438 | # When building in place, set srcdir=. | ||
1439 | if test "$ac_abs_confdir" = "$ac_pwd"; then | ||
1440 | srcdir=. | ||
1441 | fi | ||
1442 | # Remove unnecessary trailing slashes from srcdir. | ||
1443 | # Double slashes in file names in object file debugging info | ||
1444 | # mess up M-x gdb in Emacs. | ||
1445 | case $srcdir in | ||
1446 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | ||
1447 | esac | ||
1448 | for ac_var in $ac_precious_vars; do | ||
1449 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | ||
1450 | eval ac_env_${ac_var}_value=\$${ac_var} | ||
1451 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | ||
1452 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | ||
1453 | done | ||
1454 | |||
1455 | # | ||
1456 | # Report the --help message. | ||
1457 | # | ||
1458 | if test "$ac_init_help" = "long"; then | ||
1459 | # Omit some internal or obsolete options to make the list less imposing. | ||
1460 | # This message is too long to be a string in the A/UX 3.1 sh. | ||
1461 | cat <<_ACEOF | ||
1462 | \`configure' configures embryo 1.2.0-alpha to adapt to many kinds of systems. | ||
1463 | |||
1464 | Usage: $0 [OPTION]... [VAR=VALUE]... | ||
1465 | |||
1466 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | ||
1467 | VAR=VALUE. See below for descriptions of some of the useful variables. | ||
1468 | |||
1469 | Defaults for the options are specified in brackets. | ||
1470 | |||
1471 | Configuration: | ||
1472 | -h, --help display this help and exit | ||
1473 | --help=short display options specific to this package | ||
1474 | --help=recursive display the short help of all the included packages | ||
1475 | -V, --version display version information and exit | ||
1476 | -q, --quiet, --silent do not print \`checking ...' messages | ||
1477 | --cache-file=FILE cache test results in FILE [disabled] | ||
1478 | -C, --config-cache alias for \`--cache-file=config.cache' | ||
1479 | -n, --no-create do not create output files | ||
1480 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | ||
1481 | |||
1482 | Installation directories: | ||
1483 | --prefix=PREFIX install architecture-independent files in PREFIX | ||
1484 | [$ac_default_prefix] | ||
1485 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | ||
1486 | [PREFIX] | ||
1487 | |||
1488 | By default, \`make install' will install all the files in | ||
1489 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | ||
1490 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | ||
1491 | for instance \`--prefix=\$HOME'. | ||
1492 | |||
1493 | For better control, use the options below. | ||
1494 | |||
1495 | Fine tuning of the installation directories: | ||
1496 | --bindir=DIR user executables [EPREFIX/bin] | ||
1497 | --sbindir=DIR system admin executables [EPREFIX/sbin] | ||
1498 | --libexecdir=DIR program executables [EPREFIX/libexec] | ||
1499 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | ||
1500 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | ||
1501 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | ||
1502 | --libdir=DIR object code libraries [EPREFIX/lib] | ||
1503 | --includedir=DIR C header files [PREFIX/include] | ||
1504 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | ||
1505 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | ||
1506 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | ||
1507 | --infodir=DIR info documentation [DATAROOTDIR/info] | ||
1508 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | ||
1509 | --mandir=DIR man documentation [DATAROOTDIR/man] | ||
1510 | --docdir=DIR documentation root [DATAROOTDIR/doc/embryo] | ||
1511 | --htmldir=DIR html documentation [DOCDIR] | ||
1512 | --dvidir=DIR dvi documentation [DOCDIR] | ||
1513 | --pdfdir=DIR pdf documentation [DOCDIR] | ||
1514 | --psdir=DIR ps documentation [DOCDIR] | ||
1515 | _ACEOF | ||
1516 | |||
1517 | cat <<\_ACEOF | ||
1518 | |||
1519 | Program names: | ||
1520 | --program-prefix=PREFIX prepend PREFIX to installed program names | ||
1521 | --program-suffix=SUFFIX append SUFFIX to installed program names | ||
1522 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | ||
1523 | |||
1524 | System types: | ||
1525 | --build=BUILD configure for building on BUILD [guessed] | ||
1526 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | ||
1527 | _ACEOF | ||
1528 | fi | ||
1529 | |||
1530 | if test -n "$ac_init_help"; then | ||
1531 | case $ac_init_help in | ||
1532 | short | recursive ) echo "Configuration of embryo 1.2.0-alpha:";; | ||
1533 | esac | ||
1534 | cat <<\_ACEOF | ||
1535 | |||
1536 | Optional Features: | ||
1537 | --disable-option-checking ignore unrecognized --enable/--with options | ||
1538 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | ||
1539 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | ||
1540 | --enable-silent-rules less verbose build output (undo: `make V=1') | ||
1541 | --disable-silent-rules verbose build output (undo: `make V=0') | ||
1542 | --enable-shared[=PKGS] build shared libraries [default=yes] | ||
1543 | --enable-static[=PKGS] build static libraries [default=yes] | ||
1544 | --enable-fast-install[=PKGS] | ||
1545 | optimize for fast installation [default=yes] | ||
1546 | --disable-dependency-tracking speeds up one-time build | ||
1547 | --enable-dependency-tracking do not reject slow dependency extractors | ||
1548 | --disable-libtool-lock avoid locking (might break parallel builds) | ||
1549 | --disable-embryo-cc disable building of embryo_cc | ||
1550 | --disable-doc Disable documentation build [default=enabled] | ||
1551 | |||
1552 | Optional Packages: | ||
1553 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | ||
1554 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | ||
1555 | --with-pic try to use only PIC/non-PIC objects [default=use | ||
1556 | both] | ||
1557 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | ||
1558 | --with-doxygen=FILE doxygen program to use [default=doxygen] | ||
1559 | |||
1560 | Some influential environment variables: | ||
1561 | CC C compiler command | ||
1562 | CFLAGS C compiler flags | ||
1563 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | ||
1564 | nonstandard directory <lib dir> | ||
1565 | LIBS libraries to pass to the linker, e.g. -l<library> | ||
1566 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if | ||
1567 | you have headers in a nonstandard directory <include dir> | ||
1568 | CPP C preprocessor | ||
1569 | PKG_CONFIG path to pkg-config utility | ||
1570 | PKG_CONFIG_PATH | ||
1571 | directories to add to pkg-config's search path | ||
1572 | PKG_CONFIG_LIBDIR | ||
1573 | path overriding pkg-config's built-in search path | ||
1574 | EVIL_CFLAGS C compiler flags for EVIL, overriding pkg-config | ||
1575 | EVIL_LIBS linker flags for EVIL, overriding pkg-config | ||
1576 | EINA_CFLAGS C compiler flags for EINA, overriding pkg-config | ||
1577 | EINA_LIBS linker flags for EINA, overriding pkg-config | ||
1578 | EXOTIC_CFLAGS | ||
1579 | C compiler flags for EXOTIC, overriding pkg-config | ||
1580 | EXOTIC_LIBS linker flags for EXOTIC, overriding pkg-config | ||
1581 | |||
1582 | Use these variables to override the choices made by `configure' or to help | ||
1583 | it to find libraries and programs with nonstandard names/locations. | ||
1584 | |||
1585 | Report bugs to <enlightenment-devel@lists.sourceforge.net>. | ||
1586 | _ACEOF | ||
1587 | ac_status=$? | ||
1588 | fi | ||
1589 | |||
1590 | if test "$ac_init_help" = "recursive"; then | ||
1591 | # If there are subdirs, report their specific --help. | ||
1592 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | ||
1593 | test -d "$ac_dir" || | ||
1594 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | ||
1595 | continue | ||
1596 | ac_builddir=. | ||
1597 | |||
1598 | case "$ac_dir" in | ||
1599 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
1600 | *) | ||
1601 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | ||
1602 | # A ".." for each directory in $ac_dir_suffix. | ||
1603 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | ||
1604 | case $ac_top_builddir_sub in | ||
1605 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
1606 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | ||
1607 | esac ;; | ||
1608 | esac | ||
1609 | ac_abs_top_builddir=$ac_pwd | ||
1610 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | ||
1611 | # for backward compatibility: | ||
1612 | ac_top_builddir=$ac_top_build_prefix | ||
1613 | |||
1614 | case $srcdir in | ||
1615 | .) # We are building in place. | ||
1616 | ac_srcdir=. | ||
1617 | ac_top_srcdir=$ac_top_builddir_sub | ||
1618 | ac_abs_top_srcdir=$ac_pwd ;; | ||
1619 | [\\/]* | ?:[\\/]* ) # Absolute name. | ||
1620 | ac_srcdir=$srcdir$ac_dir_suffix; | ||
1621 | ac_top_srcdir=$srcdir | ||
1622 | ac_abs_top_srcdir=$srcdir ;; | ||
1623 | *) # Relative name. | ||
1624 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | ||
1625 | ac_top_srcdir=$ac_top_build_prefix$srcdir | ||
1626 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | ||
1627 | esac | ||
1628 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | ||
1629 | |||
1630 | cd "$ac_dir" || { ac_status=$?; continue; } | ||
1631 | # Check for guested configure. | ||
1632 | if test -f "$ac_srcdir/configure.gnu"; then | ||
1633 | echo && | ||
1634 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | ||
1635 | elif test -f "$ac_srcdir/configure"; then | ||
1636 | echo && | ||
1637 | $SHELL "$ac_srcdir/configure" --help=recursive | ||
1638 | else | ||
1639 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | ||
1640 | fi || ac_status=$? | ||
1641 | cd "$ac_pwd" || { ac_status=$?; break; } | ||
1642 | done | ||
1643 | fi | ||
1644 | |||
1645 | test -n "$ac_init_help" && exit $ac_status | ||
1646 | if $ac_init_version; then | ||
1647 | cat <<\_ACEOF | ||
1648 | embryo configure 1.2.0-alpha | ||
1649 | generated by GNU Autoconf 2.67 | ||
1650 | |||
1651 | Copyright (C) 2010 Free Software Foundation, Inc. | ||
1652 | This configure script is free software; the Free Software Foundation | ||
1653 | gives unlimited permission to copy, distribute and modify it. | ||
1654 | _ACEOF | ||
1655 | exit | ||
1656 | fi | ||
1657 | |||
1658 | ## ------------------------ ## | ||
1659 | ## Autoconf initialization. ## | ||
1660 | ## ------------------------ ## | ||
1661 | |||
1662 | # ac_fn_c_try_compile LINENO | ||
1663 | # -------------------------- | ||
1664 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | ||
1665 | ac_fn_c_try_compile () | ||
1666 | { | ||
1667 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
1668 | rm -f conftest.$ac_objext | ||
1669 | if { { ac_try="$ac_compile" | ||
1670 | case "(($ac_try" in | ||
1671 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
1672 | *) ac_try_echo=$ac_try;; | ||
1673 | esac | ||
1674 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
1675 | $as_echo "$ac_try_echo"; } >&5 | ||
1676 | (eval "$ac_compile") 2>conftest.err | ||
1677 | ac_status=$? | ||
1678 | if test -s conftest.err; then | ||
1679 | grep -v '^ *+' conftest.err >conftest.er1 | ||
1680 | cat conftest.er1 >&5 | ||
1681 | mv -f conftest.er1 conftest.err | ||
1682 | fi | ||
1683 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
1684 | test $ac_status = 0; } && { | ||
1685 | test -z "$ac_c_werror_flag" || | ||
1686 | test ! -s conftest.err | ||
1687 | } && test -s conftest.$ac_objext; then : | ||
1688 | ac_retval=0 | ||
1689 | else | ||
1690 | $as_echo "$as_me: failed program was:" >&5 | ||
1691 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
1692 | |||
1693 | ac_retval=1 | ||
1694 | fi | ||
1695 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
1696 | as_fn_set_status $ac_retval | ||
1697 | |||
1698 | } # ac_fn_c_try_compile | ||
1699 | |||
1700 | # ac_fn_c_try_link LINENO | ||
1701 | # ----------------------- | ||
1702 | # Try to link conftest.$ac_ext, and return whether this succeeded. | ||
1703 | ac_fn_c_try_link () | ||
1704 | { | ||
1705 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
1706 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
1707 | if { { ac_try="$ac_link" | ||
1708 | case "(($ac_try" in | ||
1709 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
1710 | *) ac_try_echo=$ac_try;; | ||
1711 | esac | ||
1712 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
1713 | $as_echo "$ac_try_echo"; } >&5 | ||
1714 | (eval "$ac_link") 2>conftest.err | ||
1715 | ac_status=$? | ||
1716 | if test -s conftest.err; then | ||
1717 | grep -v '^ *+' conftest.err >conftest.er1 | ||
1718 | cat conftest.er1 >&5 | ||
1719 | mv -f conftest.er1 conftest.err | ||
1720 | fi | ||
1721 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
1722 | test $ac_status = 0; } && { | ||
1723 | test -z "$ac_c_werror_flag" || | ||
1724 | test ! -s conftest.err | ||
1725 | } && test -s conftest$ac_exeext && { | ||
1726 | test "$cross_compiling" = yes || | ||
1727 | $as_test_x conftest$ac_exeext | ||
1728 | }; then : | ||
1729 | ac_retval=0 | ||
1730 | else | ||
1731 | $as_echo "$as_me: failed program was:" >&5 | ||
1732 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
1733 | |||
1734 | ac_retval=1 | ||
1735 | fi | ||
1736 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | ||
1737 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | ||
1738 | # interfere with the next link command; also delete a directory that is | ||
1739 | # left behind by Apple's compiler. We do this before executing the actions. | ||
1740 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | ||
1741 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
1742 | as_fn_set_status $ac_retval | ||
1743 | |||
1744 | } # ac_fn_c_try_link | ||
1745 | |||
1746 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | ||
1747 | # ------------------------------------------------------- | ||
1748 | # Tests whether HEADER exists and can be compiled using the include files in | ||
1749 | # INCLUDES, setting the cache variable VAR accordingly. | ||
1750 | ac_fn_c_check_header_compile () | ||
1751 | { | ||
1752 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
1753 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||
1754 | $as_echo_n "checking for $2... " >&6; } | ||
1755 | if eval "test \"\${$3+set}\"" = set; then : | ||
1756 | $as_echo_n "(cached) " >&6 | ||
1757 | else | ||
1758 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
1759 | /* end confdefs.h. */ | ||
1760 | $4 | ||
1761 | #include <$2> | ||
1762 | _ACEOF | ||
1763 | if ac_fn_c_try_compile "$LINENO"; then : | ||
1764 | eval "$3=yes" | ||
1765 | else | ||
1766 | eval "$3=no" | ||
1767 | fi | ||
1768 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
1769 | fi | ||
1770 | eval ac_res=\$$3 | ||
1771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
1772 | $as_echo "$ac_res" >&6; } | ||
1773 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
1774 | |||
1775 | } # ac_fn_c_check_header_compile | ||
1776 | |||
1777 | # ac_fn_c_try_cpp LINENO | ||
1778 | # ---------------------- | ||
1779 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | ||
1780 | ac_fn_c_try_cpp () | ||
1781 | { | ||
1782 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
1783 | if { { ac_try="$ac_cpp conftest.$ac_ext" | ||
1784 | case "(($ac_try" in | ||
1785 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
1786 | *) ac_try_echo=$ac_try;; | ||
1787 | esac | ||
1788 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
1789 | $as_echo "$ac_try_echo"; } >&5 | ||
1790 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | ||
1791 | ac_status=$? | ||
1792 | if test -s conftest.err; then | ||
1793 | grep -v '^ *+' conftest.err >conftest.er1 | ||
1794 | cat conftest.er1 >&5 | ||
1795 | mv -f conftest.er1 conftest.err | ||
1796 | fi | ||
1797 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
1798 | test $ac_status = 0; } > conftest.i && { | ||
1799 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
1800 | test ! -s conftest.err | ||
1801 | }; then : | ||
1802 | ac_retval=0 | ||
1803 | else | ||
1804 | $as_echo "$as_me: failed program was:" >&5 | ||
1805 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
1806 | |||
1807 | ac_retval=1 | ||
1808 | fi | ||
1809 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
1810 | as_fn_set_status $ac_retval | ||
1811 | |||
1812 | } # ac_fn_c_try_cpp | ||
1813 | |||
1814 | # ac_fn_c_try_run LINENO | ||
1815 | # ---------------------- | ||
1816 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | ||
1817 | # that executables *can* be run. | ||
1818 | ac_fn_c_try_run () | ||
1819 | { | ||
1820 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
1821 | if { { ac_try="$ac_link" | ||
1822 | case "(($ac_try" in | ||
1823 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
1824 | *) ac_try_echo=$ac_try;; | ||
1825 | esac | ||
1826 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
1827 | $as_echo "$ac_try_echo"; } >&5 | ||
1828 | (eval "$ac_link") 2>&5 | ||
1829 | ac_status=$? | ||
1830 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
1831 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | ||
1832 | { { case "(($ac_try" in | ||
1833 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
1834 | *) ac_try_echo=$ac_try;; | ||
1835 | esac | ||
1836 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
1837 | $as_echo "$ac_try_echo"; } >&5 | ||
1838 | (eval "$ac_try") 2>&5 | ||
1839 | ac_status=$? | ||
1840 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
1841 | test $ac_status = 0; }; }; then : | ||
1842 | ac_retval=0 | ||
1843 | else | ||
1844 | $as_echo "$as_me: program exited with status $ac_status" >&5 | ||
1845 | $as_echo "$as_me: failed program was:" >&5 | ||
1846 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
1847 | |||
1848 | ac_retval=$ac_status | ||
1849 | fi | ||
1850 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | ||
1851 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
1852 | as_fn_set_status $ac_retval | ||
1853 | |||
1854 | } # ac_fn_c_try_run | ||
1855 | |||
1856 | # ac_fn_c_check_func LINENO FUNC VAR | ||
1857 | # ---------------------------------- | ||
1858 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | ||
1859 | ac_fn_c_check_func () | ||
1860 | { | ||
1861 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
1862 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||
1863 | $as_echo_n "checking for $2... " >&6; } | ||
1864 | if eval "test \"\${$3+set}\"" = set; then : | ||
1865 | $as_echo_n "(cached) " >&6 | ||
1866 | else | ||
1867 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
1868 | /* end confdefs.h. */ | ||
1869 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | ||
1870 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
1871 | #define $2 innocuous_$2 | ||
1872 | |||
1873 | /* System header to define __stub macros and hopefully few prototypes, | ||
1874 | which can conflict with char $2 (); below. | ||
1875 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
1876 | <limits.h> exists even on freestanding compilers. */ | ||
1877 | |||
1878 | #ifdef __STDC__ | ||
1879 | # include <limits.h> | ||
1880 | #else | ||
1881 | # include <assert.h> | ||
1882 | #endif | ||
1883 | |||
1884 | #undef $2 | ||
1885 | |||
1886 | /* Override any GCC internal prototype to avoid an error. | ||
1887 | Use char because int might match the return type of a GCC | ||
1888 | builtin and then its argument prototype would still apply. */ | ||
1889 | #ifdef __cplusplus | ||
1890 | extern "C" | ||
1891 | #endif | ||
1892 | char $2 (); | ||
1893 | /* The GNU C library defines this for functions which it implements | ||
1894 | to always fail with ENOSYS. Some functions are actually named | ||
1895 | something starting with __ and the normal name is an alias. */ | ||
1896 | #if defined __stub_$2 || defined __stub___$2 | ||
1897 | choke me | ||
1898 | #endif | ||
1899 | |||
1900 | int | ||
1901 | main () | ||
1902 | { | ||
1903 | return $2 (); | ||
1904 | ; | ||
1905 | return 0; | ||
1906 | } | ||
1907 | _ACEOF | ||
1908 | if ac_fn_c_try_link "$LINENO"; then : | ||
1909 | eval "$3=yes" | ||
1910 | else | ||
1911 | eval "$3=no" | ||
1912 | fi | ||
1913 | rm -f core conftest.err conftest.$ac_objext \ | ||
1914 | conftest$ac_exeext conftest.$ac_ext | ||
1915 | fi | ||
1916 | eval ac_res=\$$3 | ||
1917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
1918 | $as_echo "$ac_res" >&6; } | ||
1919 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
1920 | |||
1921 | } # ac_fn_c_check_func | ||
1922 | |||
1923 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | ||
1924 | # ------------------------------------------------------- | ||
1925 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | ||
1926 | # the include files in INCLUDES and setting the cache variable VAR | ||
1927 | # accordingly. | ||
1928 | ac_fn_c_check_header_mongrel () | ||
1929 | { | ||
1930 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
1931 | if eval "test \"\${$3+set}\"" = set; then : | ||
1932 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||
1933 | $as_echo_n "checking for $2... " >&6; } | ||
1934 | if eval "test \"\${$3+set}\"" = set; then : | ||
1935 | $as_echo_n "(cached) " >&6 | ||
1936 | fi | ||
1937 | eval ac_res=\$$3 | ||
1938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
1939 | $as_echo "$ac_res" >&6; } | ||
1940 | else | ||
1941 | # Is the header compilable? | ||
1942 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | ||
1943 | $as_echo_n "checking $2 usability... " >&6; } | ||
1944 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
1945 | /* end confdefs.h. */ | ||
1946 | $4 | ||
1947 | #include <$2> | ||
1948 | _ACEOF | ||
1949 | if ac_fn_c_try_compile "$LINENO"; then : | ||
1950 | ac_header_compiler=yes | ||
1951 | else | ||
1952 | ac_header_compiler=no | ||
1953 | fi | ||
1954 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
1955 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | ||
1956 | $as_echo "$ac_header_compiler" >&6; } | ||
1957 | |||
1958 | # Is the header present? | ||
1959 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | ||
1960 | $as_echo_n "checking $2 presence... " >&6; } | ||
1961 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
1962 | /* end confdefs.h. */ | ||
1963 | #include <$2> | ||
1964 | _ACEOF | ||
1965 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
1966 | ac_header_preproc=yes | ||
1967 | else | ||
1968 | ac_header_preproc=no | ||
1969 | fi | ||
1970 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
1971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | ||
1972 | $as_echo "$ac_header_preproc" >&6; } | ||
1973 | |||
1974 | # So? What about this header? | ||
1975 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | ||
1976 | yes:no: ) | ||
1977 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
1978 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
1979 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | ||
1980 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | ||
1981 | ;; | ||
1982 | no:yes:* ) | ||
1983 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | ||
1984 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | ||
1985 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | ||
1986 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | ||
1987 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | ||
1988 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | ||
1989 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | ||
1990 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | ||
1991 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | ||
1992 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | ||
1993 | ( $as_echo "## -------------------------------------------------------- ## | ||
1994 | ## Report this to enlightenment-devel@lists.sourceforge.net ## | ||
1995 | ## -------------------------------------------------------- ##" | ||
1996 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
1997 | ;; | ||
1998 | esac | ||
1999 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||
2000 | $as_echo_n "checking for $2... " >&6; } | ||
2001 | if eval "test \"\${$3+set}\"" = set; then : | ||
2002 | $as_echo_n "(cached) " >&6 | ||
2003 | else | ||
2004 | eval "$3=\$ac_header_compiler" | ||
2005 | fi | ||
2006 | eval ac_res=\$$3 | ||
2007 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
2008 | $as_echo "$ac_res" >&6; } | ||
2009 | fi | ||
2010 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
2011 | |||
2012 | } # ac_fn_c_check_header_mongrel | ||
2013 | cat >config.log <<_ACEOF | ||
2014 | This file contains any messages produced by compilers while | ||
2015 | running configure, to aid debugging if configure makes a mistake. | ||
2016 | |||
2017 | It was created by embryo $as_me 1.2.0-alpha, which was | ||
2018 | generated by GNU Autoconf 2.67. Invocation command line was | ||
2019 | |||
2020 | $ $0 $@ | ||
2021 | |||
2022 | _ACEOF | ||
2023 | exec 5>>config.log | ||
2024 | { | ||
2025 | cat <<_ASUNAME | ||
2026 | ## --------- ## | ||
2027 | ## Platform. ## | ||
2028 | ## --------- ## | ||
2029 | |||
2030 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | ||
2031 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | ||
2032 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | ||
2033 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | ||
2034 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | ||
2035 | |||
2036 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | ||
2037 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | ||
2038 | |||
2039 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | ||
2040 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | ||
2041 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | ||
2042 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | ||
2043 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | ||
2044 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | ||
2045 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | ||
2046 | |||
2047 | _ASUNAME | ||
2048 | |||
2049 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2050 | for as_dir in $PATH | ||
2051 | do | ||
2052 | IFS=$as_save_IFS | ||
2053 | test -z "$as_dir" && as_dir=. | ||
2054 | $as_echo "PATH: $as_dir" | ||
2055 | done | ||
2056 | IFS=$as_save_IFS | ||
2057 | |||
2058 | } >&5 | ||
2059 | |||
2060 | cat >&5 <<_ACEOF | ||
2061 | |||
2062 | |||
2063 | ## ----------- ## | ||
2064 | ## Core tests. ## | ||
2065 | ## ----------- ## | ||
2066 | |||
2067 | _ACEOF | ||
2068 | |||
2069 | |||
2070 | # Keep a trace of the command line. | ||
2071 | # Strip out --no-create and --no-recursion so they do not pile up. | ||
2072 | # Strip out --silent because we don't want to record it for future runs. | ||
2073 | # Also quote any args containing shell meta-characters. | ||
2074 | # Make two passes to allow for proper duplicate-argument suppression. | ||
2075 | ac_configure_args= | ||
2076 | ac_configure_args0= | ||
2077 | ac_configure_args1= | ||
2078 | ac_must_keep_next=false | ||
2079 | for ac_pass in 1 2 | ||
2080 | do | ||
2081 | for ac_arg | ||
2082 | do | ||
2083 | case $ac_arg in | ||
2084 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | ||
2085 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
2086 | | -silent | --silent | --silen | --sile | --sil) | ||
2087 | continue ;; | ||
2088 | *\'*) | ||
2089 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
2090 | esac | ||
2091 | case $ac_pass in | ||
2092 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | ||
2093 | 2) | ||
2094 | as_fn_append ac_configure_args1 " '$ac_arg'" | ||
2095 | if test $ac_must_keep_next = true; then | ||
2096 | ac_must_keep_next=false # Got value, back to normal. | ||
2097 | else | ||
2098 | case $ac_arg in | ||
2099 | *=* | --config-cache | -C | -disable-* | --disable-* \ | ||
2100 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | ||
2101 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | ||
2102 | | -with-* | --with-* | -without-* | --without-* | --x) | ||
2103 | case "$ac_configure_args0 " in | ||
2104 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | ||
2105 | esac | ||
2106 | ;; | ||
2107 | -* ) ac_must_keep_next=true ;; | ||
2108 | esac | ||
2109 | fi | ||
2110 | as_fn_append ac_configure_args " '$ac_arg'" | ||
2111 | ;; | ||
2112 | esac | ||
2113 | done | ||
2114 | done | ||
2115 | { ac_configure_args0=; unset ac_configure_args0;} | ||
2116 | { ac_configure_args1=; unset ac_configure_args1;} | ||
2117 | |||
2118 | # When interrupted or exit'd, cleanup temporary files, and complete | ||
2119 | # config.log. We remove comments because anyway the quotes in there | ||
2120 | # would cause problems or look ugly. | ||
2121 | # WARNING: Use '\'' to represent an apostrophe within the trap. | ||
2122 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | ||
2123 | trap 'exit_status=$? | ||
2124 | # Save into config.log some information that might help in debugging. | ||
2125 | { | ||
2126 | echo | ||
2127 | |||
2128 | $as_echo "## ---------------- ## | ||
2129 | ## Cache variables. ## | ||
2130 | ## ---------------- ##" | ||
2131 | echo | ||
2132 | # The following way of writing the cache mishandles newlines in values, | ||
2133 | ( | ||
2134 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | ||
2135 | eval ac_val=\$$ac_var | ||
2136 | case $ac_val in #( | ||
2137 | *${as_nl}*) | ||
2138 | case $ac_var in #( | ||
2139 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | ||
2140 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | ||
2141 | esac | ||
2142 | case $ac_var in #( | ||
2143 | _ | IFS | as_nl) ;; #( | ||
2144 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | ||
2145 | *) { eval $ac_var=; unset $ac_var;} ;; | ||
2146 | esac ;; | ||
2147 | esac | ||
2148 | done | ||
2149 | (set) 2>&1 | | ||
2150 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | ||
2151 | *${as_nl}ac_space=\ *) | ||
2152 | sed -n \ | ||
2153 | "s/'\''/'\''\\\\'\'''\''/g; | ||
2154 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | ||
2155 | ;; #( | ||
2156 | *) | ||
2157 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | ||
2158 | ;; | ||
2159 | esac | | ||
2160 | sort | ||
2161 | ) | ||
2162 | echo | ||
2163 | |||
2164 | $as_echo "## ----------------- ## | ||
2165 | ## Output variables. ## | ||
2166 | ## ----------------- ##" | ||
2167 | echo | ||
2168 | for ac_var in $ac_subst_vars | ||
2169 | do | ||
2170 | eval ac_val=\$$ac_var | ||
2171 | case $ac_val in | ||
2172 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | ||
2173 | esac | ||
2174 | $as_echo "$ac_var='\''$ac_val'\''" | ||
2175 | done | sort | ||
2176 | echo | ||
2177 | |||
2178 | if test -n "$ac_subst_files"; then | ||
2179 | $as_echo "## ------------------- ## | ||
2180 | ## File substitutions. ## | ||
2181 | ## ------------------- ##" | ||
2182 | echo | ||
2183 | for ac_var in $ac_subst_files | ||
2184 | do | ||
2185 | eval ac_val=\$$ac_var | ||
2186 | case $ac_val in | ||
2187 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | ||
2188 | esac | ||
2189 | $as_echo "$ac_var='\''$ac_val'\''" | ||
2190 | done | sort | ||
2191 | echo | ||
2192 | fi | ||
2193 | |||
2194 | if test -s confdefs.h; then | ||
2195 | $as_echo "## ----------- ## | ||
2196 | ## confdefs.h. ## | ||
2197 | ## ----------- ##" | ||
2198 | echo | ||
2199 | cat confdefs.h | ||
2200 | echo | ||
2201 | fi | ||
2202 | test "$ac_signal" != 0 && | ||
2203 | $as_echo "$as_me: caught signal $ac_signal" | ||
2204 | $as_echo "$as_me: exit $exit_status" | ||
2205 | } >&5 | ||
2206 | rm -f core *.core core.conftest.* && | ||
2207 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | ||
2208 | exit $exit_status | ||
2209 | ' 0 | ||
2210 | for ac_signal in 1 2 13 15; do | ||
2211 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | ||
2212 | done | ||
2213 | ac_signal=0 | ||
2214 | |||
2215 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | ||
2216 | rm -f -r conftest* confdefs.h | ||
2217 | |||
2218 | $as_echo "/* confdefs.h */" > confdefs.h | ||
2219 | |||
2220 | # Predefined preprocessor variables. | ||
2221 | |||
2222 | cat >>confdefs.h <<_ACEOF | ||
2223 | #define PACKAGE_NAME "$PACKAGE_NAME" | ||
2224 | _ACEOF | ||
2225 | |||
2226 | cat >>confdefs.h <<_ACEOF | ||
2227 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | ||
2228 | _ACEOF | ||
2229 | |||
2230 | cat >>confdefs.h <<_ACEOF | ||
2231 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | ||
2232 | _ACEOF | ||
2233 | |||
2234 | cat >>confdefs.h <<_ACEOF | ||
2235 | #define PACKAGE_STRING "$PACKAGE_STRING" | ||
2236 | _ACEOF | ||
2237 | |||
2238 | cat >>confdefs.h <<_ACEOF | ||
2239 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | ||
2240 | _ACEOF | ||
2241 | |||
2242 | cat >>confdefs.h <<_ACEOF | ||
2243 | #define PACKAGE_URL "$PACKAGE_URL" | ||
2244 | _ACEOF | ||
2245 | |||
2246 | |||
2247 | # Let the site file select an alternate cache file if it wants to. | ||
2248 | # Prefer an explicitly selected file to automatically selected ones. | ||
2249 | ac_site_file1=NONE | ||
2250 | ac_site_file2=NONE | ||
2251 | if test -n "$CONFIG_SITE"; then | ||
2252 | # We do not want a PATH search for config.site. | ||
2253 | case $CONFIG_SITE in #(( | ||
2254 | -*) ac_site_file1=./$CONFIG_SITE;; | ||
2255 | */*) ac_site_file1=$CONFIG_SITE;; | ||
2256 | *) ac_site_file1=./$CONFIG_SITE;; | ||
2257 | esac | ||
2258 | elif test "x$prefix" != xNONE; then | ||
2259 | ac_site_file1=$prefix/share/config.site | ||
2260 | ac_site_file2=$prefix/etc/config.site | ||
2261 | else | ||
2262 | ac_site_file1=$ac_default_prefix/share/config.site | ||
2263 | ac_site_file2=$ac_default_prefix/etc/config.site | ||
2264 | fi | ||
2265 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | ||
2266 | do | ||
2267 | test "x$ac_site_file" = xNONE && continue | ||
2268 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then | ||
2269 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | ||
2270 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | ||
2271 | sed 's/^/| /' "$ac_site_file" >&5 | ||
2272 | . "$ac_site_file" \ | ||
2273 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
2274 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
2275 | as_fn_error $? "failed to load site script $ac_site_file | ||
2276 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
2277 | fi | ||
2278 | done | ||
2279 | |||
2280 | if test -r "$cache_file"; then | ||
2281 | # Some versions of bash will fail to source /dev/null (special files | ||
2282 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | ||
2283 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | ||
2284 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | ||
2285 | $as_echo "$as_me: loading cache $cache_file" >&6;} | ||
2286 | case $cache_file in | ||
2287 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | ||
2288 | *) . "./$cache_file";; | ||
2289 | esac | ||
2290 | fi | ||
2291 | else | ||
2292 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | ||
2293 | $as_echo "$as_me: creating cache $cache_file" >&6;} | ||
2294 | >$cache_file | ||
2295 | fi | ||
2296 | |||
2297 | # Check that the precious variables saved in the cache have kept the same | ||
2298 | # value. | ||
2299 | ac_cache_corrupted=false | ||
2300 | for ac_var in $ac_precious_vars; do | ||
2301 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | ||
2302 | eval ac_new_set=\$ac_env_${ac_var}_set | ||
2303 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | ||
2304 | eval ac_new_val=\$ac_env_${ac_var}_value | ||
2305 | case $ac_old_set,$ac_new_set in | ||
2306 | set,) | ||
2307 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | ||
2308 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | ||
2309 | ac_cache_corrupted=: ;; | ||
2310 | ,set) | ||
2311 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | ||
2312 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | ||
2313 | ac_cache_corrupted=: ;; | ||
2314 | ,);; | ||
2315 | *) | ||
2316 | if test "x$ac_old_val" != "x$ac_new_val"; then | ||
2317 | # differences in whitespace do not lead to failure. | ||
2318 | ac_old_val_w=`echo x $ac_old_val` | ||
2319 | ac_new_val_w=`echo x $ac_new_val` | ||
2320 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | ||
2321 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | ||
2322 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | ||
2323 | ac_cache_corrupted=: | ||
2324 | else | ||
2325 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | ||
2326 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | ||
2327 | eval $ac_var=\$ac_old_val | ||
2328 | fi | ||
2329 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | ||
2330 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | ||
2331 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | ||
2332 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | ||
2333 | fi;; | ||
2334 | esac | ||
2335 | # Pass precious variables to config.status. | ||
2336 | if test "$ac_new_set" = set; then | ||
2337 | case $ac_new_val in | ||
2338 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
2339 | *) ac_arg=$ac_var=$ac_new_val ;; | ||
2340 | esac | ||
2341 | case " $ac_configure_args " in | ||
2342 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | ||
2343 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | ||
2344 | esac | ||
2345 | fi | ||
2346 | done | ||
2347 | if $ac_cache_corrupted; then | ||
2348 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
2349 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
2350 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | ||
2351 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | ||
2352 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | ||
2353 | fi | ||
2354 | ## -------------------- ## | ||
2355 | ## Main body of script. ## | ||
2356 | ## -------------------- ## | ||
2357 | |||
2358 | ac_ext=c | ||
2359 | ac_cpp='$CPP $CPPFLAGS' | ||
2360 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
2361 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
2362 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
2363 | |||
2364 | |||
2365 | |||
2366 | |||
2367 | |||
2368 | |||
2369 | ac_config_headers="$ac_config_headers config.h" | ||
2370 | |||
2371 | |||
2372 | |||
2373 | |||
2374 | am__api_version='1.11' | ||
2375 | |||
2376 | ac_aux_dir= | ||
2377 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | ||
2378 | if test -f "$ac_dir/install-sh"; then | ||
2379 | ac_aux_dir=$ac_dir | ||
2380 | ac_install_sh="$ac_aux_dir/install-sh -c" | ||
2381 | break | ||
2382 | elif test -f "$ac_dir/install.sh"; then | ||
2383 | ac_aux_dir=$ac_dir | ||
2384 | ac_install_sh="$ac_aux_dir/install.sh -c" | ||
2385 | break | ||
2386 | elif test -f "$ac_dir/shtool"; then | ||
2387 | ac_aux_dir=$ac_dir | ||
2388 | ac_install_sh="$ac_aux_dir/shtool install -c" | ||
2389 | break | ||
2390 | fi | ||
2391 | done | ||
2392 | if test -z "$ac_aux_dir"; then | ||
2393 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 | ||
2394 | fi | ||
2395 | |||
2396 | # These three variables are undocumented and unsupported, | ||
2397 | # and are intended to be withdrawn in a future Autoconf release. | ||
2398 | # They can cause serious problems if a builder's source tree is in a directory | ||
2399 | # whose full name contains unusual characters. | ||
2400 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | ||
2401 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | ||
2402 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | ||
2403 | |||
2404 | |||
2405 | # Find a good install program. We prefer a C program (faster), | ||
2406 | # so one script is as good as another. But avoid the broken or | ||
2407 | # incompatible versions: | ||
2408 | # SysV /etc/install, /usr/sbin/install | ||
2409 | # SunOS /usr/etc/install | ||
2410 | # IRIX /sbin/install | ||
2411 | # AIX /bin/install | ||
2412 | # AmigaOS /C/install, which installs bootblocks on floppy discs | ||
2413 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | ||
2414 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | ||
2415 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | ||
2416 | # OS/2's system install, which has a completely different semantic | ||
2417 | # ./install, which can be erroneously created by make from ./install.sh. | ||
2418 | # Reject install programs that cannot install multiple files. | ||
2419 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | ||
2420 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | ||
2421 | if test -z "$INSTALL"; then | ||
2422 | if test "${ac_cv_path_install+set}" = set; then : | ||
2423 | $as_echo_n "(cached) " >&6 | ||
2424 | else | ||
2425 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2426 | for as_dir in $PATH | ||
2427 | do | ||
2428 | IFS=$as_save_IFS | ||
2429 | test -z "$as_dir" && as_dir=. | ||
2430 | # Account for people who put trailing slashes in PATH elements. | ||
2431 | case $as_dir/ in #(( | ||
2432 | ./ | .// | /[cC]/* | \ | ||
2433 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | ||
2434 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | ||
2435 | /usr/ucb/* ) ;; | ||
2436 | *) | ||
2437 | # OSF1 and SCO ODT 3.0 have their own names for install. | ||
2438 | # Don't use installbsd from OSF since it installs stuff as root | ||
2439 | # by default. | ||
2440 | for ac_prog in ginstall scoinst install; do | ||
2441 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2442 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | ||
2443 | if test $ac_prog = install && | ||
2444 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | ||
2445 | # AIX install. It has an incompatible calling convention. | ||
2446 | : | ||
2447 | elif test $ac_prog = install && | ||
2448 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | ||
2449 | # program-specific install script used by HP pwplus--don't use. | ||
2450 | : | ||
2451 | else | ||
2452 | rm -rf conftest.one conftest.two conftest.dir | ||
2453 | echo one > conftest.one | ||
2454 | echo two > conftest.two | ||
2455 | mkdir conftest.dir | ||
2456 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | ||
2457 | test -s conftest.one && test -s conftest.two && | ||
2458 | test -s conftest.dir/conftest.one && | ||
2459 | test -s conftest.dir/conftest.two | ||
2460 | then | ||
2461 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | ||
2462 | break 3 | ||
2463 | fi | ||
2464 | fi | ||
2465 | fi | ||
2466 | done | ||
2467 | done | ||
2468 | ;; | ||
2469 | esac | ||
2470 | |||
2471 | done | ||
2472 | IFS=$as_save_IFS | ||
2473 | |||
2474 | rm -rf conftest.one conftest.two conftest.dir | ||
2475 | |||
2476 | fi | ||
2477 | if test "${ac_cv_path_install+set}" = set; then | ||
2478 | INSTALL=$ac_cv_path_install | ||
2479 | else | ||
2480 | # As a last resort, use the slow shell script. Don't cache a | ||
2481 | # value for INSTALL within a source directory, because that will | ||
2482 | # break other packages using the cache if that directory is | ||
2483 | # removed, or if the value is a relative name. | ||
2484 | INSTALL=$ac_install_sh | ||
2485 | fi | ||
2486 | fi | ||
2487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | ||
2488 | $as_echo "$INSTALL" >&6; } | ||
2489 | |||
2490 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | ||
2491 | # It thinks the first close brace ends the variable substitution. | ||
2492 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | ||
2493 | |||
2494 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | ||
2495 | |||
2496 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | ||
2497 | |||
2498 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 | ||
2499 | $as_echo_n "checking whether build environment is sane... " >&6; } | ||
2500 | # Just in case | ||
2501 | sleep 1 | ||
2502 | echo timestamp > conftest.file | ||
2503 | # Reject unsafe characters in $srcdir or the absolute working directory | ||
2504 | # name. Accept space and tab only in the latter. | ||
2505 | am_lf=' | ||
2506 | ' | ||
2507 | case `pwd` in | ||
2508 | *[\\\"\#\$\&\'\`$am_lf]*) | ||
2509 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;; | ||
2510 | esac | ||
2511 | case $srcdir in | ||
2512 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | ||
2513 | as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;; | ||
2514 | esac | ||
2515 | |||
2516 | # Do `set' in a subshell so we don't clobber the current shell's | ||
2517 | # arguments. Must try -L first in case configure is actually a | ||
2518 | # symlink; some systems play weird games with the mod time of symlinks | ||
2519 | # (eg FreeBSD returns the mod time of the symlink's containing | ||
2520 | # directory). | ||
2521 | if ( | ||
2522 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | ||
2523 | if test "$*" = "X"; then | ||
2524 | # -L didn't work. | ||
2525 | set X `ls -t "$srcdir/configure" conftest.file` | ||
2526 | fi | ||
2527 | rm -f conftest.file | ||
2528 | if test "$*" != "X $srcdir/configure conftest.file" \ | ||
2529 | && test "$*" != "X conftest.file $srcdir/configure"; then | ||
2530 | |||
2531 | # If neither matched, then we have a broken ls. This can happen | ||
2532 | # if, for instance, CONFIG_SHELL is bash and it inherits a | ||
2533 | # broken ls alias from the environment. This has actually | ||
2534 | # happened. Such a system could not be considered "sane". | ||
2535 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken | ||
2536 | alias in your environment" "$LINENO" 5 | ||
2537 | fi | ||
2538 | |||
2539 | test "$2" = conftest.file | ||
2540 | ) | ||
2541 | then | ||
2542 | # Ok. | ||
2543 | : | ||
2544 | else | ||
2545 | as_fn_error $? "newly created file is older than distributed files! | ||
2546 | Check your system clock" "$LINENO" 5 | ||
2547 | fi | ||
2548 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
2549 | $as_echo "yes" >&6; } | ||
2550 | test "$program_prefix" != NONE && | ||
2551 | program_transform_name="s&^&$program_prefix&;$program_transform_name" | ||
2552 | # Use a double $ so make ignores it. | ||
2553 | test "$program_suffix" != NONE && | ||
2554 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" | ||
2555 | # Double any \ or $. | ||
2556 | # By default was `s,x,x', remove it if useless. | ||
2557 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' | ||
2558 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | ||
2559 | |||
2560 | # expand $ac_aux_dir to an absolute path | ||
2561 | am_aux_dir=`cd $ac_aux_dir && pwd` | ||
2562 | |||
2563 | if test x"${MISSING+set}" != xset; then | ||
2564 | case $am_aux_dir in | ||
2565 | *\ * | *\ *) | ||
2566 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | ||
2567 | *) | ||
2568 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | ||
2569 | esac | ||
2570 | fi | ||
2571 | # Use eval to expand $SHELL | ||
2572 | if eval "$MISSING --run true"; then | ||
2573 | am_missing_run="$MISSING --run " | ||
2574 | else | ||
2575 | am_missing_run= | ||
2576 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 | ||
2577 | $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | ||
2578 | fi | ||
2579 | |||
2580 | if test x"${install_sh}" != xset; then | ||
2581 | case $am_aux_dir in | ||
2582 | *\ * | *\ *) | ||
2583 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | ||
2584 | *) | ||
2585 | install_sh="\${SHELL} $am_aux_dir/install-sh" | ||
2586 | esac | ||
2587 | fi | ||
2588 | |||
2589 | # Installed binaries are usually stripped using `strip' when the user | ||
2590 | # run `make install-strip'. However `strip' might not be the right | ||
2591 | # tool to use in cross-compilation environments, therefore Automake | ||
2592 | # will honor the `STRIP' environment variable to overrule this program. | ||
2593 | if test "$cross_compiling" != no; then | ||
2594 | if test -n "$ac_tool_prefix"; then | ||
2595 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | ||
2596 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | ||
2597 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
2598 | $as_echo_n "checking for $ac_word... " >&6; } | ||
2599 | if test "${ac_cv_prog_STRIP+set}" = set; then : | ||
2600 | $as_echo_n "(cached) " >&6 | ||
2601 | else | ||
2602 | if test -n "$STRIP"; then | ||
2603 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | ||
2604 | else | ||
2605 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2606 | for as_dir in $PATH | ||
2607 | do | ||
2608 | IFS=$as_save_IFS | ||
2609 | test -z "$as_dir" && as_dir=. | ||
2610 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2611 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
2612 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | ||
2613 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2614 | break 2 | ||
2615 | fi | ||
2616 | done | ||
2617 | done | ||
2618 | IFS=$as_save_IFS | ||
2619 | |||
2620 | fi | ||
2621 | fi | ||
2622 | STRIP=$ac_cv_prog_STRIP | ||
2623 | if test -n "$STRIP"; then | ||
2624 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | ||
2625 | $as_echo "$STRIP" >&6; } | ||
2626 | else | ||
2627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
2628 | $as_echo "no" >&6; } | ||
2629 | fi | ||
2630 | |||
2631 | |||
2632 | fi | ||
2633 | if test -z "$ac_cv_prog_STRIP"; then | ||
2634 | ac_ct_STRIP=$STRIP | ||
2635 | # Extract the first word of "strip", so it can be a program name with args. | ||
2636 | set dummy strip; ac_word=$2 | ||
2637 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
2638 | $as_echo_n "checking for $ac_word... " >&6; } | ||
2639 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : | ||
2640 | $as_echo_n "(cached) " >&6 | ||
2641 | else | ||
2642 | if test -n "$ac_ct_STRIP"; then | ||
2643 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | ||
2644 | else | ||
2645 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2646 | for as_dir in $PATH | ||
2647 | do | ||
2648 | IFS=$as_save_IFS | ||
2649 | test -z "$as_dir" && as_dir=. | ||
2650 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2651 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
2652 | ac_cv_prog_ac_ct_STRIP="strip" | ||
2653 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2654 | break 2 | ||
2655 | fi | ||
2656 | done | ||
2657 | done | ||
2658 | IFS=$as_save_IFS | ||
2659 | |||
2660 | fi | ||
2661 | fi | ||
2662 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | ||
2663 | if test -n "$ac_ct_STRIP"; then | ||
2664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | ||
2665 | $as_echo "$ac_ct_STRIP" >&6; } | ||
2666 | else | ||
2667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
2668 | $as_echo "no" >&6; } | ||
2669 | fi | ||
2670 | |||
2671 | if test "x$ac_ct_STRIP" = x; then | ||
2672 | STRIP=":" | ||
2673 | else | ||
2674 | case $cross_compiling:$ac_tool_warned in | ||
2675 | yes:) | ||
2676 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
2677 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
2678 | ac_tool_warned=yes ;; | ||
2679 | esac | ||
2680 | STRIP=$ac_ct_STRIP | ||
2681 | fi | ||
2682 | else | ||
2683 | STRIP="$ac_cv_prog_STRIP" | ||
2684 | fi | ||
2685 | |||
2686 | fi | ||
2687 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | ||
2688 | |||
2689 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | ||
2690 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | ||
2691 | if test -z "$MKDIR_P"; then | ||
2692 | if test "${ac_cv_path_mkdir+set}" = set; then : | ||
2693 | $as_echo_n "(cached) " >&6 | ||
2694 | else | ||
2695 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2696 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | ||
2697 | do | ||
2698 | IFS=$as_save_IFS | ||
2699 | test -z "$as_dir" && as_dir=. | ||
2700 | for ac_prog in mkdir gmkdir; do | ||
2701 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2702 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | ||
2703 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | ||
2704 | 'mkdir (GNU coreutils) '* | \ | ||
2705 | 'mkdir (coreutils) '* | \ | ||
2706 | 'mkdir (fileutils) '4.1*) | ||
2707 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | ||
2708 | break 3;; | ||
2709 | esac | ||
2710 | done | ||
2711 | done | ||
2712 | done | ||
2713 | IFS=$as_save_IFS | ||
2714 | |||
2715 | fi | ||
2716 | |||
2717 | test -d ./--version && rmdir ./--version | ||
2718 | if test "${ac_cv_path_mkdir+set}" = set; then | ||
2719 | MKDIR_P="$ac_cv_path_mkdir -p" | ||
2720 | else | ||
2721 | # As a last resort, use the slow shell script. Don't cache a | ||
2722 | # value for MKDIR_P within a source directory, because that will | ||
2723 | # break other packages using the cache if that directory is | ||
2724 | # removed, or if the value is a relative name. | ||
2725 | MKDIR_P="$ac_install_sh -d" | ||
2726 | fi | ||
2727 | fi | ||
2728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | ||
2729 | $as_echo "$MKDIR_P" >&6; } | ||
2730 | |||
2731 | mkdir_p="$MKDIR_P" | ||
2732 | case $mkdir_p in | ||
2733 | [\\/$]* | ?:[\\/]*) ;; | ||
2734 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; | ||
2735 | esac | ||
2736 | |||
2737 | for ac_prog in gawk mawk nawk awk | ||
2738 | do | ||
2739 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
2740 | set dummy $ac_prog; ac_word=$2 | ||
2741 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
2742 | $as_echo_n "checking for $ac_word... " >&6; } | ||
2743 | if test "${ac_cv_prog_AWK+set}" = set; then : | ||
2744 | $as_echo_n "(cached) " >&6 | ||
2745 | else | ||
2746 | if test -n "$AWK"; then | ||
2747 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | ||
2748 | else | ||
2749 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2750 | for as_dir in $PATH | ||
2751 | do | ||
2752 | IFS=$as_save_IFS | ||
2753 | test -z "$as_dir" && as_dir=. | ||
2754 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2755 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
2756 | ac_cv_prog_AWK="$ac_prog" | ||
2757 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2758 | break 2 | ||
2759 | fi | ||
2760 | done | ||
2761 | done | ||
2762 | IFS=$as_save_IFS | ||
2763 | |||
2764 | fi | ||
2765 | fi | ||
2766 | AWK=$ac_cv_prog_AWK | ||
2767 | if test -n "$AWK"; then | ||
2768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | ||
2769 | $as_echo "$AWK" >&6; } | ||
2770 | else | ||
2771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
2772 | $as_echo "no" >&6; } | ||
2773 | fi | ||
2774 | |||
2775 | |||
2776 | test -n "$AWK" && break | ||
2777 | done | ||
2778 | |||
2779 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | ||
2780 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | ||
2781 | set x ${MAKE-make} | ||
2782 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | ||
2783 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then : | ||
2784 | $as_echo_n "(cached) " >&6 | ||
2785 | else | ||
2786 | cat >conftest.make <<\_ACEOF | ||
2787 | SHELL = /bin/sh | ||
2788 | all: | ||
2789 | @echo '@@@%%%=$(MAKE)=@@@%%%' | ||
2790 | _ACEOF | ||
2791 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | ||
2792 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | ||
2793 | *@@@%%%=?*=@@@%%%*) | ||
2794 | eval ac_cv_prog_make_${ac_make}_set=yes;; | ||
2795 | *) | ||
2796 | eval ac_cv_prog_make_${ac_make}_set=no;; | ||
2797 | esac | ||
2798 | rm -f conftest.make | ||
2799 | fi | ||
2800 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | ||
2801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
2802 | $as_echo "yes" >&6; } | ||
2803 | SET_MAKE= | ||
2804 | else | ||
2805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
2806 | $as_echo "no" >&6; } | ||
2807 | SET_MAKE="MAKE=${MAKE-make}" | ||
2808 | fi | ||
2809 | |||
2810 | rm -rf .tst 2>/dev/null | ||
2811 | mkdir .tst 2>/dev/null | ||
2812 | if test -d .tst; then | ||
2813 | am__leading_dot=. | ||
2814 | else | ||
2815 | am__leading_dot=_ | ||
2816 | fi | ||
2817 | rmdir .tst 2>/dev/null | ||
2818 | |||
2819 | if test "`cd $srcdir && pwd`" != "`pwd`"; then | ||
2820 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | ||
2821 | # is not polluted with repeated "-I." | ||
2822 | am__isrc=' -I$(srcdir)' | ||
2823 | # test to see if srcdir already configured | ||
2824 | if test -f $srcdir/config.status; then | ||
2825 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 | ||
2826 | fi | ||
2827 | fi | ||
2828 | |||
2829 | # test whether we have cygpath | ||
2830 | if test -z "$CYGPATH_W"; then | ||
2831 | if (cygpath --version) >/dev/null 2>/dev/null; then | ||
2832 | CYGPATH_W='cygpath -w' | ||
2833 | else | ||
2834 | CYGPATH_W=echo | ||
2835 | fi | ||
2836 | fi | ||
2837 | |||
2838 | |||
2839 | # Define the identity of the package. | ||
2840 | PACKAGE='embryo' | ||
2841 | VERSION='1.2.0-alpha' | ||
2842 | |||
2843 | |||
2844 | cat >>confdefs.h <<_ACEOF | ||
2845 | #define PACKAGE "$PACKAGE" | ||
2846 | _ACEOF | ||
2847 | |||
2848 | |||
2849 | cat >>confdefs.h <<_ACEOF | ||
2850 | #define VERSION "$VERSION" | ||
2851 | _ACEOF | ||
2852 | |||
2853 | # Some tools Automake needs. | ||
2854 | |||
2855 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | ||
2856 | |||
2857 | |||
2858 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | ||
2859 | |||
2860 | |||
2861 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | ||
2862 | |||
2863 | |||
2864 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | ||
2865 | |||
2866 | |||
2867 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | ||
2868 | |||
2869 | # We need awk for the "check" target. The system "awk" is bad on | ||
2870 | # some platforms. | ||
2871 | # Always define AMTAR for backward compatibility. | ||
2872 | |||
2873 | AMTAR=${AMTAR-"${am_missing_run}tar"} | ||
2874 | |||
2875 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | ||
2876 | |||
2877 | |||
2878 | |||
2879 | |||
2880 | |||
2881 | # Check whether --enable-silent-rules was given. | ||
2882 | if test "${enable_silent_rules+set}" = set; then : | ||
2883 | enableval=$enable_silent_rules; | ||
2884 | fi | ||
2885 | |||
2886 | case $enable_silent_rules in | ||
2887 | yes) AM_DEFAULT_VERBOSITY=0;; | ||
2888 | no) AM_DEFAULT_VERBOSITY=1;; | ||
2889 | *) AM_DEFAULT_VERBOSITY=0;; | ||
2890 | esac | ||
2891 | AM_BACKSLASH='\' | ||
2892 | |||
2893 | |||
2894 | # Make sure we can run config.sub. | ||
2895 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | ||
2896 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | ||
2897 | |||
2898 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | ||
2899 | $as_echo_n "checking build system type... " >&6; } | ||
2900 | if test "${ac_cv_build+set}" = set; then : | ||
2901 | $as_echo_n "(cached) " >&6 | ||
2902 | else | ||
2903 | ac_build_alias=$build_alias | ||
2904 | test "x$ac_build_alias" = x && | ||
2905 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | ||
2906 | test "x$ac_build_alias" = x && | ||
2907 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | ||
2908 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | ||
2909 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | ||
2910 | |||
2911 | fi | ||
2912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | ||
2913 | $as_echo "$ac_cv_build" >&6; } | ||
2914 | case $ac_cv_build in | ||
2915 | *-*-*) ;; | ||
2916 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;; | ||
2917 | esac | ||
2918 | build=$ac_cv_build | ||
2919 | ac_save_IFS=$IFS; IFS='-' | ||
2920 | set x $ac_cv_build | ||
2921 | shift | ||
2922 | build_cpu=$1 | ||
2923 | build_vendor=$2 | ||
2924 | shift; shift | ||
2925 | # Remember, the first character of IFS is used to create $*, | ||
2926 | # except with old shells: | ||
2927 | build_os=$* | ||
2928 | IFS=$ac_save_IFS | ||
2929 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | ||
2930 | |||
2931 | |||
2932 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | ||
2933 | $as_echo_n "checking host system type... " >&6; } | ||
2934 | if test "${ac_cv_host+set}" = set; then : | ||
2935 | $as_echo_n "(cached) " >&6 | ||
2936 | else | ||
2937 | if test "x$host_alias" = x; then | ||
2938 | ac_cv_host=$ac_cv_build | ||
2939 | else | ||
2940 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | ||
2941 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | ||
2942 | fi | ||
2943 | |||
2944 | fi | ||
2945 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | ||
2946 | $as_echo "$ac_cv_host" >&6; } | ||
2947 | case $ac_cv_host in | ||
2948 | *-*-*) ;; | ||
2949 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;; | ||
2950 | esac | ||
2951 | host=$ac_cv_host | ||
2952 | ac_save_IFS=$IFS; IFS='-' | ||
2953 | set x $ac_cv_host | ||
2954 | shift | ||
2955 | host_cpu=$1 | ||
2956 | host_vendor=$2 | ||
2957 | shift; shift | ||
2958 | # Remember, the first character of IFS is used to create $*, | ||
2959 | # except with old shells: | ||
2960 | host_os=$* | ||
2961 | IFS=$ac_save_IFS | ||
2962 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | ||
2963 | |||
2964 | |||
2965 | enable_win32_dll=yes | ||
2966 | |||
2967 | case $host in | ||
2968 | *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*) | ||
2969 | if test -n "$ac_tool_prefix"; then | ||
2970 | # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. | ||
2971 | set dummy ${ac_tool_prefix}as; ac_word=$2 | ||
2972 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
2973 | $as_echo_n "checking for $ac_word... " >&6; } | ||
2974 | if test "${ac_cv_prog_AS+set}" = set; then : | ||
2975 | $as_echo_n "(cached) " >&6 | ||
2976 | else | ||
2977 | if test -n "$AS"; then | ||
2978 | ac_cv_prog_AS="$AS" # Let the user override the test. | ||
2979 | else | ||
2980 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2981 | for as_dir in $PATH | ||
2982 | do | ||
2983 | IFS=$as_save_IFS | ||
2984 | test -z "$as_dir" && as_dir=. | ||
2985 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2986 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
2987 | ac_cv_prog_AS="${ac_tool_prefix}as" | ||
2988 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2989 | break 2 | ||
2990 | fi | ||
2991 | done | ||
2992 | done | ||
2993 | IFS=$as_save_IFS | ||
2994 | |||
2995 | fi | ||
2996 | fi | ||
2997 | AS=$ac_cv_prog_AS | ||
2998 | if test -n "$AS"; then | ||
2999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 | ||
3000 | $as_echo "$AS" >&6; } | ||
3001 | else | ||
3002 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3003 | $as_echo "no" >&6; } | ||
3004 | fi | ||
3005 | |||
3006 | |||
3007 | fi | ||
3008 | if test -z "$ac_cv_prog_AS"; then | ||
3009 | ac_ct_AS=$AS | ||
3010 | # Extract the first word of "as", so it can be a program name with args. | ||
3011 | set dummy as; ac_word=$2 | ||
3012 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
3013 | $as_echo_n "checking for $ac_word... " >&6; } | ||
3014 | if test "${ac_cv_prog_ac_ct_AS+set}" = set; then : | ||
3015 | $as_echo_n "(cached) " >&6 | ||
3016 | else | ||
3017 | if test -n "$ac_ct_AS"; then | ||
3018 | ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. | ||
3019 | else | ||
3020 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3021 | for as_dir in $PATH | ||
3022 | do | ||
3023 | IFS=$as_save_IFS | ||
3024 | test -z "$as_dir" && as_dir=. | ||
3025 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3026 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
3027 | ac_cv_prog_ac_ct_AS="as" | ||
3028 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3029 | break 2 | ||
3030 | fi | ||
3031 | done | ||
3032 | done | ||
3033 | IFS=$as_save_IFS | ||
3034 | |||
3035 | fi | ||
3036 | fi | ||
3037 | ac_ct_AS=$ac_cv_prog_ac_ct_AS | ||
3038 | if test -n "$ac_ct_AS"; then | ||
3039 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 | ||
3040 | $as_echo "$ac_ct_AS" >&6; } | ||
3041 | else | ||
3042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3043 | $as_echo "no" >&6; } | ||
3044 | fi | ||
3045 | |||
3046 | if test "x$ac_ct_AS" = x; then | ||
3047 | AS="false" | ||
3048 | else | ||
3049 | case $cross_compiling:$ac_tool_warned in | ||
3050 | yes:) | ||
3051 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
3052 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
3053 | ac_tool_warned=yes ;; | ||
3054 | esac | ||
3055 | AS=$ac_ct_AS | ||
3056 | fi | ||
3057 | else | ||
3058 | AS="$ac_cv_prog_AS" | ||
3059 | fi | ||
3060 | |||
3061 | if test -n "$ac_tool_prefix"; then | ||
3062 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. | ||
3063 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | ||
3064 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
3065 | $as_echo_n "checking for $ac_word... " >&6; } | ||
3066 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then : | ||
3067 | $as_echo_n "(cached) " >&6 | ||
3068 | else | ||
3069 | if test -n "$DLLTOOL"; then | ||
3070 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | ||
3071 | else | ||
3072 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3073 | for as_dir in $PATH | ||
3074 | do | ||
3075 | IFS=$as_save_IFS | ||
3076 | test -z "$as_dir" && as_dir=. | ||
3077 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3078 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
3079 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" | ||
3080 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3081 | break 2 | ||
3082 | fi | ||
3083 | done | ||
3084 | done | ||
3085 | IFS=$as_save_IFS | ||
3086 | |||
3087 | fi | ||
3088 | fi | ||
3089 | DLLTOOL=$ac_cv_prog_DLLTOOL | ||
3090 | if test -n "$DLLTOOL"; then | ||
3091 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 | ||
3092 | $as_echo "$DLLTOOL" >&6; } | ||
3093 | else | ||
3094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3095 | $as_echo "no" >&6; } | ||
3096 | fi | ||
3097 | |||
3098 | |||
3099 | fi | ||
3100 | if test -z "$ac_cv_prog_DLLTOOL"; then | ||
3101 | ac_ct_DLLTOOL=$DLLTOOL | ||
3102 | # Extract the first word of "dlltool", so it can be a program name with args. | ||
3103 | set dummy dlltool; ac_word=$2 | ||
3104 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
3105 | $as_echo_n "checking for $ac_word... " >&6; } | ||
3106 | if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then : | ||
3107 | $as_echo_n "(cached) " >&6 | ||
3108 | else | ||
3109 | if test -n "$ac_ct_DLLTOOL"; then | ||
3110 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | ||
3111 | else | ||
3112 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3113 | for as_dir in $PATH | ||
3114 | do | ||
3115 | IFS=$as_save_IFS | ||
3116 | test -z "$as_dir" && as_dir=. | ||
3117 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3118 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
3119 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" | ||
3120 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3121 | break 2 | ||
3122 | fi | ||
3123 | done | ||
3124 | done | ||
3125 | IFS=$as_save_IFS | ||
3126 | |||
3127 | fi | ||
3128 | fi | ||
3129 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL | ||
3130 | if test -n "$ac_ct_DLLTOOL"; then | ||
3131 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 | ||
3132 | $as_echo "$ac_ct_DLLTOOL" >&6; } | ||
3133 | else | ||
3134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3135 | $as_echo "no" >&6; } | ||
3136 | fi | ||
3137 | |||
3138 | if test "x$ac_ct_DLLTOOL" = x; then | ||
3139 | DLLTOOL="false" | ||
3140 | else | ||
3141 | case $cross_compiling:$ac_tool_warned in | ||
3142 | yes:) | ||
3143 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
3144 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
3145 | ac_tool_warned=yes ;; | ||
3146 | esac | ||
3147 | DLLTOOL=$ac_ct_DLLTOOL | ||
3148 | fi | ||
3149 | else | ||
3150 | DLLTOOL="$ac_cv_prog_DLLTOOL" | ||
3151 | fi | ||
3152 | |||
3153 | if test -n "$ac_tool_prefix"; then | ||
3154 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | ||
3155 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | ||
3156 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
3157 | $as_echo_n "checking for $ac_word... " >&6; } | ||
3158 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | ||
3159 | $as_echo_n "(cached) " >&6 | ||
3160 | else | ||
3161 | if test -n "$OBJDUMP"; then | ||
3162 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | ||
3163 | else | ||
3164 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3165 | for as_dir in $PATH | ||
3166 | do | ||
3167 | IFS=$as_save_IFS | ||
3168 | test -z "$as_dir" && as_dir=. | ||
3169 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3170 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
3171 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" | ||
3172 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3173 | break 2 | ||
3174 | fi | ||
3175 | done | ||
3176 | done | ||
3177 | IFS=$as_save_IFS | ||
3178 | |||
3179 | fi | ||
3180 | fi | ||
3181 | OBJDUMP=$ac_cv_prog_OBJDUMP | ||
3182 | if test -n "$OBJDUMP"; then | ||
3183 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 | ||
3184 | $as_echo "$OBJDUMP" >&6; } | ||
3185 | else | ||
3186 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3187 | $as_echo "no" >&6; } | ||
3188 | fi | ||
3189 | |||
3190 | |||
3191 | fi | ||
3192 | if test -z "$ac_cv_prog_OBJDUMP"; then | ||
3193 | ac_ct_OBJDUMP=$OBJDUMP | ||
3194 | # Extract the first word of "objdump", so it can be a program name with args. | ||
3195 | set dummy objdump; ac_word=$2 | ||
3196 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
3197 | $as_echo_n "checking for $ac_word... " >&6; } | ||
3198 | if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : | ||
3199 | $as_echo_n "(cached) " >&6 | ||
3200 | else | ||
3201 | if test -n "$ac_ct_OBJDUMP"; then | ||
3202 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | ||
3203 | else | ||
3204 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3205 | for as_dir in $PATH | ||
3206 | do | ||
3207 | IFS=$as_save_IFS | ||
3208 | test -z "$as_dir" && as_dir=. | ||
3209 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3210 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
3211 | ac_cv_prog_ac_ct_OBJDUMP="objdump" | ||
3212 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3213 | break 2 | ||
3214 | fi | ||
3215 | done | ||
3216 | done | ||
3217 | IFS=$as_save_IFS | ||
3218 | |||
3219 | fi | ||
3220 | fi | ||
3221 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | ||
3222 | if test -n "$ac_ct_OBJDUMP"; then | ||
3223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 | ||
3224 | $as_echo "$ac_ct_OBJDUMP" >&6; } | ||
3225 | else | ||
3226 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3227 | $as_echo "no" >&6; } | ||
3228 | fi | ||
3229 | |||
3230 | if test "x$ac_ct_OBJDUMP" = x; then | ||
3231 | OBJDUMP="false" | ||
3232 | else | ||
3233 | case $cross_compiling:$ac_tool_warned in | ||
3234 | yes:) | ||
3235 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
3236 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
3237 | ac_tool_warned=yes ;; | ||
3238 | esac | ||
3239 | OBJDUMP=$ac_ct_OBJDUMP | ||
3240 | fi | ||
3241 | else | ||
3242 | OBJDUMP="$ac_cv_prog_OBJDUMP" | ||
3243 | fi | ||
3244 | |||
3245 | ;; | ||
3246 | esac | ||
3247 | |||
3248 | test -z "$AS" && AS=as | ||
3249 | |||
3250 | |||
3251 | |||
3252 | |||
3253 | |||
3254 | test -z "$DLLTOOL" && DLLTOOL=dlltool | ||
3255 | |||
3256 | |||
3257 | |||
3258 | |||
3259 | |||
3260 | test -z "$OBJDUMP" && OBJDUMP=objdump | ||
3261 | |||
3262 | |||
3263 | |||
3264 | |||
3265 | |||
3266 | |||
3267 | |||
3268 | case `pwd` in | ||
3269 | *\ * | *\ *) | ||
3270 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 | ||
3271 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | ||
3272 | esac | ||
3273 | |||
3274 | |||
3275 | |||
3276 | macro_version='2.2.6b' | ||
3277 | macro_revision='1.3017' | ||
3278 | |||
3279 | |||
3280 | |||
3281 | |||
3282 | |||
3283 | |||
3284 | |||
3285 | |||
3286 | |||
3287 | |||
3288 | |||
3289 | |||
3290 | |||
3291 | ltmain="$ac_aux_dir/ltmain.sh" | ||
3292 | |||
3293 | DEPDIR="${am__leading_dot}deps" | ||
3294 | |||
3295 | ac_config_commands="$ac_config_commands depfiles" | ||
3296 | |||
3297 | |||
3298 | am_make=${MAKE-make} | ||
3299 | cat > confinc << 'END' | ||
3300 | am__doit: | ||
3301 | @echo this is the am__doit target | ||
3302 | .PHONY: am__doit | ||
3303 | END | ||
3304 | # If we don't find an include directive, just comment out the code. | ||
3305 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 | ||
3306 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | ||
3307 | am__include="#" | ||
3308 | am__quote= | ||
3309 | _am_result=none | ||
3310 | # First try GNU make style include. | ||
3311 | echo "include confinc" > confmf | ||
3312 | # Ignore all kinds of additional output from `make'. | ||
3313 | case `$am_make -s -f confmf 2> /dev/null` in #( | ||
3314 | *the\ am__doit\ target*) | ||
3315 | am__include=include | ||
3316 | am__quote= | ||
3317 | _am_result=GNU | ||
3318 | ;; | ||
3319 | esac | ||
3320 | # Now try BSD make style include. | ||
3321 | if test "$am__include" = "#"; then | ||
3322 | echo '.include "confinc"' > confmf | ||
3323 | case `$am_make -s -f confmf 2> /dev/null` in #( | ||
3324 | *the\ am__doit\ target*) | ||
3325 | am__include=.include | ||
3326 | am__quote="\"" | ||
3327 | _am_result=BSD | ||
3328 | ;; | ||
3329 | esac | ||
3330 | fi | ||
3331 | |||
3332 | |||
3333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 | ||
3334 | $as_echo "$_am_result" >&6; } | ||
3335 | rm -f confinc confmf | ||
3336 | |||
3337 | # Check whether --enable-dependency-tracking was given. | ||
3338 | if test "${enable_dependency_tracking+set}" = set; then : | ||
3339 | enableval=$enable_dependency_tracking; | ||
3340 | fi | ||
3341 | |||
3342 | if test "x$enable_dependency_tracking" != xno; then | ||
3343 | am_depcomp="$ac_aux_dir/depcomp" | ||
3344 | AMDEPBACKSLASH='\' | ||
3345 | fi | ||
3346 | if test "x$enable_dependency_tracking" != xno; then | ||
3347 | AMDEP_TRUE= | ||
3348 | AMDEP_FALSE='#' | ||
3349 | else | ||
3350 | AMDEP_TRUE='#' | ||
3351 | AMDEP_FALSE= | ||
3352 | fi | ||
3353 | |||
3354 | |||
3355 | ac_ext=c | ||
3356 | ac_cpp='$CPP $CPPFLAGS' | ||
3357 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
3358 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
3359 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
3360 | if test -n "$ac_tool_prefix"; then | ||
3361 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | ||
3362 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | ||
3363 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
3364 | $as_echo_n "checking for $ac_word... " >&6; } | ||
3365 | if test "${ac_cv_prog_CC+set}" = set; then : | ||
3366 | $as_echo_n "(cached) " >&6 | ||
3367 | else | ||
3368 | if test -n "$CC"; then | ||
3369 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
3370 | else | ||
3371 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3372 | for as_dir in $PATH | ||
3373 | do | ||
3374 | IFS=$as_save_IFS | ||
3375 | test -z "$as_dir" && as_dir=. | ||
3376 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3377 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
3378 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | ||
3379 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3380 | break 2 | ||
3381 | fi | ||
3382 | done | ||
3383 | done | ||
3384 | IFS=$as_save_IFS | ||
3385 | |||
3386 | fi | ||
3387 | fi | ||
3388 | CC=$ac_cv_prog_CC | ||
3389 | if test -n "$CC"; then | ||
3390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
3391 | $as_echo "$CC" >&6; } | ||
3392 | else | ||
3393 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3394 | $as_echo "no" >&6; } | ||
3395 | fi | ||
3396 | |||
3397 | |||
3398 | fi | ||
3399 | if test -z "$ac_cv_prog_CC"; then | ||
3400 | ac_ct_CC=$CC | ||
3401 | # Extract the first word of "gcc", so it can be a program name with args. | ||
3402 | set dummy gcc; ac_word=$2 | ||
3403 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
3404 | $as_echo_n "checking for $ac_word... " >&6; } | ||
3405 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | ||
3406 | $as_echo_n "(cached) " >&6 | ||
3407 | else | ||
3408 | if test -n "$ac_ct_CC"; then | ||
3409 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
3410 | else | ||
3411 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3412 | for as_dir in $PATH | ||
3413 | do | ||
3414 | IFS=$as_save_IFS | ||
3415 | test -z "$as_dir" && as_dir=. | ||
3416 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3417 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
3418 | ac_cv_prog_ac_ct_CC="gcc" | ||
3419 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3420 | break 2 | ||
3421 | fi | ||
3422 | done | ||
3423 | done | ||
3424 | IFS=$as_save_IFS | ||
3425 | |||
3426 | fi | ||
3427 | fi | ||
3428 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
3429 | if test -n "$ac_ct_CC"; then | ||
3430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | ||
3431 | $as_echo "$ac_ct_CC" >&6; } | ||
3432 | else | ||
3433 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3434 | $as_echo "no" >&6; } | ||
3435 | fi | ||
3436 | |||
3437 | if test "x$ac_ct_CC" = x; then | ||
3438 | CC="" | ||
3439 | else | ||
3440 | case $cross_compiling:$ac_tool_warned in | ||
3441 | yes:) | ||
3442 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
3443 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
3444 | ac_tool_warned=yes ;; | ||
3445 | esac | ||
3446 | CC=$ac_ct_CC | ||
3447 | fi | ||
3448 | else | ||
3449 | CC="$ac_cv_prog_CC" | ||
3450 | fi | ||
3451 | |||
3452 | if test -z "$CC"; then | ||
3453 | if test -n "$ac_tool_prefix"; then | ||
3454 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | ||
3455 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | ||
3456 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
3457 | $as_echo_n "checking for $ac_word... " >&6; } | ||
3458 | if test "${ac_cv_prog_CC+set}" = set; then : | ||
3459 | $as_echo_n "(cached) " >&6 | ||
3460 | else | ||
3461 | if test -n "$CC"; then | ||
3462 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
3463 | else | ||
3464 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3465 | for as_dir in $PATH | ||
3466 | do | ||
3467 | IFS=$as_save_IFS | ||
3468 | test -z "$as_dir" && as_dir=. | ||
3469 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3470 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
3471 | ac_cv_prog_CC="${ac_tool_prefix}cc" | ||
3472 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3473 | break 2 | ||
3474 | fi | ||
3475 | done | ||
3476 | done | ||
3477 | IFS=$as_save_IFS | ||
3478 | |||
3479 | fi | ||
3480 | fi | ||
3481 | CC=$ac_cv_prog_CC | ||
3482 | if test -n "$CC"; then | ||
3483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
3484 | $as_echo "$CC" >&6; } | ||
3485 | else | ||
3486 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3487 | $as_echo "no" >&6; } | ||
3488 | fi | ||
3489 | |||
3490 | |||
3491 | fi | ||
3492 | fi | ||
3493 | if test -z "$CC"; then | ||
3494 | # Extract the first word of "cc", so it can be a program name with args. | ||
3495 | set dummy cc; ac_word=$2 | ||
3496 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
3497 | $as_echo_n "checking for $ac_word... " >&6; } | ||
3498 | if test "${ac_cv_prog_CC+set}" = set; then : | ||
3499 | $as_echo_n "(cached) " >&6 | ||
3500 | else | ||
3501 | if test -n "$CC"; then | ||
3502 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
3503 | else | ||
3504 | ac_prog_rejected=no | ||
3505 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3506 | for as_dir in $PATH | ||
3507 | do | ||
3508 | IFS=$as_save_IFS | ||
3509 | test -z "$as_dir" && as_dir=. | ||
3510 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3511 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
3512 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | ||
3513 | ac_prog_rejected=yes | ||
3514 | continue | ||
3515 | fi | ||
3516 | ac_cv_prog_CC="cc" | ||
3517 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3518 | break 2 | ||
3519 | fi | ||
3520 | done | ||
3521 | done | ||
3522 | IFS=$as_save_IFS | ||
3523 | |||
3524 | if test $ac_prog_rejected = yes; then | ||
3525 | # We found a bogon in the path, so make sure we never use it. | ||
3526 | set dummy $ac_cv_prog_CC | ||
3527 | shift | ||
3528 | if test $# != 0; then | ||
3529 | # We chose a different compiler from the bogus one. | ||
3530 | # However, it has the same basename, so the bogon will be chosen | ||
3531 | # first if we set CC to just the basename; use the full file name. | ||
3532 | shift | ||
3533 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | ||
3534 | fi | ||
3535 | fi | ||
3536 | fi | ||
3537 | fi | ||
3538 | CC=$ac_cv_prog_CC | ||
3539 | if test -n "$CC"; then | ||
3540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
3541 | $as_echo "$CC" >&6; } | ||
3542 | else | ||
3543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3544 | $as_echo "no" >&6; } | ||
3545 | fi | ||
3546 | |||
3547 | |||
3548 | fi | ||
3549 | if test -z "$CC"; then | ||
3550 | if test -n "$ac_tool_prefix"; then | ||
3551 | for ac_prog in cl.exe | ||
3552 | do | ||
3553 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
3554 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
3555 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
3556 | $as_echo_n "checking for $ac_word... " >&6; } | ||
3557 | if test "${ac_cv_prog_CC+set}" = set; then : | ||
3558 | $as_echo_n "(cached) " >&6 | ||
3559 | else | ||
3560 | if test -n "$CC"; then | ||
3561 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
3562 | else | ||
3563 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3564 | for as_dir in $PATH | ||
3565 | do | ||
3566 | IFS=$as_save_IFS | ||
3567 | test -z "$as_dir" && as_dir=. | ||
3568 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3569 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
3570 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | ||
3571 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3572 | break 2 | ||
3573 | fi | ||
3574 | done | ||
3575 | done | ||
3576 | IFS=$as_save_IFS | ||
3577 | |||
3578 | fi | ||
3579 | fi | ||
3580 | CC=$ac_cv_prog_CC | ||
3581 | if test -n "$CC"; then | ||
3582 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
3583 | $as_echo "$CC" >&6; } | ||
3584 | else | ||
3585 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3586 | $as_echo "no" >&6; } | ||
3587 | fi | ||
3588 | |||
3589 | |||
3590 | test -n "$CC" && break | ||
3591 | done | ||
3592 | fi | ||
3593 | if test -z "$CC"; then | ||
3594 | ac_ct_CC=$CC | ||
3595 | for ac_prog in cl.exe | ||
3596 | do | ||
3597 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
3598 | set dummy $ac_prog; ac_word=$2 | ||
3599 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
3600 | $as_echo_n "checking for $ac_word... " >&6; } | ||
3601 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | ||
3602 | $as_echo_n "(cached) " >&6 | ||
3603 | else | ||
3604 | if test -n "$ac_ct_CC"; then | ||
3605 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
3606 | else | ||
3607 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3608 | for as_dir in $PATH | ||
3609 | do | ||
3610 | IFS=$as_save_IFS | ||
3611 | test -z "$as_dir" && as_dir=. | ||
3612 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3613 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
3614 | ac_cv_prog_ac_ct_CC="$ac_prog" | ||
3615 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3616 | break 2 | ||
3617 | fi | ||
3618 | done | ||
3619 | done | ||
3620 | IFS=$as_save_IFS | ||
3621 | |||
3622 | fi | ||
3623 | fi | ||
3624 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
3625 | if test -n "$ac_ct_CC"; then | ||
3626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | ||
3627 | $as_echo "$ac_ct_CC" >&6; } | ||
3628 | else | ||
3629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3630 | $as_echo "no" >&6; } | ||
3631 | fi | ||
3632 | |||
3633 | |||
3634 | test -n "$ac_ct_CC" && break | ||
3635 | done | ||
3636 | |||
3637 | if test "x$ac_ct_CC" = x; then | ||
3638 | CC="" | ||
3639 | else | ||
3640 | case $cross_compiling:$ac_tool_warned in | ||
3641 | yes:) | ||
3642 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
3643 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
3644 | ac_tool_warned=yes ;; | ||
3645 | esac | ||
3646 | CC=$ac_ct_CC | ||
3647 | fi | ||
3648 | fi | ||
3649 | |||
3650 | fi | ||
3651 | |||
3652 | |||
3653 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
3654 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
3655 | as_fn_error $? "no acceptable C compiler found in \$PATH | ||
3656 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
3657 | |||
3658 | # Provide some information about the compiler. | ||
3659 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | ||
3660 | set X $ac_compile | ||
3661 | ac_compiler=$2 | ||
3662 | for ac_option in --version -v -V -qversion; do | ||
3663 | { { ac_try="$ac_compiler $ac_option >&5" | ||
3664 | case "(($ac_try" in | ||
3665 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3666 | *) ac_try_echo=$ac_try;; | ||
3667 | esac | ||
3668 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
3669 | $as_echo "$ac_try_echo"; } >&5 | ||
3670 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | ||
3671 | ac_status=$? | ||
3672 | if test -s conftest.err; then | ||
3673 | sed '10a\ | ||
3674 | ... rest of stderr output deleted ... | ||
3675 | 10q' conftest.err >conftest.er1 | ||
3676 | cat conftest.er1 >&5 | ||
3677 | fi | ||
3678 | rm -f conftest.er1 conftest.err | ||
3679 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
3680 | test $ac_status = 0; } | ||
3681 | done | ||
3682 | |||
3683 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3684 | /* end confdefs.h. */ | ||
3685 | |||
3686 | int | ||
3687 | main () | ||
3688 | { | ||
3689 | |||
3690 | ; | ||
3691 | return 0; | ||
3692 | } | ||
3693 | _ACEOF | ||
3694 | ac_clean_files_save=$ac_clean_files | ||
3695 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | ||
3696 | # Try to create an executable without -o first, disregard a.out. | ||
3697 | # It will help us diagnose broken compilers, and finding out an intuition | ||
3698 | # of exeext. | ||
3699 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | ||
3700 | $as_echo_n "checking whether the C compiler works... " >&6; } | ||
3701 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | ||
3702 | |||
3703 | # The possible output files: | ||
3704 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | ||
3705 | |||
3706 | ac_rmfiles= | ||
3707 | for ac_file in $ac_files | ||
3708 | do | ||
3709 | case $ac_file in | ||
3710 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | ||
3711 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | ||
3712 | esac | ||
3713 | done | ||
3714 | rm -f $ac_rmfiles | ||
3715 | |||
3716 | if { { ac_try="$ac_link_default" | ||
3717 | case "(($ac_try" in | ||
3718 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3719 | *) ac_try_echo=$ac_try;; | ||
3720 | esac | ||
3721 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
3722 | $as_echo "$ac_try_echo"; } >&5 | ||
3723 | (eval "$ac_link_default") 2>&5 | ||
3724 | ac_status=$? | ||
3725 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
3726 | test $ac_status = 0; }; then : | ||
3727 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | ||
3728 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | ||
3729 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | ||
3730 | # so that the user can short-circuit this test for compilers unknown to | ||
3731 | # Autoconf. | ||
3732 | for ac_file in $ac_files '' | ||
3733 | do | ||
3734 | test -f "$ac_file" || continue | ||
3735 | case $ac_file in | ||
3736 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | ||
3737 | ;; | ||
3738 | [ab].out ) | ||
3739 | # We found the default executable, but exeext='' is most | ||
3740 | # certainly right. | ||
3741 | break;; | ||
3742 | *.* ) | ||
3743 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | ||
3744 | then :; else | ||
3745 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | ||
3746 | fi | ||
3747 | # We set ac_cv_exeext here because the later test for it is not | ||
3748 | # safe: cross compilers may not add the suffix if given an `-o' | ||
3749 | # argument, so we may need to know it at that point already. | ||
3750 | # Even if this section looks crufty: it has the advantage of | ||
3751 | # actually working. | ||
3752 | break;; | ||
3753 | * ) | ||
3754 | break;; | ||
3755 | esac | ||
3756 | done | ||
3757 | test "$ac_cv_exeext" = no && ac_cv_exeext= | ||
3758 | |||
3759 | else | ||
3760 | ac_file='' | ||
3761 | fi | ||
3762 | if test -z "$ac_file"; then : | ||
3763 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3764 | $as_echo "no" >&6; } | ||
3765 | $as_echo "$as_me: failed program was:" >&5 | ||
3766 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3767 | |||
3768 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
3769 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
3770 | as_fn_error 77 "C compiler cannot create executables | ||
3771 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
3772 | else | ||
3773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
3774 | $as_echo "yes" >&6; } | ||
3775 | fi | ||
3776 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | ||
3777 | $as_echo_n "checking for C compiler default output file name... " >&6; } | ||
3778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | ||
3779 | $as_echo "$ac_file" >&6; } | ||
3780 | ac_exeext=$ac_cv_exeext | ||
3781 | |||
3782 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out | ||
3783 | ac_clean_files=$ac_clean_files_save | ||
3784 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | ||
3785 | $as_echo_n "checking for suffix of executables... " >&6; } | ||
3786 | if { { ac_try="$ac_link" | ||
3787 | case "(($ac_try" in | ||
3788 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3789 | *) ac_try_echo=$ac_try;; | ||
3790 | esac | ||
3791 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
3792 | $as_echo "$ac_try_echo"; } >&5 | ||
3793 | (eval "$ac_link") 2>&5 | ||
3794 | ac_status=$? | ||
3795 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
3796 | test $ac_status = 0; }; then : | ||
3797 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | ||
3798 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | ||
3799 | # work properly (i.e., refer to `conftest.exe'), while it won't with | ||
3800 | # `rm'. | ||
3801 | for ac_file in conftest.exe conftest conftest.*; do | ||
3802 | test -f "$ac_file" || continue | ||
3803 | case $ac_file in | ||
3804 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | ||
3805 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | ||
3806 | break;; | ||
3807 | * ) break;; | ||
3808 | esac | ||
3809 | done | ||
3810 | else | ||
3811 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
3812 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
3813 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link | ||
3814 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
3815 | fi | ||
3816 | rm -f conftest conftest$ac_cv_exeext | ||
3817 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | ||
3818 | $as_echo "$ac_cv_exeext" >&6; } | ||
3819 | |||
3820 | rm -f conftest.$ac_ext | ||
3821 | EXEEXT=$ac_cv_exeext | ||
3822 | ac_exeext=$EXEEXT | ||
3823 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3824 | /* end confdefs.h. */ | ||
3825 | #include <stdio.h> | ||
3826 | int | ||
3827 | main () | ||
3828 | { | ||
3829 | FILE *f = fopen ("conftest.out", "w"); | ||
3830 | return ferror (f) || fclose (f) != 0; | ||
3831 | |||
3832 | ; | ||
3833 | return 0; | ||
3834 | } | ||
3835 | _ACEOF | ||
3836 | ac_clean_files="$ac_clean_files conftest.out" | ||
3837 | # Check that the compiler produces executables we can run. If not, either | ||
3838 | # the compiler is broken, or we cross compile. | ||
3839 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | ||
3840 | $as_echo_n "checking whether we are cross compiling... " >&6; } | ||
3841 | if test "$cross_compiling" != yes; then | ||
3842 | { { ac_try="$ac_link" | ||
3843 | case "(($ac_try" in | ||
3844 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3845 | *) ac_try_echo=$ac_try;; | ||
3846 | esac | ||
3847 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
3848 | $as_echo "$ac_try_echo"; } >&5 | ||
3849 | (eval "$ac_link") 2>&5 | ||
3850 | ac_status=$? | ||
3851 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
3852 | test $ac_status = 0; } | ||
3853 | if { ac_try='./conftest$ac_cv_exeext' | ||
3854 | { { case "(($ac_try" in | ||
3855 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3856 | *) ac_try_echo=$ac_try;; | ||
3857 | esac | ||
3858 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
3859 | $as_echo "$ac_try_echo"; } >&5 | ||
3860 | (eval "$ac_try") 2>&5 | ||
3861 | ac_status=$? | ||
3862 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
3863 | test $ac_status = 0; }; }; then | ||
3864 | cross_compiling=no | ||
3865 | else | ||
3866 | if test "$cross_compiling" = maybe; then | ||
3867 | cross_compiling=yes | ||
3868 | else | ||
3869 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
3870 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
3871 | as_fn_error $? "cannot run C compiled programs. | ||
3872 | If you meant to cross compile, use \`--host'. | ||
3873 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
3874 | fi | ||
3875 | fi | ||
3876 | fi | ||
3877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | ||
3878 | $as_echo "$cross_compiling" >&6; } | ||
3879 | |||
3880 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | ||
3881 | ac_clean_files=$ac_clean_files_save | ||
3882 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | ||
3883 | $as_echo_n "checking for suffix of object files... " >&6; } | ||
3884 | if test "${ac_cv_objext+set}" = set; then : | ||
3885 | $as_echo_n "(cached) " >&6 | ||
3886 | else | ||
3887 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3888 | /* end confdefs.h. */ | ||
3889 | |||
3890 | int | ||
3891 | main () | ||
3892 | { | ||
3893 | |||
3894 | ; | ||
3895 | return 0; | ||
3896 | } | ||
3897 | _ACEOF | ||
3898 | rm -f conftest.o conftest.obj | ||
3899 | if { { ac_try="$ac_compile" | ||
3900 | case "(($ac_try" in | ||
3901 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3902 | *) ac_try_echo=$ac_try;; | ||
3903 | esac | ||
3904 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
3905 | $as_echo "$ac_try_echo"; } >&5 | ||
3906 | (eval "$ac_compile") 2>&5 | ||
3907 | ac_status=$? | ||
3908 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
3909 | test $ac_status = 0; }; then : | ||
3910 | for ac_file in conftest.o conftest.obj conftest.*; do | ||
3911 | test -f "$ac_file" || continue; | ||
3912 | case $ac_file in | ||
3913 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | ||
3914 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | ||
3915 | break;; | ||
3916 | esac | ||
3917 | done | ||
3918 | else | ||
3919 | $as_echo "$as_me: failed program was:" >&5 | ||
3920 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3921 | |||
3922 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
3923 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
3924 | as_fn_error $? "cannot compute suffix of object files: cannot compile | ||
3925 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
3926 | fi | ||
3927 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | ||
3928 | fi | ||
3929 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | ||
3930 | $as_echo "$ac_cv_objext" >&6; } | ||
3931 | OBJEXT=$ac_cv_objext | ||
3932 | ac_objext=$OBJEXT | ||
3933 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | ||
3934 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | ||
3935 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | ||
3936 | $as_echo_n "(cached) " >&6 | ||
3937 | else | ||
3938 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3939 | /* end confdefs.h. */ | ||
3940 | |||
3941 | int | ||
3942 | main () | ||
3943 | { | ||
3944 | #ifndef __GNUC__ | ||
3945 | choke me | ||
3946 | #endif | ||
3947 | |||
3948 | ; | ||
3949 | return 0; | ||
3950 | } | ||
3951 | _ACEOF | ||
3952 | if ac_fn_c_try_compile "$LINENO"; then : | ||
3953 | ac_compiler_gnu=yes | ||
3954 | else | ||
3955 | ac_compiler_gnu=no | ||
3956 | fi | ||
3957 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3958 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | ||
3959 | |||
3960 | fi | ||
3961 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | ||
3962 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | ||
3963 | if test $ac_compiler_gnu = yes; then | ||
3964 | GCC=yes | ||
3965 | else | ||
3966 | GCC= | ||
3967 | fi | ||
3968 | ac_test_CFLAGS=${CFLAGS+set} | ||
3969 | ac_save_CFLAGS=$CFLAGS | ||
3970 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | ||
3971 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | ||
3972 | if test "${ac_cv_prog_cc_g+set}" = set; then : | ||
3973 | $as_echo_n "(cached) " >&6 | ||
3974 | else | ||
3975 | ac_save_c_werror_flag=$ac_c_werror_flag | ||
3976 | ac_c_werror_flag=yes | ||
3977 | ac_cv_prog_cc_g=no | ||
3978 | CFLAGS="-g" | ||
3979 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3980 | /* end confdefs.h. */ | ||
3981 | |||
3982 | int | ||
3983 | main () | ||
3984 | { | ||
3985 | |||
3986 | ; | ||
3987 | return 0; | ||
3988 | } | ||
3989 | _ACEOF | ||
3990 | if ac_fn_c_try_compile "$LINENO"; then : | ||
3991 | ac_cv_prog_cc_g=yes | ||
3992 | else | ||
3993 | CFLAGS="" | ||
3994 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3995 | /* end confdefs.h. */ | ||
3996 | |||
3997 | int | ||
3998 | main () | ||
3999 | { | ||
4000 | |||
4001 | ; | ||
4002 | return 0; | ||
4003 | } | ||
4004 | _ACEOF | ||
4005 | if ac_fn_c_try_compile "$LINENO"; then : | ||
4006 | |||
4007 | else | ||
4008 | ac_c_werror_flag=$ac_save_c_werror_flag | ||
4009 | CFLAGS="-g" | ||
4010 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4011 | /* end confdefs.h. */ | ||
4012 | |||
4013 | int | ||
4014 | main () | ||
4015 | { | ||
4016 | |||
4017 | ; | ||
4018 | return 0; | ||
4019 | } | ||
4020 | _ACEOF | ||
4021 | if ac_fn_c_try_compile "$LINENO"; then : | ||
4022 | ac_cv_prog_cc_g=yes | ||
4023 | fi | ||
4024 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4025 | fi | ||
4026 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4027 | fi | ||
4028 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4029 | ac_c_werror_flag=$ac_save_c_werror_flag | ||
4030 | fi | ||
4031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | ||
4032 | $as_echo "$ac_cv_prog_cc_g" >&6; } | ||
4033 | if test "$ac_test_CFLAGS" = set; then | ||
4034 | CFLAGS=$ac_save_CFLAGS | ||
4035 | elif test $ac_cv_prog_cc_g = yes; then | ||
4036 | if test "$GCC" = yes; then | ||
4037 | CFLAGS="-g -O2" | ||
4038 | else | ||
4039 | CFLAGS="-g" | ||
4040 | fi | ||
4041 | else | ||
4042 | if test "$GCC" = yes; then | ||
4043 | CFLAGS="-O2" | ||
4044 | else | ||
4045 | CFLAGS= | ||
4046 | fi | ||
4047 | fi | ||
4048 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | ||
4049 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | ||
4050 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | ||
4051 | $as_echo_n "(cached) " >&6 | ||
4052 | else | ||
4053 | ac_cv_prog_cc_c89=no | ||
4054 | ac_save_CC=$CC | ||
4055 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4056 | /* end confdefs.h. */ | ||
4057 | #include <stdarg.h> | ||
4058 | #include <stdio.h> | ||
4059 | #include <sys/types.h> | ||
4060 | #include <sys/stat.h> | ||
4061 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | ||
4062 | struct buf { int x; }; | ||
4063 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | ||
4064 | static char *e (p, i) | ||
4065 | char **p; | ||
4066 | int i; | ||
4067 | { | ||
4068 | return p[i]; | ||
4069 | } | ||
4070 | static char *f (char * (*g) (char **, int), char **p, ...) | ||
4071 | { | ||
4072 | char *s; | ||
4073 | va_list v; | ||
4074 | va_start (v,p); | ||
4075 | s = g (p, va_arg (v,int)); | ||
4076 | va_end (v); | ||
4077 | return s; | ||
4078 | } | ||
4079 | |||
4080 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | ||
4081 | function prototypes and stuff, but not '\xHH' hex character constants. | ||
4082 | These don't provoke an error unfortunately, instead are silently treated | ||
4083 | as 'x'. The following induces an error, until -std is added to get | ||
4084 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | ||
4085 | array size at least. It's necessary to write '\x00'==0 to get something | ||
4086 | that's true only with -std. */ | ||
4087 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | ||
4088 | |||
4089 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | ||
4090 | inside strings and character constants. */ | ||
4091 | #define FOO(x) 'x' | ||
4092 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | ||
4093 | |||
4094 | int test (int i, double x); | ||
4095 | struct s1 {int (*f) (int a);}; | ||
4096 | struct s2 {int (*f) (double a);}; | ||
4097 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | ||
4098 | int argc; | ||
4099 | char **argv; | ||
4100 | int | ||
4101 | main () | ||
4102 | { | ||
4103 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | ||
4104 | ; | ||
4105 | return 0; | ||
4106 | } | ||
4107 | _ACEOF | ||
4108 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | ||
4109 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | ||
4110 | do | ||
4111 | CC="$ac_save_CC $ac_arg" | ||
4112 | if ac_fn_c_try_compile "$LINENO"; then : | ||
4113 | ac_cv_prog_cc_c89=$ac_arg | ||
4114 | fi | ||
4115 | rm -f core conftest.err conftest.$ac_objext | ||
4116 | test "x$ac_cv_prog_cc_c89" != "xno" && break | ||
4117 | done | ||
4118 | rm -f conftest.$ac_ext | ||
4119 | CC=$ac_save_CC | ||
4120 | |||
4121 | fi | ||
4122 | # AC_CACHE_VAL | ||
4123 | case "x$ac_cv_prog_cc_c89" in | ||
4124 | x) | ||
4125 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | ||
4126 | $as_echo "none needed" >&6; } ;; | ||
4127 | xno) | ||
4128 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | ||
4129 | $as_echo "unsupported" >&6; } ;; | ||
4130 | *) | ||
4131 | CC="$CC $ac_cv_prog_cc_c89" | ||
4132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | ||
4133 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | ||
4134 | esac | ||
4135 | if test "x$ac_cv_prog_cc_c89" != xno; then : | ||
4136 | |||
4137 | fi | ||
4138 | |||
4139 | ac_ext=c | ||
4140 | ac_cpp='$CPP $CPPFLAGS' | ||
4141 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
4142 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
4143 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
4144 | |||
4145 | depcc="$CC" am_compiler_list= | ||
4146 | |||
4147 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | ||
4148 | $as_echo_n "checking dependency style of $depcc... " >&6; } | ||
4149 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : | ||
4150 | $as_echo_n "(cached) " >&6 | ||
4151 | else | ||
4152 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | ||
4153 | # We make a subdir and do the tests there. Otherwise we can end up | ||
4154 | # making bogus files that we don't know about and never remove. For | ||
4155 | # instance it was reported that on HP-UX the gcc test will end up | ||
4156 | # making a dummy file named `D' -- because `-MD' means `put the output | ||
4157 | # in D'. | ||
4158 | mkdir conftest.dir | ||
4159 | # Copy depcomp to subdir because otherwise we won't find it if we're | ||
4160 | # using a relative directory. | ||
4161 | cp "$am_depcomp" conftest.dir | ||
4162 | cd conftest.dir | ||
4163 | # We will build objects and dependencies in a subdirectory because | ||
4164 | # it helps to detect inapplicable dependency modes. For instance | ||
4165 | # both Tru64's cc and ICC support -MD to output dependencies as a | ||
4166 | # side effect of compilation, but ICC will put the dependencies in | ||
4167 | # the current directory while Tru64 will put them in the object | ||
4168 | # directory. | ||
4169 | mkdir sub | ||
4170 | |||
4171 | am_cv_CC_dependencies_compiler_type=none | ||
4172 | if test "$am_compiler_list" = ""; then | ||
4173 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | ||
4174 | fi | ||
4175 | am__universal=false | ||
4176 | case " $depcc " in #( | ||
4177 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | ||
4178 | esac | ||
4179 | |||
4180 | for depmode in $am_compiler_list; do | ||
4181 | # Setup a source with many dependencies, because some compilers | ||
4182 | # like to wrap large dependency lists on column 80 (with \), and | ||
4183 | # we should not choose a depcomp mode which is confused by this. | ||
4184 | # | ||
4185 | # We need to recreate these files for each test, as the compiler may | ||
4186 | # overwrite some of them when testing with obscure command lines. | ||
4187 | # This happens at least with the AIX C compiler. | ||
4188 | : > sub/conftest.c | ||
4189 | for i in 1 2 3 4 5 6; do | ||
4190 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | ||
4191 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | ||
4192 | # Solaris 8's {/usr,}/bin/sh. | ||
4193 | touch sub/conftst$i.h | ||
4194 | done | ||
4195 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | ||
4196 | |||
4197 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | ||
4198 | # mode. It turns out that the SunPro C++ compiler does not properly | ||
4199 | # handle `-M -o', and we need to detect this. Also, some Intel | ||
4200 | # versions had trouble with output in subdirs | ||
4201 | am__obj=sub/conftest.${OBJEXT-o} | ||
4202 | am__minus_obj="-o $am__obj" | ||
4203 | case $depmode in | ||
4204 | gcc) | ||
4205 | # This depmode causes a compiler race in universal mode. | ||
4206 | test "$am__universal" = false || continue | ||
4207 | ;; | ||
4208 | nosideeffect) | ||
4209 | # after this tag, mechanisms are not by side-effect, so they'll | ||
4210 | # only be used when explicitly requested | ||
4211 | if test "x$enable_dependency_tracking" = xyes; then | ||
4212 | continue | ||
4213 | else | ||
4214 | break | ||
4215 | fi | ||
4216 | ;; | ||
4217 | msvisualcpp | msvcmsys) | ||
4218 | # This compiler won't grok `-c -o', but also, the minuso test has | ||
4219 | # not run yet. These depmodes are late enough in the game, and | ||
4220 | # so weak that their functioning should not be impacted. | ||
4221 | am__obj=conftest.${OBJEXT-o} | ||
4222 | am__minus_obj= | ||
4223 | ;; | ||
4224 | none) break ;; | ||
4225 | esac | ||
4226 | if depmode=$depmode \ | ||
4227 | source=sub/conftest.c object=$am__obj \ | ||
4228 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | ||
4229 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | ||
4230 | >/dev/null 2>conftest.err && | ||
4231 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | ||
4232 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | ||
4233 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | ||
4234 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | ||
4235 | # icc doesn't choke on unknown options, it will just issue warnings | ||
4236 | # or remarks (even with -Werror). So we grep stderr for any message | ||
4237 | # that says an option was ignored or not supported. | ||
4238 | # When given -MP, icc 7.0 and 7.1 complain thusly: | ||
4239 | # icc: Command line warning: ignoring option '-M'; no argument required | ||
4240 | # The diagnosis changed in icc 8.0: | ||
4241 | # icc: Command line remark: option '-MP' not supported | ||
4242 | if (grep 'ignoring option' conftest.err || | ||
4243 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | ||
4244 | am_cv_CC_dependencies_compiler_type=$depmode | ||
4245 | break | ||
4246 | fi | ||
4247 | fi | ||
4248 | done | ||
4249 | |||
4250 | cd .. | ||
4251 | rm -rf conftest.dir | ||
4252 | else | ||
4253 | am_cv_CC_dependencies_compiler_type=none | ||
4254 | fi | ||
4255 | |||
4256 | fi | ||
4257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 | ||
4258 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | ||
4259 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | ||
4260 | |||
4261 | if | ||
4262 | test "x$enable_dependency_tracking" != xno \ | ||
4263 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | ||
4264 | am__fastdepCC_TRUE= | ||
4265 | am__fastdepCC_FALSE='#' | ||
4266 | else | ||
4267 | am__fastdepCC_TRUE='#' | ||
4268 | am__fastdepCC_FALSE= | ||
4269 | fi | ||
4270 | |||
4271 | |||
4272 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 | ||
4273 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | ||
4274 | if test "${ac_cv_path_SED+set}" = set; then : | ||
4275 | $as_echo_n "(cached) " >&6 | ||
4276 | else | ||
4277 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | ||
4278 | for ac_i in 1 2 3 4 5 6 7; do | ||
4279 | ac_script="$ac_script$as_nl$ac_script" | ||
4280 | done | ||
4281 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | ||
4282 | { ac_script=; unset ac_script;} | ||
4283 | if test -z "$SED"; then | ||
4284 | ac_path_SED_found=false | ||
4285 | # Loop through the user's path and test for each of PROGNAME-LIST | ||
4286 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4287 | for as_dir in $PATH | ||
4288 | do | ||
4289 | IFS=$as_save_IFS | ||
4290 | test -z "$as_dir" && as_dir=. | ||
4291 | for ac_prog in sed gsed; do | ||
4292 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4293 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | ||
4294 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | ||
4295 | # Check for GNU ac_path_SED and select it if it is found. | ||
4296 | # Check for GNU $ac_path_SED | ||
4297 | case `"$ac_path_SED" --version 2>&1` in | ||
4298 | *GNU*) | ||
4299 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | ||
4300 | *) | ||
4301 | ac_count=0 | ||
4302 | $as_echo_n 0123456789 >"conftest.in" | ||
4303 | while : | ||
4304 | do | ||
4305 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||
4306 | mv "conftest.tmp" "conftest.in" | ||
4307 | cp "conftest.in" "conftest.nl" | ||
4308 | $as_echo '' >> "conftest.nl" | ||
4309 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||
4310 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||
4311 | as_fn_arith $ac_count + 1 && ac_count=$as_val | ||
4312 | if test $ac_count -gt ${ac_path_SED_max-0}; then | ||
4313 | # Best one so far, save it but keep looking for a better one | ||
4314 | ac_cv_path_SED="$ac_path_SED" | ||
4315 | ac_path_SED_max=$ac_count | ||
4316 | fi | ||
4317 | # 10*(2^10) chars as input seems more than enough | ||
4318 | test $ac_count -gt 10 && break | ||
4319 | done | ||
4320 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||
4321 | esac | ||
4322 | |||
4323 | $ac_path_SED_found && break 3 | ||
4324 | done | ||
4325 | done | ||
4326 | done | ||
4327 | IFS=$as_save_IFS | ||
4328 | if test -z "$ac_cv_path_SED"; then | ||
4329 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 | ||
4330 | fi | ||
4331 | else | ||
4332 | ac_cv_path_SED=$SED | ||
4333 | fi | ||
4334 | |||
4335 | fi | ||
4336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | ||
4337 | $as_echo "$ac_cv_path_SED" >&6; } | ||
4338 | SED="$ac_cv_path_SED" | ||
4339 | rm -f conftest.sed | ||
4340 | |||
4341 | test -z "$SED" && SED=sed | ||
4342 | Xsed="$SED -e 1s/^X//" | ||
4343 | |||
4344 | |||
4345 | |||
4346 | |||
4347 | |||
4348 | |||
4349 | |||
4350 | |||
4351 | |||
4352 | |||
4353 | |||
4354 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | ||
4355 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | ||
4356 | if test "${ac_cv_path_GREP+set}" = set; then : | ||
4357 | $as_echo_n "(cached) " >&6 | ||
4358 | else | ||
4359 | if test -z "$GREP"; then | ||
4360 | ac_path_GREP_found=false | ||
4361 | # Loop through the user's path and test for each of PROGNAME-LIST | ||
4362 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4363 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||
4364 | do | ||
4365 | IFS=$as_save_IFS | ||
4366 | test -z "$as_dir" && as_dir=. | ||
4367 | for ac_prog in grep ggrep; do | ||
4368 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4369 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | ||
4370 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | ||
4371 | # Check for GNU ac_path_GREP and select it if it is found. | ||
4372 | # Check for GNU $ac_path_GREP | ||
4373 | case `"$ac_path_GREP" --version 2>&1` in | ||
4374 | *GNU*) | ||
4375 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | ||
4376 | *) | ||
4377 | ac_count=0 | ||
4378 | $as_echo_n 0123456789 >"conftest.in" | ||
4379 | while : | ||
4380 | do | ||
4381 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||
4382 | mv "conftest.tmp" "conftest.in" | ||
4383 | cp "conftest.in" "conftest.nl" | ||
4384 | $as_echo 'GREP' >> "conftest.nl" | ||
4385 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||
4386 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||
4387 | as_fn_arith $ac_count + 1 && ac_count=$as_val | ||
4388 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | ||
4389 | # Best one so far, save it but keep looking for a better one | ||
4390 | ac_cv_path_GREP="$ac_path_GREP" | ||
4391 | ac_path_GREP_max=$ac_count | ||
4392 | fi | ||
4393 | # 10*(2^10) chars as input seems more than enough | ||
4394 | test $ac_count -gt 10 && break | ||
4395 | done | ||
4396 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||
4397 | esac | ||
4398 | |||
4399 | $ac_path_GREP_found && break 3 | ||
4400 | done | ||
4401 | done | ||
4402 | done | ||
4403 | IFS=$as_save_IFS | ||
4404 | if test -z "$ac_cv_path_GREP"; then | ||
4405 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | ||
4406 | fi | ||
4407 | else | ||
4408 | ac_cv_path_GREP=$GREP | ||
4409 | fi | ||
4410 | |||
4411 | fi | ||
4412 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | ||
4413 | $as_echo "$ac_cv_path_GREP" >&6; } | ||
4414 | GREP="$ac_cv_path_GREP" | ||
4415 | |||
4416 | |||
4417 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | ||
4418 | $as_echo_n "checking for egrep... " >&6; } | ||
4419 | if test "${ac_cv_path_EGREP+set}" = set; then : | ||
4420 | $as_echo_n "(cached) " >&6 | ||
4421 | else | ||
4422 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | ||
4423 | then ac_cv_path_EGREP="$GREP -E" | ||
4424 | else | ||
4425 | if test -z "$EGREP"; then | ||
4426 | ac_path_EGREP_found=false | ||
4427 | # Loop through the user's path and test for each of PROGNAME-LIST | ||
4428 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4429 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||
4430 | do | ||
4431 | IFS=$as_save_IFS | ||
4432 | test -z "$as_dir" && as_dir=. | ||
4433 | for ac_prog in egrep; do | ||
4434 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4435 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | ||
4436 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | ||
4437 | # Check for GNU ac_path_EGREP and select it if it is found. | ||
4438 | # Check for GNU $ac_path_EGREP | ||
4439 | case `"$ac_path_EGREP" --version 2>&1` in | ||
4440 | *GNU*) | ||
4441 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | ||
4442 | *) | ||
4443 | ac_count=0 | ||
4444 | $as_echo_n 0123456789 >"conftest.in" | ||
4445 | while : | ||
4446 | do | ||
4447 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||
4448 | mv "conftest.tmp" "conftest.in" | ||
4449 | cp "conftest.in" "conftest.nl" | ||
4450 | $as_echo 'EGREP' >> "conftest.nl" | ||
4451 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||
4452 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||
4453 | as_fn_arith $ac_count + 1 && ac_count=$as_val | ||
4454 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | ||
4455 | # Best one so far, save it but keep looking for a better one | ||
4456 | ac_cv_path_EGREP="$ac_path_EGREP" | ||
4457 | ac_path_EGREP_max=$ac_count | ||
4458 | fi | ||
4459 | # 10*(2^10) chars as input seems more than enough | ||
4460 | test $ac_count -gt 10 && break | ||
4461 | done | ||
4462 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||
4463 | esac | ||
4464 | |||
4465 | $ac_path_EGREP_found && break 3 | ||
4466 | done | ||
4467 | done | ||
4468 | done | ||
4469 | IFS=$as_save_IFS | ||
4470 | if test -z "$ac_cv_path_EGREP"; then | ||
4471 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | ||
4472 | fi | ||
4473 | else | ||
4474 | ac_cv_path_EGREP=$EGREP | ||
4475 | fi | ||
4476 | |||
4477 | fi | ||
4478 | fi | ||
4479 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | ||
4480 | $as_echo "$ac_cv_path_EGREP" >&6; } | ||
4481 | EGREP="$ac_cv_path_EGREP" | ||
4482 | |||
4483 | |||
4484 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 | ||
4485 | $as_echo_n "checking for fgrep... " >&6; } | ||
4486 | if test "${ac_cv_path_FGREP+set}" = set; then : | ||
4487 | $as_echo_n "(cached) " >&6 | ||
4488 | else | ||
4489 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 | ||
4490 | then ac_cv_path_FGREP="$GREP -F" | ||
4491 | else | ||
4492 | if test -z "$FGREP"; then | ||
4493 | ac_path_FGREP_found=false | ||
4494 | # Loop through the user's path and test for each of PROGNAME-LIST | ||
4495 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4496 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||
4497 | do | ||
4498 | IFS=$as_save_IFS | ||
4499 | test -z "$as_dir" && as_dir=. | ||
4500 | for ac_prog in fgrep; do | ||
4501 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4502 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | ||
4503 | { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue | ||
4504 | # Check for GNU ac_path_FGREP and select it if it is found. | ||
4505 | # Check for GNU $ac_path_FGREP | ||
4506 | case `"$ac_path_FGREP" --version 2>&1` in | ||
4507 | *GNU*) | ||
4508 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | ||
4509 | *) | ||
4510 | ac_count=0 | ||
4511 | $as_echo_n 0123456789 >"conftest.in" | ||
4512 | while : | ||
4513 | do | ||
4514 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||
4515 | mv "conftest.tmp" "conftest.in" | ||
4516 | cp "conftest.in" "conftest.nl" | ||
4517 | $as_echo 'FGREP' >> "conftest.nl" | ||
4518 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||
4519 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||
4520 | as_fn_arith $ac_count + 1 && ac_count=$as_val | ||
4521 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then | ||
4522 | # Best one so far, save it but keep looking for a better one | ||
4523 | ac_cv_path_FGREP="$ac_path_FGREP" | ||
4524 | ac_path_FGREP_max=$ac_count | ||
4525 | fi | ||
4526 | # 10*(2^10) chars as input seems more than enough | ||
4527 | test $ac_count -gt 10 && break | ||
4528 | done | ||
4529 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||
4530 | esac | ||
4531 | |||
4532 | $ac_path_FGREP_found && break 3 | ||
4533 | done | ||
4534 | done | ||
4535 | done | ||
4536 | IFS=$as_save_IFS | ||
4537 | if test -z "$ac_cv_path_FGREP"; then | ||
4538 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | ||
4539 | fi | ||
4540 | else | ||
4541 | ac_cv_path_FGREP=$FGREP | ||
4542 | fi | ||
4543 | |||
4544 | fi | ||
4545 | fi | ||
4546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 | ||
4547 | $as_echo "$ac_cv_path_FGREP" >&6; } | ||
4548 | FGREP="$ac_cv_path_FGREP" | ||
4549 | |||
4550 | |||
4551 | test -z "$GREP" && GREP=grep | ||
4552 | |||
4553 | |||
4554 | |||
4555 | |||
4556 | |||
4557 | |||
4558 | |||
4559 | |||
4560 | |||
4561 | |||
4562 | |||
4563 | |||
4564 | |||
4565 | |||
4566 | |||
4567 | |||
4568 | |||
4569 | |||
4570 | |||
4571 | # Check whether --with-gnu-ld was given. | ||
4572 | if test "${with_gnu_ld+set}" = set; then : | ||
4573 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | ||
4574 | else | ||
4575 | with_gnu_ld=no | ||
4576 | fi | ||
4577 | |||
4578 | ac_prog=ld | ||
4579 | if test "$GCC" = yes; then | ||
4580 | # Check if gcc -print-prog-name=ld gives a path. | ||
4581 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | ||
4582 | $as_echo_n "checking for ld used by $CC... " >&6; } | ||
4583 | case $host in | ||
4584 | *-*-mingw*) | ||
4585 | # gcc leaves a trailing carriage return which upsets mingw | ||
4586 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | ||
4587 | *) | ||
4588 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | ||
4589 | esac | ||
4590 | case $ac_prog in | ||
4591 | # Accept absolute paths. | ||
4592 | [\\/]* | ?:[\\/]*) | ||
4593 | re_direlt='/[^/][^/]*/\.\./' | ||
4594 | # Canonicalize the pathname of ld | ||
4595 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | ||
4596 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | ||
4597 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | ||
4598 | done | ||
4599 | test -z "$LD" && LD="$ac_prog" | ||
4600 | ;; | ||
4601 | "") | ||
4602 | # If it fails, then pretend we aren't using GCC. | ||
4603 | ac_prog=ld | ||
4604 | ;; | ||
4605 | *) | ||
4606 | # If it is relative, then search for the first ld in PATH. | ||
4607 | with_gnu_ld=unknown | ||
4608 | ;; | ||
4609 | esac | ||
4610 | elif test "$with_gnu_ld" = yes; then | ||
4611 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | ||
4612 | $as_echo_n "checking for GNU ld... " >&6; } | ||
4613 | else | ||
4614 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | ||
4615 | $as_echo_n "checking for non-GNU ld... " >&6; } | ||
4616 | fi | ||
4617 | if test "${lt_cv_path_LD+set}" = set; then : | ||
4618 | $as_echo_n "(cached) " >&6 | ||
4619 | else | ||
4620 | if test -z "$LD"; then | ||
4621 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | ||
4622 | for ac_dir in $PATH; do | ||
4623 | IFS="$lt_save_ifs" | ||
4624 | test -z "$ac_dir" && ac_dir=. | ||
4625 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | ||
4626 | lt_cv_path_LD="$ac_dir/$ac_prog" | ||
4627 | # Check to see if the program is GNU ld. I'd rather use --version, | ||
4628 | # but apparently some variants of GNU ld only accept -v. | ||
4629 | # Break only if it was the GNU/non-GNU ld that we prefer. | ||
4630 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | ||
4631 | *GNU* | *'with BFD'*) | ||
4632 | test "$with_gnu_ld" != no && break | ||
4633 | ;; | ||
4634 | *) | ||
4635 | test "$with_gnu_ld" != yes && break | ||
4636 | ;; | ||
4637 | esac | ||
4638 | fi | ||
4639 | done | ||
4640 | IFS="$lt_save_ifs" | ||
4641 | else | ||
4642 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | ||
4643 | fi | ||
4644 | fi | ||
4645 | |||
4646 | LD="$lt_cv_path_LD" | ||
4647 | if test -n "$LD"; then | ||
4648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | ||
4649 | $as_echo "$LD" >&6; } | ||
4650 | else | ||
4651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4652 | $as_echo "no" >&6; } | ||
4653 | fi | ||
4654 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 | ||
4655 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | ||
4656 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | ||
4657 | if test "${lt_cv_prog_gnu_ld+set}" = set; then : | ||
4658 | $as_echo_n "(cached) " >&6 | ||
4659 | else | ||
4660 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | ||
4661 | case `$LD -v 2>&1 </dev/null` in | ||
4662 | *GNU* | *'with BFD'*) | ||
4663 | lt_cv_prog_gnu_ld=yes | ||
4664 | ;; | ||
4665 | *) | ||
4666 | lt_cv_prog_gnu_ld=no | ||
4667 | ;; | ||
4668 | esac | ||
4669 | fi | ||
4670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | ||
4671 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | ||
4672 | with_gnu_ld=$lt_cv_prog_gnu_ld | ||
4673 | |||
4674 | |||
4675 | |||
4676 | |||
4677 | |||
4678 | |||
4679 | |||
4680 | |||
4681 | |||
4682 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 | ||
4683 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | ||
4684 | if test "${lt_cv_path_NM+set}" = set; then : | ||
4685 | $as_echo_n "(cached) " >&6 | ||
4686 | else | ||
4687 | if test -n "$NM"; then | ||
4688 | # Let the user override the test. | ||
4689 | lt_cv_path_NM="$NM" | ||
4690 | else | ||
4691 | lt_nm_to_check="${ac_tool_prefix}nm" | ||
4692 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | ||
4693 | lt_nm_to_check="$lt_nm_to_check nm" | ||
4694 | fi | ||
4695 | for lt_tmp_nm in $lt_nm_to_check; do | ||
4696 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | ||
4697 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | ||
4698 | IFS="$lt_save_ifs" | ||
4699 | test -z "$ac_dir" && ac_dir=. | ||
4700 | tmp_nm="$ac_dir/$lt_tmp_nm" | ||
4701 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | ||
4702 | # Check to see if the nm accepts a BSD-compat flag. | ||
4703 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | ||
4704 | # nm: unknown option "B" ignored | ||
4705 | # Tru64's nm complains that /dev/null is an invalid object file | ||
4706 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | ||
4707 | */dev/null* | *'Invalid file or object type'*) | ||
4708 | lt_cv_path_NM="$tmp_nm -B" | ||
4709 | break | ||
4710 | ;; | ||
4711 | *) | ||
4712 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | ||
4713 | */dev/null*) | ||
4714 | lt_cv_path_NM="$tmp_nm -p" | ||
4715 | break | ||
4716 | ;; | ||
4717 | *) | ||
4718 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | ||
4719 | continue # so that we can try to find one that supports BSD flags | ||
4720 | ;; | ||
4721 | esac | ||
4722 | ;; | ||
4723 | esac | ||
4724 | fi | ||
4725 | done | ||
4726 | IFS="$lt_save_ifs" | ||
4727 | done | ||
4728 | : ${lt_cv_path_NM=no} | ||
4729 | fi | ||
4730 | fi | ||
4731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 | ||
4732 | $as_echo "$lt_cv_path_NM" >&6; } | ||
4733 | if test "$lt_cv_path_NM" != "no"; then | ||
4734 | NM="$lt_cv_path_NM" | ||
4735 | else | ||
4736 | # Didn't find any BSD compatible name lister, look for dumpbin. | ||
4737 | if test -n "$ac_tool_prefix"; then | ||
4738 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" | ||
4739 | do | ||
4740 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
4741 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
4742 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4743 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4744 | if test "${ac_cv_prog_DUMPBIN+set}" = set; then : | ||
4745 | $as_echo_n "(cached) " >&6 | ||
4746 | else | ||
4747 | if test -n "$DUMPBIN"; then | ||
4748 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | ||
4749 | else | ||
4750 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4751 | for as_dir in $PATH | ||
4752 | do | ||
4753 | IFS=$as_save_IFS | ||
4754 | test -z "$as_dir" && as_dir=. | ||
4755 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4756 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4757 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" | ||
4758 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4759 | break 2 | ||
4760 | fi | ||
4761 | done | ||
4762 | done | ||
4763 | IFS=$as_save_IFS | ||
4764 | |||
4765 | fi | ||
4766 | fi | ||
4767 | DUMPBIN=$ac_cv_prog_DUMPBIN | ||
4768 | if test -n "$DUMPBIN"; then | ||
4769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 | ||
4770 | $as_echo "$DUMPBIN" >&6; } | ||
4771 | else | ||
4772 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4773 | $as_echo "no" >&6; } | ||
4774 | fi | ||
4775 | |||
4776 | |||
4777 | test -n "$DUMPBIN" && break | ||
4778 | done | ||
4779 | fi | ||
4780 | if test -z "$DUMPBIN"; then | ||
4781 | ac_ct_DUMPBIN=$DUMPBIN | ||
4782 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" | ||
4783 | do | ||
4784 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
4785 | set dummy $ac_prog; ac_word=$2 | ||
4786 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4787 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4788 | if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then : | ||
4789 | $as_echo_n "(cached) " >&6 | ||
4790 | else | ||
4791 | if test -n "$ac_ct_DUMPBIN"; then | ||
4792 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | ||
4793 | else | ||
4794 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4795 | for as_dir in $PATH | ||
4796 | do | ||
4797 | IFS=$as_save_IFS | ||
4798 | test -z "$as_dir" && as_dir=. | ||
4799 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4800 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4801 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" | ||
4802 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4803 | break 2 | ||
4804 | fi | ||
4805 | done | ||
4806 | done | ||
4807 | IFS=$as_save_IFS | ||
4808 | |||
4809 | fi | ||
4810 | fi | ||
4811 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN | ||
4812 | if test -n "$ac_ct_DUMPBIN"; then | ||
4813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 | ||
4814 | $as_echo "$ac_ct_DUMPBIN" >&6; } | ||
4815 | else | ||
4816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4817 | $as_echo "no" >&6; } | ||
4818 | fi | ||
4819 | |||
4820 | |||
4821 | test -n "$ac_ct_DUMPBIN" && break | ||
4822 | done | ||
4823 | |||
4824 | if test "x$ac_ct_DUMPBIN" = x; then | ||
4825 | DUMPBIN=":" | ||
4826 | else | ||
4827 | case $cross_compiling:$ac_tool_warned in | ||
4828 | yes:) | ||
4829 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
4830 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
4831 | ac_tool_warned=yes ;; | ||
4832 | esac | ||
4833 | DUMPBIN=$ac_ct_DUMPBIN | ||
4834 | fi | ||
4835 | fi | ||
4836 | |||
4837 | |||
4838 | if test "$DUMPBIN" != ":"; then | ||
4839 | NM="$DUMPBIN" | ||
4840 | fi | ||
4841 | fi | ||
4842 | test -z "$NM" && NM=nm | ||
4843 | |||
4844 | |||
4845 | |||
4846 | |||
4847 | |||
4848 | |||
4849 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 | ||
4850 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } | ||
4851 | if test "${lt_cv_nm_interface+set}" = set; then : | ||
4852 | $as_echo_n "(cached) " >&6 | ||
4853 | else | ||
4854 | lt_cv_nm_interface="BSD nm" | ||
4855 | echo "int some_variable = 0;" > conftest.$ac_ext | ||
4856 | (eval echo "\"\$as_me:4856: $ac_compile\"" >&5) | ||
4857 | (eval "$ac_compile" 2>conftest.err) | ||
4858 | cat conftest.err >&5 | ||
4859 | (eval echo "\"\$as_me:4859: $NM \\\"conftest.$ac_objext\\\"\"" >&5) | ||
4860 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) | ||
4861 | cat conftest.err >&5 | ||
4862 | (eval echo "\"\$as_me:4862: output\"" >&5) | ||
4863 | cat conftest.out >&5 | ||
4864 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | ||
4865 | lt_cv_nm_interface="MS dumpbin" | ||
4866 | fi | ||
4867 | rm -f conftest* | ||
4868 | fi | ||
4869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 | ||
4870 | $as_echo "$lt_cv_nm_interface" >&6; } | ||
4871 | |||
4872 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 | ||
4873 | $as_echo_n "checking whether ln -s works... " >&6; } | ||
4874 | LN_S=$as_ln_s | ||
4875 | if test "$LN_S" = "ln -s"; then | ||
4876 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
4877 | $as_echo "yes" >&6; } | ||
4878 | else | ||
4879 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 | ||
4880 | $as_echo "no, using $LN_S" >&6; } | ||
4881 | fi | ||
4882 | |||
4883 | # find the maximum length of command line arguments | ||
4884 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 | ||
4885 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } | ||
4886 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then : | ||
4887 | $as_echo_n "(cached) " >&6 | ||
4888 | else | ||
4889 | i=0 | ||
4890 | teststring="ABCD" | ||
4891 | |||
4892 | case $build_os in | ||
4893 | msdosdjgpp*) | ||
4894 | # On DJGPP, this test can blow up pretty badly due to problems in libc | ||
4895 | # (any single argument exceeding 2000 bytes causes a buffer overrun | ||
4896 | # during glob expansion). Even if it were fixed, the result of this | ||
4897 | # check would be larger than it should be. | ||
4898 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | ||
4899 | ;; | ||
4900 | |||
4901 | gnu*) | ||
4902 | # Under GNU Hurd, this test is not required because there is | ||
4903 | # no limit to the length of command line arguments. | ||
4904 | # Libtool will interpret -1 as no limit whatsoever | ||
4905 | lt_cv_sys_max_cmd_len=-1; | ||
4906 | ;; | ||
4907 | |||
4908 | cygwin* | mingw* | cegcc*) | ||
4909 | # On Win9x/ME, this test blows up -- it succeeds, but takes | ||
4910 | # about 5 minutes as the teststring grows exponentially. | ||
4911 | # Worse, since 9x/ME are not pre-emptively multitasking, | ||
4912 | # you end up with a "frozen" computer, even though with patience | ||
4913 | # the test eventually succeeds (with a max line length of 256k). | ||
4914 | # Instead, let's just punt: use the minimum linelength reported by | ||
4915 | # all of the supported platforms: 8192 (on NT/2K/XP). | ||
4916 | lt_cv_sys_max_cmd_len=8192; | ||
4917 | ;; | ||
4918 | |||
4919 | amigaos*) | ||
4920 | # On AmigaOS with pdksh, this test takes hours, literally. | ||
4921 | # So we just punt and use a minimum line length of 8192. | ||
4922 | lt_cv_sys_max_cmd_len=8192; | ||
4923 | ;; | ||
4924 | |||
4925 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | ||
4926 | # This has been around since 386BSD, at least. Likely further. | ||
4927 | if test -x /sbin/sysctl; then | ||
4928 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | ||
4929 | elif test -x /usr/sbin/sysctl; then | ||
4930 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | ||
4931 | else | ||
4932 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | ||
4933 | fi | ||
4934 | # And add a safety zone | ||
4935 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | ||
4936 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | ||
4937 | ;; | ||
4938 | |||
4939 | interix*) | ||
4940 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | ||
4941 | lt_cv_sys_max_cmd_len=196608 | ||
4942 | ;; | ||
4943 | |||
4944 | osf*) | ||
4945 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | ||
4946 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | ||
4947 | # nice to cause kernel panics so lets avoid the loop below. | ||
4948 | # First set a reasonable default. | ||
4949 | lt_cv_sys_max_cmd_len=16384 | ||
4950 | # | ||
4951 | if test -x /sbin/sysconfig; then | ||
4952 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | ||
4953 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | ||
4954 | esac | ||
4955 | fi | ||
4956 | ;; | ||
4957 | sco3.2v5*) | ||
4958 | lt_cv_sys_max_cmd_len=102400 | ||
4959 | ;; | ||
4960 | sysv5* | sco5v6* | sysv4.2uw2*) | ||
4961 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | ||
4962 | if test -n "$kargmax"; then | ||
4963 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | ||
4964 | else | ||
4965 | lt_cv_sys_max_cmd_len=32768 | ||
4966 | fi | ||
4967 | ;; | ||
4968 | *) | ||
4969 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` | ||
4970 | if test -n "$lt_cv_sys_max_cmd_len"; then | ||
4971 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | ||
4972 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | ||
4973 | else | ||
4974 | # Make teststring a little bigger before we do anything with it. | ||
4975 | # a 1K string should be a reasonable start. | ||
4976 | for i in 1 2 3 4 5 6 7 8 ; do | ||
4977 | teststring=$teststring$teststring | ||
4978 | done | ||
4979 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | ||
4980 | # If test is not a shell built-in, we'll probably end up computing a | ||
4981 | # maximum length that is only half of the actual maximum length, but | ||
4982 | # we can't tell. | ||
4983 | while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ | ||
4984 | = "XX$teststring$teststring"; } >/dev/null 2>&1 && | ||
4985 | test $i != 17 # 1/2 MB should be enough | ||
4986 | do | ||
4987 | i=`expr $i + 1` | ||
4988 | teststring=$teststring$teststring | ||
4989 | done | ||
4990 | # Only check the string length outside the loop. | ||
4991 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | ||
4992 | teststring= | ||
4993 | # Add a significant safety factor because C++ compilers can tack on | ||
4994 | # massive amounts of additional arguments before passing them to the | ||
4995 | # linker. It appears as though 1/2 is a usable value. | ||
4996 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | ||
4997 | fi | ||
4998 | ;; | ||
4999 | esac | ||
5000 | |||
5001 | fi | ||
5002 | |||
5003 | if test -n $lt_cv_sys_max_cmd_len ; then | ||
5004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 | ||
5005 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | ||
5006 | else | ||
5007 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 | ||
5008 | $as_echo "none" >&6; } | ||
5009 | fi | ||
5010 | max_cmd_len=$lt_cv_sys_max_cmd_len | ||
5011 | |||
5012 | |||
5013 | |||
5014 | |||
5015 | |||
5016 | |||
5017 | : ${CP="cp -f"} | ||
5018 | : ${MV="mv -f"} | ||
5019 | : ${RM="rm -f"} | ||
5020 | |||
5021 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 | ||
5022 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } | ||
5023 | # Try some XSI features | ||
5024 | xsi_shell=no | ||
5025 | ( _lt_dummy="a/b/c" | ||
5026 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | ||
5027 | = c,a/b,, \ | ||
5028 | && eval 'test $(( 1 + 1 )) -eq 2 \ | ||
5029 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | ||
5030 | && xsi_shell=yes | ||
5031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 | ||
5032 | $as_echo "$xsi_shell" >&6; } | ||
5033 | |||
5034 | |||
5035 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 | ||
5036 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } | ||
5037 | lt_shell_append=no | ||
5038 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | ||
5039 | >/dev/null 2>&1 \ | ||
5040 | && lt_shell_append=yes | ||
5041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 | ||
5042 | $as_echo "$lt_shell_append" >&6; } | ||
5043 | |||
5044 | |||
5045 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | ||
5046 | lt_unset=unset | ||
5047 | else | ||
5048 | lt_unset=false | ||
5049 | fi | ||
5050 | |||
5051 | |||
5052 | |||
5053 | |||
5054 | |||
5055 | # test EBCDIC or ASCII | ||
5056 | case `echo X|tr X '\101'` in | ||
5057 | A) # ASCII based system | ||
5058 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | ||
5059 | lt_SP2NL='tr \040 \012' | ||
5060 | lt_NL2SP='tr \015\012 \040\040' | ||
5061 | ;; | ||
5062 | *) # EBCDIC based system | ||
5063 | lt_SP2NL='tr \100 \n' | ||
5064 | lt_NL2SP='tr \r\n \100\100' | ||
5065 | ;; | ||
5066 | esac | ||
5067 | |||
5068 | |||
5069 | |||
5070 | |||
5071 | |||
5072 | |||
5073 | |||
5074 | |||
5075 | |||
5076 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 | ||
5077 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | ||
5078 | if test "${lt_cv_ld_reload_flag+set}" = set; then : | ||
5079 | $as_echo_n "(cached) " >&6 | ||
5080 | else | ||
5081 | lt_cv_ld_reload_flag='-r' | ||
5082 | fi | ||
5083 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 | ||
5084 | $as_echo "$lt_cv_ld_reload_flag" >&6; } | ||
5085 | reload_flag=$lt_cv_ld_reload_flag | ||
5086 | case $reload_flag in | ||
5087 | "" | " "*) ;; | ||
5088 | *) reload_flag=" $reload_flag" ;; | ||
5089 | esac | ||
5090 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | ||
5091 | case $host_os in | ||
5092 | darwin*) | ||
5093 | if test "$GCC" = yes; then | ||
5094 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | ||
5095 | else | ||
5096 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | ||
5097 | fi | ||
5098 | ;; | ||
5099 | esac | ||
5100 | |||
5101 | |||
5102 | |||
5103 | |||
5104 | |||
5105 | |||
5106 | |||
5107 | |||
5108 | |||
5109 | if test -n "$ac_tool_prefix"; then | ||
5110 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | ||
5111 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | ||
5112 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
5113 | $as_echo_n "checking for $ac_word... " >&6; } | ||
5114 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | ||
5115 | $as_echo_n "(cached) " >&6 | ||
5116 | else | ||
5117 | if test -n "$OBJDUMP"; then | ||
5118 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | ||
5119 | else | ||
5120 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5121 | for as_dir in $PATH | ||
5122 | do | ||
5123 | IFS=$as_save_IFS | ||
5124 | test -z "$as_dir" && as_dir=. | ||
5125 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5126 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5127 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" | ||
5128 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5129 | break 2 | ||
5130 | fi | ||
5131 | done | ||
5132 | done | ||
5133 | IFS=$as_save_IFS | ||
5134 | |||
5135 | fi | ||
5136 | fi | ||
5137 | OBJDUMP=$ac_cv_prog_OBJDUMP | ||
5138 | if test -n "$OBJDUMP"; then | ||
5139 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 | ||
5140 | $as_echo "$OBJDUMP" >&6; } | ||
5141 | else | ||
5142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5143 | $as_echo "no" >&6; } | ||
5144 | fi | ||
5145 | |||
5146 | |||
5147 | fi | ||
5148 | if test -z "$ac_cv_prog_OBJDUMP"; then | ||
5149 | ac_ct_OBJDUMP=$OBJDUMP | ||
5150 | # Extract the first word of "objdump", so it can be a program name with args. | ||
5151 | set dummy objdump; ac_word=$2 | ||
5152 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
5153 | $as_echo_n "checking for $ac_word... " >&6; } | ||
5154 | if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : | ||
5155 | $as_echo_n "(cached) " >&6 | ||
5156 | else | ||
5157 | if test -n "$ac_ct_OBJDUMP"; then | ||
5158 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | ||
5159 | else | ||
5160 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5161 | for as_dir in $PATH | ||
5162 | do | ||
5163 | IFS=$as_save_IFS | ||
5164 | test -z "$as_dir" && as_dir=. | ||
5165 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5166 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5167 | ac_cv_prog_ac_ct_OBJDUMP="objdump" | ||
5168 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5169 | break 2 | ||
5170 | fi | ||
5171 | done | ||
5172 | done | ||
5173 | IFS=$as_save_IFS | ||
5174 | |||
5175 | fi | ||
5176 | fi | ||
5177 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | ||
5178 | if test -n "$ac_ct_OBJDUMP"; then | ||
5179 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 | ||
5180 | $as_echo "$ac_ct_OBJDUMP" >&6; } | ||
5181 | else | ||
5182 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5183 | $as_echo "no" >&6; } | ||
5184 | fi | ||
5185 | |||
5186 | if test "x$ac_ct_OBJDUMP" = x; then | ||
5187 | OBJDUMP="false" | ||
5188 | else | ||
5189 | case $cross_compiling:$ac_tool_warned in | ||
5190 | yes:) | ||
5191 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
5192 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
5193 | ac_tool_warned=yes ;; | ||
5194 | esac | ||
5195 | OBJDUMP=$ac_ct_OBJDUMP | ||
5196 | fi | ||
5197 | else | ||
5198 | OBJDUMP="$ac_cv_prog_OBJDUMP" | ||
5199 | fi | ||
5200 | |||
5201 | test -z "$OBJDUMP" && OBJDUMP=objdump | ||
5202 | |||
5203 | |||
5204 | |||
5205 | |||
5206 | |||
5207 | |||
5208 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 | ||
5209 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } | ||
5210 | if test "${lt_cv_deplibs_check_method+set}" = set; then : | ||
5211 | $as_echo_n "(cached) " >&6 | ||
5212 | else | ||
5213 | lt_cv_file_magic_cmd='$MAGIC_CMD' | ||
5214 | lt_cv_file_magic_test_file= | ||
5215 | lt_cv_deplibs_check_method='unknown' | ||
5216 | # Need to set the preceding variable on all platforms that support | ||
5217 | # interlibrary dependencies. | ||
5218 | # 'none' -- dependencies not supported. | ||
5219 | # `unknown' -- same as none, but documents that we really don't know. | ||
5220 | # 'pass_all' -- all dependencies passed with no checks. | ||
5221 | # 'test_compile' -- check by making test program. | ||
5222 | # 'file_magic [[regex]]' -- check by looking for files in library path | ||
5223 | # which responds to the $file_magic_cmd with a given extended regex. | ||
5224 | # If you have `file' or equivalent on your system and you're not sure | ||
5225 | # whether `pass_all' will *always* work, you probably want this one. | ||
5226 | |||
5227 | case $host_os in | ||
5228 | aix[4-9]*) | ||
5229 | lt_cv_deplibs_check_method=pass_all | ||
5230 | ;; | ||
5231 | |||
5232 | beos*) | ||
5233 | lt_cv_deplibs_check_method=pass_all | ||
5234 | ;; | ||
5235 | |||
5236 | bsdi[45]*) | ||
5237 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | ||
5238 | lt_cv_file_magic_cmd='/usr/bin/file -L' | ||
5239 | lt_cv_file_magic_test_file=/shlib/libc.so | ||
5240 | ;; | ||
5241 | |||
5242 | cygwin*) | ||
5243 | # func_win32_libid is a shell function defined in ltmain.sh | ||
5244 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | ||
5245 | lt_cv_file_magic_cmd='func_win32_libid' | ||
5246 | ;; | ||
5247 | |||
5248 | mingw* | pw32*) | ||
5249 | # Base MSYS/MinGW do not provide the 'file' command needed by | ||
5250 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | ||
5251 | # unless we find 'file', for example because we are cross-compiling. | ||
5252 | if ( file / ) >/dev/null 2>&1; then | ||
5253 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | ||
5254 | lt_cv_file_magic_cmd='func_win32_libid' | ||
5255 | else | ||
5256 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | ||
5257 | lt_cv_file_magic_cmd='$OBJDUMP -f' | ||
5258 | fi | ||
5259 | ;; | ||
5260 | |||
5261 | cegcc) | ||
5262 | # use the weaker test based on 'objdump'. See mingw*. | ||
5263 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | ||
5264 | lt_cv_file_magic_cmd='$OBJDUMP -f' | ||
5265 | ;; | ||
5266 | |||
5267 | darwin* | rhapsody*) | ||
5268 | lt_cv_deplibs_check_method=pass_all | ||
5269 | ;; | ||
5270 | |||
5271 | freebsd* | dragonfly*) | ||
5272 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | ||
5273 | case $host_cpu in | ||
5274 | i*86 ) | ||
5275 | # Not sure whether the presence of OpenBSD here was a mistake. | ||
5276 | # Let's accept both of them until this is cleared up. | ||
5277 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | ||
5278 | lt_cv_file_magic_cmd=/usr/bin/file | ||
5279 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | ||
5280 | ;; | ||
5281 | esac | ||
5282 | else | ||
5283 | lt_cv_deplibs_check_method=pass_all | ||
5284 | fi | ||
5285 | ;; | ||
5286 | |||
5287 | gnu*) | ||
5288 | lt_cv_deplibs_check_method=pass_all | ||
5289 | ;; | ||
5290 | |||
5291 | hpux10.20* | hpux11*) | ||
5292 | lt_cv_file_magic_cmd=/usr/bin/file | ||
5293 | case $host_cpu in | ||
5294 | ia64*) | ||
5295 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | ||
5296 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | ||
5297 | ;; | ||
5298 | hppa*64*) | ||
5299 | 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]' | ||
5300 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | ||
5301 | ;; | ||
5302 | *) | ||
5303 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | ||
5304 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | ||
5305 | ;; | ||
5306 | esac | ||
5307 | ;; | ||
5308 | |||
5309 | interix[3-9]*) | ||
5310 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | ||
5311 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | ||
5312 | ;; | ||
5313 | |||
5314 | irix5* | irix6* | nonstopux*) | ||
5315 | case $LD in | ||
5316 | *-32|*"-32 ") libmagic=32-bit;; | ||
5317 | *-n32|*"-n32 ") libmagic=N32;; | ||
5318 | *-64|*"-64 ") libmagic=64-bit;; | ||
5319 | *) libmagic=never-match;; | ||
5320 | esac | ||
5321 | lt_cv_deplibs_check_method=pass_all | ||
5322 | ;; | ||
5323 | |||
5324 | # This must be Linux ELF. | ||
5325 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | ||
5326 | lt_cv_deplibs_check_method=pass_all | ||
5327 | ;; | ||
5328 | |||
5329 | netbsd* | netbsdelf*-gnu) | ||
5330 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | ||
5331 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | ||
5332 | else | ||
5333 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | ||
5334 | fi | ||
5335 | ;; | ||
5336 | |||
5337 | newos6*) | ||
5338 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | ||
5339 | lt_cv_file_magic_cmd=/usr/bin/file | ||
5340 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | ||
5341 | ;; | ||
5342 | |||
5343 | *nto* | *qnx*) | ||
5344 | lt_cv_deplibs_check_method=pass_all | ||
5345 | ;; | ||
5346 | |||
5347 | openbsd*) | ||
5348 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | ||
5349 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | ||
5350 | else | ||
5351 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | ||
5352 | fi | ||
5353 | ;; | ||
5354 | |||
5355 | osf3* | osf4* | osf5*) | ||
5356 | lt_cv_deplibs_check_method=pass_all | ||
5357 | ;; | ||
5358 | |||
5359 | rdos*) | ||
5360 | lt_cv_deplibs_check_method=pass_all | ||
5361 | ;; | ||
5362 | |||
5363 | solaris*) | ||
5364 | lt_cv_deplibs_check_method=pass_all | ||
5365 | ;; | ||
5366 | |||
5367 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | ||
5368 | lt_cv_deplibs_check_method=pass_all | ||
5369 | ;; | ||
5370 | |||
5371 | sysv4 | sysv4.3*) | ||
5372 | case $host_vendor in | ||
5373 | motorola) | ||
5374 | 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]' | ||
5375 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | ||
5376 | ;; | ||
5377 | ncr) | ||
5378 | lt_cv_deplibs_check_method=pass_all | ||
5379 | ;; | ||
5380 | sequent) | ||
5381 | lt_cv_file_magic_cmd='/bin/file' | ||
5382 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | ||
5383 | ;; | ||
5384 | sni) | ||
5385 | lt_cv_file_magic_cmd='/bin/file' | ||
5386 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | ||
5387 | lt_cv_file_magic_test_file=/lib/libc.so | ||
5388 | ;; | ||
5389 | siemens) | ||
5390 | lt_cv_deplibs_check_method=pass_all | ||
5391 | ;; | ||
5392 | pc) | ||
5393 | lt_cv_deplibs_check_method=pass_all | ||
5394 | ;; | ||
5395 | esac | ||
5396 | ;; | ||
5397 | |||
5398 | tpf*) | ||
5399 | lt_cv_deplibs_check_method=pass_all | ||
5400 | ;; | ||
5401 | esac | ||
5402 | |||
5403 | fi | ||
5404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 | ||
5405 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | ||
5406 | file_magic_cmd=$lt_cv_file_magic_cmd | ||
5407 | deplibs_check_method=$lt_cv_deplibs_check_method | ||
5408 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | ||
5409 | |||
5410 | |||
5411 | |||
5412 | |||
5413 | |||
5414 | |||
5415 | |||
5416 | |||
5417 | |||
5418 | |||
5419 | |||
5420 | |||
5421 | if test -n "$ac_tool_prefix"; then | ||
5422 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | ||
5423 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | ||
5424 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
5425 | $as_echo_n "checking for $ac_word... " >&6; } | ||
5426 | if test "${ac_cv_prog_AR+set}" = set; then : | ||
5427 | $as_echo_n "(cached) " >&6 | ||
5428 | else | ||
5429 | if test -n "$AR"; then | ||
5430 | ac_cv_prog_AR="$AR" # Let the user override the test. | ||
5431 | else | ||
5432 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5433 | for as_dir in $PATH | ||
5434 | do | ||
5435 | IFS=$as_save_IFS | ||
5436 | test -z "$as_dir" && as_dir=. | ||
5437 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5438 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5439 | ac_cv_prog_AR="${ac_tool_prefix}ar" | ||
5440 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5441 | break 2 | ||
5442 | fi | ||
5443 | done | ||
5444 | done | ||
5445 | IFS=$as_save_IFS | ||
5446 | |||
5447 | fi | ||
5448 | fi | ||
5449 | AR=$ac_cv_prog_AR | ||
5450 | if test -n "$AR"; then | ||
5451 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | ||
5452 | $as_echo "$AR" >&6; } | ||
5453 | else | ||
5454 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5455 | $as_echo "no" >&6; } | ||
5456 | fi | ||
5457 | |||
5458 | |||
5459 | fi | ||
5460 | if test -z "$ac_cv_prog_AR"; then | ||
5461 | ac_ct_AR=$AR | ||
5462 | # Extract the first word of "ar", so it can be a program name with args. | ||
5463 | set dummy ar; ac_word=$2 | ||
5464 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
5465 | $as_echo_n "checking for $ac_word... " >&6; } | ||
5466 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : | ||
5467 | $as_echo_n "(cached) " >&6 | ||
5468 | else | ||
5469 | if test -n "$ac_ct_AR"; then | ||
5470 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | ||
5471 | else | ||
5472 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5473 | for as_dir in $PATH | ||
5474 | do | ||
5475 | IFS=$as_save_IFS | ||
5476 | test -z "$as_dir" && as_dir=. | ||
5477 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5478 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5479 | ac_cv_prog_ac_ct_AR="ar" | ||
5480 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5481 | break 2 | ||
5482 | fi | ||
5483 | done | ||
5484 | done | ||
5485 | IFS=$as_save_IFS | ||
5486 | |||
5487 | fi | ||
5488 | fi | ||
5489 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | ||
5490 | if test -n "$ac_ct_AR"; then | ||
5491 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | ||
5492 | $as_echo "$ac_ct_AR" >&6; } | ||
5493 | else | ||
5494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5495 | $as_echo "no" >&6; } | ||
5496 | fi | ||
5497 | |||
5498 | if test "x$ac_ct_AR" = x; then | ||
5499 | AR="false" | ||
5500 | else | ||
5501 | case $cross_compiling:$ac_tool_warned in | ||
5502 | yes:) | ||
5503 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
5504 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
5505 | ac_tool_warned=yes ;; | ||
5506 | esac | ||
5507 | AR=$ac_ct_AR | ||
5508 | fi | ||
5509 | else | ||
5510 | AR="$ac_cv_prog_AR" | ||
5511 | fi | ||
5512 | |||
5513 | test -z "$AR" && AR=ar | ||
5514 | test -z "$AR_FLAGS" && AR_FLAGS=cru | ||
5515 | |||
5516 | |||
5517 | |||
5518 | |||
5519 | |||
5520 | |||
5521 | |||
5522 | |||
5523 | |||
5524 | |||
5525 | |||
5526 | if test -n "$ac_tool_prefix"; then | ||
5527 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | ||
5528 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | ||
5529 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
5530 | $as_echo_n "checking for $ac_word... " >&6; } | ||
5531 | if test "${ac_cv_prog_STRIP+set}" = set; then : | ||
5532 | $as_echo_n "(cached) " >&6 | ||
5533 | else | ||
5534 | if test -n "$STRIP"; then | ||
5535 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | ||
5536 | else | ||
5537 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5538 | for as_dir in $PATH | ||
5539 | do | ||
5540 | IFS=$as_save_IFS | ||
5541 | test -z "$as_dir" && as_dir=. | ||
5542 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5543 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5544 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | ||
5545 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5546 | break 2 | ||
5547 | fi | ||
5548 | done | ||
5549 | done | ||
5550 | IFS=$as_save_IFS | ||
5551 | |||
5552 | fi | ||
5553 | fi | ||
5554 | STRIP=$ac_cv_prog_STRIP | ||
5555 | if test -n "$STRIP"; then | ||
5556 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | ||
5557 | $as_echo "$STRIP" >&6; } | ||
5558 | else | ||
5559 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5560 | $as_echo "no" >&6; } | ||
5561 | fi | ||
5562 | |||
5563 | |||
5564 | fi | ||
5565 | if test -z "$ac_cv_prog_STRIP"; then | ||
5566 | ac_ct_STRIP=$STRIP | ||
5567 | # Extract the first word of "strip", so it can be a program name with args. | ||
5568 | set dummy strip; ac_word=$2 | ||
5569 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
5570 | $as_echo_n "checking for $ac_word... " >&6; } | ||
5571 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : | ||
5572 | $as_echo_n "(cached) " >&6 | ||
5573 | else | ||
5574 | if test -n "$ac_ct_STRIP"; then | ||
5575 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | ||
5576 | else | ||
5577 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5578 | for as_dir in $PATH | ||
5579 | do | ||
5580 | IFS=$as_save_IFS | ||
5581 | test -z "$as_dir" && as_dir=. | ||
5582 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5583 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5584 | ac_cv_prog_ac_ct_STRIP="strip" | ||
5585 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5586 | break 2 | ||
5587 | fi | ||
5588 | done | ||
5589 | done | ||
5590 | IFS=$as_save_IFS | ||
5591 | |||
5592 | fi | ||
5593 | fi | ||
5594 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | ||
5595 | if test -n "$ac_ct_STRIP"; then | ||
5596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | ||
5597 | $as_echo "$ac_ct_STRIP" >&6; } | ||
5598 | else | ||
5599 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5600 | $as_echo "no" >&6; } | ||
5601 | fi | ||
5602 | |||
5603 | if test "x$ac_ct_STRIP" = x; then | ||
5604 | STRIP=":" | ||
5605 | else | ||
5606 | case $cross_compiling:$ac_tool_warned in | ||
5607 | yes:) | ||
5608 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
5609 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
5610 | ac_tool_warned=yes ;; | ||
5611 | esac | ||
5612 | STRIP=$ac_ct_STRIP | ||
5613 | fi | ||
5614 | else | ||
5615 | STRIP="$ac_cv_prog_STRIP" | ||
5616 | fi | ||
5617 | |||
5618 | test -z "$STRIP" && STRIP=: | ||
5619 | |||
5620 | |||
5621 | |||
5622 | |||
5623 | |||
5624 | |||
5625 | if test -n "$ac_tool_prefix"; then | ||
5626 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | ||
5627 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | ||
5628 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
5629 | $as_echo_n "checking for $ac_word... " >&6; } | ||
5630 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | ||
5631 | $as_echo_n "(cached) " >&6 | ||
5632 | else | ||
5633 | if test -n "$RANLIB"; then | ||
5634 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | ||
5635 | else | ||
5636 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5637 | for as_dir in $PATH | ||
5638 | do | ||
5639 | IFS=$as_save_IFS | ||
5640 | test -z "$as_dir" && as_dir=. | ||
5641 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5642 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5643 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | ||
5644 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5645 | break 2 | ||
5646 | fi | ||
5647 | done | ||
5648 | done | ||
5649 | IFS=$as_save_IFS | ||
5650 | |||
5651 | fi | ||
5652 | fi | ||
5653 | RANLIB=$ac_cv_prog_RANLIB | ||
5654 | if test -n "$RANLIB"; then | ||
5655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | ||
5656 | $as_echo "$RANLIB" >&6; } | ||
5657 | else | ||
5658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5659 | $as_echo "no" >&6; } | ||
5660 | fi | ||
5661 | |||
5662 | |||
5663 | fi | ||
5664 | if test -z "$ac_cv_prog_RANLIB"; then | ||
5665 | ac_ct_RANLIB=$RANLIB | ||
5666 | # Extract the first word of "ranlib", so it can be a program name with args. | ||
5667 | set dummy ranlib; ac_word=$2 | ||
5668 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
5669 | $as_echo_n "checking for $ac_word... " >&6; } | ||
5670 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : | ||
5671 | $as_echo_n "(cached) " >&6 | ||
5672 | else | ||
5673 | if test -n "$ac_ct_RANLIB"; then | ||
5674 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | ||
5675 | else | ||
5676 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5677 | for as_dir in $PATH | ||
5678 | do | ||
5679 | IFS=$as_save_IFS | ||
5680 | test -z "$as_dir" && as_dir=. | ||
5681 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5682 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5683 | ac_cv_prog_ac_ct_RANLIB="ranlib" | ||
5684 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5685 | break 2 | ||
5686 | fi | ||
5687 | done | ||
5688 | done | ||
5689 | IFS=$as_save_IFS | ||
5690 | |||
5691 | fi | ||
5692 | fi | ||
5693 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | ||
5694 | if test -n "$ac_ct_RANLIB"; then | ||
5695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | ||
5696 | $as_echo "$ac_ct_RANLIB" >&6; } | ||
5697 | else | ||
5698 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5699 | $as_echo "no" >&6; } | ||
5700 | fi | ||
5701 | |||
5702 | if test "x$ac_ct_RANLIB" = x; then | ||
5703 | RANLIB=":" | ||
5704 | else | ||
5705 | case $cross_compiling:$ac_tool_warned in | ||
5706 | yes:) | ||
5707 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
5708 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
5709 | ac_tool_warned=yes ;; | ||
5710 | esac | ||
5711 | RANLIB=$ac_ct_RANLIB | ||
5712 | fi | ||
5713 | else | ||
5714 | RANLIB="$ac_cv_prog_RANLIB" | ||
5715 | fi | ||
5716 | |||
5717 | test -z "$RANLIB" && RANLIB=: | ||
5718 | |||
5719 | |||
5720 | |||
5721 | |||
5722 | |||
5723 | |||
5724 | # Determine commands to create old-style static archives. | ||
5725 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' | ||
5726 | old_postinstall_cmds='chmod 644 $oldlib' | ||
5727 | old_postuninstall_cmds= | ||
5728 | |||
5729 | if test -n "$RANLIB"; then | ||
5730 | case $host_os in | ||
5731 | openbsd*) | ||
5732 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | ||
5733 | ;; | ||
5734 | *) | ||
5735 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | ||
5736 | ;; | ||
5737 | esac | ||
5738 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | ||
5739 | fi | ||
5740 | |||
5741 | |||
5742 | |||
5743 | |||
5744 | |||
5745 | |||
5746 | |||
5747 | |||
5748 | |||
5749 | |||
5750 | |||
5751 | |||
5752 | |||
5753 | |||
5754 | |||
5755 | |||
5756 | |||
5757 | |||
5758 | |||
5759 | |||
5760 | |||
5761 | |||
5762 | |||
5763 | |||
5764 | |||
5765 | |||
5766 | |||
5767 | |||
5768 | |||
5769 | |||
5770 | |||
5771 | |||
5772 | |||
5773 | |||
5774 | # If no C compiler was specified, use CC. | ||
5775 | LTCC=${LTCC-"$CC"} | ||
5776 | |||
5777 | # If no C compiler flags were specified, use CFLAGS. | ||
5778 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | ||
5779 | |||
5780 | # Allow CC to be a program name with arguments. | ||
5781 | compiler=$CC | ||
5782 | |||
5783 | |||
5784 | # Check for command to grab the raw symbol name followed by C symbol from nm. | ||
5785 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 | ||
5786 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | ||
5787 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : | ||
5788 | $as_echo_n "(cached) " >&6 | ||
5789 | else | ||
5790 | |||
5791 | # These are sane defaults that work on at least a few old systems. | ||
5792 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | ||
5793 | |||
5794 | # Character class describing NM global symbol codes. | ||
5795 | symcode='[BCDEGRST]' | ||
5796 | |||
5797 | # Regexp to match symbols that can be accessed directly from C. | ||
5798 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | ||
5799 | |||
5800 | # Define system-specific variables. | ||
5801 | case $host_os in | ||
5802 | aix*) | ||
5803 | symcode='[BCDT]' | ||
5804 | ;; | ||
5805 | cygwin* | mingw* | pw32* | cegcc*) | ||
5806 | symcode='[ABCDGISTW]' | ||
5807 | ;; | ||
5808 | hpux*) | ||
5809 | if test "$host_cpu" = ia64; then | ||
5810 | symcode='[ABCDEGRST]' | ||
5811 | fi | ||
5812 | ;; | ||
5813 | irix* | nonstopux*) | ||
5814 | symcode='[BCDEGRST]' | ||
5815 | ;; | ||
5816 | osf*) | ||
5817 | symcode='[BCDEGQRST]' | ||
5818 | ;; | ||
5819 | solaris*) | ||
5820 | symcode='[BDRT]' | ||
5821 | ;; | ||
5822 | sco3.2v5*) | ||
5823 | symcode='[DT]' | ||
5824 | ;; | ||
5825 | sysv4.2uw2*) | ||
5826 | symcode='[DT]' | ||
5827 | ;; | ||
5828 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | ||
5829 | symcode='[ABDT]' | ||
5830 | ;; | ||
5831 | sysv4) | ||
5832 | symcode='[DFNSTU]' | ||
5833 | ;; | ||
5834 | esac | ||
5835 | |||
5836 | # If we're using GNU nm, then use its standard symbol codes. | ||
5837 | case `$NM -V 2>&1` in | ||
5838 | *GNU* | *'with BFD'*) | ||
5839 | symcode='[ABCDGIRSTW]' ;; | ||
5840 | esac | ||
5841 | |||
5842 | # Transform an extracted symbol line into a proper C declaration. | ||
5843 | # Some systems (esp. on ia64) link data and code symbols differently, | ||
5844 | # so use this general approach. | ||
5845 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | ||
5846 | |||
5847 | # Transform an extracted symbol line into symbol name and symbol address | ||
5848 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | ||
5849 | 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'" | ||
5850 | |||
5851 | # Handle CRLF in mingw tool chain | ||
5852 | opt_cr= | ||
5853 | case $build_os in | ||
5854 | mingw*) | ||
5855 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | ||
5856 | ;; | ||
5857 | esac | ||
5858 | |||
5859 | # Try without a prefix underscore, then with it. | ||
5860 | for ac_symprfx in "" "_"; do | ||
5861 | |||
5862 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | ||
5863 | symxfrm="\\1 $ac_symprfx\\2 \\2" | ||
5864 | |||
5865 | # Write the raw and C identifiers. | ||
5866 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | ||
5867 | # Fake it for dumpbin and say T for any non-static function | ||
5868 | # and D for any global variable. | ||
5869 | # Also find C++ and __fastcall symbols from MSVC++, | ||
5870 | # which start with @ or ?. | ||
5871 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | ||
5872 | " {last_section=section; section=\$ 3};"\ | ||
5873 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | ||
5874 | " \$ 0!~/External *\|/{next};"\ | ||
5875 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | ||
5876 | " {if(hide[section]) next};"\ | ||
5877 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | ||
5878 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | ||
5879 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | ||
5880 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | ||
5881 | " ' prfx=^$ac_symprfx" | ||
5882 | else | ||
5883 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | ||
5884 | fi | ||
5885 | |||
5886 | # Check to see that the pipe works correctly. | ||
5887 | pipe_works=no | ||
5888 | |||
5889 | rm -f conftest* | ||
5890 | cat > conftest.$ac_ext <<_LT_EOF | ||
5891 | #ifdef __cplusplus | ||
5892 | extern "C" { | ||
5893 | #endif | ||
5894 | char nm_test_var; | ||
5895 | void nm_test_func(void); | ||
5896 | void nm_test_func(void){} | ||
5897 | #ifdef __cplusplus | ||
5898 | } | ||
5899 | #endif | ||
5900 | int main(){nm_test_var='a';nm_test_func();return(0);} | ||
5901 | _LT_EOF | ||
5902 | |||
5903 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | ||
5904 | (eval $ac_compile) 2>&5 | ||
5905 | ac_status=$? | ||
5906 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
5907 | test $ac_status = 0; }; then | ||
5908 | # Now try to grab the symbols. | ||
5909 | nlist=conftest.nm | ||
5910 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5 | ||
5911 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 | ||
5912 | ac_status=$? | ||
5913 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
5914 | test $ac_status = 0; } && test -s "$nlist"; then | ||
5915 | # Try sorting and uniquifying the output. | ||
5916 | if sort "$nlist" | uniq > "$nlist"T; then | ||
5917 | mv -f "$nlist"T "$nlist" | ||
5918 | else | ||
5919 | rm -f "$nlist"T | ||
5920 | fi | ||
5921 | |||
5922 | # Make sure that we snagged all the symbols we need. | ||
5923 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | ||
5924 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | ||
5925 | cat <<_LT_EOF > conftest.$ac_ext | ||
5926 | #ifdef __cplusplus | ||
5927 | extern "C" { | ||
5928 | #endif | ||
5929 | |||
5930 | _LT_EOF | ||
5931 | # Now generate the symbol file. | ||
5932 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | ||
5933 | |||
5934 | cat <<_LT_EOF >> conftest.$ac_ext | ||
5935 | |||
5936 | /* The mapping between symbol names and symbols. */ | ||
5937 | const struct { | ||
5938 | const char *name; | ||
5939 | void *address; | ||
5940 | } | ||
5941 | lt__PROGRAM__LTX_preloaded_symbols[] = | ||
5942 | { | ||
5943 | { "@PROGRAM@", (void *) 0 }, | ||
5944 | _LT_EOF | ||
5945 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | ||
5946 | cat <<\_LT_EOF >> conftest.$ac_ext | ||
5947 | {0, (void *) 0} | ||
5948 | }; | ||
5949 | |||
5950 | /* This works around a problem in FreeBSD linker */ | ||
5951 | #ifdef FREEBSD_WORKAROUND | ||
5952 | static const void *lt_preloaded_setup() { | ||
5953 | return lt__PROGRAM__LTX_preloaded_symbols; | ||
5954 | } | ||
5955 | #endif | ||
5956 | |||
5957 | #ifdef __cplusplus | ||
5958 | } | ||
5959 | #endif | ||
5960 | _LT_EOF | ||
5961 | # Now try linking the two files. | ||
5962 | mv conftest.$ac_objext conftstm.$ac_objext | ||
5963 | lt_save_LIBS="$LIBS" | ||
5964 | lt_save_CFLAGS="$CFLAGS" | ||
5965 | LIBS="conftstm.$ac_objext" | ||
5966 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | ||
5967 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | ||
5968 | (eval $ac_link) 2>&5 | ||
5969 | ac_status=$? | ||
5970 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
5971 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then | ||
5972 | pipe_works=yes | ||
5973 | fi | ||
5974 | LIBS="$lt_save_LIBS" | ||
5975 | CFLAGS="$lt_save_CFLAGS" | ||
5976 | else | ||
5977 | echo "cannot find nm_test_func in $nlist" >&5 | ||
5978 | fi | ||
5979 | else | ||
5980 | echo "cannot find nm_test_var in $nlist" >&5 | ||
5981 | fi | ||
5982 | else | ||
5983 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | ||
5984 | fi | ||
5985 | else | ||
5986 | echo "$progname: failed program was:" >&5 | ||
5987 | cat conftest.$ac_ext >&5 | ||
5988 | fi | ||
5989 | rm -rf conftest* conftst* | ||
5990 | |||
5991 | # Do not use the global_symbol_pipe unless it works. | ||
5992 | if test "$pipe_works" = yes; then | ||
5993 | break | ||
5994 | else | ||
5995 | lt_cv_sys_global_symbol_pipe= | ||
5996 | fi | ||
5997 | done | ||
5998 | |||
5999 | fi | ||
6000 | |||
6001 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | ||
6002 | lt_cv_sys_global_symbol_to_cdecl= | ||
6003 | fi | ||
6004 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | ||
6005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 | ||
6006 | $as_echo "failed" >&6; } | ||
6007 | else | ||
6008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | ||
6009 | $as_echo "ok" >&6; } | ||
6010 | fi | ||
6011 | |||
6012 | |||
6013 | |||
6014 | |||
6015 | |||
6016 | |||
6017 | |||
6018 | |||
6019 | |||
6020 | |||
6021 | |||
6022 | |||
6023 | |||
6024 | |||
6025 | |||
6026 | |||
6027 | |||
6028 | |||
6029 | |||
6030 | |||
6031 | |||
6032 | |||
6033 | |||
6034 | # Check whether --enable-libtool-lock was given. | ||
6035 | if test "${enable_libtool_lock+set}" = set; then : | ||
6036 | enableval=$enable_libtool_lock; | ||
6037 | fi | ||
6038 | |||
6039 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | ||
6040 | |||
6041 | # Some flags need to be propagated to the compiler or linker for good | ||
6042 | # libtool support. | ||
6043 | case $host in | ||
6044 | ia64-*-hpux*) | ||
6045 | # Find out which ABI we are using. | ||
6046 | echo 'int i;' > conftest.$ac_ext | ||
6047 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | ||
6048 | (eval $ac_compile) 2>&5 | ||
6049 | ac_status=$? | ||
6050 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
6051 | test $ac_status = 0; }; then | ||
6052 | case `/usr/bin/file conftest.$ac_objext` in | ||
6053 | *ELF-32*) | ||
6054 | HPUX_IA64_MODE="32" | ||
6055 | ;; | ||
6056 | *ELF-64*) | ||
6057 | HPUX_IA64_MODE="64" | ||
6058 | ;; | ||
6059 | esac | ||
6060 | fi | ||
6061 | rm -rf conftest* | ||
6062 | ;; | ||
6063 | *-*-irix6*) | ||
6064 | # Find out which ABI we are using. | ||
6065 | echo '#line 6065 "configure"' > conftest.$ac_ext | ||
6066 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | ||
6067 | (eval $ac_compile) 2>&5 | ||
6068 | ac_status=$? | ||
6069 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
6070 | test $ac_status = 0; }; then | ||
6071 | if test "$lt_cv_prog_gnu_ld" = yes; then | ||
6072 | case `/usr/bin/file conftest.$ac_objext` in | ||
6073 | *32-bit*) | ||
6074 | LD="${LD-ld} -melf32bsmip" | ||
6075 | ;; | ||
6076 | *N32*) | ||
6077 | LD="${LD-ld} -melf32bmipn32" | ||
6078 | ;; | ||
6079 | *64-bit*) | ||
6080 | LD="${LD-ld} -melf64bmip" | ||
6081 | ;; | ||
6082 | esac | ||
6083 | else | ||
6084 | case `/usr/bin/file conftest.$ac_objext` in | ||
6085 | *32-bit*) | ||
6086 | LD="${LD-ld} -32" | ||
6087 | ;; | ||
6088 | *N32*) | ||
6089 | LD="${LD-ld} -n32" | ||
6090 | ;; | ||
6091 | *64-bit*) | ||
6092 | LD="${LD-ld} -64" | ||
6093 | ;; | ||
6094 | esac | ||
6095 | fi | ||
6096 | fi | ||
6097 | rm -rf conftest* | ||
6098 | ;; | ||
6099 | |||
6100 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ | ||
6101 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | ||
6102 | # Find out which ABI we are using. | ||
6103 | echo 'int i;' > conftest.$ac_ext | ||
6104 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | ||
6105 | (eval $ac_compile) 2>&5 | ||
6106 | ac_status=$? | ||
6107 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
6108 | test $ac_status = 0; }; then | ||
6109 | case `/usr/bin/file conftest.o` in | ||
6110 | *32-bit*) | ||
6111 | case $host in | ||
6112 | x86_64-*kfreebsd*-gnu) | ||
6113 | LD="${LD-ld} -m elf_i386_fbsd" | ||
6114 | ;; | ||
6115 | x86_64-*linux*) | ||
6116 | LD="${LD-ld} -m elf_i386" | ||
6117 | ;; | ||
6118 | ppc64-*linux*|powerpc64-*linux*) | ||
6119 | LD="${LD-ld} -m elf32ppclinux" | ||
6120 | ;; | ||
6121 | s390x-*linux*) | ||
6122 | LD="${LD-ld} -m elf_s390" | ||
6123 | ;; | ||
6124 | sparc64-*linux*) | ||
6125 | LD="${LD-ld} -m elf32_sparc" | ||
6126 | ;; | ||
6127 | esac | ||
6128 | ;; | ||
6129 | *64-bit*) | ||
6130 | case $host in | ||
6131 | x86_64-*kfreebsd*-gnu) | ||
6132 | LD="${LD-ld} -m elf_x86_64_fbsd" | ||
6133 | ;; | ||
6134 | x86_64-*linux*) | ||
6135 | LD="${LD-ld} -m elf_x86_64" | ||
6136 | ;; | ||
6137 | ppc*-*linux*|powerpc*-*linux*) | ||
6138 | LD="${LD-ld} -m elf64ppc" | ||
6139 | ;; | ||
6140 | s390*-*linux*|s390*-*tpf*) | ||
6141 | LD="${LD-ld} -m elf64_s390" | ||
6142 | ;; | ||
6143 | sparc*-*linux*) | ||
6144 | LD="${LD-ld} -m elf64_sparc" | ||
6145 | ;; | ||
6146 | esac | ||
6147 | ;; | ||
6148 | esac | ||
6149 | fi | ||
6150 | rm -rf conftest* | ||
6151 | ;; | ||
6152 | |||
6153 | *-*-sco3.2v5*) | ||
6154 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | ||
6155 | SAVE_CFLAGS="$CFLAGS" | ||
6156 | CFLAGS="$CFLAGS -belf" | ||
6157 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 | ||
6158 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | ||
6159 | if test "${lt_cv_cc_needs_belf+set}" = set; then : | ||
6160 | $as_echo_n "(cached) " >&6 | ||
6161 | else | ||
6162 | ac_ext=c | ||
6163 | ac_cpp='$CPP $CPPFLAGS' | ||
6164 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
6165 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
6166 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
6167 | |||
6168 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6169 | /* end confdefs.h. */ | ||
6170 | |||
6171 | int | ||
6172 | main () | ||
6173 | { | ||
6174 | |||
6175 | ; | ||
6176 | return 0; | ||
6177 | } | ||
6178 | _ACEOF | ||
6179 | if ac_fn_c_try_link "$LINENO"; then : | ||
6180 | lt_cv_cc_needs_belf=yes | ||
6181 | else | ||
6182 | lt_cv_cc_needs_belf=no | ||
6183 | fi | ||
6184 | rm -f core conftest.err conftest.$ac_objext \ | ||
6185 | conftest$ac_exeext conftest.$ac_ext | ||
6186 | ac_ext=c | ||
6187 | ac_cpp='$CPP $CPPFLAGS' | ||
6188 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
6189 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
6190 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
6191 | |||
6192 | fi | ||
6193 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 | ||
6194 | $as_echo "$lt_cv_cc_needs_belf" >&6; } | ||
6195 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | ||
6196 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | ||
6197 | CFLAGS="$SAVE_CFLAGS" | ||
6198 | fi | ||
6199 | ;; | ||
6200 | sparc*-*solaris*) | ||
6201 | # Find out which ABI we are using. | ||
6202 | echo 'int i;' > conftest.$ac_ext | ||
6203 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | ||
6204 | (eval $ac_compile) 2>&5 | ||
6205 | ac_status=$? | ||
6206 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
6207 | test $ac_status = 0; }; then | ||
6208 | case `/usr/bin/file conftest.o` in | ||
6209 | *64-bit*) | ||
6210 | case $lt_cv_prog_gnu_ld in | ||
6211 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | ||
6212 | *) | ||
6213 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | ||
6214 | LD="${LD-ld} -64" | ||
6215 | fi | ||
6216 | ;; | ||
6217 | esac | ||
6218 | ;; | ||
6219 | esac | ||
6220 | fi | ||
6221 | rm -rf conftest* | ||
6222 | ;; | ||
6223 | esac | ||
6224 | |||
6225 | need_locks="$enable_libtool_lock" | ||
6226 | |||
6227 | |||
6228 | case $host_os in | ||
6229 | rhapsody* | darwin*) | ||
6230 | if test -n "$ac_tool_prefix"; then | ||
6231 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | ||
6232 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | ||
6233 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
6234 | $as_echo_n "checking for $ac_word... " >&6; } | ||
6235 | if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : | ||
6236 | $as_echo_n "(cached) " >&6 | ||
6237 | else | ||
6238 | if test -n "$DSYMUTIL"; then | ||
6239 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | ||
6240 | else | ||
6241 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
6242 | for as_dir in $PATH | ||
6243 | do | ||
6244 | IFS=$as_save_IFS | ||
6245 | test -z "$as_dir" && as_dir=. | ||
6246 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
6247 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
6248 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" | ||
6249 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
6250 | break 2 | ||
6251 | fi | ||
6252 | done | ||
6253 | done | ||
6254 | IFS=$as_save_IFS | ||
6255 | |||
6256 | fi | ||
6257 | fi | ||
6258 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | ||
6259 | if test -n "$DSYMUTIL"; then | ||
6260 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | ||
6261 | $as_echo "$DSYMUTIL" >&6; } | ||
6262 | else | ||
6263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6264 | $as_echo "no" >&6; } | ||
6265 | fi | ||
6266 | |||
6267 | |||
6268 | fi | ||
6269 | if test -z "$ac_cv_prog_DSYMUTIL"; then | ||
6270 | ac_ct_DSYMUTIL=$DSYMUTIL | ||
6271 | # Extract the first word of "dsymutil", so it can be a program name with args. | ||
6272 | set dummy dsymutil; ac_word=$2 | ||
6273 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
6274 | $as_echo_n "checking for $ac_word... " >&6; } | ||
6275 | if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : | ||
6276 | $as_echo_n "(cached) " >&6 | ||
6277 | else | ||
6278 | if test -n "$ac_ct_DSYMUTIL"; then | ||
6279 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | ||
6280 | else | ||
6281 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
6282 | for as_dir in $PATH | ||
6283 | do | ||
6284 | IFS=$as_save_IFS | ||
6285 | test -z "$as_dir" && as_dir=. | ||
6286 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
6287 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
6288 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" | ||
6289 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
6290 | break 2 | ||
6291 | fi | ||
6292 | done | ||
6293 | done | ||
6294 | IFS=$as_save_IFS | ||
6295 | |||
6296 | fi | ||
6297 | fi | ||
6298 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL | ||
6299 | if test -n "$ac_ct_DSYMUTIL"; then | ||
6300 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 | ||
6301 | $as_echo "$ac_ct_DSYMUTIL" >&6; } | ||
6302 | else | ||
6303 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6304 | $as_echo "no" >&6; } | ||
6305 | fi | ||
6306 | |||
6307 | if test "x$ac_ct_DSYMUTIL" = x; then | ||
6308 | DSYMUTIL=":" | ||
6309 | else | ||
6310 | case $cross_compiling:$ac_tool_warned in | ||
6311 | yes:) | ||
6312 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
6313 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
6314 | ac_tool_warned=yes ;; | ||
6315 | esac | ||
6316 | DSYMUTIL=$ac_ct_DSYMUTIL | ||
6317 | fi | ||
6318 | else | ||
6319 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" | ||
6320 | fi | ||
6321 | |||
6322 | if test -n "$ac_tool_prefix"; then | ||
6323 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | ||
6324 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | ||
6325 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
6326 | $as_echo_n "checking for $ac_word... " >&6; } | ||
6327 | if test "${ac_cv_prog_NMEDIT+set}" = set; then : | ||
6328 | $as_echo_n "(cached) " >&6 | ||
6329 | else | ||
6330 | if test -n "$NMEDIT"; then | ||
6331 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | ||
6332 | else | ||
6333 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
6334 | for as_dir in $PATH | ||
6335 | do | ||
6336 | IFS=$as_save_IFS | ||
6337 | test -z "$as_dir" && as_dir=. | ||
6338 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
6339 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
6340 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" | ||
6341 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
6342 | break 2 | ||
6343 | fi | ||
6344 | done | ||
6345 | done | ||
6346 | IFS=$as_save_IFS | ||
6347 | |||
6348 | fi | ||
6349 | fi | ||
6350 | NMEDIT=$ac_cv_prog_NMEDIT | ||
6351 | if test -n "$NMEDIT"; then | ||
6352 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 | ||
6353 | $as_echo "$NMEDIT" >&6; } | ||
6354 | else | ||
6355 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6356 | $as_echo "no" >&6; } | ||
6357 | fi | ||
6358 | |||
6359 | |||
6360 | fi | ||
6361 | if test -z "$ac_cv_prog_NMEDIT"; then | ||
6362 | ac_ct_NMEDIT=$NMEDIT | ||
6363 | # Extract the first word of "nmedit", so it can be a program name with args. | ||
6364 | set dummy nmedit; ac_word=$2 | ||
6365 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
6366 | $as_echo_n "checking for $ac_word... " >&6; } | ||
6367 | if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : | ||
6368 | $as_echo_n "(cached) " >&6 | ||
6369 | else | ||
6370 | if test -n "$ac_ct_NMEDIT"; then | ||
6371 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | ||
6372 | else | ||
6373 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
6374 | for as_dir in $PATH | ||
6375 | do | ||
6376 | IFS=$as_save_IFS | ||
6377 | test -z "$as_dir" && as_dir=. | ||
6378 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
6379 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
6380 | ac_cv_prog_ac_ct_NMEDIT="nmedit" | ||
6381 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
6382 | break 2 | ||
6383 | fi | ||
6384 | done | ||
6385 | done | ||
6386 | IFS=$as_save_IFS | ||
6387 | |||
6388 | fi | ||
6389 | fi | ||
6390 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT | ||
6391 | if test -n "$ac_ct_NMEDIT"; then | ||
6392 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 | ||
6393 | $as_echo "$ac_ct_NMEDIT" >&6; } | ||
6394 | else | ||
6395 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6396 | $as_echo "no" >&6; } | ||
6397 | fi | ||
6398 | |||
6399 | if test "x$ac_ct_NMEDIT" = x; then | ||
6400 | NMEDIT=":" | ||
6401 | else | ||
6402 | case $cross_compiling:$ac_tool_warned in | ||
6403 | yes:) | ||
6404 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
6405 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
6406 | ac_tool_warned=yes ;; | ||
6407 | esac | ||
6408 | NMEDIT=$ac_ct_NMEDIT | ||
6409 | fi | ||
6410 | else | ||
6411 | NMEDIT="$ac_cv_prog_NMEDIT" | ||
6412 | fi | ||
6413 | |||
6414 | if test -n "$ac_tool_prefix"; then | ||
6415 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | ||
6416 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | ||
6417 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
6418 | $as_echo_n "checking for $ac_word... " >&6; } | ||
6419 | if test "${ac_cv_prog_LIPO+set}" = set; then : | ||
6420 | $as_echo_n "(cached) " >&6 | ||
6421 | else | ||
6422 | if test -n "$LIPO"; then | ||
6423 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | ||
6424 | else | ||
6425 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
6426 | for as_dir in $PATH | ||
6427 | do | ||
6428 | IFS=$as_save_IFS | ||
6429 | test -z "$as_dir" && as_dir=. | ||
6430 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
6431 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
6432 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" | ||
6433 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
6434 | break 2 | ||
6435 | fi | ||
6436 | done | ||
6437 | done | ||
6438 | IFS=$as_save_IFS | ||
6439 | |||
6440 | fi | ||
6441 | fi | ||
6442 | LIPO=$ac_cv_prog_LIPO | ||
6443 | if test -n "$LIPO"; then | ||
6444 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 | ||
6445 | $as_echo "$LIPO" >&6; } | ||
6446 | else | ||
6447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6448 | $as_echo "no" >&6; } | ||
6449 | fi | ||
6450 | |||
6451 | |||
6452 | fi | ||
6453 | if test -z "$ac_cv_prog_LIPO"; then | ||
6454 | ac_ct_LIPO=$LIPO | ||
6455 | # Extract the first word of "lipo", so it can be a program name with args. | ||
6456 | set dummy lipo; ac_word=$2 | ||
6457 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
6458 | $as_echo_n "checking for $ac_word... " >&6; } | ||
6459 | if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then : | ||
6460 | $as_echo_n "(cached) " >&6 | ||
6461 | else | ||
6462 | if test -n "$ac_ct_LIPO"; then | ||
6463 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | ||
6464 | else | ||
6465 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
6466 | for as_dir in $PATH | ||
6467 | do | ||
6468 | IFS=$as_save_IFS | ||
6469 | test -z "$as_dir" && as_dir=. | ||
6470 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
6471 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
6472 | ac_cv_prog_ac_ct_LIPO="lipo" | ||
6473 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
6474 | break 2 | ||
6475 | fi | ||
6476 | done | ||
6477 | done | ||
6478 | IFS=$as_save_IFS | ||
6479 | |||
6480 | fi | ||
6481 | fi | ||
6482 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | ||
6483 | if test -n "$ac_ct_LIPO"; then | ||
6484 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 | ||
6485 | $as_echo "$ac_ct_LIPO" >&6; } | ||
6486 | else | ||
6487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6488 | $as_echo "no" >&6; } | ||
6489 | fi | ||
6490 | |||
6491 | if test "x$ac_ct_LIPO" = x; then | ||
6492 | LIPO=":" | ||
6493 | else | ||
6494 | case $cross_compiling:$ac_tool_warned in | ||
6495 | yes:) | ||
6496 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
6497 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
6498 | ac_tool_warned=yes ;; | ||
6499 | esac | ||
6500 | LIPO=$ac_ct_LIPO | ||
6501 | fi | ||
6502 | else | ||
6503 | LIPO="$ac_cv_prog_LIPO" | ||
6504 | fi | ||
6505 | |||
6506 | if test -n "$ac_tool_prefix"; then | ||
6507 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | ||
6508 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | ||
6509 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
6510 | $as_echo_n "checking for $ac_word... " >&6; } | ||
6511 | if test "${ac_cv_prog_OTOOL+set}" = set; then : | ||
6512 | $as_echo_n "(cached) " >&6 | ||
6513 | else | ||
6514 | if test -n "$OTOOL"; then | ||
6515 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | ||
6516 | else | ||
6517 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
6518 | for as_dir in $PATH | ||
6519 | do | ||
6520 | IFS=$as_save_IFS | ||
6521 | test -z "$as_dir" && as_dir=. | ||
6522 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
6523 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
6524 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" | ||
6525 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
6526 | break 2 | ||
6527 | fi | ||
6528 | done | ||
6529 | done | ||
6530 | IFS=$as_save_IFS | ||
6531 | |||
6532 | fi | ||
6533 | fi | ||
6534 | OTOOL=$ac_cv_prog_OTOOL | ||
6535 | if test -n "$OTOOL"; then | ||
6536 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | ||
6537 | $as_echo "$OTOOL" >&6; } | ||
6538 | else | ||
6539 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6540 | $as_echo "no" >&6; } | ||
6541 | fi | ||
6542 | |||
6543 | |||
6544 | fi | ||
6545 | if test -z "$ac_cv_prog_OTOOL"; then | ||
6546 | ac_ct_OTOOL=$OTOOL | ||
6547 | # Extract the first word of "otool", so it can be a program name with args. | ||
6548 | set dummy otool; ac_word=$2 | ||
6549 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
6550 | $as_echo_n "checking for $ac_word... " >&6; } | ||
6551 | if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then : | ||
6552 | $as_echo_n "(cached) " >&6 | ||
6553 | else | ||
6554 | if test -n "$ac_ct_OTOOL"; then | ||
6555 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | ||
6556 | else | ||
6557 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
6558 | for as_dir in $PATH | ||
6559 | do | ||
6560 | IFS=$as_save_IFS | ||
6561 | test -z "$as_dir" && as_dir=. | ||
6562 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
6563 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
6564 | ac_cv_prog_ac_ct_OTOOL="otool" | ||
6565 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
6566 | break 2 | ||
6567 | fi | ||
6568 | done | ||
6569 | done | ||
6570 | IFS=$as_save_IFS | ||
6571 | |||
6572 | fi | ||
6573 | fi | ||
6574 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | ||
6575 | if test -n "$ac_ct_OTOOL"; then | ||
6576 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 | ||
6577 | $as_echo "$ac_ct_OTOOL" >&6; } | ||
6578 | else | ||
6579 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6580 | $as_echo "no" >&6; } | ||
6581 | fi | ||
6582 | |||
6583 | if test "x$ac_ct_OTOOL" = x; then | ||
6584 | OTOOL=":" | ||
6585 | else | ||
6586 | case $cross_compiling:$ac_tool_warned in | ||
6587 | yes:) | ||
6588 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
6589 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
6590 | ac_tool_warned=yes ;; | ||
6591 | esac | ||
6592 | OTOOL=$ac_ct_OTOOL | ||
6593 | fi | ||
6594 | else | ||
6595 | OTOOL="$ac_cv_prog_OTOOL" | ||
6596 | fi | ||
6597 | |||
6598 | if test -n "$ac_tool_prefix"; then | ||
6599 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | ||
6600 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | ||
6601 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
6602 | $as_echo_n "checking for $ac_word... " >&6; } | ||
6603 | if test "${ac_cv_prog_OTOOL64+set}" = set; then : | ||
6604 | $as_echo_n "(cached) " >&6 | ||
6605 | else | ||
6606 | if test -n "$OTOOL64"; then | ||
6607 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | ||
6608 | else | ||
6609 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
6610 | for as_dir in $PATH | ||
6611 | do | ||
6612 | IFS=$as_save_IFS | ||
6613 | test -z "$as_dir" && as_dir=. | ||
6614 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
6615 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
6616 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" | ||
6617 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
6618 | break 2 | ||
6619 | fi | ||
6620 | done | ||
6621 | done | ||
6622 | IFS=$as_save_IFS | ||
6623 | |||
6624 | fi | ||
6625 | fi | ||
6626 | OTOOL64=$ac_cv_prog_OTOOL64 | ||
6627 | if test -n "$OTOOL64"; then | ||
6628 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 | ||
6629 | $as_echo "$OTOOL64" >&6; } | ||
6630 | else | ||
6631 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6632 | $as_echo "no" >&6; } | ||
6633 | fi | ||
6634 | |||
6635 | |||
6636 | fi | ||
6637 | if test -z "$ac_cv_prog_OTOOL64"; then | ||
6638 | ac_ct_OTOOL64=$OTOOL64 | ||
6639 | # Extract the first word of "otool64", so it can be a program name with args. | ||
6640 | set dummy otool64; ac_word=$2 | ||
6641 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
6642 | $as_echo_n "checking for $ac_word... " >&6; } | ||
6643 | if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then : | ||
6644 | $as_echo_n "(cached) " >&6 | ||
6645 | else | ||
6646 | if test -n "$ac_ct_OTOOL64"; then | ||
6647 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | ||
6648 | else | ||
6649 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
6650 | for as_dir in $PATH | ||
6651 | do | ||
6652 | IFS=$as_save_IFS | ||
6653 | test -z "$as_dir" && as_dir=. | ||
6654 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
6655 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
6656 | ac_cv_prog_ac_ct_OTOOL64="otool64" | ||
6657 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
6658 | break 2 | ||
6659 | fi | ||
6660 | done | ||
6661 | done | ||
6662 | IFS=$as_save_IFS | ||
6663 | |||
6664 | fi | ||
6665 | fi | ||
6666 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | ||
6667 | if test -n "$ac_ct_OTOOL64"; then | ||
6668 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 | ||
6669 | $as_echo "$ac_ct_OTOOL64" >&6; } | ||
6670 | else | ||
6671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6672 | $as_echo "no" >&6; } | ||
6673 | fi | ||
6674 | |||
6675 | if test "x$ac_ct_OTOOL64" = x; then | ||
6676 | OTOOL64=":" | ||
6677 | else | ||
6678 | case $cross_compiling:$ac_tool_warned in | ||
6679 | yes:) | ||
6680 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
6681 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
6682 | ac_tool_warned=yes ;; | ||
6683 | esac | ||
6684 | OTOOL64=$ac_ct_OTOOL64 | ||
6685 | fi | ||
6686 | else | ||
6687 | OTOOL64="$ac_cv_prog_OTOOL64" | ||
6688 | fi | ||
6689 | |||
6690 | |||
6691 | |||
6692 | |||
6693 | |||
6694 | |||
6695 | |||
6696 | |||
6697 | |||
6698 | |||
6699 | |||
6700 | |||
6701 | |||
6702 | |||
6703 | |||
6704 | |||
6705 | |||
6706 | |||
6707 | |||
6708 | |||
6709 | |||
6710 | |||
6711 | |||
6712 | |||
6713 | |||
6714 | |||
6715 | |||
6716 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 | ||
6717 | $as_echo_n "checking for -single_module linker flag... " >&6; } | ||
6718 | if test "${lt_cv_apple_cc_single_mod+set}" = set; then : | ||
6719 | $as_echo_n "(cached) " >&6 | ||
6720 | else | ||
6721 | lt_cv_apple_cc_single_mod=no | ||
6722 | if test -z "${LT_MULTI_MODULE}"; then | ||
6723 | # By default we will add the -single_module flag. You can override | ||
6724 | # by either setting the environment variable LT_MULTI_MODULE | ||
6725 | # non-empty at configure time, or by adding -multi_module to the | ||
6726 | # link flags. | ||
6727 | rm -rf libconftest.dylib* | ||
6728 | echo "int foo(void){return 1;}" > conftest.c | ||
6729 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | ||
6730 | -dynamiclib -Wl,-single_module conftest.c" >&5 | ||
6731 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | ||
6732 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | ||
6733 | _lt_result=$? | ||
6734 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then | ||
6735 | lt_cv_apple_cc_single_mod=yes | ||
6736 | else | ||
6737 | cat conftest.err >&5 | ||
6738 | fi | ||
6739 | rm -rf libconftest.dylib* | ||
6740 | rm -f conftest.* | ||
6741 | fi | ||
6742 | fi | ||
6743 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 | ||
6744 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | ||
6745 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 | ||
6746 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | ||
6747 | if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : | ||
6748 | $as_echo_n "(cached) " >&6 | ||
6749 | else | ||
6750 | lt_cv_ld_exported_symbols_list=no | ||
6751 | save_LDFLAGS=$LDFLAGS | ||
6752 | echo "_main" > conftest.sym | ||
6753 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | ||
6754 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6755 | /* end confdefs.h. */ | ||
6756 | |||
6757 | int | ||
6758 | main () | ||
6759 | { | ||
6760 | |||
6761 | ; | ||
6762 | return 0; | ||
6763 | } | ||
6764 | _ACEOF | ||
6765 | if ac_fn_c_try_link "$LINENO"; then : | ||
6766 | lt_cv_ld_exported_symbols_list=yes | ||
6767 | else | ||
6768 | lt_cv_ld_exported_symbols_list=no | ||
6769 | fi | ||
6770 | rm -f core conftest.err conftest.$ac_objext \ | ||
6771 | conftest$ac_exeext conftest.$ac_ext | ||
6772 | LDFLAGS="$save_LDFLAGS" | ||
6773 | |||
6774 | fi | ||
6775 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 | ||
6776 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | ||
6777 | case $host_os in | ||
6778 | rhapsody* | darwin1.[012]) | ||
6779 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | ||
6780 | darwin1.*) | ||
6781 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | ||
6782 | darwin*) # darwin 5.x on | ||
6783 | # if running on 10.5 or later, the deployment target defaults | ||
6784 | # to the OS version, if on x86, and 10.4, the deployment | ||
6785 | # target defaults to 10.4. Don't you love it? | ||
6786 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | ||
6787 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | ||
6788 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | ||
6789 | 10.[012]*) | ||
6790 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | ||
6791 | 10.*) | ||
6792 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | ||
6793 | esac | ||
6794 | ;; | ||
6795 | esac | ||
6796 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then | ||
6797 | _lt_dar_single_mod='$single_module' | ||
6798 | fi | ||
6799 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | ||
6800 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | ||
6801 | else | ||
6802 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | ||
6803 | fi | ||
6804 | if test "$DSYMUTIL" != ":"; then | ||
6805 | _lt_dsymutil='~$DSYMUTIL $lib || :' | ||
6806 | else | ||
6807 | _lt_dsymutil= | ||
6808 | fi | ||
6809 | ;; | ||
6810 | esac | ||
6811 | |||
6812 | ac_ext=c | ||
6813 | ac_cpp='$CPP $CPPFLAGS' | ||
6814 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
6815 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
6816 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
6817 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | ||
6818 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | ||
6819 | # On Suns, sometimes $CPP names a directory. | ||
6820 | if test -n "$CPP" && test -d "$CPP"; then | ||
6821 | CPP= | ||
6822 | fi | ||
6823 | if test -z "$CPP"; then | ||
6824 | if test "${ac_cv_prog_CPP+set}" = set; then : | ||
6825 | $as_echo_n "(cached) " >&6 | ||
6826 | else | ||
6827 | # Double quotes because CPP needs to be expanded | ||
6828 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | ||
6829 | do | ||
6830 | ac_preproc_ok=false | ||
6831 | for ac_c_preproc_warn_flag in '' yes | ||
6832 | do | ||
6833 | # Use a header file that comes with gcc, so configuring glibc | ||
6834 | # with a fresh cross-compiler works. | ||
6835 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
6836 | # <limits.h> exists even on freestanding compilers. | ||
6837 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
6838 | # not just through cpp. "Syntax error" is here to catch this case. | ||
6839 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6840 | /* end confdefs.h. */ | ||
6841 | #ifdef __STDC__ | ||
6842 | # include <limits.h> | ||
6843 | #else | ||
6844 | # include <assert.h> | ||
6845 | #endif | ||
6846 | Syntax error | ||
6847 | _ACEOF | ||
6848 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
6849 | |||
6850 | else | ||
6851 | # Broken: fails on valid input. | ||
6852 | continue | ||
6853 | fi | ||
6854 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
6855 | |||
6856 | # OK, works on sane cases. Now check whether nonexistent headers | ||
6857 | # can be detected and how. | ||
6858 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6859 | /* end confdefs.h. */ | ||
6860 | #include <ac_nonexistent.h> | ||
6861 | _ACEOF | ||
6862 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
6863 | # Broken: success on invalid input. | ||
6864 | continue | ||
6865 | else | ||
6866 | # Passes both tests. | ||
6867 | ac_preproc_ok=: | ||
6868 | break | ||
6869 | fi | ||
6870 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
6871 | |||
6872 | done | ||
6873 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
6874 | rm -f conftest.i conftest.err conftest.$ac_ext | ||
6875 | if $ac_preproc_ok; then : | ||
6876 | break | ||
6877 | fi | ||
6878 | |||
6879 | done | ||
6880 | ac_cv_prog_CPP=$CPP | ||
6881 | |||
6882 | fi | ||
6883 | CPP=$ac_cv_prog_CPP | ||
6884 | else | ||
6885 | ac_cv_prog_CPP=$CPP | ||
6886 | fi | ||
6887 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | ||
6888 | $as_echo "$CPP" >&6; } | ||
6889 | ac_preproc_ok=false | ||
6890 | for ac_c_preproc_warn_flag in '' yes | ||
6891 | do | ||
6892 | # Use a header file that comes with gcc, so configuring glibc | ||
6893 | # with a fresh cross-compiler works. | ||
6894 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
6895 | # <limits.h> exists even on freestanding compilers. | ||
6896 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
6897 | # not just through cpp. "Syntax error" is here to catch this case. | ||
6898 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6899 | /* end confdefs.h. */ | ||
6900 | #ifdef __STDC__ | ||
6901 | # include <limits.h> | ||
6902 | #else | ||
6903 | # include <assert.h> | ||
6904 | #endif | ||
6905 | Syntax error | ||
6906 | _ACEOF | ||
6907 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
6908 | |||
6909 | else | ||
6910 | # Broken: fails on valid input. | ||
6911 | continue | ||
6912 | fi | ||
6913 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
6914 | |||
6915 | # OK, works on sane cases. Now check whether nonexistent headers | ||
6916 | # can be detected and how. | ||
6917 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6918 | /* end confdefs.h. */ | ||
6919 | #include <ac_nonexistent.h> | ||
6920 | _ACEOF | ||
6921 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
6922 | # Broken: success on invalid input. | ||
6923 | continue | ||
6924 | else | ||
6925 | # Passes both tests. | ||
6926 | ac_preproc_ok=: | ||
6927 | break | ||
6928 | fi | ||
6929 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
6930 | |||
6931 | done | ||
6932 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
6933 | rm -f conftest.i conftest.err conftest.$ac_ext | ||
6934 | if $ac_preproc_ok; then : | ||
6935 | |||
6936 | else | ||
6937 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
6938 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
6939 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | ||
6940 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
6941 | fi | ||
6942 | |||
6943 | ac_ext=c | ||
6944 | ac_cpp='$CPP $CPPFLAGS' | ||
6945 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
6946 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
6947 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
6948 | |||
6949 | |||
6950 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | ||
6951 | $as_echo_n "checking for ANSI C header files... " >&6; } | ||
6952 | if test "${ac_cv_header_stdc+set}" = set; then : | ||
6953 | $as_echo_n "(cached) " >&6 | ||
6954 | else | ||
6955 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6956 | /* end confdefs.h. */ | ||
6957 | #include <stdlib.h> | ||
6958 | #include <stdarg.h> | ||
6959 | #include <string.h> | ||
6960 | #include <float.h> | ||
6961 | |||
6962 | int | ||
6963 | main () | ||
6964 | { | ||
6965 | |||
6966 | ; | ||
6967 | return 0; | ||
6968 | } | ||
6969 | _ACEOF | ||
6970 | if ac_fn_c_try_compile "$LINENO"; then : | ||
6971 | ac_cv_header_stdc=yes | ||
6972 | else | ||
6973 | ac_cv_header_stdc=no | ||
6974 | fi | ||
6975 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6976 | |||
6977 | if test $ac_cv_header_stdc = yes; then | ||
6978 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | ||
6979 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6980 | /* end confdefs.h. */ | ||
6981 | #include <string.h> | ||
6982 | |||
6983 | _ACEOF | ||
6984 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
6985 | $EGREP "memchr" >/dev/null 2>&1; then : | ||
6986 | |||
6987 | else | ||
6988 | ac_cv_header_stdc=no | ||
6989 | fi | ||
6990 | rm -f conftest* | ||
6991 | |||
6992 | fi | ||
6993 | |||
6994 | if test $ac_cv_header_stdc = yes; then | ||
6995 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | ||
6996 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6997 | /* end confdefs.h. */ | ||
6998 | #include <stdlib.h> | ||
6999 | |||
7000 | _ACEOF | ||
7001 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
7002 | $EGREP "free" >/dev/null 2>&1; then : | ||
7003 | |||
7004 | else | ||
7005 | ac_cv_header_stdc=no | ||
7006 | fi | ||
7007 | rm -f conftest* | ||
7008 | |||
7009 | fi | ||
7010 | |||
7011 | if test $ac_cv_header_stdc = yes; then | ||
7012 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | ||
7013 | if test "$cross_compiling" = yes; then : | ||
7014 | : | ||
7015 | else | ||
7016 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
7017 | /* end confdefs.h. */ | ||
7018 | #include <ctype.h> | ||
7019 | #include <stdlib.h> | ||
7020 | #if ((' ' & 0x0FF) == 0x020) | ||
7021 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | ||
7022 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | ||
7023 | #else | ||
7024 | # define ISLOWER(c) \ | ||
7025 | (('a' <= (c) && (c) <= 'i') \ | ||
7026 | || ('j' <= (c) && (c) <= 'r') \ | ||
7027 | || ('s' <= (c) && (c) <= 'z')) | ||
7028 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | ||
7029 | #endif | ||
7030 | |||
7031 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | ||
7032 | int | ||
7033 | main () | ||
7034 | { | ||
7035 | int i; | ||
7036 | for (i = 0; i < 256; i++) | ||
7037 | if (XOR (islower (i), ISLOWER (i)) | ||
7038 | || toupper (i) != TOUPPER (i)) | ||
7039 | return 2; | ||
7040 | return 0; | ||
7041 | } | ||
7042 | _ACEOF | ||
7043 | if ac_fn_c_try_run "$LINENO"; then : | ||
7044 | |||
7045 | else | ||
7046 | ac_cv_header_stdc=no | ||
7047 | fi | ||
7048 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
7049 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
7050 | fi | ||
7051 | |||
7052 | fi | ||
7053 | fi | ||
7054 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | ||
7055 | $as_echo "$ac_cv_header_stdc" >&6; } | ||
7056 | if test $ac_cv_header_stdc = yes; then | ||
7057 | |||
7058 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | ||
7059 | |||
7060 | fi | ||
7061 | |||
7062 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | ||
7063 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | ||
7064 | inttypes.h stdint.h unistd.h | ||
7065 | do : | ||
7066 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
7067 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | ||
7068 | " | ||
7069 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | ||
7070 | cat >>confdefs.h <<_ACEOF | ||
7071 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
7072 | _ACEOF | ||
7073 | |||
7074 | fi | ||
7075 | |||
7076 | done | ||
7077 | |||
7078 | |||
7079 | for ac_header in dlfcn.h | ||
7080 | do : | ||
7081 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | ||
7082 | " | ||
7083 | if test "x$ac_cv_header_dlfcn_h" = x""yes; then : | ||
7084 | cat >>confdefs.h <<_ACEOF | ||
7085 | #define HAVE_DLFCN_H 1 | ||
7086 | _ACEOF | ||
7087 | |||
7088 | fi | ||
7089 | |||
7090 | done | ||
7091 | |||
7092 | |||
7093 | |||
7094 | # Set options | ||
7095 | |||
7096 | |||
7097 | |||
7098 | enable_dlopen=no | ||
7099 | |||
7100 | |||
7101 | |||
7102 | # Check whether --enable-shared was given. | ||
7103 | if test "${enable_shared+set}" = set; then : | ||
7104 | enableval=$enable_shared; p=${PACKAGE-default} | ||
7105 | case $enableval in | ||
7106 | yes) enable_shared=yes ;; | ||
7107 | no) enable_shared=no ;; | ||
7108 | *) | ||
7109 | enable_shared=no | ||
7110 | # Look at the argument we got. We use all the common list separators. | ||
7111 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | ||
7112 | for pkg in $enableval; do | ||
7113 | IFS="$lt_save_ifs" | ||
7114 | if test "X$pkg" = "X$p"; then | ||
7115 | enable_shared=yes | ||
7116 | fi | ||
7117 | done | ||
7118 | IFS="$lt_save_ifs" | ||
7119 | ;; | ||
7120 | esac | ||
7121 | else | ||
7122 | enable_shared=yes | ||
7123 | fi | ||
7124 | |||
7125 | |||
7126 | |||
7127 | |||
7128 | |||
7129 | |||
7130 | |||
7131 | |||
7132 | |||
7133 | # Check whether --enable-static was given. | ||
7134 | if test "${enable_static+set}" = set; then : | ||
7135 | enableval=$enable_static; p=${PACKAGE-default} | ||
7136 | case $enableval in | ||
7137 | yes) enable_static=yes ;; | ||
7138 | no) enable_static=no ;; | ||
7139 | *) | ||
7140 | enable_static=no | ||
7141 | # Look at the argument we got. We use all the common list separators. | ||
7142 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | ||
7143 | for pkg in $enableval; do | ||
7144 | IFS="$lt_save_ifs" | ||
7145 | if test "X$pkg" = "X$p"; then | ||
7146 | enable_static=yes | ||
7147 | fi | ||
7148 | done | ||
7149 | IFS="$lt_save_ifs" | ||
7150 | ;; | ||
7151 | esac | ||
7152 | else | ||
7153 | enable_static=yes | ||
7154 | fi | ||
7155 | |||
7156 | |||
7157 | |||
7158 | |||
7159 | |||
7160 | |||
7161 | |||
7162 | |||
7163 | |||
7164 | |||
7165 | # Check whether --with-pic was given. | ||
7166 | if test "${with_pic+set}" = set; then : | ||
7167 | withval=$with_pic; pic_mode="$withval" | ||
7168 | else | ||
7169 | pic_mode=default | ||
7170 | fi | ||
7171 | |||
7172 | |||
7173 | test -z "$pic_mode" && pic_mode=default | ||
7174 | |||
7175 | |||
7176 | |||
7177 | |||
7178 | |||
7179 | |||
7180 | |||
7181 | # Check whether --enable-fast-install was given. | ||
7182 | if test "${enable_fast_install+set}" = set; then : | ||
7183 | enableval=$enable_fast_install; p=${PACKAGE-default} | ||
7184 | case $enableval in | ||
7185 | yes) enable_fast_install=yes ;; | ||
7186 | no) enable_fast_install=no ;; | ||
7187 | *) | ||
7188 | enable_fast_install=no | ||
7189 | # Look at the argument we got. We use all the common list separators. | ||
7190 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | ||
7191 | for pkg in $enableval; do | ||
7192 | IFS="$lt_save_ifs" | ||
7193 | if test "X$pkg" = "X$p"; then | ||
7194 | enable_fast_install=yes | ||
7195 | fi | ||
7196 | done | ||
7197 | IFS="$lt_save_ifs" | ||
7198 | ;; | ||
7199 | esac | ||
7200 | else | ||
7201 | enable_fast_install=yes | ||
7202 | fi | ||
7203 | |||
7204 | |||
7205 | |||
7206 | |||
7207 | |||
7208 | |||
7209 | |||
7210 | |||
7211 | |||
7212 | |||
7213 | |||
7214 | # This can be used to rebuild libtool when needed | ||
7215 | LIBTOOL_DEPS="$ltmain" | ||
7216 | |||
7217 | # Always use our own libtool. | ||
7218 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | ||
7219 | |||
7220 | |||
7221 | |||
7222 | |||
7223 | |||
7224 | |||
7225 | |||
7226 | |||
7227 | |||
7228 | |||
7229 | |||
7230 | |||
7231 | |||
7232 | |||
7233 | |||
7234 | |||
7235 | |||
7236 | |||
7237 | |||
7238 | |||
7239 | |||
7240 | |||
7241 | |||
7242 | |||
7243 | |||
7244 | test -z "$LN_S" && LN_S="ln -s" | ||
7245 | |||
7246 | |||
7247 | |||
7248 | |||
7249 | |||
7250 | |||
7251 | |||
7252 | |||
7253 | |||
7254 | |||
7255 | |||
7256 | |||
7257 | |||
7258 | |||
7259 | if test -n "${ZSH_VERSION+set}" ; then | ||
7260 | setopt NO_GLOB_SUBST | ||
7261 | fi | ||
7262 | |||
7263 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 | ||
7264 | $as_echo_n "checking for objdir... " >&6; } | ||
7265 | if test "${lt_cv_objdir+set}" = set; then : | ||
7266 | $as_echo_n "(cached) " >&6 | ||
7267 | else | ||
7268 | rm -f .libs 2>/dev/null | ||
7269 | mkdir .libs 2>/dev/null | ||
7270 | if test -d .libs; then | ||
7271 | lt_cv_objdir=.libs | ||
7272 | else | ||
7273 | # MS-DOS does not allow filenames that begin with a dot. | ||
7274 | lt_cv_objdir=_libs | ||
7275 | fi | ||
7276 | rmdir .libs 2>/dev/null | ||
7277 | fi | ||
7278 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | ||
7279 | $as_echo "$lt_cv_objdir" >&6; } | ||
7280 | objdir=$lt_cv_objdir | ||
7281 | |||
7282 | |||
7283 | |||
7284 | |||
7285 | |||
7286 | cat >>confdefs.h <<_ACEOF | ||
7287 | #define LT_OBJDIR "$lt_cv_objdir/" | ||
7288 | _ACEOF | ||
7289 | |||
7290 | |||
7291 | |||
7292 | |||
7293 | |||
7294 | |||
7295 | |||
7296 | |||
7297 | |||
7298 | |||
7299 | |||
7300 | |||
7301 | |||
7302 | |||
7303 | |||
7304 | |||
7305 | |||
7306 | case $host_os in | ||
7307 | aix3*) | ||
7308 | # AIX sometimes has problems with the GCC collect2 program. For some | ||
7309 | # reason, if we set the COLLECT_NAMES environment variable, the problems | ||
7310 | # vanish in a puff of smoke. | ||
7311 | if test "X${COLLECT_NAMES+set}" != Xset; then | ||
7312 | COLLECT_NAMES= | ||
7313 | export COLLECT_NAMES | ||
7314 | fi | ||
7315 | ;; | ||
7316 | esac | ||
7317 | |||
7318 | # Sed substitution that helps us do robust quoting. It backslashifies | ||
7319 | # metacharacters that are still active within double-quoted strings. | ||
7320 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | ||
7321 | |||
7322 | # Same as above, but do not quote variable references. | ||
7323 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | ||
7324 | |||
7325 | # Sed substitution to delay expansion of an escaped shell variable in a | ||
7326 | # double_quote_subst'ed string. | ||
7327 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | ||
7328 | |||
7329 | # Sed substitution to delay expansion of an escaped single quote. | ||
7330 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | ||
7331 | |||
7332 | # Sed substitution to avoid accidental globbing in evaled expressions | ||
7333 | no_glob_subst='s/\*/\\\*/g' | ||
7334 | |||
7335 | # Global variables: | ||
7336 | ofile=libtool | ||
7337 | can_build_shared=yes | ||
7338 | |||
7339 | # All known linkers require a `.a' archive for static linking (except MSVC, | ||
7340 | # which needs '.lib'). | ||
7341 | libext=a | ||
7342 | |||
7343 | with_gnu_ld="$lt_cv_prog_gnu_ld" | ||
7344 | |||
7345 | old_CC="$CC" | ||
7346 | old_CFLAGS="$CFLAGS" | ||
7347 | |||
7348 | # Set sane defaults for various variables | ||
7349 | test -z "$CC" && CC=cc | ||
7350 | test -z "$LTCC" && LTCC=$CC | ||
7351 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | ||
7352 | test -z "$LD" && LD=ld | ||
7353 | test -z "$ac_objext" && ac_objext=o | ||
7354 | |||
7355 | for cc_temp in $compiler""; do | ||
7356 | case $cc_temp in | ||
7357 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | ||
7358 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | ||
7359 | \-*) ;; | ||
7360 | *) break;; | ||
7361 | esac | ||
7362 | done | ||
7363 | cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | ||
7364 | |||
7365 | |||
7366 | # Only perform the check for file, if the check method requires it | ||
7367 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | ||
7368 | case $deplibs_check_method in | ||
7369 | file_magic*) | ||
7370 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | ||
7371 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 | ||
7372 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | ||
7373 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : | ||
7374 | $as_echo_n "(cached) " >&6 | ||
7375 | else | ||
7376 | case $MAGIC_CMD in | ||
7377 | [\\/*] | ?:[\\/]*) | ||
7378 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | ||
7379 | ;; | ||
7380 | *) | ||
7381 | lt_save_MAGIC_CMD="$MAGIC_CMD" | ||
7382 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | ||
7383 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | ||
7384 | for ac_dir in $ac_dummy; do | ||
7385 | IFS="$lt_save_ifs" | ||
7386 | test -z "$ac_dir" && ac_dir=. | ||
7387 | if test -f $ac_dir/${ac_tool_prefix}file; then | ||
7388 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | ||
7389 | if test -n "$file_magic_test_file"; then | ||
7390 | case $deplibs_check_method in | ||
7391 | "file_magic "*) | ||
7392 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | ||
7393 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | ||
7394 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | ||
7395 | $EGREP "$file_magic_regex" > /dev/null; then | ||
7396 | : | ||
7397 | else | ||
7398 | cat <<_LT_EOF 1>&2 | ||
7399 | |||
7400 | *** Warning: the command libtool uses to detect shared libraries, | ||
7401 | *** $file_magic_cmd, produces output that libtool cannot recognize. | ||
7402 | *** The result is that libtool may fail to recognize shared libraries | ||
7403 | *** as such. This will affect the creation of libtool libraries that | ||
7404 | *** depend on shared libraries, but programs linked with such libtool | ||
7405 | *** libraries will work regardless of this problem. Nevertheless, you | ||
7406 | *** may want to report the problem to your system manager and/or to | ||
7407 | *** bug-libtool@gnu.org | ||
7408 | |||
7409 | _LT_EOF | ||
7410 | fi ;; | ||
7411 | esac | ||
7412 | fi | ||
7413 | break | ||
7414 | fi | ||
7415 | done | ||
7416 | IFS="$lt_save_ifs" | ||
7417 | MAGIC_CMD="$lt_save_MAGIC_CMD" | ||
7418 | ;; | ||
7419 | esac | ||
7420 | fi | ||
7421 | |||
7422 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | ||
7423 | if test -n "$MAGIC_CMD"; then | ||
7424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | ||
7425 | $as_echo "$MAGIC_CMD" >&6; } | ||
7426 | else | ||
7427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
7428 | $as_echo "no" >&6; } | ||
7429 | fi | ||
7430 | |||
7431 | |||
7432 | |||
7433 | |||
7434 | |||
7435 | if test -z "$lt_cv_path_MAGIC_CMD"; then | ||
7436 | if test -n "$ac_tool_prefix"; then | ||
7437 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 | ||
7438 | $as_echo_n "checking for file... " >&6; } | ||
7439 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : | ||
7440 | $as_echo_n "(cached) " >&6 | ||
7441 | else | ||
7442 | case $MAGIC_CMD in | ||
7443 | [\\/*] | ?:[\\/]*) | ||
7444 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | ||
7445 | ;; | ||
7446 | *) | ||
7447 | lt_save_MAGIC_CMD="$MAGIC_CMD" | ||
7448 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | ||
7449 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | ||
7450 | for ac_dir in $ac_dummy; do | ||
7451 | IFS="$lt_save_ifs" | ||
7452 | test -z "$ac_dir" && ac_dir=. | ||
7453 | if test -f $ac_dir/file; then | ||
7454 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | ||
7455 | if test -n "$file_magic_test_file"; then | ||
7456 | case $deplibs_check_method in | ||
7457 | "file_magic "*) | ||
7458 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | ||
7459 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | ||
7460 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | ||
7461 | $EGREP "$file_magic_regex" > /dev/null; then | ||
7462 | : | ||
7463 | else | ||
7464 | cat <<_LT_EOF 1>&2 | ||
7465 | |||
7466 | *** Warning: the command libtool uses to detect shared libraries, | ||
7467 | *** $file_magic_cmd, produces output that libtool cannot recognize. | ||
7468 | *** The result is that libtool may fail to recognize shared libraries | ||
7469 | *** as such. This will affect the creation of libtool libraries that | ||
7470 | *** depend on shared libraries, but programs linked with such libtool | ||
7471 | *** libraries will work regardless of this problem. Nevertheless, you | ||
7472 | *** may want to report the problem to your system manager and/or to | ||
7473 | *** bug-libtool@gnu.org | ||
7474 | |||
7475 | _LT_EOF | ||
7476 | fi ;; | ||
7477 | esac | ||
7478 | fi | ||
7479 | break | ||
7480 | fi | ||
7481 | done | ||
7482 | IFS="$lt_save_ifs" | ||
7483 | MAGIC_CMD="$lt_save_MAGIC_CMD" | ||
7484 | ;; | ||
7485 | esac | ||
7486 | fi | ||
7487 | |||
7488 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | ||
7489 | if test -n "$MAGIC_CMD"; then | ||
7490 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | ||
7491 | $as_echo "$MAGIC_CMD" >&6; } | ||
7492 | else | ||
7493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
7494 | $as_echo "no" >&6; } | ||
7495 | fi | ||
7496 | |||
7497 | |||
7498 | else | ||
7499 | MAGIC_CMD=: | ||
7500 | fi | ||
7501 | fi | ||
7502 | |||
7503 | fi | ||
7504 | ;; | ||
7505 | esac | ||
7506 | |||
7507 | # Use C for the default configuration in the libtool script | ||
7508 | |||
7509 | lt_save_CC="$CC" | ||
7510 | ac_ext=c | ||
7511 | ac_cpp='$CPP $CPPFLAGS' | ||
7512 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
7513 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
7514 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
7515 | |||
7516 | |||
7517 | # Source file extension for C test sources. | ||
7518 | ac_ext=c | ||
7519 | |||
7520 | # Object file extension for compiled C test sources. | ||
7521 | objext=o | ||
7522 | objext=$objext | ||
7523 | |||
7524 | # Code to be used in simple compile tests | ||
7525 | lt_simple_compile_test_code="int some_variable = 0;" | ||
7526 | |||
7527 | # Code to be used in simple link tests | ||
7528 | lt_simple_link_test_code='int main(){return(0);}' | ||
7529 | |||
7530 | |||
7531 | |||
7532 | |||
7533 | |||
7534 | |||
7535 | |||
7536 | # If no C compiler was specified, use CC. | ||
7537 | LTCC=${LTCC-"$CC"} | ||
7538 | |||
7539 | # If no C compiler flags were specified, use CFLAGS. | ||
7540 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | ||
7541 | |||
7542 | # Allow CC to be a program name with arguments. | ||
7543 | compiler=$CC | ||
7544 | |||
7545 | # Save the default compiler, since it gets overwritten when the other | ||
7546 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | ||
7547 | compiler_DEFAULT=$CC | ||
7548 | |||
7549 | # save warnings/boilerplate of simple test code | ||
7550 | ac_outfile=conftest.$ac_objext | ||
7551 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | ||
7552 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | ||
7553 | _lt_compiler_boilerplate=`cat conftest.err` | ||
7554 | $RM conftest* | ||
7555 | |||
7556 | ac_outfile=conftest.$ac_objext | ||
7557 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | ||
7558 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | ||
7559 | _lt_linker_boilerplate=`cat conftest.err` | ||
7560 | $RM -r conftest* | ||
7561 | |||
7562 | |||
7563 | ## CAVEAT EMPTOR: | ||
7564 | ## There is no encapsulation within the following macros, do not change | ||
7565 | ## the running order or otherwise move them around unless you know exactly | ||
7566 | ## what you are doing... | ||
7567 | if test -n "$compiler"; then | ||
7568 | |||
7569 | lt_prog_compiler_no_builtin_flag= | ||
7570 | |||
7571 | if test "$GCC" = yes; then | ||
7572 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' | ||
7573 | |||
7574 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | ||
7575 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | ||
7576 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : | ||
7577 | $as_echo_n "(cached) " >&6 | ||
7578 | else | ||
7579 | lt_cv_prog_compiler_rtti_exceptions=no | ||
7580 | ac_outfile=conftest.$ac_objext | ||
7581 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
7582 | lt_compiler_flag="-fno-rtti -fno-exceptions" | ||
7583 | # Insert the option either (1) after the last *FLAGS variable, or | ||
7584 | # (2) before a word containing "conftest.", or (3) at the end. | ||
7585 | # Note that $ac_compile itself does not contain backslashes and begins | ||
7586 | # with a dollar sign (not a hyphen), so the echo should work correctly. | ||
7587 | # The option is referenced via a variable to avoid confusing sed. | ||
7588 | lt_compile=`echo "$ac_compile" | $SED \ | ||
7589 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | ||
7590 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | ||
7591 | -e 's:$: $lt_compiler_flag:'` | ||
7592 | (eval echo "\"\$as_me:7592: $lt_compile\"" >&5) | ||
7593 | (eval "$lt_compile" 2>conftest.err) | ||
7594 | ac_status=$? | ||
7595 | cat conftest.err >&5 | ||
7596 | echo "$as_me:7596: \$? = $ac_status" >&5 | ||
7597 | if (exit $ac_status) && test -s "$ac_outfile"; then | ||
7598 | # The compiler can only warn and ignore the option if not recognized | ||
7599 | # So say no if there are warnings other than the usual output. | ||
7600 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | ||
7601 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | ||
7602 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | ||
7603 | lt_cv_prog_compiler_rtti_exceptions=yes | ||
7604 | fi | ||
7605 | fi | ||
7606 | $RM conftest* | ||
7607 | |||
7608 | fi | ||
7609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | ||
7610 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | ||
7611 | |||
7612 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | ||
7613 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | ||
7614 | else | ||
7615 | : | ||
7616 | fi | ||
7617 | |||
7618 | fi | ||
7619 | |||
7620 | |||
7621 | |||
7622 | |||
7623 | |||
7624 | |||
7625 | lt_prog_compiler_wl= | ||
7626 | lt_prog_compiler_pic= | ||
7627 | lt_prog_compiler_static= | ||
7628 | |||
7629 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | ||
7630 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | ||
7631 | |||
7632 | if test "$GCC" = yes; then | ||
7633 | lt_prog_compiler_wl='-Wl,' | ||
7634 | lt_prog_compiler_static='-static' | ||
7635 | |||
7636 | case $host_os in | ||
7637 | aix*) | ||
7638 | # All AIX code is PIC. | ||
7639 | if test "$host_cpu" = ia64; then | ||
7640 | # AIX 5 now supports IA64 processor | ||
7641 | lt_prog_compiler_static='-Bstatic' | ||
7642 | fi | ||
7643 | ;; | ||
7644 | |||
7645 | amigaos*) | ||
7646 | case $host_cpu in | ||
7647 | powerpc) | ||
7648 | # see comment about AmigaOS4 .so support | ||
7649 | lt_prog_compiler_pic='-fPIC' | ||
7650 | ;; | ||
7651 | m68k) | ||
7652 | # FIXME: we need at least 68020 code to build shared libraries, but | ||
7653 | # adding the `-m68020' flag to GCC prevents building anything better, | ||
7654 | # like `-m68040'. | ||
7655 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | ||
7656 | ;; | ||
7657 | esac | ||
7658 | ;; | ||
7659 | |||
7660 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | ||
7661 | # PIC is the default for these OSes. | ||
7662 | ;; | ||
7663 | |||
7664 | mingw* | cygwin* | pw32* | os2* | cegcc*) | ||
7665 | # This hack is so that the source file can tell whether it is being | ||
7666 | # built for inclusion in a dll (and should export symbols for example). | ||
7667 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | ||
7668 | # (--disable-auto-import) libraries | ||
7669 | lt_prog_compiler_pic='-DDLL_EXPORT' | ||
7670 | ;; | ||
7671 | |||
7672 | darwin* | rhapsody*) | ||
7673 | # PIC is the default on this platform | ||
7674 | # Common symbols not allowed in MH_DYLIB files | ||
7675 | lt_prog_compiler_pic='-fno-common' | ||
7676 | ;; | ||
7677 | |||
7678 | hpux*) | ||
7679 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | ||
7680 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | ||
7681 | # sets the default TLS model and affects inlining. | ||
7682 | case $host_cpu in | ||
7683 | hppa*64*) | ||
7684 | # +Z the default | ||
7685 | ;; | ||
7686 | *) | ||
7687 | lt_prog_compiler_pic='-fPIC' | ||
7688 | ;; | ||
7689 | esac | ||
7690 | ;; | ||
7691 | |||
7692 | interix[3-9]*) | ||
7693 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | ||
7694 | # Instead, we relocate shared libraries at runtime. | ||
7695 | ;; | ||
7696 | |||
7697 | msdosdjgpp*) | ||
7698 | # Just because we use GCC doesn't mean we suddenly get shared libraries | ||
7699 | # on systems that don't support them. | ||
7700 | lt_prog_compiler_can_build_shared=no | ||
7701 | enable_shared=no | ||
7702 | ;; | ||
7703 | |||
7704 | *nto* | *qnx*) | ||
7705 | # QNX uses GNU C++, but need to define -shared option too, otherwise | ||
7706 | # it will coredump. | ||
7707 | lt_prog_compiler_pic='-fPIC -shared' | ||
7708 | ;; | ||
7709 | |||
7710 | sysv4*MP*) | ||
7711 | if test -d /usr/nec; then | ||
7712 | lt_prog_compiler_pic=-Kconform_pic | ||
7713 | fi | ||
7714 | ;; | ||
7715 | |||
7716 | *) | ||
7717 | lt_prog_compiler_pic='-fPIC' | ||
7718 | ;; | ||
7719 | esac | ||
7720 | else | ||
7721 | # PORTME Check for flag to pass linker flags through the system compiler. | ||
7722 | case $host_os in | ||
7723 | aix*) | ||
7724 | lt_prog_compiler_wl='-Wl,' | ||
7725 | if test "$host_cpu" = ia64; then | ||
7726 | # AIX 5 now supports IA64 processor | ||
7727 | lt_prog_compiler_static='-Bstatic' | ||
7728 | else | ||
7729 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | ||
7730 | fi | ||
7731 | ;; | ||
7732 | |||
7733 | mingw* | cygwin* | pw32* | os2* | cegcc*) | ||
7734 | # This hack is so that the source file can tell whether it is being | ||
7735 | # built for inclusion in a dll (and should export symbols for example). | ||
7736 | lt_prog_compiler_pic='-DDLL_EXPORT' | ||
7737 | ;; | ||
7738 | |||
7739 | hpux9* | hpux10* | hpux11*) | ||
7740 | lt_prog_compiler_wl='-Wl,' | ||
7741 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | ||
7742 | # not for PA HP-UX. | ||
7743 | case $host_cpu in | ||
7744 | hppa*64*|ia64*) | ||
7745 | # +Z the default | ||
7746 | ;; | ||
7747 | *) | ||
7748 | lt_prog_compiler_pic='+Z' | ||
7749 | ;; | ||
7750 | esac | ||
7751 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | ||
7752 | lt_prog_compiler_static='${wl}-a ${wl}archive' | ||
7753 | ;; | ||
7754 | |||
7755 | irix5* | irix6* | nonstopux*) | ||
7756 | lt_prog_compiler_wl='-Wl,' | ||
7757 | # PIC (with -KPIC) is the default. | ||
7758 | lt_prog_compiler_static='-non_shared' | ||
7759 | ;; | ||
7760 | |||
7761 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | ||
7762 | case $cc_basename in | ||
7763 | # old Intel for x86_64 which still supported -KPIC. | ||
7764 | ecc*) | ||
7765 | lt_prog_compiler_wl='-Wl,' | ||
7766 | lt_prog_compiler_pic='-KPIC' | ||
7767 | lt_prog_compiler_static='-static' | ||
7768 | ;; | ||
7769 | # icc used to be incompatible with GCC. | ||
7770 | # ICC 10 doesn't accept -KPIC any more. | ||
7771 | icc* | ifort*) | ||
7772 | lt_prog_compiler_wl='-Wl,' | ||
7773 | lt_prog_compiler_pic='-fPIC' | ||
7774 | lt_prog_compiler_static='-static' | ||
7775 | ;; | ||
7776 | # Lahey Fortran 8.1. | ||
7777 | lf95*) | ||
7778 | lt_prog_compiler_wl='-Wl,' | ||
7779 | lt_prog_compiler_pic='--shared' | ||
7780 | lt_prog_compiler_static='--static' | ||
7781 | ;; | ||
7782 | pgcc* | pgf77* | pgf90* | pgf95*) | ||
7783 | # Portland Group compilers (*not* the Pentium gcc compiler, | ||
7784 | # which looks to be a dead project) | ||
7785 | lt_prog_compiler_wl='-Wl,' | ||
7786 | lt_prog_compiler_pic='-fpic' | ||
7787 | lt_prog_compiler_static='-Bstatic' | ||
7788 | ;; | ||
7789 | ccc*) | ||
7790 | lt_prog_compiler_wl='-Wl,' | ||
7791 | # All Alpha code is PIC. | ||
7792 | lt_prog_compiler_static='-non_shared' | ||
7793 | ;; | ||
7794 | xl*) | ||
7795 | # IBM XL C 8.0/Fortran 10.1 on PPC | ||
7796 | lt_prog_compiler_wl='-Wl,' | ||
7797 | lt_prog_compiler_pic='-qpic' | ||
7798 | lt_prog_compiler_static='-qstaticlink' | ||
7799 | ;; | ||
7800 | *) | ||
7801 | case `$CC -V 2>&1 | sed 5q` in | ||
7802 | *Sun\ C*) | ||
7803 | # Sun C 5.9 | ||
7804 | lt_prog_compiler_pic='-KPIC' | ||
7805 | lt_prog_compiler_static='-Bstatic' | ||
7806 | lt_prog_compiler_wl='-Wl,' | ||
7807 | ;; | ||
7808 | *Sun\ F*) | ||
7809 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | ||
7810 | lt_prog_compiler_pic='-KPIC' | ||
7811 | lt_prog_compiler_static='-Bstatic' | ||
7812 | lt_prog_compiler_wl='' | ||
7813 | ;; | ||
7814 | esac | ||
7815 | ;; | ||
7816 | esac | ||
7817 | ;; | ||
7818 | |||
7819 | newsos6) | ||
7820 | lt_prog_compiler_pic='-KPIC' | ||
7821 | lt_prog_compiler_static='-Bstatic' | ||
7822 | ;; | ||
7823 | |||
7824 | *nto* | *qnx*) | ||
7825 | # QNX uses GNU C++, but need to define -shared option too, otherwise | ||
7826 | # it will coredump. | ||
7827 | lt_prog_compiler_pic='-fPIC -shared' | ||
7828 | ;; | ||
7829 | |||
7830 | osf3* | osf4* | osf5*) | ||
7831 | lt_prog_compiler_wl='-Wl,' | ||
7832 | # All OSF/1 code is PIC. | ||
7833 | lt_prog_compiler_static='-non_shared' | ||
7834 | ;; | ||
7835 | |||
7836 | rdos*) | ||
7837 | lt_prog_compiler_static='-non_shared' | ||
7838 | ;; | ||
7839 | |||
7840 | solaris*) | ||
7841 | lt_prog_compiler_pic='-KPIC' | ||
7842 | lt_prog_compiler_static='-Bstatic' | ||
7843 | case $cc_basename in | ||
7844 | f77* | f90* | f95*) | ||
7845 | lt_prog_compiler_wl='-Qoption ld ';; | ||
7846 | *) | ||
7847 | lt_prog_compiler_wl='-Wl,';; | ||
7848 | esac | ||
7849 | ;; | ||
7850 | |||
7851 | sunos4*) | ||
7852 | lt_prog_compiler_wl='-Qoption ld ' | ||
7853 | lt_prog_compiler_pic='-PIC' | ||
7854 | lt_prog_compiler_static='-Bstatic' | ||
7855 | ;; | ||
7856 | |||
7857 | sysv4 | sysv4.2uw2* | sysv4.3*) | ||
7858 | lt_prog_compiler_wl='-Wl,' | ||
7859 | lt_prog_compiler_pic='-KPIC' | ||
7860 | lt_prog_compiler_static='-Bstatic' | ||
7861 | ;; | ||
7862 | |||
7863 | sysv4*MP*) | ||
7864 | if test -d /usr/nec ;then | ||
7865 | lt_prog_compiler_pic='-Kconform_pic' | ||
7866 | lt_prog_compiler_static='-Bstatic' | ||
7867 | fi | ||
7868 | ;; | ||
7869 | |||
7870 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | ||
7871 | lt_prog_compiler_wl='-Wl,' | ||
7872 | lt_prog_compiler_pic='-KPIC' | ||
7873 | lt_prog_compiler_static='-Bstatic' | ||
7874 | ;; | ||
7875 | |||
7876 | unicos*) | ||
7877 | lt_prog_compiler_wl='-Wl,' | ||
7878 | lt_prog_compiler_can_build_shared=no | ||
7879 | ;; | ||
7880 | |||
7881 | uts4*) | ||
7882 | lt_prog_compiler_pic='-pic' | ||
7883 | lt_prog_compiler_static='-Bstatic' | ||
7884 | ;; | ||
7885 | |||
7886 | *) | ||
7887 | lt_prog_compiler_can_build_shared=no | ||
7888 | ;; | ||
7889 | esac | ||
7890 | fi | ||
7891 | |||
7892 | case $host_os in | ||
7893 | # For platforms which do not support PIC, -DPIC is meaningless: | ||
7894 | *djgpp*) | ||
7895 | lt_prog_compiler_pic= | ||
7896 | ;; | ||
7897 | *) | ||
7898 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | ||
7899 | ;; | ||
7900 | esac | ||
7901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 | ||
7902 | $as_echo "$lt_prog_compiler_pic" >&6; } | ||
7903 | |||
7904 | |||
7905 | |||
7906 | |||
7907 | |||
7908 | |||
7909 | # | ||
7910 | # Check to make sure the PIC flag actually works. | ||
7911 | # | ||
7912 | if test -n "$lt_prog_compiler_pic"; then | ||
7913 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | ||
7914 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | ||
7915 | if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : | ||
7916 | $as_echo_n "(cached) " >&6 | ||
7917 | else | ||
7918 | lt_cv_prog_compiler_pic_works=no | ||
7919 | ac_outfile=conftest.$ac_objext | ||
7920 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
7921 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | ||
7922 | # Insert the option either (1) after the last *FLAGS variable, or | ||
7923 | # (2) before a word containing "conftest.", or (3) at the end. | ||
7924 | # Note that $ac_compile itself does not contain backslashes and begins | ||
7925 | # with a dollar sign (not a hyphen), so the echo should work correctly. | ||
7926 | # The option is referenced via a variable to avoid confusing sed. | ||
7927 | lt_compile=`echo "$ac_compile" | $SED \ | ||
7928 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | ||
7929 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | ||
7930 | -e 's:$: $lt_compiler_flag:'` | ||
7931 | (eval echo "\"\$as_me:7931: $lt_compile\"" >&5) | ||
7932 | (eval "$lt_compile" 2>conftest.err) | ||
7933 | ac_status=$? | ||
7934 | cat conftest.err >&5 | ||
7935 | echo "$as_me:7935: \$? = $ac_status" >&5 | ||
7936 | if (exit $ac_status) && test -s "$ac_outfile"; then | ||
7937 | # The compiler can only warn and ignore the option if not recognized | ||
7938 | # So say no if there are warnings other than the usual output. | ||
7939 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | ||
7940 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | ||
7941 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | ||
7942 | lt_cv_prog_compiler_pic_works=yes | ||
7943 | fi | ||
7944 | fi | ||
7945 | $RM conftest* | ||
7946 | |||
7947 | fi | ||
7948 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 | ||
7949 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | ||
7950 | |||
7951 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then | ||
7952 | case $lt_prog_compiler_pic in | ||
7953 | "" | " "*) ;; | ||
7954 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | ||
7955 | esac | ||
7956 | else | ||
7957 | lt_prog_compiler_pic= | ||
7958 | lt_prog_compiler_can_build_shared=no | ||
7959 | fi | ||
7960 | |||
7961 | fi | ||
7962 | |||
7963 | |||
7964 | |||
7965 | |||
7966 | |||
7967 | |||
7968 | # | ||
7969 | # Check to make sure the static flag actually works. | ||
7970 | # | ||
7971 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | ||
7972 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | ||
7973 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | ||
7974 | if test "${lt_cv_prog_compiler_static_works+set}" = set; then : | ||
7975 | $as_echo_n "(cached) " >&6 | ||
7976 | else | ||
7977 | lt_cv_prog_compiler_static_works=no | ||
7978 | save_LDFLAGS="$LDFLAGS" | ||
7979 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | ||
7980 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | ||
7981 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | ||
7982 | # The linker can only warn and ignore the option if not recognized | ||
7983 | # So say no if there are warnings | ||
7984 | if test -s conftest.err; then | ||
7985 | # Append any errors to the config.log. | ||
7986 | cat conftest.err 1>&5 | ||
7987 | $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | ||
7988 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | ||
7989 | if diff conftest.exp conftest.er2 >/dev/null; then | ||
7990 | lt_cv_prog_compiler_static_works=yes | ||
7991 | fi | ||
7992 | else | ||
7993 | lt_cv_prog_compiler_static_works=yes | ||
7994 | fi | ||
7995 | fi | ||
7996 | $RM -r conftest* | ||
7997 | LDFLAGS="$save_LDFLAGS" | ||
7998 | |||
7999 | fi | ||
8000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 | ||
8001 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | ||
8002 | |||
8003 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then | ||
8004 | : | ||
8005 | else | ||
8006 | lt_prog_compiler_static= | ||
8007 | fi | ||
8008 | |||
8009 | |||
8010 | |||
8011 | |||
8012 | |||
8013 | |||
8014 | |||
8015 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | ||
8016 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | ||
8017 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then : | ||
8018 | $as_echo_n "(cached) " >&6 | ||
8019 | else | ||
8020 | lt_cv_prog_compiler_c_o=no | ||
8021 | $RM -r conftest 2>/dev/null | ||
8022 | mkdir conftest | ||
8023 | cd conftest | ||
8024 | mkdir out | ||
8025 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
8026 | |||
8027 | lt_compiler_flag="-o out/conftest2.$ac_objext" | ||
8028 | # Insert the option either (1) after the last *FLAGS variable, or | ||
8029 | # (2) before a word containing "conftest.", or (3) at the end. | ||
8030 | # Note that $ac_compile itself does not contain backslashes and begins | ||
8031 | # with a dollar sign (not a hyphen), so the echo should work correctly. | ||
8032 | lt_compile=`echo "$ac_compile" | $SED \ | ||
8033 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | ||
8034 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | ||
8035 | -e 's:$: $lt_compiler_flag:'` | ||
8036 | (eval echo "\"\$as_me:8036: $lt_compile\"" >&5) | ||
8037 | (eval "$lt_compile" 2>out/conftest.err) | ||
8038 | ac_status=$? | ||
8039 | cat out/conftest.err >&5 | ||
8040 | echo "$as_me:8040: \$? = $ac_status" >&5 | ||
8041 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | ||
8042 | then | ||
8043 | # The compiler can only warn and ignore the option if not recognized | ||
8044 | # So say no if there are warnings | ||
8045 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | ||
8046 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | ||
8047 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | ||
8048 | lt_cv_prog_compiler_c_o=yes | ||
8049 | fi | ||
8050 | fi | ||
8051 | chmod u+w . 2>&5 | ||
8052 | $RM conftest* | ||
8053 | # SGI C++ compiler will create directory out/ii_files/ for | ||
8054 | # template instantiation | ||
8055 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | ||
8056 | $RM out/* && rmdir out | ||
8057 | cd .. | ||
8058 | $RM -r conftest | ||
8059 | $RM conftest* | ||
8060 | |||
8061 | fi | ||
8062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | ||
8063 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | ||
8064 | |||
8065 | |||
8066 | |||
8067 | |||
8068 | |||
8069 | |||
8070 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | ||
8071 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | ||
8072 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then : | ||
8073 | $as_echo_n "(cached) " >&6 | ||
8074 | else | ||
8075 | lt_cv_prog_compiler_c_o=no | ||
8076 | $RM -r conftest 2>/dev/null | ||
8077 | mkdir conftest | ||
8078 | cd conftest | ||
8079 | mkdir out | ||
8080 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
8081 | |||
8082 | lt_compiler_flag="-o out/conftest2.$ac_objext" | ||
8083 | # Insert the option either (1) after the last *FLAGS variable, or | ||
8084 | # (2) before a word containing "conftest.", or (3) at the end. | ||
8085 | # Note that $ac_compile itself does not contain backslashes and begins | ||
8086 | # with a dollar sign (not a hyphen), so the echo should work correctly. | ||
8087 | lt_compile=`echo "$ac_compile" | $SED \ | ||
8088 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | ||
8089 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | ||
8090 | -e 's:$: $lt_compiler_flag:'` | ||
8091 | (eval echo "\"\$as_me:8091: $lt_compile\"" >&5) | ||
8092 | (eval "$lt_compile" 2>out/conftest.err) | ||
8093 | ac_status=$? | ||
8094 | cat out/conftest.err >&5 | ||
8095 | echo "$as_me:8095: \$? = $ac_status" >&5 | ||
8096 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | ||
8097 | then | ||
8098 | # The compiler can only warn and ignore the option if not recognized | ||
8099 | # So say no if there are warnings | ||
8100 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | ||
8101 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | ||
8102 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | ||
8103 | lt_cv_prog_compiler_c_o=yes | ||
8104 | fi | ||
8105 | fi | ||
8106 | chmod u+w . 2>&5 | ||
8107 | $RM conftest* | ||
8108 | # SGI C++ compiler will create directory out/ii_files/ for | ||
8109 | # template instantiation | ||
8110 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | ||
8111 | $RM out/* && rmdir out | ||
8112 | cd .. | ||
8113 | $RM -r conftest | ||
8114 | $RM conftest* | ||
8115 | |||
8116 | fi | ||
8117 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | ||
8118 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | ||
8119 | |||
8120 | |||
8121 | |||
8122 | |||
8123 | hard_links="nottested" | ||
8124 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | ||
8125 | # do not overwrite the value of need_locks provided by the user | ||
8126 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | ||
8127 | $as_echo_n "checking if we can lock with hard links... " >&6; } | ||
8128 | hard_links=yes | ||
8129 | $RM conftest* | ||
8130 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | ||
8131 | touch conftest.a | ||
8132 | ln conftest.a conftest.b 2>&5 || hard_links=no | ||
8133 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | ||
8134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | ||
8135 | $as_echo "$hard_links" >&6; } | ||
8136 | if test "$hard_links" = no; then | ||
8137 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | ||
8138 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | ||
8139 | need_locks=warn | ||
8140 | fi | ||
8141 | else | ||
8142 | need_locks=no | ||
8143 | fi | ||
8144 | |||
8145 | |||
8146 | |||
8147 | |||
8148 | |||
8149 | |||
8150 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | ||
8151 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | ||
8152 | |||
8153 | runpath_var= | ||
8154 | allow_undefined_flag= | ||
8155 | always_export_symbols=no | ||
8156 | archive_cmds= | ||
8157 | archive_expsym_cmds= | ||
8158 | compiler_needs_object=no | ||
8159 | enable_shared_with_static_runtimes=no | ||
8160 | export_dynamic_flag_spec= | ||
8161 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | ||
8162 | hardcode_automatic=no | ||
8163 | hardcode_direct=no | ||
8164 | hardcode_direct_absolute=no | ||
8165 | hardcode_libdir_flag_spec= | ||
8166 | hardcode_libdir_flag_spec_ld= | ||
8167 | hardcode_libdir_separator= | ||
8168 | hardcode_minus_L=no | ||
8169 | hardcode_shlibpath_var=unsupported | ||
8170 | inherit_rpath=no | ||
8171 | link_all_deplibs=unknown | ||
8172 | module_cmds= | ||
8173 | module_expsym_cmds= | ||
8174 | old_archive_from_new_cmds= | ||
8175 | old_archive_from_expsyms_cmds= | ||
8176 | thread_safe_flag_spec= | ||
8177 | whole_archive_flag_spec= | ||
8178 | # include_expsyms should be a list of space-separated symbols to be *always* | ||
8179 | # included in the symbol list | ||
8180 | include_expsyms= | ||
8181 | # exclude_expsyms can be an extended regexp of symbols to exclude | ||
8182 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | ||
8183 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | ||
8184 | # as well as any symbol that contains `d'. | ||
8185 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | ||
8186 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | ||
8187 | # platforms (ab)use it in PIC code, but their linkers get confused if | ||
8188 | # the symbol is explicitly referenced. Since portable code cannot | ||
8189 | # rely on this symbol name, it's probably fine to never include it in | ||
8190 | # preloaded symbol tables. | ||
8191 | # Exclude shared library initialization/finalization symbols. | ||
8192 | extract_expsyms_cmds= | ||
8193 | |||
8194 | case $host_os in | ||
8195 | cygwin* | mingw* | pw32* | cegcc*) | ||
8196 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | ||
8197 | # When not using gcc, we currently assume that we are using | ||
8198 | # Microsoft Visual C++. | ||
8199 | if test "$GCC" != yes; then | ||
8200 | with_gnu_ld=no | ||
8201 | fi | ||
8202 | ;; | ||
8203 | interix*) | ||
8204 | # we just hope/assume this is gcc and not c89 (= MSVC++) | ||
8205 | with_gnu_ld=yes | ||
8206 | ;; | ||
8207 | openbsd*) | ||
8208 | with_gnu_ld=no | ||
8209 | ;; | ||
8210 | linux* | k*bsd*-gnu) | ||
8211 | link_all_deplibs=no | ||
8212 | ;; | ||
8213 | esac | ||
8214 | |||
8215 | ld_shlibs=yes | ||
8216 | if test "$with_gnu_ld" = yes; then | ||
8217 | # If archive_cmds runs LD, not CC, wlarc should be empty | ||
8218 | wlarc='${wl}' | ||
8219 | |||
8220 | # Set some defaults for GNU ld with shared library support. These | ||
8221 | # are reset later if shared libraries are not supported. Putting them | ||
8222 | # here allows them to be overridden if necessary. | ||
8223 | runpath_var=LD_RUN_PATH | ||
8224 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | ||
8225 | export_dynamic_flag_spec='${wl}--export-dynamic' | ||
8226 | # ancient GNU ld didn't support --whole-archive et. al. | ||
8227 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | ||
8228 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | ||
8229 | else | ||
8230 | whole_archive_flag_spec= | ||
8231 | fi | ||
8232 | supports_anon_versioning=no | ||
8233 | case `$LD -v 2>&1` in | ||
8234 | *GNU\ gold*) supports_anon_versioning=yes ;; | ||
8235 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | ||
8236 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | ||
8237 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | ||
8238 | *\ 2.11.*) ;; # other 2.11 versions | ||
8239 | *) supports_anon_versioning=yes ;; | ||
8240 | esac | ||
8241 | |||
8242 | # See if GNU ld supports shared libraries. | ||
8243 | case $host_os in | ||
8244 | aix[3-9]*) | ||
8245 | # On AIX/PPC, the GNU linker is very broken | ||
8246 | if test "$host_cpu" != ia64; then | ||
8247 | ld_shlibs=no | ||
8248 | cat <<_LT_EOF 1>&2 | ||
8249 | |||
8250 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported | ||
8251 | *** to be unable to reliably create shared libraries on AIX. | ||
8252 | *** Therefore, libtool is disabling shared libraries support. If you | ||
8253 | *** really care for shared libraries, you may want to modify your PATH | ||
8254 | *** so that a non-GNU linker is found, and then restart. | ||
8255 | |||
8256 | _LT_EOF | ||
8257 | fi | ||
8258 | ;; | ||
8259 | |||
8260 | amigaos*) | ||
8261 | case $host_cpu in | ||
8262 | powerpc) | ||
8263 | # see comment about AmigaOS4 .so support | ||
8264 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
8265 | archive_expsym_cmds='' | ||
8266 | ;; | ||
8267 | m68k) | ||
8268 | 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)' | ||
8269 | hardcode_libdir_flag_spec='-L$libdir' | ||
8270 | hardcode_minus_L=yes | ||
8271 | ;; | ||
8272 | esac | ||
8273 | ;; | ||
8274 | |||
8275 | beos*) | ||
8276 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | ||
8277 | allow_undefined_flag=unsupported | ||
8278 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | ||
8279 | # support --undefined. This deserves some investigation. FIXME | ||
8280 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
8281 | else | ||
8282 | ld_shlibs=no | ||
8283 | fi | ||
8284 | ;; | ||
8285 | |||
8286 | cygwin* | mingw* | pw32* | cegcc*) | ||
8287 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | ||
8288 | # as there is no search path for DLLs. | ||
8289 | hardcode_libdir_flag_spec='-L$libdir' | ||
8290 | allow_undefined_flag=unsupported | ||
8291 | always_export_symbols=no | ||
8292 | enable_shared_with_static_runtimes=yes | ||
8293 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | ||
8294 | |||
8295 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | ||
8296 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | ||
8297 | # If the export-symbols file already is a .def file (1st line | ||
8298 | # is EXPORTS), use it as is; otherwise, prepend... | ||
8299 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | ||
8300 | cp $export_symbols $output_objdir/$soname.def; | ||
8301 | else | ||
8302 | echo EXPORTS > $output_objdir/$soname.def; | ||
8303 | cat $export_symbols >> $output_objdir/$soname.def; | ||
8304 | fi~ | ||
8305 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | ||
8306 | else | ||
8307 | ld_shlibs=no | ||
8308 | fi | ||
8309 | ;; | ||
8310 | |||
8311 | interix[3-9]*) | ||
8312 | hardcode_direct=no | ||
8313 | hardcode_shlibpath_var=no | ||
8314 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | ||
8315 | export_dynamic_flag_spec='${wl}-E' | ||
8316 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | ||
8317 | # Instead, shared libraries are loaded at an image base (0x10000000 by | ||
8318 | # default) and relocated if they conflict, which is a slow very memory | ||
8319 | # consuming and fragmenting process. To avoid this, we pick a random, | ||
8320 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | ||
8321 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | ||
8322 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | ||
8323 | 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' | ||
8324 | ;; | ||
8325 | |||
8326 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) | ||
8327 | tmp_diet=no | ||
8328 | if test "$host_os" = linux-dietlibc; then | ||
8329 | case $cc_basename in | ||
8330 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | ||
8331 | esac | ||
8332 | fi | ||
8333 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | ||
8334 | && test "$tmp_diet" = no | ||
8335 | then | ||
8336 | tmp_addflag= | ||
8337 | tmp_sharedflag='-shared' | ||
8338 | case $cc_basename,$host_cpu in | ||
8339 | pgcc*) # Portland Group C compiler | ||
8340 | 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' | ||
8341 | tmp_addflag=' $pic_flag' | ||
8342 | ;; | ||
8343 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers | ||
8344 | 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' | ||
8345 | tmp_addflag=' $pic_flag -Mnomain' ;; | ||
8346 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | ||
8347 | tmp_addflag=' -i_dynamic' ;; | ||
8348 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | ||
8349 | tmp_addflag=' -i_dynamic -nofor_main' ;; | ||
8350 | ifc* | ifort*) # Intel Fortran compiler | ||
8351 | tmp_addflag=' -nofor_main' ;; | ||
8352 | lf95*) # Lahey Fortran 8.1 | ||
8353 | whole_archive_flag_spec= | ||
8354 | tmp_sharedflag='--shared' ;; | ||
8355 | xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) | ||
8356 | tmp_sharedflag='-qmkshrobj' | ||
8357 | tmp_addflag= ;; | ||
8358 | esac | ||
8359 | case `$CC -V 2>&1 | sed 5q` in | ||
8360 | *Sun\ C*) # Sun C 5.9 | ||
8361 | 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' | ||
8362 | compiler_needs_object=yes | ||
8363 | tmp_sharedflag='-G' ;; | ||
8364 | *Sun\ F*) # Sun Fortran 8.3 | ||
8365 | tmp_sharedflag='-G' ;; | ||
8366 | esac | ||
8367 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
8368 | |||
8369 | if test "x$supports_anon_versioning" = xyes; then | ||
8370 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | ||
8371 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | ||
8372 | echo "local: *; };" >> $output_objdir/$libname.ver~ | ||
8373 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | ||
8374 | fi | ||
8375 | |||
8376 | case $cc_basename in | ||
8377 | xlf*) | ||
8378 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | ||
8379 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | ||
8380 | hardcode_libdir_flag_spec= | ||
8381 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | ||
8382 | archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | ||
8383 | if test "x$supports_anon_versioning" = xyes; then | ||
8384 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | ||
8385 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | ||
8386 | echo "local: *; };" >> $output_objdir/$libname.ver~ | ||
8387 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | ||
8388 | fi | ||
8389 | ;; | ||
8390 | esac | ||
8391 | else | ||
8392 | ld_shlibs=no | ||
8393 | fi | ||
8394 | ;; | ||
8395 | |||
8396 | netbsd* | netbsdelf*-gnu) | ||
8397 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | ||
8398 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | ||
8399 | wlarc= | ||
8400 | else | ||
8401 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
8402 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
8403 | fi | ||
8404 | ;; | ||
8405 | |||
8406 | solaris*) | ||
8407 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | ||
8408 | ld_shlibs=no | ||
8409 | cat <<_LT_EOF 1>&2 | ||
8410 | |||
8411 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | ||
8412 | *** create shared libraries on Solaris systems. Therefore, libtool | ||
8413 | *** is disabling shared libraries support. We urge you to upgrade GNU | ||
8414 | *** binutils to release 2.9.1 or newer. Another option is to modify | ||
8415 | *** your PATH or compiler configuration so that the native linker is | ||
8416 | *** used, and then restart. | ||
8417 | |||
8418 | _LT_EOF | ||
8419 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | ||
8420 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
8421 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
8422 | else | ||
8423 | ld_shlibs=no | ||
8424 | fi | ||
8425 | ;; | ||
8426 | |||
8427 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | ||
8428 | case `$LD -v 2>&1` in | ||
8429 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | ||
8430 | ld_shlibs=no | ||
8431 | cat <<_LT_EOF 1>&2 | ||
8432 | |||
8433 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | ||
8434 | *** reliably create shared libraries on SCO systems. Therefore, libtool | ||
8435 | *** is disabling shared libraries support. We urge you to upgrade GNU | ||
8436 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | ||
8437 | *** your PATH or compiler configuration so that the native linker is | ||
8438 | *** used, and then restart. | ||
8439 | |||
8440 | _LT_EOF | ||
8441 | ;; | ||
8442 | *) | ||
8443 | # For security reasons, it is highly recommended that you always | ||
8444 | # use absolute paths for naming shared libraries, and exclude the | ||
8445 | # DT_RUNPATH tag from executables and libraries. But doing so | ||
8446 | # requires that you compile everything twice, which is a pain. | ||
8447 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | ||
8448 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | ||
8449 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
8450 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
8451 | else | ||
8452 | ld_shlibs=no | ||
8453 | fi | ||
8454 | ;; | ||
8455 | esac | ||
8456 | ;; | ||
8457 | |||
8458 | sunos4*) | ||
8459 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | ||
8460 | wlarc= | ||
8461 | hardcode_direct=yes | ||
8462 | hardcode_shlibpath_var=no | ||
8463 | ;; | ||
8464 | |||
8465 | *) | ||
8466 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | ||
8467 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
8468 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
8469 | else | ||
8470 | ld_shlibs=no | ||
8471 | fi | ||
8472 | ;; | ||
8473 | esac | ||
8474 | |||
8475 | if test "$ld_shlibs" = no; then | ||
8476 | runpath_var= | ||
8477 | hardcode_libdir_flag_spec= | ||
8478 | export_dynamic_flag_spec= | ||
8479 | whole_archive_flag_spec= | ||
8480 | fi | ||
8481 | else | ||
8482 | # PORTME fill in a description of your system's linker (not GNU ld) | ||
8483 | case $host_os in | ||
8484 | aix3*) | ||
8485 | allow_undefined_flag=unsupported | ||
8486 | always_export_symbols=yes | ||
8487 | 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' | ||
8488 | # Note: this linker hardcodes the directories in LIBPATH if there | ||
8489 | # are no directories specified by -L. | ||
8490 | hardcode_minus_L=yes | ||
8491 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | ||
8492 | # Neither direct hardcoding nor static linking is supported with a | ||
8493 | # broken collect2. | ||
8494 | hardcode_direct=unsupported | ||
8495 | fi | ||
8496 | ;; | ||
8497 | |||
8498 | aix[4-9]*) | ||
8499 | if test "$host_cpu" = ia64; then | ||
8500 | # On IA64, the linker does run time linking by default, so we don't | ||
8501 | # have to do anything special. | ||
8502 | aix_use_runtimelinking=no | ||
8503 | exp_sym_flag='-Bexport' | ||
8504 | no_entry_flag="" | ||
8505 | else | ||
8506 | # If we're using GNU nm, then we don't want the "-C" option. | ||
8507 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | ||
8508 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | ||
8509 | 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' | ||
8510 | else | ||
8511 | 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' | ||
8512 | fi | ||
8513 | aix_use_runtimelinking=no | ||
8514 | |||
8515 | # Test if we are trying to use run time linking or normal | ||
8516 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | ||
8517 | # need to do runtime linking. | ||
8518 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | ||
8519 | for ld_flag in $LDFLAGS; do | ||
8520 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | ||
8521 | aix_use_runtimelinking=yes | ||
8522 | break | ||
8523 | fi | ||
8524 | done | ||
8525 | ;; | ||
8526 | esac | ||
8527 | |||
8528 | exp_sym_flag='-bexport' | ||
8529 | no_entry_flag='-bnoentry' | ||
8530 | fi | ||
8531 | |||
8532 | # When large executables or shared objects are built, AIX ld can | ||
8533 | # have problems creating the table of contents. If linking a library | ||
8534 | # or program results in "error TOC overflow" add -mminimal-toc to | ||
8535 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | ||
8536 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | ||
8537 | |||
8538 | archive_cmds='' | ||
8539 | hardcode_direct=yes | ||
8540 | hardcode_direct_absolute=yes | ||
8541 | hardcode_libdir_separator=':' | ||
8542 | link_all_deplibs=yes | ||
8543 | file_list_spec='${wl}-f,' | ||
8544 | |||
8545 | if test "$GCC" = yes; then | ||
8546 | case $host_os in aix4.[012]|aix4.[012].*) | ||
8547 | # We only want to do this on AIX 4.2 and lower, the check | ||
8548 | # below for broken collect2 doesn't work under 4.3+ | ||
8549 | collect2name=`${CC} -print-prog-name=collect2` | ||
8550 | if test -f "$collect2name" && | ||
8551 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | ||
8552 | then | ||
8553 | # We have reworked collect2 | ||
8554 | : | ||
8555 | else | ||
8556 | # We have old collect2 | ||
8557 | hardcode_direct=unsupported | ||
8558 | # It fails to find uninstalled libraries when the uninstalled | ||
8559 | # path is not listed in the libpath. Setting hardcode_minus_L | ||
8560 | # to unsupported forces relinking | ||
8561 | hardcode_minus_L=yes | ||
8562 | hardcode_libdir_flag_spec='-L$libdir' | ||
8563 | hardcode_libdir_separator= | ||
8564 | fi | ||
8565 | ;; | ||
8566 | esac | ||
8567 | shared_flag='-shared' | ||
8568 | if test "$aix_use_runtimelinking" = yes; then | ||
8569 | shared_flag="$shared_flag "'${wl}-G' | ||
8570 | fi | ||
8571 | link_all_deplibs=no | ||
8572 | else | ||
8573 | # not using gcc | ||
8574 | if test "$host_cpu" = ia64; then | ||
8575 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | ||
8576 | # chokes on -Wl,-G. The following line is correct: | ||
8577 | shared_flag='-G' | ||
8578 | else | ||
8579 | if test "$aix_use_runtimelinking" = yes; then | ||
8580 | shared_flag='${wl}-G' | ||
8581 | else | ||
8582 | shared_flag='${wl}-bM:SRE' | ||
8583 | fi | ||
8584 | fi | ||
8585 | fi | ||
8586 | |||
8587 | export_dynamic_flag_spec='${wl}-bexpall' | ||
8588 | # It seems that -bexpall does not export symbols beginning with | ||
8589 | # underscore (_), so it is better to generate a list of symbols to export. | ||
8590 | always_export_symbols=yes | ||
8591 | if test "$aix_use_runtimelinking" = yes; then | ||
8592 | # Warning - without using the other runtime loading flags (-brtl), | ||
8593 | # -berok will link without error, but may produce a broken library. | ||
8594 | allow_undefined_flag='-berok' | ||
8595 | # Determine the default libpath from the value encoded in an | ||
8596 | # empty executable. | ||
8597 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8598 | /* end confdefs.h. */ | ||
8599 | |||
8600 | int | ||
8601 | main () | ||
8602 | { | ||
8603 | |||
8604 | ; | ||
8605 | return 0; | ||
8606 | } | ||
8607 | _ACEOF | ||
8608 | if ac_fn_c_try_link "$LINENO"; then : | ||
8609 | |||
8610 | lt_aix_libpath_sed=' | ||
8611 | /Import File Strings/,/^$/ { | ||
8612 | /^0/ { | ||
8613 | s/^0 *\(.*\)$/\1/ | ||
8614 | p | ||
8615 | } | ||
8616 | }' | ||
8617 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
8618 | # Check for a 64-bit object if we didn't find anything. | ||
8619 | if test -z "$aix_libpath"; then | ||
8620 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
8621 | fi | ||
8622 | fi | ||
8623 | rm -f core conftest.err conftest.$ac_objext \ | ||
8624 | conftest$ac_exeext conftest.$ac_ext | ||
8625 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
8626 | |||
8627 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | ||
8628 | 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" | ||
8629 | else | ||
8630 | if test "$host_cpu" = ia64; then | ||
8631 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | ||
8632 | allow_undefined_flag="-z nodefs" | ||
8633 | 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" | ||
8634 | else | ||
8635 | # Determine the default libpath from the value encoded in an | ||
8636 | # empty executable. | ||
8637 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8638 | /* end confdefs.h. */ | ||
8639 | |||
8640 | int | ||
8641 | main () | ||
8642 | { | ||
8643 | |||
8644 | ; | ||
8645 | return 0; | ||
8646 | } | ||
8647 | _ACEOF | ||
8648 | if ac_fn_c_try_link "$LINENO"; then : | ||
8649 | |||
8650 | lt_aix_libpath_sed=' | ||
8651 | /Import File Strings/,/^$/ { | ||
8652 | /^0/ { | ||
8653 | s/^0 *\(.*\)$/\1/ | ||
8654 | p | ||
8655 | } | ||
8656 | }' | ||
8657 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
8658 | # Check for a 64-bit object if we didn't find anything. | ||
8659 | if test -z "$aix_libpath"; then | ||
8660 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
8661 | fi | ||
8662 | fi | ||
8663 | rm -f core conftest.err conftest.$ac_objext \ | ||
8664 | conftest$ac_exeext conftest.$ac_ext | ||
8665 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
8666 | |||
8667 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | ||
8668 | # Warning - without using the other run time loading flags, | ||
8669 | # -berok will link without error, but may produce a broken library. | ||
8670 | no_undefined_flag=' ${wl}-bernotok' | ||
8671 | allow_undefined_flag=' ${wl}-berok' | ||
8672 | # Exported symbols can be pulled into shared objects from archives | ||
8673 | whole_archive_flag_spec='$convenience' | ||
8674 | archive_cmds_need_lc=yes | ||
8675 | # This is similar to how AIX traditionally builds its shared libraries. | ||
8676 | 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' | ||
8677 | fi | ||
8678 | fi | ||
8679 | ;; | ||
8680 | |||
8681 | amigaos*) | ||
8682 | case $host_cpu in | ||
8683 | powerpc) | ||
8684 | # see comment about AmigaOS4 .so support | ||
8685 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
8686 | archive_expsym_cmds='' | ||
8687 | ;; | ||
8688 | m68k) | ||
8689 | 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)' | ||
8690 | hardcode_libdir_flag_spec='-L$libdir' | ||
8691 | hardcode_minus_L=yes | ||
8692 | ;; | ||
8693 | esac | ||
8694 | ;; | ||
8695 | |||
8696 | bsdi[45]*) | ||
8697 | export_dynamic_flag_spec=-rdynamic | ||
8698 | ;; | ||
8699 | |||
8700 | cygwin* | mingw* | pw32* | cegcc*) | ||
8701 | # When not using gcc, we currently assume that we are using | ||
8702 | # Microsoft Visual C++. | ||
8703 | # hardcode_libdir_flag_spec is actually meaningless, as there is | ||
8704 | # no search path for DLLs. | ||
8705 | hardcode_libdir_flag_spec=' ' | ||
8706 | allow_undefined_flag=unsupported | ||
8707 | # Tell ltmain to make .lib files, not .a files. | ||
8708 | libext=lib | ||
8709 | # Tell ltmain to make .dll files, not .so files. | ||
8710 | shrext_cmds=".dll" | ||
8711 | # FIXME: Setting linknames here is a bad hack. | ||
8712 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' | ||
8713 | # The linker will automatically build a .lib file if we build a DLL. | ||
8714 | old_archive_from_new_cmds='true' | ||
8715 | # FIXME: Should let the user specify the lib program. | ||
8716 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | ||
8717 | fix_srcfile_path='`cygpath -w "$srcfile"`' | ||
8718 | enable_shared_with_static_runtimes=yes | ||
8719 | ;; | ||
8720 | |||
8721 | darwin* | rhapsody*) | ||
8722 | |||
8723 | |||
8724 | archive_cmds_need_lc=no | ||
8725 | hardcode_direct=no | ||
8726 | hardcode_automatic=yes | ||
8727 | hardcode_shlibpath_var=unsupported | ||
8728 | whole_archive_flag_spec='' | ||
8729 | link_all_deplibs=yes | ||
8730 | allow_undefined_flag="$_lt_dar_allow_undefined" | ||
8731 | case $cc_basename in | ||
8732 | ifort*) _lt_dar_can_shared=yes ;; | ||
8733 | *) _lt_dar_can_shared=$GCC ;; | ||
8734 | esac | ||
8735 | if test "$_lt_dar_can_shared" = "yes"; then | ||
8736 | output_verbose_link_cmd=echo | ||
8737 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" | ||
8738 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | ||
8739 | 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}" | ||
8740 | 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}" | ||
8741 | |||
8742 | else | ||
8743 | ld_shlibs=no | ||
8744 | fi | ||
8745 | |||
8746 | ;; | ||
8747 | |||
8748 | dgux*) | ||
8749 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
8750 | hardcode_libdir_flag_spec='-L$libdir' | ||
8751 | hardcode_shlibpath_var=no | ||
8752 | ;; | ||
8753 | |||
8754 | freebsd1*) | ||
8755 | ld_shlibs=no | ||
8756 | ;; | ||
8757 | |||
8758 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | ||
8759 | # support. Future versions do this automatically, but an explicit c++rt0.o | ||
8760 | # does not break anything, and helps significantly (at the cost of a little | ||
8761 | # extra space). | ||
8762 | freebsd2.2*) | ||
8763 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | ||
8764 | hardcode_libdir_flag_spec='-R$libdir' | ||
8765 | hardcode_direct=yes | ||
8766 | hardcode_shlibpath_var=no | ||
8767 | ;; | ||
8768 | |||
8769 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | ||
8770 | freebsd2*) | ||
8771 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | ||
8772 | hardcode_direct=yes | ||
8773 | hardcode_minus_L=yes | ||
8774 | hardcode_shlibpath_var=no | ||
8775 | ;; | ||
8776 | |||
8777 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | ||
8778 | freebsd* | dragonfly*) | ||
8779 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | ||
8780 | hardcode_libdir_flag_spec='-R$libdir' | ||
8781 | hardcode_direct=yes | ||
8782 | hardcode_shlibpath_var=no | ||
8783 | ;; | ||
8784 | |||
8785 | hpux9*) | ||
8786 | if test "$GCC" = yes; then | ||
8787 | 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' | ||
8788 | else | ||
8789 | 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' | ||
8790 | fi | ||
8791 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | ||
8792 | hardcode_libdir_separator=: | ||
8793 | hardcode_direct=yes | ||
8794 | |||
8795 | # hardcode_minus_L: Not really in the search PATH, | ||
8796 | # but as the default location of the library. | ||
8797 | hardcode_minus_L=yes | ||
8798 | export_dynamic_flag_spec='${wl}-E' | ||
8799 | ;; | ||
8800 | |||
8801 | hpux10*) | ||
8802 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | ||
8803 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
8804 | else | ||
8805 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | ||
8806 | fi | ||
8807 | if test "$with_gnu_ld" = no; then | ||
8808 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | ||
8809 | hardcode_libdir_flag_spec_ld='+b $libdir' | ||
8810 | hardcode_libdir_separator=: | ||
8811 | hardcode_direct=yes | ||
8812 | hardcode_direct_absolute=yes | ||
8813 | export_dynamic_flag_spec='${wl}-E' | ||
8814 | # hardcode_minus_L: Not really in the search PATH, | ||
8815 | # but as the default location of the library. | ||
8816 | hardcode_minus_L=yes | ||
8817 | fi | ||
8818 | ;; | ||
8819 | |||
8820 | hpux11*) | ||
8821 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | ||
8822 | case $host_cpu in | ||
8823 | hppa*64*) | ||
8824 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
8825 | ;; | ||
8826 | ia64*) | ||
8827 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | ||
8828 | ;; | ||
8829 | *) | ||
8830 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
8831 | ;; | ||
8832 | esac | ||
8833 | else | ||
8834 | case $host_cpu in | ||
8835 | hppa*64*) | ||
8836 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
8837 | ;; | ||
8838 | ia64*) | ||
8839 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | ||
8840 | ;; | ||
8841 | *) | ||
8842 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
8843 | ;; | ||
8844 | esac | ||
8845 | fi | ||
8846 | if test "$with_gnu_ld" = no; then | ||
8847 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | ||
8848 | hardcode_libdir_separator=: | ||
8849 | |||
8850 | case $host_cpu in | ||
8851 | hppa*64*|ia64*) | ||
8852 | hardcode_direct=no | ||
8853 | hardcode_shlibpath_var=no | ||
8854 | ;; | ||
8855 | *) | ||
8856 | hardcode_direct=yes | ||
8857 | hardcode_direct_absolute=yes | ||
8858 | export_dynamic_flag_spec='${wl}-E' | ||
8859 | |||
8860 | # hardcode_minus_L: Not really in the search PATH, | ||
8861 | # but as the default location of the library. | ||
8862 | hardcode_minus_L=yes | ||
8863 | ;; | ||
8864 | esac | ||
8865 | fi | ||
8866 | ;; | ||
8867 | |||
8868 | irix5* | irix6* | nonstopux*) | ||
8869 | if test "$GCC" = yes; then | ||
8870 | 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' | ||
8871 | # Try to use the -exported_symbol ld option, if it does not | ||
8872 | # work, assume that -exports_file does not work either and | ||
8873 | # implicitly export all symbols. | ||
8874 | save_LDFLAGS="$LDFLAGS" | ||
8875 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | ||
8876 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8877 | /* end confdefs.h. */ | ||
8878 | int foo(void) {} | ||
8879 | _ACEOF | ||
8880 | if ac_fn_c_try_link "$LINENO"; then : | ||
8881 | 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' | ||
8882 | |||
8883 | fi | ||
8884 | rm -f core conftest.err conftest.$ac_objext \ | ||
8885 | conftest$ac_exeext conftest.$ac_ext | ||
8886 | LDFLAGS="$save_LDFLAGS" | ||
8887 | else | ||
8888 | 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' | ||
8889 | 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' | ||
8890 | fi | ||
8891 | archive_cmds_need_lc='no' | ||
8892 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | ||
8893 | hardcode_libdir_separator=: | ||
8894 | inherit_rpath=yes | ||
8895 | link_all_deplibs=yes | ||
8896 | ;; | ||
8897 | |||
8898 | netbsd* | netbsdelf*-gnu) | ||
8899 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | ||
8900 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | ||
8901 | else | ||
8902 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | ||
8903 | fi | ||
8904 | hardcode_libdir_flag_spec='-R$libdir' | ||
8905 | hardcode_direct=yes | ||
8906 | hardcode_shlibpath_var=no | ||
8907 | ;; | ||
8908 | |||
8909 | newsos6) | ||
8910 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
8911 | hardcode_direct=yes | ||
8912 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | ||
8913 | hardcode_libdir_separator=: | ||
8914 | hardcode_shlibpath_var=no | ||
8915 | ;; | ||
8916 | |||
8917 | *nto* | *qnx*) | ||
8918 | ;; | ||
8919 | |||
8920 | openbsd*) | ||
8921 | if test -f /usr/libexec/ld.so; then | ||
8922 | hardcode_direct=yes | ||
8923 | hardcode_shlibpath_var=no | ||
8924 | hardcode_direct_absolute=yes | ||
8925 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | ||
8926 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | ||
8927 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | ||
8928 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | ||
8929 | export_dynamic_flag_spec='${wl}-E' | ||
8930 | else | ||
8931 | case $host_os in | ||
8932 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | ||
8933 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | ||
8934 | hardcode_libdir_flag_spec='-R$libdir' | ||
8935 | ;; | ||
8936 | *) | ||
8937 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | ||
8938 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | ||
8939 | ;; | ||
8940 | esac | ||
8941 | fi | ||
8942 | else | ||
8943 | ld_shlibs=no | ||
8944 | fi | ||
8945 | ;; | ||
8946 | |||
8947 | os2*) | ||
8948 | hardcode_libdir_flag_spec='-L$libdir' | ||
8949 | hardcode_minus_L=yes | ||
8950 | allow_undefined_flag=unsupported | ||
8951 | 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' | ||
8952 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | ||
8953 | ;; | ||
8954 | |||
8955 | osf3*) | ||
8956 | if test "$GCC" = yes; then | ||
8957 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | ||
8958 | 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' | ||
8959 | else | ||
8960 | allow_undefined_flag=' -expect_unresolved \*' | ||
8961 | 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' | ||
8962 | fi | ||
8963 | archive_cmds_need_lc='no' | ||
8964 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | ||
8965 | hardcode_libdir_separator=: | ||
8966 | ;; | ||
8967 | |||
8968 | osf4* | osf5*) # as osf3* with the addition of -msym flag | ||
8969 | if test "$GCC" = yes; then | ||
8970 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | ||
8971 | 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' | ||
8972 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | ||
8973 | else | ||
8974 | allow_undefined_flag=' -expect_unresolved \*' | ||
8975 | 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' | ||
8976 | 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~ | ||
8977 | $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' | ||
8978 | |||
8979 | # Both c and cxx compiler support -rpath directly | ||
8980 | hardcode_libdir_flag_spec='-rpath $libdir' | ||
8981 | fi | ||
8982 | archive_cmds_need_lc='no' | ||
8983 | hardcode_libdir_separator=: | ||
8984 | ;; | ||
8985 | |||
8986 | solaris*) | ||
8987 | no_undefined_flag=' -z defs' | ||
8988 | if test "$GCC" = yes; then | ||
8989 | wlarc='${wl}' | ||
8990 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
8991 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | ||
8992 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | ||
8993 | else | ||
8994 | case `$CC -V 2>&1` in | ||
8995 | *"Compilers 5.0"*) | ||
8996 | wlarc='' | ||
8997 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
8998 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | ||
8999 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | ||
9000 | ;; | ||
9001 | *) | ||
9002 | wlarc='${wl}' | ||
9003 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | ||
9004 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | ||
9005 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | ||
9006 | ;; | ||
9007 | esac | ||
9008 | fi | ||
9009 | hardcode_libdir_flag_spec='-R$libdir' | ||
9010 | hardcode_shlibpath_var=no | ||
9011 | case $host_os in | ||
9012 | solaris2.[0-5] | solaris2.[0-5].*) ;; | ||
9013 | *) | ||
9014 | # The compiler driver will combine and reorder linker options, | ||
9015 | # but understands `-z linker_flag'. GCC discards it without `$wl', | ||
9016 | # but is careful enough not to reorder. | ||
9017 | # Supported since Solaris 2.6 (maybe 2.5.1?) | ||
9018 | if test "$GCC" = yes; then | ||
9019 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | ||
9020 | else | ||
9021 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | ||
9022 | fi | ||
9023 | ;; | ||
9024 | esac | ||
9025 | link_all_deplibs=yes | ||
9026 | ;; | ||
9027 | |||
9028 | sunos4*) | ||
9029 | if test "x$host_vendor" = xsequent; then | ||
9030 | # Use $CC to link under sequent, because it throws in some extra .o | ||
9031 | # files that make .init and .fini sections work. | ||
9032 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | ||
9033 | else | ||
9034 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | ||
9035 | fi | ||
9036 | hardcode_libdir_flag_spec='-L$libdir' | ||
9037 | hardcode_direct=yes | ||
9038 | hardcode_minus_L=yes | ||
9039 | hardcode_shlibpath_var=no | ||
9040 | ;; | ||
9041 | |||
9042 | sysv4) | ||
9043 | case $host_vendor in | ||
9044 | sni) | ||
9045 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
9046 | hardcode_direct=yes # is this really true??? | ||
9047 | ;; | ||
9048 | siemens) | ||
9049 | ## LD is ld it makes a PLAMLIB | ||
9050 | ## CC just makes a GrossModule. | ||
9051 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | ||
9052 | reload_cmds='$CC -r -o $output$reload_objs' | ||
9053 | hardcode_direct=no | ||
9054 | ;; | ||
9055 | motorola) | ||
9056 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
9057 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | ||
9058 | ;; | ||
9059 | esac | ||
9060 | runpath_var='LD_RUN_PATH' | ||
9061 | hardcode_shlibpath_var=no | ||
9062 | ;; | ||
9063 | |||
9064 | sysv4.3*) | ||
9065 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
9066 | hardcode_shlibpath_var=no | ||
9067 | export_dynamic_flag_spec='-Bexport' | ||
9068 | ;; | ||
9069 | |||
9070 | sysv4*MP*) | ||
9071 | if test -d /usr/nec; then | ||
9072 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
9073 | hardcode_shlibpath_var=no | ||
9074 | runpath_var=LD_RUN_PATH | ||
9075 | hardcode_runpath_var=yes | ||
9076 | ld_shlibs=yes | ||
9077 | fi | ||
9078 | ;; | ||
9079 | |||
9080 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | ||
9081 | no_undefined_flag='${wl}-z,text' | ||
9082 | archive_cmds_need_lc=no | ||
9083 | hardcode_shlibpath_var=no | ||
9084 | runpath_var='LD_RUN_PATH' | ||
9085 | |||
9086 | if test "$GCC" = yes; then | ||
9087 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
9088 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
9089 | else | ||
9090 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
9091 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
9092 | fi | ||
9093 | ;; | ||
9094 | |||
9095 | sysv5* | sco3.2v5* | sco5v6*) | ||
9096 | # Note: We can NOT use -z defs as we might desire, because we do not | ||
9097 | # link with -lc, and that would cause any symbols used from libc to | ||
9098 | # always be unresolved, which means just about no library would | ||
9099 | # ever link correctly. If we're not using GNU ld we use -z text | ||
9100 | # though, which does catch some bad symbols but isn't as heavy-handed | ||
9101 | # as -z defs. | ||
9102 | no_undefined_flag='${wl}-z,text' | ||
9103 | allow_undefined_flag='${wl}-z,nodefs' | ||
9104 | archive_cmds_need_lc=no | ||
9105 | hardcode_shlibpath_var=no | ||
9106 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | ||
9107 | hardcode_libdir_separator=':' | ||
9108 | link_all_deplibs=yes | ||
9109 | export_dynamic_flag_spec='${wl}-Bexport' | ||
9110 | runpath_var='LD_RUN_PATH' | ||
9111 | |||
9112 | if test "$GCC" = yes; then | ||
9113 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
9114 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
9115 | else | ||
9116 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
9117 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
9118 | fi | ||
9119 | ;; | ||
9120 | |||
9121 | uts4*) | ||
9122 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
9123 | hardcode_libdir_flag_spec='-L$libdir' | ||
9124 | hardcode_shlibpath_var=no | ||
9125 | ;; | ||
9126 | |||
9127 | *) | ||
9128 | ld_shlibs=no | ||
9129 | ;; | ||
9130 | esac | ||
9131 | |||
9132 | if test x$host_vendor = xsni; then | ||
9133 | case $host in | ||
9134 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | ||
9135 | export_dynamic_flag_spec='${wl}-Blargedynsym' | ||
9136 | ;; | ||
9137 | esac | ||
9138 | fi | ||
9139 | fi | ||
9140 | |||
9141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 | ||
9142 | $as_echo "$ld_shlibs" >&6; } | ||
9143 | test "$ld_shlibs" = no && can_build_shared=no | ||
9144 | |||
9145 | with_gnu_ld=$with_gnu_ld | ||
9146 | |||
9147 | |||
9148 | |||
9149 | |||
9150 | |||
9151 | |||
9152 | |||
9153 | |||
9154 | |||
9155 | |||
9156 | |||
9157 | |||
9158 | |||
9159 | |||
9160 | |||
9161 | # | ||
9162 | # Do we need to explicitly link libc? | ||
9163 | # | ||
9164 | case "x$archive_cmds_need_lc" in | ||
9165 | x|xyes) | ||
9166 | # Assume -lc should be added | ||
9167 | archive_cmds_need_lc=yes | ||
9168 | |||
9169 | if test "$enable_shared" = yes && test "$GCC" = yes; then | ||
9170 | case $archive_cmds in | ||
9171 | *'~'*) | ||
9172 | # FIXME: we may have to deal with multi-command sequences. | ||
9173 | ;; | ||
9174 | '$CC '*) | ||
9175 | # Test whether the compiler implicitly links with -lc since on some | ||
9176 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | ||
9177 | # to ld, don't add -lc before -lgcc. | ||
9178 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | ||
9179 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | ||
9180 | $RM conftest* | ||
9181 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
9182 | |||
9183 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | ||
9184 | (eval $ac_compile) 2>&5 | ||
9185 | ac_status=$? | ||
9186 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
9187 | test $ac_status = 0; } 2>conftest.err; then | ||
9188 | soname=conftest | ||
9189 | lib=conftest | ||
9190 | libobjs=conftest.$ac_objext | ||
9191 | deplibs= | ||
9192 | wl=$lt_prog_compiler_wl | ||
9193 | pic_flag=$lt_prog_compiler_pic | ||
9194 | compiler_flags=-v | ||
9195 | linker_flags=-v | ||
9196 | verstring= | ||
9197 | output_objdir=. | ||
9198 | libname=conftest | ||
9199 | lt_save_allow_undefined_flag=$allow_undefined_flag | ||
9200 | allow_undefined_flag= | ||
9201 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | ||
9202 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | ||
9203 | ac_status=$? | ||
9204 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
9205 | test $ac_status = 0; } | ||
9206 | then | ||
9207 | archive_cmds_need_lc=no | ||
9208 | else | ||
9209 | archive_cmds_need_lc=yes | ||
9210 | fi | ||
9211 | allow_undefined_flag=$lt_save_allow_undefined_flag | ||
9212 | else | ||
9213 | cat conftest.err 1>&5 | ||
9214 | fi | ||
9215 | $RM conftest* | ||
9216 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5 | ||
9217 | $as_echo "$archive_cmds_need_lc" >&6; } | ||
9218 | ;; | ||
9219 | esac | ||
9220 | fi | ||
9221 | ;; | ||
9222 | esac | ||
9223 | |||
9224 | |||
9225 | |||
9226 | |||
9227 | |||
9228 | |||
9229 | |||
9230 | |||
9231 | |||
9232 | |||
9233 | |||
9234 | |||
9235 | |||
9236 | |||
9237 | |||
9238 | |||
9239 | |||
9240 | |||
9241 | |||
9242 | |||
9243 | |||
9244 | |||
9245 | |||
9246 | |||
9247 | |||
9248 | |||
9249 | |||
9250 | |||
9251 | |||
9252 | |||
9253 | |||
9254 | |||
9255 | |||
9256 | |||
9257 | |||
9258 | |||
9259 | |||
9260 | |||
9261 | |||
9262 | |||
9263 | |||
9264 | |||
9265 | |||
9266 | |||
9267 | |||
9268 | |||
9269 | |||
9270 | |||
9271 | |||
9272 | |||
9273 | |||
9274 | |||
9275 | |||
9276 | |||
9277 | |||
9278 | |||
9279 | |||
9280 | |||
9281 | |||
9282 | |||
9283 | |||
9284 | |||
9285 | |||
9286 | |||
9287 | |||
9288 | |||
9289 | |||
9290 | |||
9291 | |||
9292 | |||
9293 | |||
9294 | |||
9295 | |||
9296 | |||
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 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | ||
9381 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | ||
9382 | |||
9383 | if test "$GCC" = yes; then | ||
9384 | case $host_os in | ||
9385 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | ||
9386 | *) lt_awk_arg="/^libraries:/" ;; | ||
9387 | esac | ||
9388 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` | ||
9389 | if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then | ||
9390 | # if the path contains ";" then we assume it to be the separator | ||
9391 | # otherwise default to the standard path separator (i.e. ":") - it is | ||
9392 | # assumed that no part of a normal pathname contains ";" but that should | ||
9393 | # okay in the real world where ";" in dirpaths is itself problematic. | ||
9394 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` | ||
9395 | else | ||
9396 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | ||
9397 | fi | ||
9398 | # Ok, now we have the path, separated by spaces, we can step through it | ||
9399 | # and add multilib dir if necessary. | ||
9400 | lt_tmp_lt_search_path_spec= | ||
9401 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | ||
9402 | for lt_sys_path in $lt_search_path_spec; do | ||
9403 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | ||
9404 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | ||
9405 | else | ||
9406 | test -d "$lt_sys_path" && \ | ||
9407 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | ||
9408 | fi | ||
9409 | done | ||
9410 | lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' | ||
9411 | BEGIN {RS=" "; FS="/|\n";} { | ||
9412 | lt_foo=""; | ||
9413 | lt_count=0; | ||
9414 | for (lt_i = NF; lt_i > 0; lt_i--) { | ||
9415 | if ($lt_i != "" && $lt_i != ".") { | ||
9416 | if ($lt_i == "..") { | ||
9417 | lt_count++; | ||
9418 | } else { | ||
9419 | if (lt_count == 0) { | ||
9420 | lt_foo="/" $lt_i lt_foo; | ||
9421 | } else { | ||
9422 | lt_count--; | ||
9423 | } | ||
9424 | } | ||
9425 | } | ||
9426 | } | ||
9427 | if (lt_foo != "") { lt_freq[lt_foo]++; } | ||
9428 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | ||
9429 | }'` | ||
9430 | sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` | ||
9431 | else | ||
9432 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | ||
9433 | fi | ||
9434 | library_names_spec= | ||
9435 | libname_spec='lib$name' | ||
9436 | soname_spec= | ||
9437 | shrext_cmds=".so" | ||
9438 | postinstall_cmds= | ||
9439 | postuninstall_cmds= | ||
9440 | finish_cmds= | ||
9441 | finish_eval= | ||
9442 | shlibpath_var= | ||
9443 | shlibpath_overrides_runpath=unknown | ||
9444 | version_type=none | ||
9445 | dynamic_linker="$host_os ld.so" | ||
9446 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | ||
9447 | need_lib_prefix=unknown | ||
9448 | hardcode_into_libs=no | ||
9449 | |||
9450 | # when you set need_version to no, make sure it does not cause -set_version | ||
9451 | # flags to be left without arguments | ||
9452 | need_version=unknown | ||
9453 | |||
9454 | case $host_os in | ||
9455 | aix3*) | ||
9456 | version_type=linux | ||
9457 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | ||
9458 | shlibpath_var=LIBPATH | ||
9459 | |||
9460 | # AIX 3 has no versioning support, so we append a major version to the name. | ||
9461 | soname_spec='${libname}${release}${shared_ext}$major' | ||
9462 | ;; | ||
9463 | |||
9464 | aix[4-9]*) | ||
9465 | version_type=linux | ||
9466 | need_lib_prefix=no | ||
9467 | need_version=no | ||
9468 | hardcode_into_libs=yes | ||
9469 | if test "$host_cpu" = ia64; then | ||
9470 | # AIX 5 supports IA64 | ||
9471 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | ||
9472 | shlibpath_var=LD_LIBRARY_PATH | ||
9473 | else | ||
9474 | # With GCC up to 2.95.x, collect2 would create an import file | ||
9475 | # for dependence libraries. The import file would start with | ||
9476 | # the line `#! .'. This would cause the generated library to | ||
9477 | # depend on `.', always an invalid library. This was fixed in | ||
9478 | # development snapshots of GCC prior to 3.0. | ||
9479 | case $host_os in | ||
9480 | aix4 | aix4.[01] | aix4.[01].*) | ||
9481 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | ||
9482 | echo ' yes ' | ||
9483 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | ||
9484 | : | ||
9485 | else | ||
9486 | can_build_shared=no | ||
9487 | fi | ||
9488 | ;; | ||
9489 | esac | ||
9490 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | ||
9491 | # soname into executable. Probably we can add versioning support to | ||
9492 | # collect2, so additional links can be useful in future. | ||
9493 | if test "$aix_use_runtimelinking" = yes; then | ||
9494 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | ||
9495 | # instead of lib<name>.a to let people know that these are not | ||
9496 | # typical AIX shared libraries. | ||
9497 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
9498 | else | ||
9499 | # We preserve .a as extension for shared libraries through AIX4.2 | ||
9500 | # and later when we are not doing run time linking. | ||
9501 | library_names_spec='${libname}${release}.a $libname.a' | ||
9502 | soname_spec='${libname}${release}${shared_ext}$major' | ||
9503 | fi | ||
9504 | shlibpath_var=LIBPATH | ||
9505 | fi | ||
9506 | ;; | ||
9507 | |||
9508 | amigaos*) | ||
9509 | case $host_cpu in | ||
9510 | powerpc) | ||
9511 | # Since July 2007 AmigaOS4 officially supports .so libraries. | ||
9512 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | ||
9513 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
9514 | ;; | ||
9515 | m68k) | ||
9516 | library_names_spec='$libname.ixlibrary $libname.a' | ||
9517 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | ||
9518 | 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' | ||
9519 | ;; | ||
9520 | esac | ||
9521 | ;; | ||
9522 | |||
9523 | beos*) | ||
9524 | library_names_spec='${libname}${shared_ext}' | ||
9525 | dynamic_linker="$host_os ld.so" | ||
9526 | shlibpath_var=LIBRARY_PATH | ||
9527 | ;; | ||
9528 | |||
9529 | bsdi[45]*) | ||
9530 | version_type=linux | ||
9531 | need_version=no | ||
9532 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
9533 | soname_spec='${libname}${release}${shared_ext}$major' | ||
9534 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | ||
9535 | shlibpath_var=LD_LIBRARY_PATH | ||
9536 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | ||
9537 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | ||
9538 | # the default ld.so.conf also contains /usr/contrib/lib and | ||
9539 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | ||
9540 | # libtool to hard-code these into programs | ||
9541 | ;; | ||
9542 | |||
9543 | cygwin* | mingw* | pw32* | cegcc*) | ||
9544 | version_type=windows | ||
9545 | shrext_cmds=".dll" | ||
9546 | need_version=no | ||
9547 | need_lib_prefix=no | ||
9548 | |||
9549 | case $GCC,$host_os in | ||
9550 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | ||
9551 | library_names_spec='$libname.dll.a' | ||
9552 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | ||
9553 | postinstall_cmds='base_file=`basename \${file}`~ | ||
9554 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | ||
9555 | dldir=$destdir/`dirname \$dlpath`~ | ||
9556 | test -d \$dldir || mkdir -p \$dldir~ | ||
9557 | $install_prog $dir/$dlname \$dldir/$dlname~ | ||
9558 | chmod a+x \$dldir/$dlname~ | ||
9559 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | ||
9560 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | ||
9561 | fi' | ||
9562 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | ||
9563 | dlpath=$dir/\$dldll~ | ||
9564 | $RM \$dlpath' | ||
9565 | shlibpath_overrides_runpath=yes | ||
9566 | |||
9567 | case $host_os in | ||
9568 | cygwin*) | ||
9569 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | ||
9570 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | ||
9571 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | ||
9572 | ;; | ||
9573 | mingw* | cegcc*) | ||
9574 | # MinGW DLLs use traditional 'lib' prefix | ||
9575 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | ||
9576 | sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | ||
9577 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | ||
9578 | # It is most probably a Windows format PATH printed by | ||
9579 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | ||
9580 | # path with ; separators, and with drive letters. We can handle the | ||
9581 | # drive letters (cygwin fileutils understands them), so leave them, | ||
9582 | # especially as we might pass files found there to a mingw objdump, | ||
9583 | # which wouldn't understand a cygwinified path. Ahh. | ||
9584 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | ||
9585 | else | ||
9586 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | ||
9587 | fi | ||
9588 | ;; | ||
9589 | pw32*) | ||
9590 | # pw32 DLLs use 'pw' prefix rather than 'lib' | ||
9591 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | ||
9592 | ;; | ||
9593 | esac | ||
9594 | ;; | ||
9595 | |||
9596 | *) | ||
9597 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | ||
9598 | ;; | ||
9599 | esac | ||
9600 | dynamic_linker='Win32 ld.exe' | ||
9601 | # FIXME: first we should search . and the directory the executable is in | ||
9602 | shlibpath_var=PATH | ||
9603 | ;; | ||
9604 | |||
9605 | darwin* | rhapsody*) | ||
9606 | dynamic_linker="$host_os dyld" | ||
9607 | version_type=darwin | ||
9608 | need_lib_prefix=no | ||
9609 | need_version=no | ||
9610 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | ||
9611 | soname_spec='${libname}${release}${major}$shared_ext' | ||
9612 | shlibpath_overrides_runpath=yes | ||
9613 | shlibpath_var=DYLD_LIBRARY_PATH | ||
9614 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | ||
9615 | |||
9616 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | ||
9617 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | ||
9618 | ;; | ||
9619 | |||
9620 | dgux*) | ||
9621 | version_type=linux | ||
9622 | need_lib_prefix=no | ||
9623 | need_version=no | ||
9624 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | ||
9625 | soname_spec='${libname}${release}${shared_ext}$major' | ||
9626 | shlibpath_var=LD_LIBRARY_PATH | ||
9627 | ;; | ||
9628 | |||
9629 | freebsd1*) | ||
9630 | dynamic_linker=no | ||
9631 | ;; | ||
9632 | |||
9633 | freebsd* | dragonfly*) | ||
9634 | # DragonFly does not have aout. When/if they implement a new | ||
9635 | # versioning mechanism, adjust this. | ||
9636 | if test -x /usr/bin/objformat; then | ||
9637 | objformat=`/usr/bin/objformat` | ||
9638 | else | ||
9639 | case $host_os in | ||
9640 | freebsd[123]*) objformat=aout ;; | ||
9641 | *) objformat=elf ;; | ||
9642 | esac | ||
9643 | fi | ||
9644 | version_type=freebsd-$objformat | ||
9645 | case $version_type in | ||
9646 | freebsd-elf*) | ||
9647 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | ||
9648 | need_version=no | ||
9649 | need_lib_prefix=no | ||
9650 | ;; | ||
9651 | freebsd-*) | ||
9652 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | ||
9653 | need_version=yes | ||
9654 | ;; | ||
9655 | esac | ||
9656 | shlibpath_var=LD_LIBRARY_PATH | ||
9657 | case $host_os in | ||
9658 | freebsd2*) | ||
9659 | shlibpath_overrides_runpath=yes | ||
9660 | ;; | ||
9661 | freebsd3.[01]* | freebsdelf3.[01]*) | ||
9662 | shlibpath_overrides_runpath=yes | ||
9663 | hardcode_into_libs=yes | ||
9664 | ;; | ||
9665 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | ||
9666 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | ||
9667 | shlibpath_overrides_runpath=no | ||
9668 | hardcode_into_libs=yes | ||
9669 | ;; | ||
9670 | *) # from 4.6 on, and DragonFly | ||
9671 | shlibpath_overrides_runpath=yes | ||
9672 | hardcode_into_libs=yes | ||
9673 | ;; | ||
9674 | esac | ||
9675 | ;; | ||
9676 | |||
9677 | gnu*) | ||
9678 | version_type=linux | ||
9679 | need_lib_prefix=no | ||
9680 | need_version=no | ||
9681 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | ||
9682 | soname_spec='${libname}${release}${shared_ext}$major' | ||
9683 | shlibpath_var=LD_LIBRARY_PATH | ||
9684 | hardcode_into_libs=yes | ||
9685 | ;; | ||
9686 | |||
9687 | hpux9* | hpux10* | hpux11*) | ||
9688 | # Give a soname corresponding to the major version so that dld.sl refuses to | ||
9689 | # link against other versions. | ||
9690 | version_type=sunos | ||
9691 | need_lib_prefix=no | ||
9692 | need_version=no | ||
9693 | case $host_cpu in | ||
9694 | ia64*) | ||
9695 | shrext_cmds='.so' | ||
9696 | hardcode_into_libs=yes | ||
9697 | dynamic_linker="$host_os dld.so" | ||
9698 | shlibpath_var=LD_LIBRARY_PATH | ||
9699 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | ||
9700 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
9701 | soname_spec='${libname}${release}${shared_ext}$major' | ||
9702 | if test "X$HPUX_IA64_MODE" = X32; then | ||
9703 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | ||
9704 | else | ||
9705 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | ||
9706 | fi | ||
9707 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | ||
9708 | ;; | ||
9709 | hppa*64*) | ||
9710 | shrext_cmds='.sl' | ||
9711 | hardcode_into_libs=yes | ||
9712 | dynamic_linker="$host_os dld.sl" | ||
9713 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | ||
9714 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | ||
9715 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
9716 | soname_spec='${libname}${release}${shared_ext}$major' | ||
9717 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | ||
9718 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | ||
9719 | ;; | ||
9720 | *) | ||
9721 | shrext_cmds='.sl' | ||
9722 | dynamic_linker="$host_os dld.sl" | ||
9723 | shlibpath_var=SHLIB_PATH | ||
9724 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | ||
9725 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
9726 | soname_spec='${libname}${release}${shared_ext}$major' | ||
9727 | ;; | ||
9728 | esac | ||
9729 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | ||
9730 | postinstall_cmds='chmod 555 $lib' | ||
9731 | ;; | ||
9732 | |||
9733 | interix[3-9]*) | ||
9734 | version_type=linux | ||
9735 | need_lib_prefix=no | ||
9736 | need_version=no | ||
9737 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
9738 | soname_spec='${libname}${release}${shared_ext}$major' | ||
9739 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | ||
9740 | shlibpath_var=LD_LIBRARY_PATH | ||
9741 | shlibpath_overrides_runpath=no | ||
9742 | hardcode_into_libs=yes | ||
9743 | ;; | ||
9744 | |||
9745 | irix5* | irix6* | nonstopux*) | ||
9746 | case $host_os in | ||
9747 | nonstopux*) version_type=nonstopux ;; | ||
9748 | *) | ||
9749 | if test "$lt_cv_prog_gnu_ld" = yes; then | ||
9750 | version_type=linux | ||
9751 | else | ||
9752 | version_type=irix | ||
9753 | fi ;; | ||
9754 | esac | ||
9755 | need_lib_prefix=no | ||
9756 | need_version=no | ||
9757 | soname_spec='${libname}${release}${shared_ext}$major' | ||
9758 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | ||
9759 | case $host_os in | ||
9760 | irix5* | nonstopux*) | ||
9761 | libsuff= shlibsuff= | ||
9762 | ;; | ||
9763 | *) | ||
9764 | case $LD in # libtool.m4 will add one of these switches to LD | ||
9765 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | ||
9766 | libsuff= shlibsuff= libmagic=32-bit;; | ||
9767 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | ||
9768 | libsuff=32 shlibsuff=N32 libmagic=N32;; | ||
9769 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | ||
9770 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | ||
9771 | *) libsuff= shlibsuff= libmagic=never-match;; | ||
9772 | esac | ||
9773 | ;; | ||
9774 | esac | ||
9775 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | ||
9776 | shlibpath_overrides_runpath=no | ||
9777 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | ||
9778 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | ||
9779 | hardcode_into_libs=yes | ||
9780 | ;; | ||
9781 | |||
9782 | # No shared lib support for Linux oldld, aout, or coff. | ||
9783 | linux*oldld* | linux*aout* | linux*coff*) | ||
9784 | dynamic_linker=no | ||
9785 | ;; | ||
9786 | |||
9787 | # This must be Linux ELF. | ||
9788 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | ||
9789 | version_type=linux | ||
9790 | need_lib_prefix=no | ||
9791 | need_version=no | ||
9792 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
9793 | soname_spec='${libname}${release}${shared_ext}$major' | ||
9794 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | ||
9795 | shlibpath_var=LD_LIBRARY_PATH | ||
9796 | shlibpath_overrides_runpath=no | ||
9797 | # Some binutils ld are patched to set DT_RUNPATH | ||
9798 | save_LDFLAGS=$LDFLAGS | ||
9799 | save_libdir=$libdir | ||
9800 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | ||
9801 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | ||
9802 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9803 | /* end confdefs.h. */ | ||
9804 | |||
9805 | int | ||
9806 | main () | ||
9807 | { | ||
9808 | |||
9809 | ; | ||
9810 | return 0; | ||
9811 | } | ||
9812 | _ACEOF | ||
9813 | if ac_fn_c_try_link "$LINENO"; then : | ||
9814 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | ||
9815 | shlibpath_overrides_runpath=yes | ||
9816 | fi | ||
9817 | fi | ||
9818 | rm -f core conftest.err conftest.$ac_objext \ | ||
9819 | conftest$ac_exeext conftest.$ac_ext | ||
9820 | LDFLAGS=$save_LDFLAGS | ||
9821 | libdir=$save_libdir | ||
9822 | |||
9823 | # This implies no fast_install, which is unacceptable. | ||
9824 | # Some rework will be needed to allow for fast_install | ||
9825 | # before this can be enabled. | ||
9826 | hardcode_into_libs=yes | ||
9827 | |||
9828 | # Append ld.so.conf contents to the search path | ||
9829 | if test -f /etc/ld.so.conf; then | ||
9830 | 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' ' '` | ||
9831 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | ||
9832 | fi | ||
9833 | |||
9834 | # We used to test for /lib/ld.so.1 and disable shared libraries on | ||
9835 | # powerpc, because MkLinux only supported shared libraries with the | ||
9836 | # GNU dynamic linker. Since this was broken with cross compilers, | ||
9837 | # most powerpc-linux boxes support dynamic linking these days and | ||
9838 | # people can always --disable-shared, the test was removed, and we | ||
9839 | # assume the GNU/Linux dynamic linker is in use. | ||
9840 | dynamic_linker='GNU/Linux ld.so' | ||
9841 | ;; | ||
9842 | |||
9843 | netbsdelf*-gnu) | ||
9844 | version_type=linux | ||
9845 | need_lib_prefix=no | ||
9846 | need_version=no | ||
9847 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
9848 | soname_spec='${libname}${release}${shared_ext}$major' | ||
9849 | shlibpath_var=LD_LIBRARY_PATH | ||
9850 | shlibpath_overrides_runpath=no | ||
9851 | hardcode_into_libs=yes | ||
9852 | dynamic_linker='NetBSD ld.elf_so' | ||
9853 | ;; | ||
9854 | |||
9855 | netbsd*) | ||
9856 | version_type=sunos | ||
9857 | need_lib_prefix=no | ||
9858 | need_version=no | ||
9859 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | ||
9860 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | ||
9861 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | ||
9862 | dynamic_linker='NetBSD (a.out) ld.so' | ||
9863 | else | ||
9864 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
9865 | soname_spec='${libname}${release}${shared_ext}$major' | ||
9866 | dynamic_linker='NetBSD ld.elf_so' | ||
9867 | fi | ||
9868 | shlibpath_var=LD_LIBRARY_PATH | ||
9869 | shlibpath_overrides_runpath=yes | ||
9870 | hardcode_into_libs=yes | ||
9871 | ;; | ||
9872 | |||
9873 | newsos6) | ||
9874 | version_type=linux | ||
9875 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
9876 | shlibpath_var=LD_LIBRARY_PATH | ||
9877 | shlibpath_overrides_runpath=yes | ||
9878 | ;; | ||
9879 | |||
9880 | *nto* | *qnx*) | ||
9881 | version_type=qnx | ||
9882 | need_lib_prefix=no | ||
9883 | need_version=no | ||
9884 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
9885 | soname_spec='${libname}${release}${shared_ext}$major' | ||
9886 | shlibpath_var=LD_LIBRARY_PATH | ||
9887 | shlibpath_overrides_runpath=no | ||
9888 | hardcode_into_libs=yes | ||
9889 | dynamic_linker='ldqnx.so' | ||
9890 | ;; | ||
9891 | |||
9892 | openbsd*) | ||
9893 | version_type=sunos | ||
9894 | sys_lib_dlsearch_path_spec="/usr/lib" | ||
9895 | need_lib_prefix=no | ||
9896 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | ||
9897 | case $host_os in | ||
9898 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | ||
9899 | *) need_version=no ;; | ||
9900 | esac | ||
9901 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | ||
9902 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | ||
9903 | shlibpath_var=LD_LIBRARY_PATH | ||
9904 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | ||
9905 | case $host_os in | ||
9906 | openbsd2.[89] | openbsd2.[89].*) | ||
9907 | shlibpath_overrides_runpath=no | ||
9908 | ;; | ||
9909 | *) | ||
9910 | shlibpath_overrides_runpath=yes | ||
9911 | ;; | ||
9912 | esac | ||
9913 | else | ||
9914 | shlibpath_overrides_runpath=yes | ||
9915 | fi | ||
9916 | ;; | ||
9917 | |||
9918 | os2*) | ||
9919 | libname_spec='$name' | ||
9920 | shrext_cmds=".dll" | ||
9921 | need_lib_prefix=no | ||
9922 | library_names_spec='$libname${shared_ext} $libname.a' | ||
9923 | dynamic_linker='OS/2 ld.exe' | ||
9924 | shlibpath_var=LIBPATH | ||
9925 | ;; | ||
9926 | |||
9927 | osf3* | osf4* | osf5*) | ||
9928 | version_type=osf | ||
9929 | need_lib_prefix=no | ||
9930 | need_version=no | ||
9931 | soname_spec='${libname}${release}${shared_ext}$major' | ||
9932 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
9933 | shlibpath_var=LD_LIBRARY_PATH | ||
9934 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | ||
9935 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | ||
9936 | ;; | ||
9937 | |||
9938 | rdos*) | ||
9939 | dynamic_linker=no | ||
9940 | ;; | ||
9941 | |||
9942 | solaris*) | ||
9943 | version_type=linux | ||
9944 | need_lib_prefix=no | ||
9945 | need_version=no | ||
9946 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
9947 | soname_spec='${libname}${release}${shared_ext}$major' | ||
9948 | shlibpath_var=LD_LIBRARY_PATH | ||
9949 | shlibpath_overrides_runpath=yes | ||
9950 | hardcode_into_libs=yes | ||
9951 | # ldd complains unless libraries are executable | ||
9952 | postinstall_cmds='chmod +x $lib' | ||
9953 | ;; | ||
9954 | |||
9955 | sunos4*) | ||
9956 | version_type=sunos | ||
9957 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | ||
9958 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | ||
9959 | shlibpath_var=LD_LIBRARY_PATH | ||
9960 | shlibpath_overrides_runpath=yes | ||
9961 | if test "$with_gnu_ld" = yes; then | ||
9962 | need_lib_prefix=no | ||
9963 | fi | ||
9964 | need_version=yes | ||
9965 | ;; | ||
9966 | |||
9967 | sysv4 | sysv4.3*) | ||
9968 | version_type=linux | ||
9969 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
9970 | soname_spec='${libname}${release}${shared_ext}$major' | ||
9971 | shlibpath_var=LD_LIBRARY_PATH | ||
9972 | case $host_vendor in | ||
9973 | sni) | ||
9974 | shlibpath_overrides_runpath=no | ||
9975 | need_lib_prefix=no | ||
9976 | runpath_var=LD_RUN_PATH | ||
9977 | ;; | ||
9978 | siemens) | ||
9979 | need_lib_prefix=no | ||
9980 | ;; | ||
9981 | motorola) | ||
9982 | need_lib_prefix=no | ||
9983 | need_version=no | ||
9984 | shlibpath_overrides_runpath=no | ||
9985 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | ||
9986 | ;; | ||
9987 | esac | ||
9988 | ;; | ||
9989 | |||
9990 | sysv4*MP*) | ||
9991 | if test -d /usr/nec ;then | ||
9992 | version_type=linux | ||
9993 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | ||
9994 | soname_spec='$libname${shared_ext}.$major' | ||
9995 | shlibpath_var=LD_LIBRARY_PATH | ||
9996 | fi | ||
9997 | ;; | ||
9998 | |||
9999 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | ||
10000 | version_type=freebsd-elf | ||
10001 | need_lib_prefix=no | ||
10002 | need_version=no | ||
10003 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | ||
10004 | soname_spec='${libname}${release}${shared_ext}$major' | ||
10005 | shlibpath_var=LD_LIBRARY_PATH | ||
10006 | shlibpath_overrides_runpath=yes | ||
10007 | hardcode_into_libs=yes | ||
10008 | if test "$with_gnu_ld" = yes; then | ||
10009 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | ||
10010 | else | ||
10011 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | ||
10012 | case $host_os in | ||
10013 | sco3.2v5*) | ||
10014 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | ||
10015 | ;; | ||
10016 | esac | ||
10017 | fi | ||
10018 | sys_lib_dlsearch_path_spec='/usr/lib' | ||
10019 | ;; | ||
10020 | |||
10021 | tpf*) | ||
10022 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | ||
10023 | version_type=linux | ||
10024 | need_lib_prefix=no | ||
10025 | need_version=no | ||
10026 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
10027 | shlibpath_var=LD_LIBRARY_PATH | ||
10028 | shlibpath_overrides_runpath=no | ||
10029 | hardcode_into_libs=yes | ||
10030 | ;; | ||
10031 | |||
10032 | uts4*) | ||
10033 | version_type=linux | ||
10034 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
10035 | soname_spec='${libname}${release}${shared_ext}$major' | ||
10036 | shlibpath_var=LD_LIBRARY_PATH | ||
10037 | ;; | ||
10038 | |||
10039 | *) | ||
10040 | dynamic_linker=no | ||
10041 | ;; | ||
10042 | esac | ||
10043 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | ||
10044 | $as_echo "$dynamic_linker" >&6; } | ||
10045 | test "$dynamic_linker" = no && can_build_shared=no | ||
10046 | |||
10047 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | ||
10048 | if test "$GCC" = yes; then | ||
10049 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | ||
10050 | fi | ||
10051 | |||
10052 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then | ||
10053 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | ||
10054 | fi | ||
10055 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | ||
10056 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | ||
10057 | fi | ||
10058 | |||
10059 | |||
10060 | |||
10061 | |||
10062 | |||
10063 | |||
10064 | |||
10065 | |||
10066 | |||
10067 | |||
10068 | |||
10069 | |||
10070 | |||
10071 | |||
10072 | |||
10073 | |||
10074 | |||
10075 | |||
10076 | |||
10077 | |||
10078 | |||
10079 | |||
10080 | |||
10081 | |||
10082 | |||
10083 | |||
10084 | |||
10085 | |||
10086 | |||
10087 | |||
10088 | |||
10089 | |||
10090 | |||
10091 | |||
10092 | |||
10093 | |||
10094 | |||
10095 | |||
10096 | |||
10097 | |||
10098 | |||
10099 | |||
10100 | |||
10101 | |||
10102 | |||
10103 | |||
10104 | |||
10105 | |||
10106 | |||
10107 | |||
10108 | |||
10109 | |||
10110 | |||
10111 | |||
10112 | |||
10113 | |||
10114 | |||
10115 | |||
10116 | |||
10117 | |||
10118 | |||
10119 | |||
10120 | |||
10121 | |||
10122 | |||
10123 | |||
10124 | |||
10125 | |||
10126 | |||
10127 | |||
10128 | |||
10129 | |||
10130 | |||
10131 | |||
10132 | |||
10133 | |||
10134 | |||
10135 | |||
10136 | |||
10137 | |||
10138 | |||
10139 | |||
10140 | |||
10141 | |||
10142 | |||
10143 | |||
10144 | |||
10145 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | ||
10146 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | ||
10147 | hardcode_action= | ||
10148 | if test -n "$hardcode_libdir_flag_spec" || | ||
10149 | test -n "$runpath_var" || | ||
10150 | test "X$hardcode_automatic" = "Xyes" ; then | ||
10151 | |||
10152 | # We can hardcode non-existent directories. | ||
10153 | if test "$hardcode_direct" != no && | ||
10154 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | ||
10155 | # have to relink, otherwise we might link with an installed library | ||
10156 | # when we should be linking with a yet-to-be-installed one | ||
10157 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | ||
10158 | test "$hardcode_minus_L" != no; then | ||
10159 | # Linking always hardcodes the temporary library directory. | ||
10160 | hardcode_action=relink | ||
10161 | else | ||
10162 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | ||
10163 | hardcode_action=immediate | ||
10164 | fi | ||
10165 | else | ||
10166 | # We cannot hardcode anything, or else we can only hardcode existing | ||
10167 | # directories. | ||
10168 | hardcode_action=unsupported | ||
10169 | fi | ||
10170 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 | ||
10171 | $as_echo "$hardcode_action" >&6; } | ||
10172 | |||
10173 | if test "$hardcode_action" = relink || | ||
10174 | test "$inherit_rpath" = yes; then | ||
10175 | # Fast installation is not supported | ||
10176 | enable_fast_install=no | ||
10177 | elif test "$shlibpath_overrides_runpath" = yes || | ||
10178 | test "$enable_shared" = no; then | ||
10179 | # Fast installation is not necessary | ||
10180 | enable_fast_install=needless | ||
10181 | fi | ||
10182 | |||
10183 | |||
10184 | |||
10185 | |||
10186 | |||
10187 | |||
10188 | if test "x$enable_dlopen" != xyes; then | ||
10189 | enable_dlopen=unknown | ||
10190 | enable_dlopen_self=unknown | ||
10191 | enable_dlopen_self_static=unknown | ||
10192 | else | ||
10193 | lt_cv_dlopen=no | ||
10194 | lt_cv_dlopen_libs= | ||
10195 | |||
10196 | case $host_os in | ||
10197 | beos*) | ||
10198 | lt_cv_dlopen="load_add_on" | ||
10199 | lt_cv_dlopen_libs= | ||
10200 | lt_cv_dlopen_self=yes | ||
10201 | ;; | ||
10202 | |||
10203 | mingw* | pw32* | cegcc*) | ||
10204 | lt_cv_dlopen="LoadLibrary" | ||
10205 | lt_cv_dlopen_libs= | ||
10206 | ;; | ||
10207 | |||
10208 | cygwin*) | ||
10209 | lt_cv_dlopen="dlopen" | ||
10210 | lt_cv_dlopen_libs= | ||
10211 | ;; | ||
10212 | |||
10213 | darwin*) | ||
10214 | # if libdl is installed we need to link against it | ||
10215 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | ||
10216 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | ||
10217 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : | ||
10218 | $as_echo_n "(cached) " >&6 | ||
10219 | else | ||
10220 | ac_check_lib_save_LIBS=$LIBS | ||
10221 | LIBS="-ldl $LIBS" | ||
10222 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10223 | /* end confdefs.h. */ | ||
10224 | |||
10225 | /* Override any GCC internal prototype to avoid an error. | ||
10226 | Use char because int might match the return type of a GCC | ||
10227 | builtin and then its argument prototype would still apply. */ | ||
10228 | #ifdef __cplusplus | ||
10229 | extern "C" | ||
10230 | #endif | ||
10231 | char dlopen (); | ||
10232 | int | ||
10233 | main () | ||
10234 | { | ||
10235 | return dlopen (); | ||
10236 | ; | ||
10237 | return 0; | ||
10238 | } | ||
10239 | _ACEOF | ||
10240 | if ac_fn_c_try_link "$LINENO"; then : | ||
10241 | ac_cv_lib_dl_dlopen=yes | ||
10242 | else | ||
10243 | ac_cv_lib_dl_dlopen=no | ||
10244 | fi | ||
10245 | rm -f core conftest.err conftest.$ac_objext \ | ||
10246 | conftest$ac_exeext conftest.$ac_ext | ||
10247 | LIBS=$ac_check_lib_save_LIBS | ||
10248 | fi | ||
10249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | ||
10250 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | ||
10251 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : | ||
10252 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | ||
10253 | else | ||
10254 | |||
10255 | lt_cv_dlopen="dyld" | ||
10256 | lt_cv_dlopen_libs= | ||
10257 | lt_cv_dlopen_self=yes | ||
10258 | |||
10259 | fi | ||
10260 | |||
10261 | ;; | ||
10262 | |||
10263 | *) | ||
10264 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" | ||
10265 | if test "x$ac_cv_func_shl_load" = x""yes; then : | ||
10266 | lt_cv_dlopen="shl_load" | ||
10267 | else | ||
10268 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 | ||
10269 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | ||
10270 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then : | ||
10271 | $as_echo_n "(cached) " >&6 | ||
10272 | else | ||
10273 | ac_check_lib_save_LIBS=$LIBS | ||
10274 | LIBS="-ldld $LIBS" | ||
10275 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10276 | /* end confdefs.h. */ | ||
10277 | |||
10278 | /* Override any GCC internal prototype to avoid an error. | ||
10279 | Use char because int might match the return type of a GCC | ||
10280 | builtin and then its argument prototype would still apply. */ | ||
10281 | #ifdef __cplusplus | ||
10282 | extern "C" | ||
10283 | #endif | ||
10284 | char shl_load (); | ||
10285 | int | ||
10286 | main () | ||
10287 | { | ||
10288 | return shl_load (); | ||
10289 | ; | ||
10290 | return 0; | ||
10291 | } | ||
10292 | _ACEOF | ||
10293 | if ac_fn_c_try_link "$LINENO"; then : | ||
10294 | ac_cv_lib_dld_shl_load=yes | ||
10295 | else | ||
10296 | ac_cv_lib_dld_shl_load=no | ||
10297 | fi | ||
10298 | rm -f core conftest.err conftest.$ac_objext \ | ||
10299 | conftest$ac_exeext conftest.$ac_ext | ||
10300 | LIBS=$ac_check_lib_save_LIBS | ||
10301 | fi | ||
10302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 | ||
10303 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | ||
10304 | if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : | ||
10305 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" | ||
10306 | else | ||
10307 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | ||
10308 | if test "x$ac_cv_func_dlopen" = x""yes; then : | ||
10309 | lt_cv_dlopen="dlopen" | ||
10310 | else | ||
10311 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | ||
10312 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | ||
10313 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : | ||
10314 | $as_echo_n "(cached) " >&6 | ||
10315 | else | ||
10316 | ac_check_lib_save_LIBS=$LIBS | ||
10317 | LIBS="-ldl $LIBS" | ||
10318 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10319 | /* end confdefs.h. */ | ||
10320 | |||
10321 | /* Override any GCC internal prototype to avoid an error. | ||
10322 | Use char because int might match the return type of a GCC | ||
10323 | builtin and then its argument prototype would still apply. */ | ||
10324 | #ifdef __cplusplus | ||
10325 | extern "C" | ||
10326 | #endif | ||
10327 | char dlopen (); | ||
10328 | int | ||
10329 | main () | ||
10330 | { | ||
10331 | return dlopen (); | ||
10332 | ; | ||
10333 | return 0; | ||
10334 | } | ||
10335 | _ACEOF | ||
10336 | if ac_fn_c_try_link "$LINENO"; then : | ||
10337 | ac_cv_lib_dl_dlopen=yes | ||
10338 | else | ||
10339 | ac_cv_lib_dl_dlopen=no | ||
10340 | fi | ||
10341 | rm -f core conftest.err conftest.$ac_objext \ | ||
10342 | conftest$ac_exeext conftest.$ac_ext | ||
10343 | LIBS=$ac_check_lib_save_LIBS | ||
10344 | fi | ||
10345 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | ||
10346 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | ||
10347 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : | ||
10348 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | ||
10349 | else | ||
10350 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 | ||
10351 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | ||
10352 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then : | ||
10353 | $as_echo_n "(cached) " >&6 | ||
10354 | else | ||
10355 | ac_check_lib_save_LIBS=$LIBS | ||
10356 | LIBS="-lsvld $LIBS" | ||
10357 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10358 | /* end confdefs.h. */ | ||
10359 | |||
10360 | /* Override any GCC internal prototype to avoid an error. | ||
10361 | Use char because int might match the return type of a GCC | ||
10362 | builtin and then its argument prototype would still apply. */ | ||
10363 | #ifdef __cplusplus | ||
10364 | extern "C" | ||
10365 | #endif | ||
10366 | char dlopen (); | ||
10367 | int | ||
10368 | main () | ||
10369 | { | ||
10370 | return dlopen (); | ||
10371 | ; | ||
10372 | return 0; | ||
10373 | } | ||
10374 | _ACEOF | ||
10375 | if ac_fn_c_try_link "$LINENO"; then : | ||
10376 | ac_cv_lib_svld_dlopen=yes | ||
10377 | else | ||
10378 | ac_cv_lib_svld_dlopen=no | ||
10379 | fi | ||
10380 | rm -f core conftest.err conftest.$ac_objext \ | ||
10381 | conftest$ac_exeext conftest.$ac_ext | ||
10382 | LIBS=$ac_check_lib_save_LIBS | ||
10383 | fi | ||
10384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 | ||
10385 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | ||
10386 | if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : | ||
10387 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | ||
10388 | else | ||
10389 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 | ||
10390 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | ||
10391 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then : | ||
10392 | $as_echo_n "(cached) " >&6 | ||
10393 | else | ||
10394 | ac_check_lib_save_LIBS=$LIBS | ||
10395 | LIBS="-ldld $LIBS" | ||
10396 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10397 | /* end confdefs.h. */ | ||
10398 | |||
10399 | /* Override any GCC internal prototype to avoid an error. | ||
10400 | Use char because int might match the return type of a GCC | ||
10401 | builtin and then its argument prototype would still apply. */ | ||
10402 | #ifdef __cplusplus | ||
10403 | extern "C" | ||
10404 | #endif | ||
10405 | char dld_link (); | ||
10406 | int | ||
10407 | main () | ||
10408 | { | ||
10409 | return dld_link (); | ||
10410 | ; | ||
10411 | return 0; | ||
10412 | } | ||
10413 | _ACEOF | ||
10414 | if ac_fn_c_try_link "$LINENO"; then : | ||
10415 | ac_cv_lib_dld_dld_link=yes | ||
10416 | else | ||
10417 | ac_cv_lib_dld_dld_link=no | ||
10418 | fi | ||
10419 | rm -f core conftest.err conftest.$ac_objext \ | ||
10420 | conftest$ac_exeext conftest.$ac_ext | ||
10421 | LIBS=$ac_check_lib_save_LIBS | ||
10422 | fi | ||
10423 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 | ||
10424 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | ||
10425 | if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : | ||
10426 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" | ||
10427 | fi | ||
10428 | |||
10429 | |||
10430 | fi | ||
10431 | |||
10432 | |||
10433 | fi | ||
10434 | |||
10435 | |||
10436 | fi | ||
10437 | |||
10438 | |||
10439 | fi | ||
10440 | |||
10441 | |||
10442 | fi | ||
10443 | |||
10444 | ;; | ||
10445 | esac | ||
10446 | |||
10447 | if test "x$lt_cv_dlopen" != xno; then | ||
10448 | enable_dlopen=yes | ||
10449 | else | ||
10450 | enable_dlopen=no | ||
10451 | fi | ||
10452 | |||
10453 | case $lt_cv_dlopen in | ||
10454 | dlopen) | ||
10455 | save_CPPFLAGS="$CPPFLAGS" | ||
10456 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | ||
10457 | |||
10458 | save_LDFLAGS="$LDFLAGS" | ||
10459 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | ||
10460 | |||
10461 | save_LIBS="$LIBS" | ||
10462 | LIBS="$lt_cv_dlopen_libs $LIBS" | ||
10463 | |||
10464 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 | ||
10465 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } | ||
10466 | if test "${lt_cv_dlopen_self+set}" = set; then : | ||
10467 | $as_echo_n "(cached) " >&6 | ||
10468 | else | ||
10469 | if test "$cross_compiling" = yes; then : | ||
10470 | lt_cv_dlopen_self=cross | ||
10471 | else | ||
10472 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | ||
10473 | lt_status=$lt_dlunknown | ||
10474 | cat > conftest.$ac_ext <<_LT_EOF | ||
10475 | #line 10475 "configure" | ||
10476 | #include "confdefs.h" | ||
10477 | |||
10478 | #if HAVE_DLFCN_H | ||
10479 | #include <dlfcn.h> | ||
10480 | #endif | ||
10481 | |||
10482 | #include <stdio.h> | ||
10483 | |||
10484 | #ifdef RTLD_GLOBAL | ||
10485 | # define LT_DLGLOBAL RTLD_GLOBAL | ||
10486 | #else | ||
10487 | # ifdef DL_GLOBAL | ||
10488 | # define LT_DLGLOBAL DL_GLOBAL | ||
10489 | # else | ||
10490 | # define LT_DLGLOBAL 0 | ||
10491 | # endif | ||
10492 | #endif | ||
10493 | |||
10494 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | ||
10495 | find out it does not work in some platform. */ | ||
10496 | #ifndef LT_DLLAZY_OR_NOW | ||
10497 | # ifdef RTLD_LAZY | ||
10498 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | ||
10499 | # else | ||
10500 | # ifdef DL_LAZY | ||
10501 | # define LT_DLLAZY_OR_NOW DL_LAZY | ||
10502 | # else | ||
10503 | # ifdef RTLD_NOW | ||
10504 | # define LT_DLLAZY_OR_NOW RTLD_NOW | ||
10505 | # else | ||
10506 | # ifdef DL_NOW | ||
10507 | # define LT_DLLAZY_OR_NOW DL_NOW | ||
10508 | # else | ||
10509 | # define LT_DLLAZY_OR_NOW 0 | ||
10510 | # endif | ||
10511 | # endif | ||
10512 | # endif | ||
10513 | # endif | ||
10514 | #endif | ||
10515 | |||
10516 | void fnord() { int i=42;} | ||
10517 | int main () | ||
10518 | { | ||
10519 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | ||
10520 | int status = $lt_dlunknown; | ||
10521 | |||
10522 | if (self) | ||
10523 | { | ||
10524 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | ||
10525 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | ||
10526 | /* dlclose (self); */ | ||
10527 | } | ||
10528 | else | ||
10529 | puts (dlerror ()); | ||
10530 | |||
10531 | return status; | ||
10532 | } | ||
10533 | _LT_EOF | ||
10534 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | ||
10535 | (eval $ac_link) 2>&5 | ||
10536 | ac_status=$? | ||
10537 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
10538 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | ||
10539 | (./conftest; exit; ) >&5 2>/dev/null | ||
10540 | lt_status=$? | ||
10541 | case x$lt_status in | ||
10542 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | ||
10543 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | ||
10544 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | ||
10545 | esac | ||
10546 | else : | ||
10547 | # compilation failed | ||
10548 | lt_cv_dlopen_self=no | ||
10549 | fi | ||
10550 | fi | ||
10551 | rm -fr conftest* | ||
10552 | |||
10553 | |||
10554 | fi | ||
10555 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 | ||
10556 | $as_echo "$lt_cv_dlopen_self" >&6; } | ||
10557 | |||
10558 | if test "x$lt_cv_dlopen_self" = xyes; then | ||
10559 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | ||
10560 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 | ||
10561 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | ||
10562 | if test "${lt_cv_dlopen_self_static+set}" = set; then : | ||
10563 | $as_echo_n "(cached) " >&6 | ||
10564 | else | ||
10565 | if test "$cross_compiling" = yes; then : | ||
10566 | lt_cv_dlopen_self_static=cross | ||
10567 | else | ||
10568 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | ||
10569 | lt_status=$lt_dlunknown | ||
10570 | cat > conftest.$ac_ext <<_LT_EOF | ||
10571 | #line 10571 "configure" | ||
10572 | #include "confdefs.h" | ||
10573 | |||
10574 | #if HAVE_DLFCN_H | ||
10575 | #include <dlfcn.h> | ||
10576 | #endif | ||
10577 | |||
10578 | #include <stdio.h> | ||
10579 | |||
10580 | #ifdef RTLD_GLOBAL | ||
10581 | # define LT_DLGLOBAL RTLD_GLOBAL | ||
10582 | #else | ||
10583 | # ifdef DL_GLOBAL | ||
10584 | # define LT_DLGLOBAL DL_GLOBAL | ||
10585 | # else | ||
10586 | # define LT_DLGLOBAL 0 | ||
10587 | # endif | ||
10588 | #endif | ||
10589 | |||
10590 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | ||
10591 | find out it does not work in some platform. */ | ||
10592 | #ifndef LT_DLLAZY_OR_NOW | ||
10593 | # ifdef RTLD_LAZY | ||
10594 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | ||
10595 | # else | ||
10596 | # ifdef DL_LAZY | ||
10597 | # define LT_DLLAZY_OR_NOW DL_LAZY | ||
10598 | # else | ||
10599 | # ifdef RTLD_NOW | ||
10600 | # define LT_DLLAZY_OR_NOW RTLD_NOW | ||
10601 | # else | ||
10602 | # ifdef DL_NOW | ||
10603 | # define LT_DLLAZY_OR_NOW DL_NOW | ||
10604 | # else | ||
10605 | # define LT_DLLAZY_OR_NOW 0 | ||
10606 | # endif | ||
10607 | # endif | ||
10608 | # endif | ||
10609 | # endif | ||
10610 | #endif | ||
10611 | |||
10612 | void fnord() { int i=42;} | ||
10613 | int main () | ||
10614 | { | ||
10615 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | ||
10616 | int status = $lt_dlunknown; | ||
10617 | |||
10618 | if (self) | ||
10619 | { | ||
10620 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | ||
10621 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | ||
10622 | /* dlclose (self); */ | ||
10623 | } | ||
10624 | else | ||
10625 | puts (dlerror ()); | ||
10626 | |||
10627 | return status; | ||
10628 | } | ||
10629 | _LT_EOF | ||
10630 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | ||
10631 | (eval $ac_link) 2>&5 | ||
10632 | ac_status=$? | ||
10633 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
10634 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | ||
10635 | (./conftest; exit; ) >&5 2>/dev/null | ||
10636 | lt_status=$? | ||
10637 | case x$lt_status in | ||
10638 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | ||
10639 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | ||
10640 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | ||
10641 | esac | ||
10642 | else : | ||
10643 | # compilation failed | ||
10644 | lt_cv_dlopen_self_static=no | ||
10645 | fi | ||
10646 | fi | ||
10647 | rm -fr conftest* | ||
10648 | |||
10649 | |||
10650 | fi | ||
10651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 | ||
10652 | $as_echo "$lt_cv_dlopen_self_static" >&6; } | ||
10653 | fi | ||
10654 | |||
10655 | CPPFLAGS="$save_CPPFLAGS" | ||
10656 | LDFLAGS="$save_LDFLAGS" | ||
10657 | LIBS="$save_LIBS" | ||
10658 | ;; | ||
10659 | esac | ||
10660 | |||
10661 | case $lt_cv_dlopen_self in | ||
10662 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | ||
10663 | *) enable_dlopen_self=unknown ;; | ||
10664 | esac | ||
10665 | |||
10666 | case $lt_cv_dlopen_self_static in | ||
10667 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | ||
10668 | *) enable_dlopen_self_static=unknown ;; | ||
10669 | esac | ||
10670 | fi | ||
10671 | |||
10672 | |||
10673 | |||
10674 | |||
10675 | |||
10676 | |||
10677 | |||
10678 | |||
10679 | |||
10680 | |||
10681 | |||
10682 | |||
10683 | |||
10684 | |||
10685 | |||
10686 | |||
10687 | |||
10688 | striplib= | ||
10689 | old_striplib= | ||
10690 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 | ||
10691 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } | ||
10692 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | ||
10693 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | ||
10694 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | ||
10695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
10696 | $as_echo "yes" >&6; } | ||
10697 | else | ||
10698 | # FIXME - insert some real tests, host_os isn't really good enough | ||
10699 | case $host_os in | ||
10700 | darwin*) | ||
10701 | if test -n "$STRIP" ; then | ||
10702 | striplib="$STRIP -x" | ||
10703 | old_striplib="$STRIP -S" | ||
10704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
10705 | $as_echo "yes" >&6; } | ||
10706 | else | ||
10707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
10708 | $as_echo "no" >&6; } | ||
10709 | fi | ||
10710 | ;; | ||
10711 | *) | ||
10712 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
10713 | $as_echo "no" >&6; } | ||
10714 | ;; | ||
10715 | esac | ||
10716 | fi | ||
10717 | |||
10718 | |||
10719 | |||
10720 | |||
10721 | |||
10722 | |||
10723 | |||
10724 | |||
10725 | |||
10726 | |||
10727 | |||
10728 | |||
10729 | # Report which library types will actually be built | ||
10730 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 | ||
10731 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | ||
10732 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | ||
10733 | $as_echo "$can_build_shared" >&6; } | ||
10734 | |||
10735 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 | ||
10736 | $as_echo_n "checking whether to build shared libraries... " >&6; } | ||
10737 | test "$can_build_shared" = "no" && enable_shared=no | ||
10738 | |||
10739 | # On AIX, shared libraries and static libraries use the same namespace, and | ||
10740 | # are all built from PIC. | ||
10741 | case $host_os in | ||
10742 | aix3*) | ||
10743 | test "$enable_shared" = yes && enable_static=no | ||
10744 | if test -n "$RANLIB"; then | ||
10745 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | ||
10746 | postinstall_cmds='$RANLIB $lib' | ||
10747 | fi | ||
10748 | ;; | ||
10749 | |||
10750 | aix[4-9]*) | ||
10751 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | ||
10752 | test "$enable_shared" = yes && enable_static=no | ||
10753 | fi | ||
10754 | ;; | ||
10755 | esac | ||
10756 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 | ||
10757 | $as_echo "$enable_shared" >&6; } | ||
10758 | |||
10759 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 | ||
10760 | $as_echo_n "checking whether to build static libraries... " >&6; } | ||
10761 | # Make sure either enable_shared or enable_static is yes. | ||
10762 | test "$enable_shared" = yes || enable_static=yes | ||
10763 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 | ||
10764 | $as_echo "$enable_static" >&6; } | ||
10765 | |||
10766 | |||
10767 | |||
10768 | |||
10769 | fi | ||
10770 | ac_ext=c | ||
10771 | ac_cpp='$CPP $CPPFLAGS' | ||
10772 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
10773 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
10774 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
10775 | |||
10776 | CC="$lt_save_CC" | ||
10777 | |||
10778 | |||
10779 | |||
10780 | |||
10781 | |||
10782 | |||
10783 | |||
10784 | |||
10785 | |||
10786 | |||
10787 | |||
10788 | |||
10789 | |||
10790 | ac_config_commands="$ac_config_commands libtool" | ||
10791 | |||
10792 | |||
10793 | |||
10794 | |||
10795 | # Only expand once: | ||
10796 | |||
10797 | |||
10798 | |||
10799 | ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## | ||
10800 | ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## | ||
10801 | |||
10802 | |||
10803 | |||
10804 | cat >>confdefs.h <<_ACEOF | ||
10805 | #define VMAJ 1 | ||
10806 | _ACEOF | ||
10807 | |||
10808 | |||
10809 | cat >>confdefs.h <<_ACEOF | ||
10810 | #define VMIN 2 | ||
10811 | _ACEOF | ||
10812 | |||
10813 | |||
10814 | cat >>confdefs.h <<_ACEOF | ||
10815 | #define VMIC 0 | ||
10816 | _ACEOF | ||
10817 | |||
10818 | |||
10819 | cat >>confdefs.h <<_ACEOF | ||
10820 | #define VREV 0 | ||
10821 | _ACEOF | ||
10822 | |||
10823 | version_info="3:0:2" | ||
10824 | release_info="" | ||
10825 | |||
10826 | |||
10827 | ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## | ||
10828 | ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## | ||
10829 | VMAJ=1 | ||
10830 | |||
10831 | |||
10832 | ### Default options with respect to host | ||
10833 | |||
10834 | |||
10835 | |||
10836 | |||
10837 | requirement_embryo="" | ||
10838 | embryoincludedir="${datadir}/include" | ||
10839 | |||
10840 | |||
10841 | ### Additional options to configure | ||
10842 | |||
10843 | |||
10844 | |||
10845 | |||
10846 | have_embryo_cc="yes" | ||
10847 | |||
10848 | |||
10849 | # Check whether --enable-embryo-cc was given. | ||
10850 | if test "${enable_embryo_cc+set}" = set; then : | ||
10851 | enableval=$enable_embryo_cc; | ||
10852 | if test "x${enableval}" = "xyes" ; then | ||
10853 | have_embryo_cc="yes" | ||
10854 | else | ||
10855 | have_embryo_cc="no" | ||
10856 | fi | ||
10857 | |||
10858 | fi | ||
10859 | |||
10860 | |||
10861 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build embryo_cc binary" >&5 | ||
10862 | $as_echo_n "checking whether to build embryo_cc binary... " >&6; } | ||
10863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_embryo_cc" >&5 | ||
10864 | $as_echo "$have_embryo_cc" >&6; } | ||
10865 | |||
10866 | if test "x$have_embryo_cc" = "xyes"; then | ||
10867 | EMBRYO_CC_PRG=embryo_cc${EXEEXT} | ||
10868 | fi | ||
10869 | |||
10870 | |||
10871 | |||
10872 | if test "x$have_embryo_cc" = "xyes"; then | ||
10873 | BUILD_EMBRYO_CC_TRUE= | ||
10874 | BUILD_EMBRYO_CC_FALSE='#' | ||
10875 | else | ||
10876 | BUILD_EMBRYO_CC_TRUE='#' | ||
10877 | BUILD_EMBRYO_CC_FALSE= | ||
10878 | fi | ||
10879 | |||
10880 | |||
10881 | if test "x$have_embryo_cc" = "xyes"; then : | ||
10882 | |||
10883 | fi | ||
10884 | |||
10885 | |||
10886 | |||
10887 | |||
10888 | ### Checks for programs | ||
10889 | ac_ext=c | ||
10890 | ac_cpp='$CPP $CPPFLAGS' | ||
10891 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
10892 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
10893 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
10894 | if test -n "$ac_tool_prefix"; then | ||
10895 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | ||
10896 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | ||
10897 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
10898 | $as_echo_n "checking for $ac_word... " >&6; } | ||
10899 | if test "${ac_cv_prog_CC+set}" = set; then : | ||
10900 | $as_echo_n "(cached) " >&6 | ||
10901 | else | ||
10902 | if test -n "$CC"; then | ||
10903 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
10904 | else | ||
10905 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
10906 | for as_dir in $PATH | ||
10907 | do | ||
10908 | IFS=$as_save_IFS | ||
10909 | test -z "$as_dir" && as_dir=. | ||
10910 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
10911 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
10912 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | ||
10913 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
10914 | break 2 | ||
10915 | fi | ||
10916 | done | ||
10917 | done | ||
10918 | IFS=$as_save_IFS | ||
10919 | |||
10920 | fi | ||
10921 | fi | ||
10922 | CC=$ac_cv_prog_CC | ||
10923 | if test -n "$CC"; then | ||
10924 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
10925 | $as_echo "$CC" >&6; } | ||
10926 | else | ||
10927 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
10928 | $as_echo "no" >&6; } | ||
10929 | fi | ||
10930 | |||
10931 | |||
10932 | fi | ||
10933 | if test -z "$ac_cv_prog_CC"; then | ||
10934 | ac_ct_CC=$CC | ||
10935 | # Extract the first word of "gcc", so it can be a program name with args. | ||
10936 | set dummy gcc; ac_word=$2 | ||
10937 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
10938 | $as_echo_n "checking for $ac_word... " >&6; } | ||
10939 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | ||
10940 | $as_echo_n "(cached) " >&6 | ||
10941 | else | ||
10942 | if test -n "$ac_ct_CC"; then | ||
10943 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
10944 | else | ||
10945 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
10946 | for as_dir in $PATH | ||
10947 | do | ||
10948 | IFS=$as_save_IFS | ||
10949 | test -z "$as_dir" && as_dir=. | ||
10950 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
10951 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
10952 | ac_cv_prog_ac_ct_CC="gcc" | ||
10953 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
10954 | break 2 | ||
10955 | fi | ||
10956 | done | ||
10957 | done | ||
10958 | IFS=$as_save_IFS | ||
10959 | |||
10960 | fi | ||
10961 | fi | ||
10962 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
10963 | if test -n "$ac_ct_CC"; then | ||
10964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | ||
10965 | $as_echo "$ac_ct_CC" >&6; } | ||
10966 | else | ||
10967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
10968 | $as_echo "no" >&6; } | ||
10969 | fi | ||
10970 | |||
10971 | if test "x$ac_ct_CC" = x; then | ||
10972 | CC="" | ||
10973 | else | ||
10974 | case $cross_compiling:$ac_tool_warned in | ||
10975 | yes:) | ||
10976 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
10977 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
10978 | ac_tool_warned=yes ;; | ||
10979 | esac | ||
10980 | CC=$ac_ct_CC | ||
10981 | fi | ||
10982 | else | ||
10983 | CC="$ac_cv_prog_CC" | ||
10984 | fi | ||
10985 | |||
10986 | if test -z "$CC"; then | ||
10987 | if test -n "$ac_tool_prefix"; then | ||
10988 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | ||
10989 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | ||
10990 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
10991 | $as_echo_n "checking for $ac_word... " >&6; } | ||
10992 | if test "${ac_cv_prog_CC+set}" = set; then : | ||
10993 | $as_echo_n "(cached) " >&6 | ||
10994 | else | ||
10995 | if test -n "$CC"; then | ||
10996 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
10997 | else | ||
10998 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
10999 | for as_dir in $PATH | ||
11000 | do | ||
11001 | IFS=$as_save_IFS | ||
11002 | test -z "$as_dir" && as_dir=. | ||
11003 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
11004 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
11005 | ac_cv_prog_CC="${ac_tool_prefix}cc" | ||
11006 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
11007 | break 2 | ||
11008 | fi | ||
11009 | done | ||
11010 | done | ||
11011 | IFS=$as_save_IFS | ||
11012 | |||
11013 | fi | ||
11014 | fi | ||
11015 | CC=$ac_cv_prog_CC | ||
11016 | if test -n "$CC"; then | ||
11017 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
11018 | $as_echo "$CC" >&6; } | ||
11019 | else | ||
11020 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
11021 | $as_echo "no" >&6; } | ||
11022 | fi | ||
11023 | |||
11024 | |||
11025 | fi | ||
11026 | fi | ||
11027 | if test -z "$CC"; then | ||
11028 | # Extract the first word of "cc", so it can be a program name with args. | ||
11029 | set dummy cc; ac_word=$2 | ||
11030 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
11031 | $as_echo_n "checking for $ac_word... " >&6; } | ||
11032 | if test "${ac_cv_prog_CC+set}" = set; then : | ||
11033 | $as_echo_n "(cached) " >&6 | ||
11034 | else | ||
11035 | if test -n "$CC"; then | ||
11036 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
11037 | else | ||
11038 | ac_prog_rejected=no | ||
11039 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
11040 | for as_dir in $PATH | ||
11041 | do | ||
11042 | IFS=$as_save_IFS | ||
11043 | test -z "$as_dir" && as_dir=. | ||
11044 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
11045 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
11046 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | ||
11047 | ac_prog_rejected=yes | ||
11048 | continue | ||
11049 | fi | ||
11050 | ac_cv_prog_CC="cc" | ||
11051 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
11052 | break 2 | ||
11053 | fi | ||
11054 | done | ||
11055 | done | ||
11056 | IFS=$as_save_IFS | ||
11057 | |||
11058 | if test $ac_prog_rejected = yes; then | ||
11059 | # We found a bogon in the path, so make sure we never use it. | ||
11060 | set dummy $ac_cv_prog_CC | ||
11061 | shift | ||
11062 | if test $# != 0; then | ||
11063 | # We chose a different compiler from the bogus one. | ||
11064 | # However, it has the same basename, so the bogon will be chosen | ||
11065 | # first if we set CC to just the basename; use the full file name. | ||
11066 | shift | ||
11067 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | ||
11068 | fi | ||
11069 | fi | ||
11070 | fi | ||
11071 | fi | ||
11072 | CC=$ac_cv_prog_CC | ||
11073 | if test -n "$CC"; then | ||
11074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
11075 | $as_echo "$CC" >&6; } | ||
11076 | else | ||
11077 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
11078 | $as_echo "no" >&6; } | ||
11079 | fi | ||
11080 | |||
11081 | |||
11082 | fi | ||
11083 | if test -z "$CC"; then | ||
11084 | if test -n "$ac_tool_prefix"; then | ||
11085 | for ac_prog in cl.exe | ||
11086 | do | ||
11087 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
11088 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
11089 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
11090 | $as_echo_n "checking for $ac_word... " >&6; } | ||
11091 | if test "${ac_cv_prog_CC+set}" = set; then : | ||
11092 | $as_echo_n "(cached) " >&6 | ||
11093 | else | ||
11094 | if test -n "$CC"; then | ||
11095 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
11096 | else | ||
11097 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
11098 | for as_dir in $PATH | ||
11099 | do | ||
11100 | IFS=$as_save_IFS | ||
11101 | test -z "$as_dir" && as_dir=. | ||
11102 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
11103 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
11104 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | ||
11105 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
11106 | break 2 | ||
11107 | fi | ||
11108 | done | ||
11109 | done | ||
11110 | IFS=$as_save_IFS | ||
11111 | |||
11112 | fi | ||
11113 | fi | ||
11114 | CC=$ac_cv_prog_CC | ||
11115 | if test -n "$CC"; then | ||
11116 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
11117 | $as_echo "$CC" >&6; } | ||
11118 | else | ||
11119 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
11120 | $as_echo "no" >&6; } | ||
11121 | fi | ||
11122 | |||
11123 | |||
11124 | test -n "$CC" && break | ||
11125 | done | ||
11126 | fi | ||
11127 | if test -z "$CC"; then | ||
11128 | ac_ct_CC=$CC | ||
11129 | for ac_prog in cl.exe | ||
11130 | do | ||
11131 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
11132 | set dummy $ac_prog; ac_word=$2 | ||
11133 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
11134 | $as_echo_n "checking for $ac_word... " >&6; } | ||
11135 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | ||
11136 | $as_echo_n "(cached) " >&6 | ||
11137 | else | ||
11138 | if test -n "$ac_ct_CC"; then | ||
11139 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
11140 | else | ||
11141 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
11142 | for as_dir in $PATH | ||
11143 | do | ||
11144 | IFS=$as_save_IFS | ||
11145 | test -z "$as_dir" && as_dir=. | ||
11146 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
11147 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
11148 | ac_cv_prog_ac_ct_CC="$ac_prog" | ||
11149 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
11150 | break 2 | ||
11151 | fi | ||
11152 | done | ||
11153 | done | ||
11154 | IFS=$as_save_IFS | ||
11155 | |||
11156 | fi | ||
11157 | fi | ||
11158 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
11159 | if test -n "$ac_ct_CC"; then | ||
11160 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | ||
11161 | $as_echo "$ac_ct_CC" >&6; } | ||
11162 | else | ||
11163 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
11164 | $as_echo "no" >&6; } | ||
11165 | fi | ||
11166 | |||
11167 | |||
11168 | test -n "$ac_ct_CC" && break | ||
11169 | done | ||
11170 | |||
11171 | if test "x$ac_ct_CC" = x; then | ||
11172 | CC="" | ||
11173 | else | ||
11174 | case $cross_compiling:$ac_tool_warned in | ||
11175 | yes:) | ||
11176 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
11177 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
11178 | ac_tool_warned=yes ;; | ||
11179 | esac | ||
11180 | CC=$ac_ct_CC | ||
11181 | fi | ||
11182 | fi | ||
11183 | |||
11184 | fi | ||
11185 | |||
11186 | |||
11187 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
11188 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
11189 | as_fn_error $? "no acceptable C compiler found in \$PATH | ||
11190 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
11191 | |||
11192 | # Provide some information about the compiler. | ||
11193 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | ||
11194 | set X $ac_compile | ||
11195 | ac_compiler=$2 | ||
11196 | for ac_option in --version -v -V -qversion; do | ||
11197 | { { ac_try="$ac_compiler $ac_option >&5" | ||
11198 | case "(($ac_try" in | ||
11199 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11200 | *) ac_try_echo=$ac_try;; | ||
11201 | esac | ||
11202 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
11203 | $as_echo "$ac_try_echo"; } >&5 | ||
11204 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | ||
11205 | ac_status=$? | ||
11206 | if test -s conftest.err; then | ||
11207 | sed '10a\ | ||
11208 | ... rest of stderr output deleted ... | ||
11209 | 10q' conftest.err >conftest.er1 | ||
11210 | cat conftest.er1 >&5 | ||
11211 | fi | ||
11212 | rm -f conftest.er1 conftest.err | ||
11213 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
11214 | test $ac_status = 0; } | ||
11215 | done | ||
11216 | |||
11217 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | ||
11218 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | ||
11219 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | ||
11220 | $as_echo_n "(cached) " >&6 | ||
11221 | else | ||
11222 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11223 | /* end confdefs.h. */ | ||
11224 | |||
11225 | int | ||
11226 | main () | ||
11227 | { | ||
11228 | #ifndef __GNUC__ | ||
11229 | choke me | ||
11230 | #endif | ||
11231 | |||
11232 | ; | ||
11233 | return 0; | ||
11234 | } | ||
11235 | _ACEOF | ||
11236 | if ac_fn_c_try_compile "$LINENO"; then : | ||
11237 | ac_compiler_gnu=yes | ||
11238 | else | ||
11239 | ac_compiler_gnu=no | ||
11240 | fi | ||
11241 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
11242 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | ||
11243 | |||
11244 | fi | ||
11245 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | ||
11246 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | ||
11247 | if test $ac_compiler_gnu = yes; then | ||
11248 | GCC=yes | ||
11249 | else | ||
11250 | GCC= | ||
11251 | fi | ||
11252 | ac_test_CFLAGS=${CFLAGS+set} | ||
11253 | ac_save_CFLAGS=$CFLAGS | ||
11254 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | ||
11255 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | ||
11256 | if test "${ac_cv_prog_cc_g+set}" = set; then : | ||
11257 | $as_echo_n "(cached) " >&6 | ||
11258 | else | ||
11259 | ac_save_c_werror_flag=$ac_c_werror_flag | ||
11260 | ac_c_werror_flag=yes | ||
11261 | ac_cv_prog_cc_g=no | ||
11262 | CFLAGS="-g" | ||
11263 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11264 | /* end confdefs.h. */ | ||
11265 | |||
11266 | int | ||
11267 | main () | ||
11268 | { | ||
11269 | |||
11270 | ; | ||
11271 | return 0; | ||
11272 | } | ||
11273 | _ACEOF | ||
11274 | if ac_fn_c_try_compile "$LINENO"; then : | ||
11275 | ac_cv_prog_cc_g=yes | ||
11276 | else | ||
11277 | CFLAGS="" | ||
11278 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11279 | /* end confdefs.h. */ | ||
11280 | |||
11281 | int | ||
11282 | main () | ||
11283 | { | ||
11284 | |||
11285 | ; | ||
11286 | return 0; | ||
11287 | } | ||
11288 | _ACEOF | ||
11289 | if ac_fn_c_try_compile "$LINENO"; then : | ||
11290 | |||
11291 | else | ||
11292 | ac_c_werror_flag=$ac_save_c_werror_flag | ||
11293 | CFLAGS="-g" | ||
11294 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11295 | /* end confdefs.h. */ | ||
11296 | |||
11297 | int | ||
11298 | main () | ||
11299 | { | ||
11300 | |||
11301 | ; | ||
11302 | return 0; | ||
11303 | } | ||
11304 | _ACEOF | ||
11305 | if ac_fn_c_try_compile "$LINENO"; then : | ||
11306 | ac_cv_prog_cc_g=yes | ||
11307 | fi | ||
11308 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
11309 | fi | ||
11310 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
11311 | fi | ||
11312 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
11313 | ac_c_werror_flag=$ac_save_c_werror_flag | ||
11314 | fi | ||
11315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | ||
11316 | $as_echo "$ac_cv_prog_cc_g" >&6; } | ||
11317 | if test "$ac_test_CFLAGS" = set; then | ||
11318 | CFLAGS=$ac_save_CFLAGS | ||
11319 | elif test $ac_cv_prog_cc_g = yes; then | ||
11320 | if test "$GCC" = yes; then | ||
11321 | CFLAGS="-g -O2" | ||
11322 | else | ||
11323 | CFLAGS="-g" | ||
11324 | fi | ||
11325 | else | ||
11326 | if test "$GCC" = yes; then | ||
11327 | CFLAGS="-O2" | ||
11328 | else | ||
11329 | CFLAGS= | ||
11330 | fi | ||
11331 | fi | ||
11332 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | ||
11333 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | ||
11334 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | ||
11335 | $as_echo_n "(cached) " >&6 | ||
11336 | else | ||
11337 | ac_cv_prog_cc_c89=no | ||
11338 | ac_save_CC=$CC | ||
11339 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11340 | /* end confdefs.h. */ | ||
11341 | #include <stdarg.h> | ||
11342 | #include <stdio.h> | ||
11343 | #include <sys/types.h> | ||
11344 | #include <sys/stat.h> | ||
11345 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | ||
11346 | struct buf { int x; }; | ||
11347 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | ||
11348 | static char *e (p, i) | ||
11349 | char **p; | ||
11350 | int i; | ||
11351 | { | ||
11352 | return p[i]; | ||
11353 | } | ||
11354 | static char *f (char * (*g) (char **, int), char **p, ...) | ||
11355 | { | ||
11356 | char *s; | ||
11357 | va_list v; | ||
11358 | va_start (v,p); | ||
11359 | s = g (p, va_arg (v,int)); | ||
11360 | va_end (v); | ||
11361 | return s; | ||
11362 | } | ||
11363 | |||
11364 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | ||
11365 | function prototypes and stuff, but not '\xHH' hex character constants. | ||
11366 | These don't provoke an error unfortunately, instead are silently treated | ||
11367 | as 'x'. The following induces an error, until -std is added to get | ||
11368 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | ||
11369 | array size at least. It's necessary to write '\x00'==0 to get something | ||
11370 | that's true only with -std. */ | ||
11371 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | ||
11372 | |||
11373 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | ||
11374 | inside strings and character constants. */ | ||
11375 | #define FOO(x) 'x' | ||
11376 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | ||
11377 | |||
11378 | int test (int i, double x); | ||
11379 | struct s1 {int (*f) (int a);}; | ||
11380 | struct s2 {int (*f) (double a);}; | ||
11381 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | ||
11382 | int argc; | ||
11383 | char **argv; | ||
11384 | int | ||
11385 | main () | ||
11386 | { | ||
11387 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | ||
11388 | ; | ||
11389 | return 0; | ||
11390 | } | ||
11391 | _ACEOF | ||
11392 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | ||
11393 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | ||
11394 | do | ||
11395 | CC="$ac_save_CC $ac_arg" | ||
11396 | if ac_fn_c_try_compile "$LINENO"; then : | ||
11397 | ac_cv_prog_cc_c89=$ac_arg | ||
11398 | fi | ||
11399 | rm -f core conftest.err conftest.$ac_objext | ||
11400 | test "x$ac_cv_prog_cc_c89" != "xno" && break | ||
11401 | done | ||
11402 | rm -f conftest.$ac_ext | ||
11403 | CC=$ac_save_CC | ||
11404 | |||
11405 | fi | ||
11406 | # AC_CACHE_VAL | ||
11407 | case "x$ac_cv_prog_cc_c89" in | ||
11408 | x) | ||
11409 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | ||
11410 | $as_echo "none needed" >&6; } ;; | ||
11411 | xno) | ||
11412 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | ||
11413 | $as_echo "unsupported" >&6; } ;; | ||
11414 | *) | ||
11415 | CC="$CC $ac_cv_prog_cc_c89" | ||
11416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | ||
11417 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | ||
11418 | esac | ||
11419 | if test "x$ac_cv_prog_cc_c89" != xno; then : | ||
11420 | |||
11421 | fi | ||
11422 | |||
11423 | ac_ext=c | ||
11424 | ac_cpp='$CPP $CPPFLAGS' | ||
11425 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
11426 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
11427 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
11428 | |||
11429 | depcc="$CC" am_compiler_list= | ||
11430 | |||
11431 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | ||
11432 | $as_echo_n "checking dependency style of $depcc... " >&6; } | ||
11433 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : | ||
11434 | $as_echo_n "(cached) " >&6 | ||
11435 | else | ||
11436 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | ||
11437 | # We make a subdir and do the tests there. Otherwise we can end up | ||
11438 | # making bogus files that we don't know about and never remove. For | ||
11439 | # instance it was reported that on HP-UX the gcc test will end up | ||
11440 | # making a dummy file named `D' -- because `-MD' means `put the output | ||
11441 | # in D'. | ||
11442 | mkdir conftest.dir | ||
11443 | # Copy depcomp to subdir because otherwise we won't find it if we're | ||
11444 | # using a relative directory. | ||
11445 | cp "$am_depcomp" conftest.dir | ||
11446 | cd conftest.dir | ||
11447 | # We will build objects and dependencies in a subdirectory because | ||
11448 | # it helps to detect inapplicable dependency modes. For instance | ||
11449 | # both Tru64's cc and ICC support -MD to output dependencies as a | ||
11450 | # side effect of compilation, but ICC will put the dependencies in | ||
11451 | # the current directory while Tru64 will put them in the object | ||
11452 | # directory. | ||
11453 | mkdir sub | ||
11454 | |||
11455 | am_cv_CC_dependencies_compiler_type=none | ||
11456 | if test "$am_compiler_list" = ""; then | ||
11457 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | ||
11458 | fi | ||
11459 | am__universal=false | ||
11460 | case " $depcc " in #( | ||
11461 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | ||
11462 | esac | ||
11463 | |||
11464 | for depmode in $am_compiler_list; do | ||
11465 | # Setup a source with many dependencies, because some compilers | ||
11466 | # like to wrap large dependency lists on column 80 (with \), and | ||
11467 | # we should not choose a depcomp mode which is confused by this. | ||
11468 | # | ||
11469 | # We need to recreate these files for each test, as the compiler may | ||
11470 | # overwrite some of them when testing with obscure command lines. | ||
11471 | # This happens at least with the AIX C compiler. | ||
11472 | : > sub/conftest.c | ||
11473 | for i in 1 2 3 4 5 6; do | ||
11474 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | ||
11475 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | ||
11476 | # Solaris 8's {/usr,}/bin/sh. | ||
11477 | touch sub/conftst$i.h | ||
11478 | done | ||
11479 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | ||
11480 | |||
11481 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | ||
11482 | # mode. It turns out that the SunPro C++ compiler does not properly | ||
11483 | # handle `-M -o', and we need to detect this. Also, some Intel | ||
11484 | # versions had trouble with output in subdirs | ||
11485 | am__obj=sub/conftest.${OBJEXT-o} | ||
11486 | am__minus_obj="-o $am__obj" | ||
11487 | case $depmode in | ||
11488 | gcc) | ||
11489 | # This depmode causes a compiler race in universal mode. | ||
11490 | test "$am__universal" = false || continue | ||
11491 | ;; | ||
11492 | nosideeffect) | ||
11493 | # after this tag, mechanisms are not by side-effect, so they'll | ||
11494 | # only be used when explicitly requested | ||
11495 | if test "x$enable_dependency_tracking" = xyes; then | ||
11496 | continue | ||
11497 | else | ||
11498 | break | ||
11499 | fi | ||
11500 | ;; | ||
11501 | msvisualcpp | msvcmsys) | ||
11502 | # This compiler won't grok `-c -o', but also, the minuso test has | ||
11503 | # not run yet. These depmodes are late enough in the game, and | ||
11504 | # so weak that their functioning should not be impacted. | ||
11505 | am__obj=conftest.${OBJEXT-o} | ||
11506 | am__minus_obj= | ||
11507 | ;; | ||
11508 | none) break ;; | ||
11509 | esac | ||
11510 | if depmode=$depmode \ | ||
11511 | source=sub/conftest.c object=$am__obj \ | ||
11512 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | ||
11513 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | ||
11514 | >/dev/null 2>conftest.err && | ||
11515 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | ||
11516 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | ||
11517 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | ||
11518 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | ||
11519 | # icc doesn't choke on unknown options, it will just issue warnings | ||
11520 | # or remarks (even with -Werror). So we grep stderr for any message | ||
11521 | # that says an option was ignored or not supported. | ||
11522 | # When given -MP, icc 7.0 and 7.1 complain thusly: | ||
11523 | # icc: Command line warning: ignoring option '-M'; no argument required | ||
11524 | # The diagnosis changed in icc 8.0: | ||
11525 | # icc: Command line remark: option '-MP' not supported | ||
11526 | if (grep 'ignoring option' conftest.err || | ||
11527 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | ||
11528 | am_cv_CC_dependencies_compiler_type=$depmode | ||
11529 | break | ||
11530 | fi | ||
11531 | fi | ||
11532 | done | ||
11533 | |||
11534 | cd .. | ||
11535 | rm -rf conftest.dir | ||
11536 | else | ||
11537 | am_cv_CC_dependencies_compiler_type=none | ||
11538 | fi | ||
11539 | |||
11540 | fi | ||
11541 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 | ||
11542 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | ||
11543 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | ||
11544 | |||
11545 | if | ||
11546 | test "x$enable_dependency_tracking" != xno \ | ||
11547 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | ||
11548 | am__fastdepCC_TRUE= | ||
11549 | am__fastdepCC_FALSE='#' | ||
11550 | else | ||
11551 | am__fastdepCC_TRUE='#' | ||
11552 | am__fastdepCC_FALSE= | ||
11553 | fi | ||
11554 | |||
11555 | |||
11556 | |||
11557 | # doxygen program for documentation building | ||
11558 | |||
11559 | |||
11560 | |||
11561 | # Check whether --enable-doc was given. | ||
11562 | if test "${enable_doc+set}" = set; then : | ||
11563 | enableval=$enable_doc; | ||
11564 | if test "x${enableval}" = "xyes" ; then | ||
11565 | efl_enable_doc="yes" | ||
11566 | else | ||
11567 | efl_enable_doc="no" | ||
11568 | fi | ||
11569 | |||
11570 | else | ||
11571 | efl_enable_doc="yes" | ||
11572 | fi | ||
11573 | |||
11574 | |||
11575 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build documentation" >&5 | ||
11576 | $as_echo_n "checking whether to build documentation... " >&6; } | ||
11577 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${efl_enable_doc}" >&5 | ||
11578 | $as_echo "${efl_enable_doc}" >&6; } | ||
11579 | |||
11580 | if test "x${efl_enable_doc}" = "xyes" ; then | ||
11581 | |||
11582 | |||
11583 | efl_doxygen="doxygen" | ||
11584 | |||
11585 | |||
11586 | # Check whether --with-doxygen was given. | ||
11587 | if test "${with_doxygen+set}" = set; then : | ||
11588 | withval=$with_doxygen; | ||
11589 | efl_doxygen=${withval} | ||
11590 | # Extract the first word of "${efl_doxygen}", so it can be a program name with args. | ||
11591 | set dummy ${efl_doxygen}; ac_word=$2 | ||
11592 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
11593 | $as_echo_n "checking for $ac_word... " >&6; } | ||
11594 | if test "${ac_cv_prog_efl_have_doxygen+set}" = set; then : | ||
11595 | $as_echo_n "(cached) " >&6 | ||
11596 | else | ||
11597 | if test -n "$efl_have_doxygen"; then | ||
11598 | ac_cv_prog_efl_have_doxygen="$efl_have_doxygen" # Let the user override the test. | ||
11599 | else | ||
11600 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
11601 | for as_dir in $PATH | ||
11602 | do | ||
11603 | IFS=$as_save_IFS | ||
11604 | test -z "$as_dir" && as_dir=. | ||
11605 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
11606 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
11607 | ac_cv_prog_efl_have_doxygen="yes" | ||
11608 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
11609 | break 2 | ||
11610 | fi | ||
11611 | done | ||
11612 | done | ||
11613 | IFS=$as_save_IFS | ||
11614 | |||
11615 | test -z "$ac_cv_prog_efl_have_doxygen" && ac_cv_prog_efl_have_doxygen="no" | ||
11616 | fi | ||
11617 | fi | ||
11618 | efl_have_doxygen=$ac_cv_prog_efl_have_doxygen | ||
11619 | if test -n "$efl_have_doxygen"; then | ||
11620 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $efl_have_doxygen" >&5 | ||
11621 | $as_echo "$efl_have_doxygen" >&6; } | ||
11622 | else | ||
11623 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
11624 | $as_echo "no" >&6; } | ||
11625 | fi | ||
11626 | |||
11627 | |||
11628 | if test "x${efl_have_doxygen}" = "xno" ; then | ||
11629 | echo "WARNING:" | ||
11630 | echo "The doxygen program you specified:" | ||
11631 | echo "${efl_doxygen}" | ||
11632 | echo "was not found. Please check the path and make sure " | ||
11633 | echo "the program exists and is executable." | ||
11634 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no doxygen detected. Documentation will not be built" >&5 | ||
11635 | $as_echo "$as_me: WARNING: no doxygen detected. Documentation will not be built" >&2;} | ||
11636 | fi | ||
11637 | |||
11638 | else | ||
11639 | # Extract the first word of "${efl_doxygen}", so it can be a program name with args. | ||
11640 | set dummy ${efl_doxygen}; ac_word=$2 | ||
11641 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
11642 | $as_echo_n "checking for $ac_word... " >&6; } | ||
11643 | if test "${ac_cv_prog_efl_have_doxygen+set}" = set; then : | ||
11644 | $as_echo_n "(cached) " >&6 | ||
11645 | else | ||
11646 | if test -n "$efl_have_doxygen"; then | ||
11647 | ac_cv_prog_efl_have_doxygen="$efl_have_doxygen" # Let the user override the test. | ||
11648 | else | ||
11649 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
11650 | for as_dir in $PATH | ||
11651 | do | ||
11652 | IFS=$as_save_IFS | ||
11653 | test -z "$as_dir" && as_dir=. | ||
11654 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
11655 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
11656 | ac_cv_prog_efl_have_doxygen="yes" | ||
11657 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
11658 | break 2 | ||
11659 | fi | ||
11660 | done | ||
11661 | done | ||
11662 | IFS=$as_save_IFS | ||
11663 | |||
11664 | test -z "$ac_cv_prog_efl_have_doxygen" && ac_cv_prog_efl_have_doxygen="no" | ||
11665 | fi | ||
11666 | fi | ||
11667 | efl_have_doxygen=$ac_cv_prog_efl_have_doxygen | ||
11668 | if test -n "$efl_have_doxygen"; then | ||
11669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $efl_have_doxygen" >&5 | ||
11670 | $as_echo "$efl_have_doxygen" >&6; } | ||
11671 | else | ||
11672 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
11673 | $as_echo "no" >&6; } | ||
11674 | fi | ||
11675 | |||
11676 | |||
11677 | if test "x${efl_have_doxygen}" = "xno" ; then | ||
11678 | echo "WARNING:" | ||
11679 | echo "The doxygen program was not found in your execute path." | ||
11680 | echo "You may have doxygen installed somewhere not covered by your path." | ||
11681 | echo "" | ||
11682 | echo "If this is the case make sure you have the packages installed, AND" | ||
11683 | echo "that the doxygen program is in your execute path (see your" | ||
11684 | echo "shell manual page on setting the \$PATH environment variable), OR" | ||
11685 | echo "alternatively, specify the program to use with --with-doxygen." | ||
11686 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no doxygen detected. Documentation will not be built" >&5 | ||
11687 | $as_echo "$as_me: WARNING: no doxygen detected. Documentation will not be built" >&2;} | ||
11688 | fi | ||
11689 | |||
11690 | fi | ||
11691 | |||
11692 | fi | ||
11693 | |||
11694 | |||
11695 | |||
11696 | if ! test "x${efl_have_doxygen}" = "xyes" ; then | ||
11697 | efl_enable_doc="no" | ||
11698 | fi | ||
11699 | |||
11700 | if test "x${efl_enable_doc}" = "xyes"; then | ||
11701 | EFL_BUILD_DOC_TRUE= | ||
11702 | EFL_BUILD_DOC_FALSE='#' | ||
11703 | else | ||
11704 | EFL_BUILD_DOC_TRUE='#' | ||
11705 | EFL_BUILD_DOC_FALSE= | ||
11706 | fi | ||
11707 | |||
11708 | |||
11709 | if test "x${efl_enable_doc}" = "xyes" ; then | ||
11710 | build_doc="yes" | ||
11711 | else | ||
11712 | build_doc="no" | ||
11713 | fi | ||
11714 | |||
11715 | |||
11716 | |||
11717 | # pkg-config | ||
11718 | |||
11719 | |||
11720 | |||
11721 | |||
11722 | |||
11723 | |||
11724 | |||
11725 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | ||
11726 | if test -n "$ac_tool_prefix"; then | ||
11727 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | ||
11728 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | ||
11729 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
11730 | $as_echo_n "checking for $ac_word... " >&6; } | ||
11731 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : | ||
11732 | $as_echo_n "(cached) " >&6 | ||
11733 | else | ||
11734 | case $PKG_CONFIG in | ||
11735 | [\\/]* | ?:[\\/]*) | ||
11736 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | ||
11737 | ;; | ||
11738 | *) | ||
11739 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
11740 | for as_dir in $PATH | ||
11741 | do | ||
11742 | IFS=$as_save_IFS | ||
11743 | test -z "$as_dir" && as_dir=. | ||
11744 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
11745 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
11746 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
11747 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
11748 | break 2 | ||
11749 | fi | ||
11750 | done | ||
11751 | done | ||
11752 | IFS=$as_save_IFS | ||
11753 | |||
11754 | ;; | ||
11755 | esac | ||
11756 | fi | ||
11757 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | ||
11758 | if test -n "$PKG_CONFIG"; then | ||
11759 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | ||
11760 | $as_echo "$PKG_CONFIG" >&6; } | ||
11761 | else | ||
11762 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
11763 | $as_echo "no" >&6; } | ||
11764 | fi | ||
11765 | |||
11766 | |||
11767 | fi | ||
11768 | if test -z "$ac_cv_path_PKG_CONFIG"; then | ||
11769 | ac_pt_PKG_CONFIG=$PKG_CONFIG | ||
11770 | # Extract the first word of "pkg-config", so it can be a program name with args. | ||
11771 | set dummy pkg-config; ac_word=$2 | ||
11772 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
11773 | $as_echo_n "checking for $ac_word... " >&6; } | ||
11774 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then : | ||
11775 | $as_echo_n "(cached) " >&6 | ||
11776 | else | ||
11777 | case $ac_pt_PKG_CONFIG in | ||
11778 | [\\/]* | ?:[\\/]*) | ||
11779 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | ||
11780 | ;; | ||
11781 | *) | ||
11782 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
11783 | for as_dir in $PATH | ||
11784 | do | ||
11785 | IFS=$as_save_IFS | ||
11786 | test -z "$as_dir" && as_dir=. | ||
11787 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
11788 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
11789 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
11790 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
11791 | break 2 | ||
11792 | fi | ||
11793 | done | ||
11794 | done | ||
11795 | IFS=$as_save_IFS | ||
11796 | |||
11797 | ;; | ||
11798 | esac | ||
11799 | fi | ||
11800 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | ||
11801 | if test -n "$ac_pt_PKG_CONFIG"; then | ||
11802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 | ||
11803 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | ||
11804 | else | ||
11805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
11806 | $as_echo "no" >&6; } | ||
11807 | fi | ||
11808 | |||
11809 | if test "x$ac_pt_PKG_CONFIG" = x; then | ||
11810 | PKG_CONFIG="" | ||
11811 | else | ||
11812 | case $cross_compiling:$ac_tool_warned in | ||
11813 | yes:) | ||
11814 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
11815 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
11816 | ac_tool_warned=yes ;; | ||
11817 | esac | ||
11818 | PKG_CONFIG=$ac_pt_PKG_CONFIG | ||
11819 | fi | ||
11820 | else | ||
11821 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | ||
11822 | fi | ||
11823 | |||
11824 | fi | ||
11825 | if test -n "$PKG_CONFIG"; then | ||
11826 | _pkg_min_version=0.9.0 | ||
11827 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 | ||
11828 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | ||
11829 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | ||
11830 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
11831 | $as_echo "yes" >&6; } | ||
11832 | else | ||
11833 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
11834 | $as_echo "no" >&6; } | ||
11835 | PKG_CONFIG="" | ||
11836 | fi | ||
11837 | fi | ||
11838 | |||
11839 | # Check whether pkg-config supports Requires.private | ||
11840 | if $PKG_CONFIG --atleast-pkgconfig-version 0.22; then | ||
11841 | pkgconfig_requires_private="Requires.private" | ||
11842 | else | ||
11843 | pkgconfig_requires_private="Requires" | ||
11844 | fi | ||
11845 | |||
11846 | |||
11847 | |||
11848 | ### Checks for libraries | ||
11849 | |||
11850 | # Evil library for compilation on Windows | ||
11851 | |||
11852 | EFL_EMBRYO_BUILD="" | ||
11853 | case "$host_os" in | ||
11854 | mingw*) | ||
11855 | |||
11856 | pkg_failed=no | ||
11857 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVIL" >&5 | ||
11858 | $as_echo_n "checking for EVIL... " >&6; } | ||
11859 | |||
11860 | if test -n "$EVIL_CFLAGS"; then | ||
11861 | pkg_cv_EVIL_CFLAGS="$EVIL_CFLAGS" | ||
11862 | elif test -n "$PKG_CONFIG"; then | ||
11863 | if test -n "$PKG_CONFIG" && \ | ||
11864 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"evil >= 1.0.0\""; } >&5 | ||
11865 | ($PKG_CONFIG --exists --print-errors "evil >= 1.0.0") 2>&5 | ||
11866 | ac_status=$? | ||
11867 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
11868 | test $ac_status = 0; }; then | ||
11869 | pkg_cv_EVIL_CFLAGS=`$PKG_CONFIG --cflags "evil >= 1.0.0" 2>/dev/null` | ||
11870 | else | ||
11871 | pkg_failed=yes | ||
11872 | fi | ||
11873 | else | ||
11874 | pkg_failed=untried | ||
11875 | fi | ||
11876 | if test -n "$EVIL_LIBS"; then | ||
11877 | pkg_cv_EVIL_LIBS="$EVIL_LIBS" | ||
11878 | elif test -n "$PKG_CONFIG"; then | ||
11879 | if test -n "$PKG_CONFIG" && \ | ||
11880 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"evil >= 1.0.0\""; } >&5 | ||
11881 | ($PKG_CONFIG --exists --print-errors "evil >= 1.0.0") 2>&5 | ||
11882 | ac_status=$? | ||
11883 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
11884 | test $ac_status = 0; }; then | ||
11885 | pkg_cv_EVIL_LIBS=`$PKG_CONFIG --libs "evil >= 1.0.0" 2>/dev/null` | ||
11886 | else | ||
11887 | pkg_failed=yes | ||
11888 | fi | ||
11889 | else | ||
11890 | pkg_failed=untried | ||
11891 | fi | ||
11892 | |||
11893 | |||
11894 | |||
11895 | if test $pkg_failed = yes; then | ||
11896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
11897 | $as_echo "no" >&6; } | ||
11898 | |||
11899 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
11900 | _pkg_short_errors_supported=yes | ||
11901 | else | ||
11902 | _pkg_short_errors_supported=no | ||
11903 | fi | ||
11904 | if test $_pkg_short_errors_supported = yes; then | ||
11905 | EVIL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "evil >= 1.0.0" 2>&1` | ||
11906 | else | ||
11907 | EVIL_PKG_ERRORS=`$PKG_CONFIG --print-errors "evil >= 1.0.0" 2>&1` | ||
11908 | fi | ||
11909 | # Put the nasty error message in config.log where it belongs | ||
11910 | echo "$EVIL_PKG_ERRORS" >&5 | ||
11911 | |||
11912 | as_fn_error $? "Package requirements (evil >= 1.0.0) were not met: | ||
11913 | |||
11914 | $EVIL_PKG_ERRORS | ||
11915 | |||
11916 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | ||
11917 | installed software in a non-standard prefix. | ||
11918 | |||
11919 | Alternatively, you may set the environment variables EVIL_CFLAGS | ||
11920 | and EVIL_LIBS to avoid the need to call pkg-config. | ||
11921 | See the pkg-config man page for more details." "$LINENO" 5 | ||
11922 | elif test $pkg_failed = untried; then | ||
11923 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
11924 | $as_echo "no" >&6; } | ||
11925 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
11926 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
11927 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it | ||
11928 | is in your PATH or set the PKG_CONFIG environment variable to the full | ||
11929 | path to pkg-config. | ||
11930 | |||
11931 | Alternatively, you may set the environment variables EVIL_CFLAGS | ||
11932 | and EVIL_LIBS to avoid the need to call pkg-config. | ||
11933 | See the pkg-config man page for more details. | ||
11934 | |||
11935 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | ||
11936 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
11937 | else | ||
11938 | EVIL_CFLAGS=$pkg_cv_EVIL_CFLAGS | ||
11939 | EVIL_LIBS=$pkg_cv_EVIL_LIBS | ||
11940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
11941 | $as_echo "yes" >&6; } | ||
11942 | |||
11943 | fi | ||
11944 | |||
11945 | $as_echo "#define HAVE_EVIL 1" >>confdefs.h | ||
11946 | |||
11947 | requirement_embryo="evil ${requirement_embryo}" | ||
11948 | EFL_EMBRYO_BUILD="-DEFL_EMBRYO_BUILD" | ||
11949 | ;; | ||
11950 | esac | ||
11951 | |||
11952 | |||
11953 | # For embryo_cc_prefix.c | ||
11954 | |||
11955 | pkg_failed=no | ||
11956 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EINA" >&5 | ||
11957 | $as_echo_n "checking for EINA... " >&6; } | ||
11958 | |||
11959 | if test -n "$EINA_CFLAGS"; then | ||
11960 | pkg_cv_EINA_CFLAGS="$EINA_CFLAGS" | ||
11961 | elif test -n "$PKG_CONFIG"; then | ||
11962 | if test -n "$PKG_CONFIG" && \ | ||
11963 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"eina >= 1.2.0\""; } >&5 | ||
11964 | ($PKG_CONFIG --exists --print-errors "eina >= 1.2.0") 2>&5 | ||
11965 | ac_status=$? | ||
11966 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
11967 | test $ac_status = 0; }; then | ||
11968 | pkg_cv_EINA_CFLAGS=`$PKG_CONFIG --cflags "eina >= 1.2.0" 2>/dev/null` | ||
11969 | else | ||
11970 | pkg_failed=yes | ||
11971 | fi | ||
11972 | else | ||
11973 | pkg_failed=untried | ||
11974 | fi | ||
11975 | if test -n "$EINA_LIBS"; then | ||
11976 | pkg_cv_EINA_LIBS="$EINA_LIBS" | ||
11977 | elif test -n "$PKG_CONFIG"; then | ||
11978 | if test -n "$PKG_CONFIG" && \ | ||
11979 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"eina >= 1.2.0\""; } >&5 | ||
11980 | ($PKG_CONFIG --exists --print-errors "eina >= 1.2.0") 2>&5 | ||
11981 | ac_status=$? | ||
11982 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
11983 | test $ac_status = 0; }; then | ||
11984 | pkg_cv_EINA_LIBS=`$PKG_CONFIG --libs "eina >= 1.2.0" 2>/dev/null` | ||
11985 | else | ||
11986 | pkg_failed=yes | ||
11987 | fi | ||
11988 | else | ||
11989 | pkg_failed=untried | ||
11990 | fi | ||
11991 | |||
11992 | |||
11993 | |||
11994 | if test $pkg_failed = yes; then | ||
11995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
11996 | $as_echo "no" >&6; } | ||
11997 | |||
11998 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
11999 | _pkg_short_errors_supported=yes | ||
12000 | else | ||
12001 | _pkg_short_errors_supported=no | ||
12002 | fi | ||
12003 | if test $_pkg_short_errors_supported = yes; then | ||
12004 | EINA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "eina >= 1.2.0" 2>&1` | ||
12005 | else | ||
12006 | EINA_PKG_ERRORS=`$PKG_CONFIG --print-errors "eina >= 1.2.0" 2>&1` | ||
12007 | fi | ||
12008 | # Put the nasty error message in config.log where it belongs | ||
12009 | echo "$EINA_PKG_ERRORS" >&5 | ||
12010 | |||
12011 | as_fn_error $? "Package requirements (eina >= 1.2.0) were not met: | ||
12012 | |||
12013 | $EINA_PKG_ERRORS | ||
12014 | |||
12015 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | ||
12016 | installed software in a non-standard prefix. | ||
12017 | |||
12018 | Alternatively, you may set the environment variables EINA_CFLAGS | ||
12019 | and EINA_LIBS to avoid the need to call pkg-config. | ||
12020 | See the pkg-config man page for more details." "$LINENO" 5 | ||
12021 | elif test $pkg_failed = untried; then | ||
12022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12023 | $as_echo "no" >&6; } | ||
12024 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
12025 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
12026 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it | ||
12027 | is in your PATH or set the PKG_CONFIG environment variable to the full | ||
12028 | path to pkg-config. | ||
12029 | |||
12030 | Alternatively, you may set the environment variables EINA_CFLAGS | ||
12031 | and EINA_LIBS to avoid the need to call pkg-config. | ||
12032 | See the pkg-config man page for more details. | ||
12033 | |||
12034 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | ||
12035 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
12036 | else | ||
12037 | EINA_CFLAGS=$pkg_cv_EINA_CFLAGS | ||
12038 | EINA_LIBS=$pkg_cv_EINA_LIBS | ||
12039 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
12040 | $as_echo "yes" >&6; } | ||
12041 | |||
12042 | fi | ||
12043 | |||
12044 | ### Checks for portability layer | ||
12045 | |||
12046 | |||
12047 | pkg_failed=no | ||
12048 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXOTIC" >&5 | ||
12049 | $as_echo_n "checking for EXOTIC... " >&6; } | ||
12050 | |||
12051 | if test -n "$EXOTIC_CFLAGS"; then | ||
12052 | pkg_cv_EXOTIC_CFLAGS="$EXOTIC_CFLAGS" | ||
12053 | elif test -n "$PKG_CONFIG"; then | ||
12054 | if test -n "$PKG_CONFIG" && \ | ||
12055 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"exotic\""; } >&5 | ||
12056 | ($PKG_CONFIG --exists --print-errors "exotic") 2>&5 | ||
12057 | ac_status=$? | ||
12058 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
12059 | test $ac_status = 0; }; then | ||
12060 | pkg_cv_EXOTIC_CFLAGS=`$PKG_CONFIG --cflags "exotic" 2>/dev/null` | ||
12061 | else | ||
12062 | pkg_failed=yes | ||
12063 | fi | ||
12064 | else | ||
12065 | pkg_failed=untried | ||
12066 | fi | ||
12067 | if test -n "$EXOTIC_LIBS"; then | ||
12068 | pkg_cv_EXOTIC_LIBS="$EXOTIC_LIBS" | ||
12069 | elif test -n "$PKG_CONFIG"; then | ||
12070 | if test -n "$PKG_CONFIG" && \ | ||
12071 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"exotic\""; } >&5 | ||
12072 | ($PKG_CONFIG --exists --print-errors "exotic") 2>&5 | ||
12073 | ac_status=$? | ||
12074 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
12075 | test $ac_status = 0; }; then | ||
12076 | pkg_cv_EXOTIC_LIBS=`$PKG_CONFIG --libs "exotic" 2>/dev/null` | ||
12077 | else | ||
12078 | pkg_failed=yes | ||
12079 | fi | ||
12080 | else | ||
12081 | pkg_failed=untried | ||
12082 | fi | ||
12083 | |||
12084 | |||
12085 | |||
12086 | if test $pkg_failed = yes; then | ||
12087 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12088 | $as_echo "no" >&6; } | ||
12089 | |||
12090 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
12091 | _pkg_short_errors_supported=yes | ||
12092 | else | ||
12093 | _pkg_short_errors_supported=no | ||
12094 | fi | ||
12095 | if test $_pkg_short_errors_supported = yes; then | ||
12096 | EXOTIC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "exotic" 2>&1` | ||
12097 | else | ||
12098 | EXOTIC_PKG_ERRORS=`$PKG_CONFIG --print-errors "exotic" 2>&1` | ||
12099 | fi | ||
12100 | # Put the nasty error message in config.log where it belongs | ||
12101 | echo "$EXOTIC_PKG_ERRORS" >&5 | ||
12102 | |||
12103 | enable_exotic="no" | ||
12104 | elif test $pkg_failed = untried; then | ||
12105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12106 | $as_echo "no" >&6; } | ||
12107 | enable_exotic="no" | ||
12108 | else | ||
12109 | EXOTIC_CFLAGS=$pkg_cv_EXOTIC_CFLAGS | ||
12110 | EXOTIC_LIBS=$pkg_cv_EXOTIC_LIBS | ||
12111 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
12112 | $as_echo "yes" >&6; } | ||
12113 | enable_exotic="yes" | ||
12114 | fi | ||
12115 | |||
12116 | if test "x${enable_exotic}" = "xyes"; then | ||
12117 | requirement_embryo="exotic ${requirement_embryo}" | ||
12118 | |||
12119 | |||
12120 | $as_echo "#define HAVE_EXOTIC 1" >>confdefs.h | ||
12121 | |||
12122 | fi | ||
12123 | |||
12124 | ### Checks for header files | ||
12125 | |||
12126 | for ac_header in unistd.h | ||
12127 | do : | ||
12128 | ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" | ||
12129 | if test "x$ac_cv_header_unistd_h" = x""yes; then : | ||
12130 | cat >>confdefs.h <<_ACEOF | ||
12131 | #define HAVE_UNISTD_H 1 | ||
12132 | _ACEOF | ||
12133 | |||
12134 | fi | ||
12135 | |||
12136 | done | ||
12137 | |||
12138 | |||
12139 | |||
12140 | default_max="4096" | ||
12141 | ac_ext=c | ||
12142 | ac_cpp='$CPP $CPPFLAGS' | ||
12143 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
12144 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
12145 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
12146 | |||
12147 | |||
12148 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PATH_MAX in limits.h" >&5 | ||
12149 | $as_echo_n "checking for PATH_MAX in limits.h... " >&6; } | ||
12150 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12151 | /* end confdefs.h. */ | ||
12152 | |||
12153 | #include <limits.h> | ||
12154 | |||
12155 | int | ||
12156 | main () | ||
12157 | { | ||
12158 | |||
12159 | int i = PATH_MAX; | ||
12160 | |||
12161 | ; | ||
12162 | return 0; | ||
12163 | } | ||
12164 | _ACEOF | ||
12165 | if ac_fn_c_try_compile "$LINENO"; then : | ||
12166 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
12167 | $as_echo "yes" >&6; } | ||
12168 | else | ||
12169 | |||
12170 | |||
12171 | cat >>confdefs.h <<_ACEOF | ||
12172 | #define PATH_MAX ${default_max} | ||
12173 | _ACEOF | ||
12174 | |||
12175 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: using ${default_max}" >&5 | ||
12176 | $as_echo "no: using ${default_max}" >&6; } | ||
12177 | |||
12178 | fi | ||
12179 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
12180 | |||
12181 | ac_ext=c | ||
12182 | ac_cpp='$CPP $CPPFLAGS' | ||
12183 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
12184 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
12185 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
12186 | |||
12187 | |||
12188 | |||
12189 | |||
12190 | |||
12191 | ### Checks for types | ||
12192 | |||
12193 | |||
12194 | ### Checks for structures | ||
12195 | |||
12196 | |||
12197 | ### Checks for compiler characteristics | ||
12198 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 | ||
12199 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | ||
12200 | if test "${ac_cv_c_bigendian+set}" = set; then : | ||
12201 | $as_echo_n "(cached) " >&6 | ||
12202 | else | ||
12203 | ac_cv_c_bigendian=unknown | ||
12204 | # See if we're dealing with a universal compiler. | ||
12205 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12206 | /* end confdefs.h. */ | ||
12207 | #ifndef __APPLE_CC__ | ||
12208 | not a universal capable compiler | ||
12209 | #endif | ||
12210 | typedef int dummy; | ||
12211 | |||
12212 | _ACEOF | ||
12213 | if ac_fn_c_try_compile "$LINENO"; then : | ||
12214 | |||
12215 | # Check for potential -arch flags. It is not universal unless | ||
12216 | # there are at least two -arch flags with different values. | ||
12217 | ac_arch= | ||
12218 | ac_prev= | ||
12219 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | ||
12220 | if test -n "$ac_prev"; then | ||
12221 | case $ac_word in | ||
12222 | i?86 | x86_64 | ppc | ppc64) | ||
12223 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | ||
12224 | ac_arch=$ac_word | ||
12225 | else | ||
12226 | ac_cv_c_bigendian=universal | ||
12227 | break | ||
12228 | fi | ||
12229 | ;; | ||
12230 | esac | ||
12231 | ac_prev= | ||
12232 | elif test "x$ac_word" = "x-arch"; then | ||
12233 | ac_prev=arch | ||
12234 | fi | ||
12235 | done | ||
12236 | fi | ||
12237 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
12238 | if test $ac_cv_c_bigendian = unknown; then | ||
12239 | # See if sys/param.h defines the BYTE_ORDER macro. | ||
12240 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12241 | /* end confdefs.h. */ | ||
12242 | #include <sys/types.h> | ||
12243 | #include <sys/param.h> | ||
12244 | |||
12245 | int | ||
12246 | main () | ||
12247 | { | ||
12248 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ | ||
12249 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | ||
12250 | && LITTLE_ENDIAN) | ||
12251 | bogus endian macros | ||
12252 | #endif | ||
12253 | |||
12254 | ; | ||
12255 | return 0; | ||
12256 | } | ||
12257 | _ACEOF | ||
12258 | if ac_fn_c_try_compile "$LINENO"; then : | ||
12259 | # It does; now see whether it defined to BIG_ENDIAN or not. | ||
12260 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12261 | /* end confdefs.h. */ | ||
12262 | #include <sys/types.h> | ||
12263 | #include <sys/param.h> | ||
12264 | |||
12265 | int | ||
12266 | main () | ||
12267 | { | ||
12268 | #if BYTE_ORDER != BIG_ENDIAN | ||
12269 | not big endian | ||
12270 | #endif | ||
12271 | |||
12272 | ; | ||
12273 | return 0; | ||
12274 | } | ||
12275 | _ACEOF | ||
12276 | if ac_fn_c_try_compile "$LINENO"; then : | ||
12277 | ac_cv_c_bigendian=yes | ||
12278 | else | ||
12279 | ac_cv_c_bigendian=no | ||
12280 | fi | ||
12281 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
12282 | fi | ||
12283 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
12284 | fi | ||
12285 | if test $ac_cv_c_bigendian = unknown; then | ||
12286 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | ||
12287 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12288 | /* end confdefs.h. */ | ||
12289 | #include <limits.h> | ||
12290 | |||
12291 | int | ||
12292 | main () | ||
12293 | { | ||
12294 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) | ||
12295 | bogus endian macros | ||
12296 | #endif | ||
12297 | |||
12298 | ; | ||
12299 | return 0; | ||
12300 | } | ||
12301 | _ACEOF | ||
12302 | if ac_fn_c_try_compile "$LINENO"; then : | ||
12303 | # It does; now see whether it defined to _BIG_ENDIAN or not. | ||
12304 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12305 | /* end confdefs.h. */ | ||
12306 | #include <limits.h> | ||
12307 | |||
12308 | int | ||
12309 | main () | ||
12310 | { | ||
12311 | #ifndef _BIG_ENDIAN | ||
12312 | not big endian | ||
12313 | #endif | ||
12314 | |||
12315 | ; | ||
12316 | return 0; | ||
12317 | } | ||
12318 | _ACEOF | ||
12319 | if ac_fn_c_try_compile "$LINENO"; then : | ||
12320 | ac_cv_c_bigendian=yes | ||
12321 | else | ||
12322 | ac_cv_c_bigendian=no | ||
12323 | fi | ||
12324 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
12325 | fi | ||
12326 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
12327 | fi | ||
12328 | if test $ac_cv_c_bigendian = unknown; then | ||
12329 | # Compile a test program. | ||
12330 | if test "$cross_compiling" = yes; then : | ||
12331 | # Try to guess by grepping values from an object file. | ||
12332 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12333 | /* end confdefs.h. */ | ||
12334 | short int ascii_mm[] = | ||
12335 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | ||
12336 | short int ascii_ii[] = | ||
12337 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | ||
12338 | int use_ascii (int i) { | ||
12339 | return ascii_mm[i] + ascii_ii[i]; | ||
12340 | } | ||
12341 | short int ebcdic_ii[] = | ||
12342 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | ||
12343 | short int ebcdic_mm[] = | ||
12344 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | ||
12345 | int use_ebcdic (int i) { | ||
12346 | return ebcdic_mm[i] + ebcdic_ii[i]; | ||
12347 | } | ||
12348 | extern int foo; | ||
12349 | |||
12350 | int | ||
12351 | main () | ||
12352 | { | ||
12353 | return use_ascii (foo) == use_ebcdic (foo); | ||
12354 | ; | ||
12355 | return 0; | ||
12356 | } | ||
12357 | _ACEOF | ||
12358 | if ac_fn_c_try_compile "$LINENO"; then : | ||
12359 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | ||
12360 | ac_cv_c_bigendian=yes | ||
12361 | fi | ||
12362 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | ||
12363 | if test "$ac_cv_c_bigendian" = unknown; then | ||
12364 | ac_cv_c_bigendian=no | ||
12365 | else | ||
12366 | # finding both strings is unlikely to happen, but who knows? | ||
12367 | ac_cv_c_bigendian=unknown | ||
12368 | fi | ||
12369 | fi | ||
12370 | fi | ||
12371 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
12372 | else | ||
12373 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12374 | /* end confdefs.h. */ | ||
12375 | $ac_includes_default | ||
12376 | int | ||
12377 | main () | ||
12378 | { | ||
12379 | |||
12380 | /* Are we little or big endian? From Harbison&Steele. */ | ||
12381 | union | ||
12382 | { | ||
12383 | long int l; | ||
12384 | char c[sizeof (long int)]; | ||
12385 | } u; | ||
12386 | u.l = 1; | ||
12387 | return u.c[sizeof (long int) - 1] == 1; | ||
12388 | |||
12389 | ; | ||
12390 | return 0; | ||
12391 | } | ||
12392 | _ACEOF | ||
12393 | if ac_fn_c_try_run "$LINENO"; then : | ||
12394 | ac_cv_c_bigendian=no | ||
12395 | else | ||
12396 | ac_cv_c_bigendian=yes | ||
12397 | fi | ||
12398 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
12399 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
12400 | fi | ||
12401 | |||
12402 | fi | ||
12403 | fi | ||
12404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 | ||
12405 | $as_echo "$ac_cv_c_bigendian" >&6; } | ||
12406 | case $ac_cv_c_bigendian in #( | ||
12407 | yes) | ||
12408 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h | ||
12409 | ;; #( | ||
12410 | no) | ||
12411 | ;; #( | ||
12412 | universal) | ||
12413 | |||
12414 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h | ||
12415 | |||
12416 | ;; #( | ||
12417 | *) | ||
12418 | as_fn_error $? "unknown endianness | ||
12419 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; | ||
12420 | esac | ||
12421 | |||
12422 | if test "x$CC" != xcc; then | ||
12423 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5 | ||
12424 | $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } | ||
12425 | else | ||
12426 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5 | ||
12427 | $as_echo_n "checking whether cc understands -c and -o together... " >&6; } | ||
12428 | fi | ||
12429 | set dummy $CC; ac_cc=`$as_echo "$2" | | ||
12430 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` | ||
12431 | if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\"" = set; then : | ||
12432 | $as_echo_n "(cached) " >&6 | ||
12433 | else | ||
12434 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12435 | /* end confdefs.h. */ | ||
12436 | |||
12437 | int | ||
12438 | main () | ||
12439 | { | ||
12440 | |||
12441 | ; | ||
12442 | return 0; | ||
12443 | } | ||
12444 | _ACEOF | ||
12445 | # Make sure it works both with $CC and with simple cc. | ||
12446 | # We do the test twice because some compilers refuse to overwrite an | ||
12447 | # existing .o file with -o, though they will create one. | ||
12448 | ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' | ||
12449 | rm -f conftest2.* | ||
12450 | if { { case "(($ac_try" in | ||
12451 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12452 | *) ac_try_echo=$ac_try;; | ||
12453 | esac | ||
12454 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
12455 | $as_echo "$ac_try_echo"; } >&5 | ||
12456 | (eval "$ac_try") 2>&5 | ||
12457 | ac_status=$? | ||
12458 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
12459 | test $ac_status = 0; } && | ||
12460 | test -f conftest2.$ac_objext && { { case "(($ac_try" in | ||
12461 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12462 | *) ac_try_echo=$ac_try;; | ||
12463 | esac | ||
12464 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
12465 | $as_echo "$ac_try_echo"; } >&5 | ||
12466 | (eval "$ac_try") 2>&5 | ||
12467 | ac_status=$? | ||
12468 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
12469 | test $ac_status = 0; }; | ||
12470 | then | ||
12471 | eval ac_cv_prog_cc_${ac_cc}_c_o=yes | ||
12472 | if test "x$CC" != xcc; then | ||
12473 | # Test first that cc exists at all. | ||
12474 | if { ac_try='cc -c conftest.$ac_ext >&5' | ||
12475 | { { case "(($ac_try" in | ||
12476 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12477 | *) ac_try_echo=$ac_try;; | ||
12478 | esac | ||
12479 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
12480 | $as_echo "$ac_try_echo"; } >&5 | ||
12481 | (eval "$ac_try") 2>&5 | ||
12482 | ac_status=$? | ||
12483 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
12484 | test $ac_status = 0; }; }; then | ||
12485 | ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' | ||
12486 | rm -f conftest2.* | ||
12487 | if { { case "(($ac_try" in | ||
12488 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12489 | *) ac_try_echo=$ac_try;; | ||
12490 | esac | ||
12491 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
12492 | $as_echo "$ac_try_echo"; } >&5 | ||
12493 | (eval "$ac_try") 2>&5 | ||
12494 | ac_status=$? | ||
12495 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
12496 | test $ac_status = 0; } && | ||
12497 | test -f conftest2.$ac_objext && { { case "(($ac_try" in | ||
12498 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12499 | *) ac_try_echo=$ac_try;; | ||
12500 | esac | ||
12501 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
12502 | $as_echo "$ac_try_echo"; } >&5 | ||
12503 | (eval "$ac_try") 2>&5 | ||
12504 | ac_status=$? | ||
12505 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
12506 | test $ac_status = 0; }; | ||
12507 | then | ||
12508 | # cc works too. | ||
12509 | : | ||
12510 | else | ||
12511 | # cc exists but doesn't like -o. | ||
12512 | eval ac_cv_prog_cc_${ac_cc}_c_o=no | ||
12513 | fi | ||
12514 | fi | ||
12515 | fi | ||
12516 | else | ||
12517 | eval ac_cv_prog_cc_${ac_cc}_c_o=no | ||
12518 | fi | ||
12519 | rm -f core conftest* | ||
12520 | |||
12521 | fi | ||
12522 | if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then | ||
12523 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
12524 | $as_echo "yes" >&6; } | ||
12525 | else | ||
12526 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12527 | $as_echo "no" >&6; } | ||
12528 | |||
12529 | $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h | ||
12530 | |||
12531 | fi | ||
12532 | |||
12533 | # FIXME: we rely on the cache variable name because | ||
12534 | # there is no other way. | ||
12535 | set dummy $CC | ||
12536 | am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` | ||
12537 | eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o | ||
12538 | if test "$am_t" != yes; then | ||
12539 | # Losing compiler, so override with the script. | ||
12540 | # FIXME: It is wrong to rewrite CC. | ||
12541 | # But if we don't then we get into trouble of one sort or another. | ||
12542 | # A longer-term fix would be to have automake use am__CC in this case, | ||
12543 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | ||
12544 | CC="$am_aux_dir/compile $CC" | ||
12545 | fi | ||
12546 | |||
12547 | |||
12548 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 | ||
12549 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | ||
12550 | if test "${ac_cv_c_const+set}" = set; then : | ||
12551 | $as_echo_n "(cached) " >&6 | ||
12552 | else | ||
12553 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12554 | /* end confdefs.h. */ | ||
12555 | |||
12556 | int | ||
12557 | main () | ||
12558 | { | ||
12559 | /* FIXME: Include the comments suggested by Paul. */ | ||
12560 | #ifndef __cplusplus | ||
12561 | /* Ultrix mips cc rejects this. */ | ||
12562 | typedef int charset[2]; | ||
12563 | const charset cs; | ||
12564 | /* SunOS 4.1.1 cc rejects this. */ | ||
12565 | char const *const *pcpcc; | ||
12566 | char **ppc; | ||
12567 | /* NEC SVR4.0.2 mips cc rejects this. */ | ||
12568 | struct point {int x, y;}; | ||
12569 | static struct point const zero = {0,0}; | ||
12570 | /* AIX XL C 1.02.0.0 rejects this. | ||
12571 | It does not let you subtract one const X* pointer from another in | ||
12572 | an arm of an if-expression whose if-part is not a constant | ||
12573 | expression */ | ||
12574 | const char *g = "string"; | ||
12575 | pcpcc = &g + (g ? g-g : 0); | ||
12576 | /* HPUX 7.0 cc rejects these. */ | ||
12577 | ++pcpcc; | ||
12578 | ppc = (char**) pcpcc; | ||
12579 | pcpcc = (char const *const *) ppc; | ||
12580 | { /* SCO 3.2v4 cc rejects this. */ | ||
12581 | char *t; | ||
12582 | char const *s = 0 ? (char *) 0 : (char const *) 0; | ||
12583 | |||
12584 | *t++ = 0; | ||
12585 | if (s) return 0; | ||
12586 | } | ||
12587 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | ||
12588 | int x[] = {25, 17}; | ||
12589 | const int *foo = &x[0]; | ||
12590 | ++foo; | ||
12591 | } | ||
12592 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | ||
12593 | typedef const int *iptr; | ||
12594 | iptr p = 0; | ||
12595 | ++p; | ||
12596 | } | ||
12597 | { /* AIX XL C 1.02.0.0 rejects this saying | ||
12598 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | ||
12599 | struct s { int j; const int *ap[3]; }; | ||
12600 | struct s *b; b->j = 5; | ||
12601 | } | ||
12602 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | ||
12603 | const int foo = 10; | ||
12604 | if (!foo) return 0; | ||
12605 | } | ||
12606 | return !cs[0] && !zero.x; | ||
12607 | #endif | ||
12608 | |||
12609 | ; | ||
12610 | return 0; | ||
12611 | } | ||
12612 | _ACEOF | ||
12613 | if ac_fn_c_try_compile "$LINENO"; then : | ||
12614 | ac_cv_c_const=yes | ||
12615 | else | ||
12616 | ac_cv_c_const=no | ||
12617 | fi | ||
12618 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
12619 | fi | ||
12620 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 | ||
12621 | $as_echo "$ac_cv_c_const" >&6; } | ||
12622 | if test $ac_cv_c_const = no; then | ||
12623 | |||
12624 | $as_echo "#define const /**/" >>confdefs.h | ||
12625 | |||
12626 | fi | ||
12627 | |||
12628 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 | ||
12629 | $as_echo_n "checking for inline... " >&6; } | ||
12630 | if test "${ac_cv_c_inline+set}" = set; then : | ||
12631 | $as_echo_n "(cached) " >&6 | ||
12632 | else | ||
12633 | ac_cv_c_inline=no | ||
12634 | for ac_kw in inline __inline__ __inline; do | ||
12635 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12636 | /* end confdefs.h. */ | ||
12637 | #ifndef __cplusplus | ||
12638 | typedef int foo_t; | ||
12639 | static $ac_kw foo_t static_foo () {return 0; } | ||
12640 | $ac_kw foo_t foo () {return 0; } | ||
12641 | #endif | ||
12642 | |||
12643 | _ACEOF | ||
12644 | if ac_fn_c_try_compile "$LINENO"; then : | ||
12645 | ac_cv_c_inline=$ac_kw | ||
12646 | fi | ||
12647 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
12648 | test "$ac_cv_c_inline" != no && break | ||
12649 | done | ||
12650 | |||
12651 | fi | ||
12652 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 | ||
12653 | $as_echo "$ac_cv_c_inline" >&6; } | ||
12654 | |||
12655 | case $ac_cv_c_inline in | ||
12656 | inline | yes) ;; | ||
12657 | *) | ||
12658 | case $ac_cv_c_inline in | ||
12659 | no) ac_val=;; | ||
12660 | *) ac_val=$ac_cv_c_inline;; | ||
12661 | esac | ||
12662 | cat >>confdefs.h <<_ACEOF | ||
12663 | #ifndef __cplusplus | ||
12664 | #define inline $ac_val | ||
12665 | #endif | ||
12666 | _ACEOF | ||
12667 | ;; | ||
12668 | esac | ||
12669 | |||
12670 | case $ac_cv_prog_cc_stdc in #( | ||
12671 | no) : | ||
12672 | ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #( | ||
12673 | *) : | ||
12674 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 | ||
12675 | $as_echo_n "checking for $CC option to accept ISO C99... " >&6; } | ||
12676 | if test "${ac_cv_prog_cc_c99+set}" = set; then : | ||
12677 | $as_echo_n "(cached) " >&6 | ||
12678 | else | ||
12679 | ac_cv_prog_cc_c99=no | ||
12680 | ac_save_CC=$CC | ||
12681 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12682 | /* end confdefs.h. */ | ||
12683 | #include <stdarg.h> | ||
12684 | #include <stdbool.h> | ||
12685 | #include <stdlib.h> | ||
12686 | #include <wchar.h> | ||
12687 | #include <stdio.h> | ||
12688 | |||
12689 | // Check varargs macros. These examples are taken from C99 6.10.3.5. | ||
12690 | #define debug(...) fprintf (stderr, __VA_ARGS__) | ||
12691 | #define showlist(...) puts (#__VA_ARGS__) | ||
12692 | #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) | ||
12693 | static void | ||
12694 | test_varargs_macros (void) | ||
12695 | { | ||
12696 | int x = 1234; | ||
12697 | int y = 5678; | ||
12698 | debug ("Flag"); | ||
12699 | debug ("X = %d\n", x); | ||
12700 | showlist (The first, second, and third items.); | ||
12701 | report (x>y, "x is %d but y is %d", x, y); | ||
12702 | } | ||
12703 | |||
12704 | // Check long long types. | ||
12705 | #define BIG64 18446744073709551615ull | ||
12706 | #define BIG32 4294967295ul | ||
12707 | #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) | ||
12708 | #if !BIG_OK | ||
12709 | your preprocessor is broken; | ||
12710 | #endif | ||
12711 | #if BIG_OK | ||
12712 | #else | ||
12713 | your preprocessor is broken; | ||
12714 | #endif | ||
12715 | static long long int bignum = -9223372036854775807LL; | ||
12716 | static unsigned long long int ubignum = BIG64; | ||
12717 | |||
12718 | struct incomplete_array | ||
12719 | { | ||
12720 | int datasize; | ||
12721 | double data[]; | ||
12722 | }; | ||
12723 | |||
12724 | struct named_init { | ||
12725 | int number; | ||
12726 | const wchar_t *name; | ||
12727 | double average; | ||
12728 | }; | ||
12729 | |||
12730 | typedef const char *ccp; | ||
12731 | |||
12732 | static inline int | ||
12733 | test_restrict (ccp restrict text) | ||
12734 | { | ||
12735 | // See if C++-style comments work. | ||
12736 | // Iterate through items via the restricted pointer. | ||
12737 | // Also check for declarations in for loops. | ||
12738 | for (unsigned int i = 0; *(text+i) != '\0'; ++i) | ||
12739 | continue; | ||
12740 | return 0; | ||
12741 | } | ||
12742 | |||
12743 | // Check varargs and va_copy. | ||
12744 | static void | ||
12745 | test_varargs (const char *format, ...) | ||
12746 | { | ||
12747 | va_list args; | ||
12748 | va_start (args, format); | ||
12749 | va_list args_copy; | ||
12750 | va_copy (args_copy, args); | ||
12751 | |||
12752 | const char *str; | ||
12753 | int number; | ||
12754 | float fnumber; | ||
12755 | |||
12756 | while (*format) | ||
12757 | { | ||
12758 | switch (*format++) | ||
12759 | { | ||
12760 | case 's': // string | ||
12761 | str = va_arg (args_copy, const char *); | ||
12762 | break; | ||
12763 | case 'd': // int | ||
12764 | number = va_arg (args_copy, int); | ||
12765 | break; | ||
12766 | case 'f': // float | ||
12767 | fnumber = va_arg (args_copy, double); | ||
12768 | break; | ||
12769 | default: | ||
12770 | break; | ||
12771 | } | ||
12772 | } | ||
12773 | va_end (args_copy); | ||
12774 | va_end (args); | ||
12775 | } | ||
12776 | |||
12777 | int | ||
12778 | main () | ||
12779 | { | ||
12780 | |||
12781 | // Check bool. | ||
12782 | _Bool success = false; | ||
12783 | |||
12784 | // Check restrict. | ||
12785 | if (test_restrict ("String literal") == 0) | ||
12786 | success = true; | ||
12787 | char *restrict newvar = "Another string"; | ||
12788 | |||
12789 | // Check varargs. | ||
12790 | test_varargs ("s, d' f .", "string", 65, 34.234); | ||
12791 | test_varargs_macros (); | ||
12792 | |||
12793 | // Check flexible array members. | ||
12794 | struct incomplete_array *ia = | ||
12795 | malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); | ||
12796 | ia->datasize = 10; | ||
12797 | for (int i = 0; i < ia->datasize; ++i) | ||
12798 | ia->data[i] = i * 1.234; | ||
12799 | |||
12800 | // Check named initializers. | ||
12801 | struct named_init ni = { | ||
12802 | .number = 34, | ||
12803 | .name = L"Test wide string", | ||
12804 | .average = 543.34343, | ||
12805 | }; | ||
12806 | |||
12807 | ni.number = 58; | ||
12808 | |||
12809 | int dynamic_array[ni.number]; | ||
12810 | dynamic_array[ni.number - 1] = 543; | ||
12811 | |||
12812 | // work around unused variable warnings | ||
12813 | return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' | ||
12814 | || dynamic_array[ni.number - 1] != 543); | ||
12815 | |||
12816 | ; | ||
12817 | return 0; | ||
12818 | } | ||
12819 | _ACEOF | ||
12820 | for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 | ||
12821 | do | ||
12822 | CC="$ac_save_CC $ac_arg" | ||
12823 | if ac_fn_c_try_compile "$LINENO"; then : | ||
12824 | ac_cv_prog_cc_c99=$ac_arg | ||
12825 | fi | ||
12826 | rm -f core conftest.err conftest.$ac_objext | ||
12827 | test "x$ac_cv_prog_cc_c99" != "xno" && break | ||
12828 | done | ||
12829 | rm -f conftest.$ac_ext | ||
12830 | CC=$ac_save_CC | ||
12831 | |||
12832 | fi | ||
12833 | # AC_CACHE_VAL | ||
12834 | case "x$ac_cv_prog_cc_c99" in | ||
12835 | x) | ||
12836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | ||
12837 | $as_echo "none needed" >&6; } ;; | ||
12838 | xno) | ||
12839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | ||
12840 | $as_echo "unsupported" >&6; } ;; | ||
12841 | *) | ||
12842 | CC="$CC $ac_cv_prog_cc_c99" | ||
12843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 | ||
12844 | $as_echo "$ac_cv_prog_cc_c99" >&6; } ;; | ||
12845 | esac | ||
12846 | if test "x$ac_cv_prog_cc_c99" != xno; then : | ||
12847 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 | ||
12848 | else | ||
12849 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | ||
12850 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | ||
12851 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | ||
12852 | $as_echo_n "(cached) " >&6 | ||
12853 | else | ||
12854 | ac_cv_prog_cc_c89=no | ||
12855 | ac_save_CC=$CC | ||
12856 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12857 | /* end confdefs.h. */ | ||
12858 | #include <stdarg.h> | ||
12859 | #include <stdio.h> | ||
12860 | #include <sys/types.h> | ||
12861 | #include <sys/stat.h> | ||
12862 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | ||
12863 | struct buf { int x; }; | ||
12864 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | ||
12865 | static char *e (p, i) | ||
12866 | char **p; | ||
12867 | int i; | ||
12868 | { | ||
12869 | return p[i]; | ||
12870 | } | ||
12871 | static char *f (char * (*g) (char **, int), char **p, ...) | ||
12872 | { | ||
12873 | char *s; | ||
12874 | va_list v; | ||
12875 | va_start (v,p); | ||
12876 | s = g (p, va_arg (v,int)); | ||
12877 | va_end (v); | ||
12878 | return s; | ||
12879 | } | ||
12880 | |||
12881 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | ||
12882 | function prototypes and stuff, but not '\xHH' hex character constants. | ||
12883 | These don't provoke an error unfortunately, instead are silently treated | ||
12884 | as 'x'. The following induces an error, until -std is added to get | ||
12885 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | ||
12886 | array size at least. It's necessary to write '\x00'==0 to get something | ||
12887 | that's true only with -std. */ | ||
12888 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | ||
12889 | |||
12890 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | ||
12891 | inside strings and character constants. */ | ||
12892 | #define FOO(x) 'x' | ||
12893 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | ||
12894 | |||
12895 | int test (int i, double x); | ||
12896 | struct s1 {int (*f) (int a);}; | ||
12897 | struct s2 {int (*f) (double a);}; | ||
12898 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | ||
12899 | int argc; | ||
12900 | char **argv; | ||
12901 | int | ||
12902 | main () | ||
12903 | { | ||
12904 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | ||
12905 | ; | ||
12906 | return 0; | ||
12907 | } | ||
12908 | _ACEOF | ||
12909 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | ||
12910 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | ||
12911 | do | ||
12912 | CC="$ac_save_CC $ac_arg" | ||
12913 | if ac_fn_c_try_compile "$LINENO"; then : | ||
12914 | ac_cv_prog_cc_c89=$ac_arg | ||
12915 | fi | ||
12916 | rm -f core conftest.err conftest.$ac_objext | ||
12917 | test "x$ac_cv_prog_cc_c89" != "xno" && break | ||
12918 | done | ||
12919 | rm -f conftest.$ac_ext | ||
12920 | CC=$ac_save_CC | ||
12921 | |||
12922 | fi | ||
12923 | # AC_CACHE_VAL | ||
12924 | case "x$ac_cv_prog_cc_c89" in | ||
12925 | x) | ||
12926 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | ||
12927 | $as_echo "none needed" >&6; } ;; | ||
12928 | xno) | ||
12929 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | ||
12930 | $as_echo "unsupported" >&6; } ;; | ||
12931 | *) | ||
12932 | CC="$CC $ac_cv_prog_cc_c89" | ||
12933 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | ||
12934 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | ||
12935 | esac | ||
12936 | if test "x$ac_cv_prog_cc_c89" != xno; then : | ||
12937 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 | ||
12938 | else | ||
12939 | ac_cv_prog_cc_stdc=no | ||
12940 | fi | ||
12941 | |||
12942 | fi | ||
12943 | ;; | ||
12944 | esac | ||
12945 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5 | ||
12946 | $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; } | ||
12947 | if test "${ac_cv_prog_cc_stdc+set}" = set; then : | ||
12948 | $as_echo_n "(cached) " >&6 | ||
12949 | fi | ||
12950 | |||
12951 | case $ac_cv_prog_cc_stdc in #( | ||
12952 | no) : | ||
12953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | ||
12954 | $as_echo "unsupported" >&6; } ;; #( | ||
12955 | '') : | ||
12956 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | ||
12957 | $as_echo "none needed" >&6; } ;; #( | ||
12958 | *) : | ||
12959 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5 | ||
12960 | $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;; | ||
12961 | esac | ||
12962 | |||
12963 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | ||
12964 | $as_echo_n "checking for ANSI C header files... " >&6; } | ||
12965 | if test "${ac_cv_header_stdc+set}" = set; then : | ||
12966 | $as_echo_n "(cached) " >&6 | ||
12967 | else | ||
12968 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12969 | /* end confdefs.h. */ | ||
12970 | #include <stdlib.h> | ||
12971 | #include <stdarg.h> | ||
12972 | #include <string.h> | ||
12973 | #include <float.h> | ||
12974 | |||
12975 | int | ||
12976 | main () | ||
12977 | { | ||
12978 | |||
12979 | ; | ||
12980 | return 0; | ||
12981 | } | ||
12982 | _ACEOF | ||
12983 | if ac_fn_c_try_compile "$LINENO"; then : | ||
12984 | ac_cv_header_stdc=yes | ||
12985 | else | ||
12986 | ac_cv_header_stdc=no | ||
12987 | fi | ||
12988 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
12989 | |||
12990 | if test $ac_cv_header_stdc = yes; then | ||
12991 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | ||
12992 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12993 | /* end confdefs.h. */ | ||
12994 | #include <string.h> | ||
12995 | |||
12996 | _ACEOF | ||
12997 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
12998 | $EGREP "memchr" >/dev/null 2>&1; then : | ||
12999 | |||
13000 | else | ||
13001 | ac_cv_header_stdc=no | ||
13002 | fi | ||
13003 | rm -f conftest* | ||
13004 | |||
13005 | fi | ||
13006 | |||
13007 | if test $ac_cv_header_stdc = yes; then | ||
13008 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | ||
13009 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13010 | /* end confdefs.h. */ | ||
13011 | #include <stdlib.h> | ||
13012 | |||
13013 | _ACEOF | ||
13014 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13015 | $EGREP "free" >/dev/null 2>&1; then : | ||
13016 | |||
13017 | else | ||
13018 | ac_cv_header_stdc=no | ||
13019 | fi | ||
13020 | rm -f conftest* | ||
13021 | |||
13022 | fi | ||
13023 | |||
13024 | if test $ac_cv_header_stdc = yes; then | ||
13025 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | ||
13026 | if test "$cross_compiling" = yes; then : | ||
13027 | : | ||
13028 | else | ||
13029 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13030 | /* end confdefs.h. */ | ||
13031 | #include <ctype.h> | ||
13032 | #include <stdlib.h> | ||
13033 | #if ((' ' & 0x0FF) == 0x020) | ||
13034 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | ||
13035 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | ||
13036 | #else | ||
13037 | # define ISLOWER(c) \ | ||
13038 | (('a' <= (c) && (c) <= 'i') \ | ||
13039 | || ('j' <= (c) && (c) <= 'r') \ | ||
13040 | || ('s' <= (c) && (c) <= 'z')) | ||
13041 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | ||
13042 | #endif | ||
13043 | |||
13044 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | ||
13045 | int | ||
13046 | main () | ||
13047 | { | ||
13048 | int i; | ||
13049 | for (i = 0; i < 256; i++) | ||
13050 | if (XOR (islower (i), ISLOWER (i)) | ||
13051 | || toupper (i) != TOUPPER (i)) | ||
13052 | return 2; | ||
13053 | return 0; | ||
13054 | } | ||
13055 | _ACEOF | ||
13056 | if ac_fn_c_try_run "$LINENO"; then : | ||
13057 | |||
13058 | else | ||
13059 | ac_cv_header_stdc=no | ||
13060 | fi | ||
13061 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
13062 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
13063 | fi | ||
13064 | |||
13065 | fi | ||
13066 | fi | ||
13067 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | ||
13068 | $as_echo "$ac_cv_header_stdc" >&6; } | ||
13069 | if test $ac_cv_header_stdc = yes; then | ||
13070 | |||
13071 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | ||
13072 | |||
13073 | fi | ||
13074 | |||
13075 | |||
13076 | |||
13077 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5 | ||
13078 | $as_echo_n "checking for __attribute__... " >&6; } | ||
13079 | |||
13080 | if test "${ac_cv___attribute__+set}" = set; then : | ||
13081 | $as_echo_n "(cached) " >&6 | ||
13082 | else | ||
13083 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13084 | /* end confdefs.h. */ | ||
13085 | |||
13086 | #include <stdlib.h> | ||
13087 | |||
13088 | int func(int x); | ||
13089 | int foo(int x __attribute__ ((unused))) | ||
13090 | { | ||
13091 | exit(1); | ||
13092 | } | ||
13093 | |||
13094 | int | ||
13095 | main () | ||
13096 | { | ||
13097 | |||
13098 | ; | ||
13099 | return 0; | ||
13100 | } | ||
13101 | _ACEOF | ||
13102 | if ac_fn_c_try_compile "$LINENO"; then : | ||
13103 | ac_cv___attribute__="yes" | ||
13104 | else | ||
13105 | ac_cv___attribute__="no" | ||
13106 | |||
13107 | fi | ||
13108 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13109 | fi | ||
13110 | |||
13111 | |||
13112 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___attribute__" >&5 | ||
13113 | $as_echo "$ac_cv___attribute__" >&6; } | ||
13114 | |||
13115 | if test "x${ac_cv___attribute__}" = "xyes" ; then | ||
13116 | |||
13117 | $as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h | ||
13118 | |||
13119 | |||
13120 | $as_echo "#define __UNUSED__ __attribute__((unused))" >>confdefs.h | ||
13121 | |||
13122 | else | ||
13123 | |||
13124 | $as_echo "#define __UNUSED__ /**/" >>confdefs.h | ||
13125 | |||
13126 | fi | ||
13127 | |||
13128 | |||
13129 | |||
13130 | EMBRYO_CPPFLAGS="" | ||
13131 | EMBRYO_CFLAGS="" | ||
13132 | case "$host_os" in | ||
13133 | mingw32ce*) | ||
13134 | EMBRYO_CPPFLAGS="-D_WIN32_WCE=0x0420" | ||
13135 | ;; | ||
13136 | esac | ||
13137 | |||
13138 | |||
13139 | |||
13140 | |||
13141 | ### Checks for linker characteristics | ||
13142 | |||
13143 | lt_enable_auto_import="" | ||
13144 | case "$host_os" in | ||
13145 | mingw*) | ||
13146 | lt_enable_auto_import="-Wl,--enable-auto-import" | ||
13147 | ;; | ||
13148 | esac | ||
13149 | |||
13150 | |||
13151 | |||
13152 | ### Checks for library functions | ||
13153 | |||
13154 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5 | ||
13155 | $as_echo_n "checking for library containing strerror... " >&6; } | ||
13156 | if test "${ac_cv_search_strerror+set}" = set; then : | ||
13157 | $as_echo_n "(cached) " >&6 | ||
13158 | else | ||
13159 | ac_func_search_save_LIBS=$LIBS | ||
13160 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13161 | /* end confdefs.h. */ | ||
13162 | |||
13163 | /* Override any GCC internal prototype to avoid an error. | ||
13164 | Use char because int might match the return type of a GCC | ||
13165 | builtin and then its argument prototype would still apply. */ | ||
13166 | #ifdef __cplusplus | ||
13167 | extern "C" | ||
13168 | #endif | ||
13169 | char strerror (); | ||
13170 | int | ||
13171 | main () | ||
13172 | { | ||
13173 | return strerror (); | ||
13174 | ; | ||
13175 | return 0; | ||
13176 | } | ||
13177 | _ACEOF | ||
13178 | for ac_lib in '' cposix; do | ||
13179 | if test -z "$ac_lib"; then | ||
13180 | ac_res="none required" | ||
13181 | else | ||
13182 | ac_res=-l$ac_lib | ||
13183 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
13184 | fi | ||
13185 | if ac_fn_c_try_link "$LINENO"; then : | ||
13186 | ac_cv_search_strerror=$ac_res | ||
13187 | fi | ||
13188 | rm -f core conftest.err conftest.$ac_objext \ | ||
13189 | conftest$ac_exeext | ||
13190 | if test "${ac_cv_search_strerror+set}" = set; then : | ||
13191 | break | ||
13192 | fi | ||
13193 | done | ||
13194 | if test "${ac_cv_search_strerror+set}" = set; then : | ||
13195 | |||
13196 | else | ||
13197 | ac_cv_search_strerror=no | ||
13198 | fi | ||
13199 | rm conftest.$ac_ext | ||
13200 | LIBS=$ac_func_search_save_LIBS | ||
13201 | fi | ||
13202 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5 | ||
13203 | $as_echo "$ac_cv_search_strerror" >&6; } | ||
13204 | ac_res=$ac_cv_search_strerror | ||
13205 | if test "$ac_res" != no; then : | ||
13206 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
13207 | |||
13208 | fi | ||
13209 | |||
13210 | |||
13211 | # alloca | ||
13212 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | ||
13213 | # for constant arguments. Useless! | ||
13214 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 | ||
13215 | $as_echo_n "checking for working alloca.h... " >&6; } | ||
13216 | if test "${ac_cv_working_alloca_h+set}" = set; then : | ||
13217 | $as_echo_n "(cached) " >&6 | ||
13218 | else | ||
13219 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13220 | /* end confdefs.h. */ | ||
13221 | #include <alloca.h> | ||
13222 | int | ||
13223 | main () | ||
13224 | { | ||
13225 | char *p = (char *) alloca (2 * sizeof (int)); | ||
13226 | if (p) return 0; | ||
13227 | ; | ||
13228 | return 0; | ||
13229 | } | ||
13230 | _ACEOF | ||
13231 | if ac_fn_c_try_link "$LINENO"; then : | ||
13232 | ac_cv_working_alloca_h=yes | ||
13233 | else | ||
13234 | ac_cv_working_alloca_h=no | ||
13235 | fi | ||
13236 | rm -f core conftest.err conftest.$ac_objext \ | ||
13237 | conftest$ac_exeext conftest.$ac_ext | ||
13238 | fi | ||
13239 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 | ||
13240 | $as_echo "$ac_cv_working_alloca_h" >&6; } | ||
13241 | if test $ac_cv_working_alloca_h = yes; then | ||
13242 | |||
13243 | $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h | ||
13244 | |||
13245 | fi | ||
13246 | |||
13247 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 | ||
13248 | $as_echo_n "checking for alloca... " >&6; } | ||
13249 | if test "${ac_cv_func_alloca_works+set}" = set; then : | ||
13250 | $as_echo_n "(cached) " >&6 | ||
13251 | else | ||
13252 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13253 | /* end confdefs.h. */ | ||
13254 | #ifdef __GNUC__ | ||
13255 | # define alloca __builtin_alloca | ||
13256 | #else | ||
13257 | # ifdef _MSC_VER | ||
13258 | # include <malloc.h> | ||
13259 | # define alloca _alloca | ||
13260 | # else | ||
13261 | # ifdef HAVE_ALLOCA_H | ||
13262 | # include <alloca.h> | ||
13263 | # else | ||
13264 | # ifdef _AIX | ||
13265 | #pragma alloca | ||
13266 | # else | ||
13267 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | ||
13268 | char *alloca (); | ||
13269 | # endif | ||
13270 | # endif | ||
13271 | # endif | ||
13272 | # endif | ||
13273 | #endif | ||
13274 | |||
13275 | int | ||
13276 | main () | ||
13277 | { | ||
13278 | char *p = (char *) alloca (1); | ||
13279 | if (p) return 0; | ||
13280 | ; | ||
13281 | return 0; | ||
13282 | } | ||
13283 | _ACEOF | ||
13284 | if ac_fn_c_try_link "$LINENO"; then : | ||
13285 | ac_cv_func_alloca_works=yes | ||
13286 | else | ||
13287 | ac_cv_func_alloca_works=no | ||
13288 | fi | ||
13289 | rm -f core conftest.err conftest.$ac_objext \ | ||
13290 | conftest$ac_exeext conftest.$ac_ext | ||
13291 | fi | ||
13292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 | ||
13293 | $as_echo "$ac_cv_func_alloca_works" >&6; } | ||
13294 | |||
13295 | if test $ac_cv_func_alloca_works = yes; then | ||
13296 | |||
13297 | $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h | ||
13298 | |||
13299 | else | ||
13300 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | ||
13301 | # that cause trouble. Some versions do not even contain alloca or | ||
13302 | # contain a buggy version. If you still want to use their alloca, | ||
13303 | # use ar to extract alloca.o from them instead of compiling alloca.c. | ||
13304 | |||
13305 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext | ||
13306 | |||
13307 | $as_echo "#define C_ALLOCA 1" >>confdefs.h | ||
13308 | |||
13309 | |||
13310 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 | ||
13311 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } | ||
13312 | if test "${ac_cv_os_cray+set}" = set; then : | ||
13313 | $as_echo_n "(cached) " >&6 | ||
13314 | else | ||
13315 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13316 | /* end confdefs.h. */ | ||
13317 | #if defined CRAY && ! defined CRAY2 | ||
13318 | webecray | ||
13319 | #else | ||
13320 | wenotbecray | ||
13321 | #endif | ||
13322 | |||
13323 | _ACEOF | ||
13324 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13325 | $EGREP "webecray" >/dev/null 2>&1; then : | ||
13326 | ac_cv_os_cray=yes | ||
13327 | else | ||
13328 | ac_cv_os_cray=no | ||
13329 | fi | ||
13330 | rm -f conftest* | ||
13331 | |||
13332 | fi | ||
13333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 | ||
13334 | $as_echo "$ac_cv_os_cray" >&6; } | ||
13335 | if test $ac_cv_os_cray = yes; then | ||
13336 | for ac_func in _getb67 GETB67 getb67; do | ||
13337 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
13338 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
13339 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
13340 | |||
13341 | cat >>confdefs.h <<_ACEOF | ||
13342 | #define CRAY_STACKSEG_END $ac_func | ||
13343 | _ACEOF | ||
13344 | |||
13345 | break | ||
13346 | fi | ||
13347 | |||
13348 | done | ||
13349 | fi | ||
13350 | |||
13351 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 | ||
13352 | $as_echo_n "checking stack direction for C alloca... " >&6; } | ||
13353 | if test "${ac_cv_c_stack_direction+set}" = set; then : | ||
13354 | $as_echo_n "(cached) " >&6 | ||
13355 | else | ||
13356 | if test "$cross_compiling" = yes; then : | ||
13357 | ac_cv_c_stack_direction=0 | ||
13358 | else | ||
13359 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13360 | /* end confdefs.h. */ | ||
13361 | $ac_includes_default | ||
13362 | int | ||
13363 | find_stack_direction () | ||
13364 | { | ||
13365 | static char *addr = 0; | ||
13366 | auto char dummy; | ||
13367 | if (addr == 0) | ||
13368 | { | ||
13369 | addr = &dummy; | ||
13370 | return find_stack_direction (); | ||
13371 | } | ||
13372 | else | ||
13373 | return (&dummy > addr) ? 1 : -1; | ||
13374 | } | ||
13375 | |||
13376 | int | ||
13377 | main () | ||
13378 | { | ||
13379 | return find_stack_direction () < 0; | ||
13380 | } | ||
13381 | _ACEOF | ||
13382 | if ac_fn_c_try_run "$LINENO"; then : | ||
13383 | ac_cv_c_stack_direction=1 | ||
13384 | else | ||
13385 | ac_cv_c_stack_direction=-1 | ||
13386 | fi | ||
13387 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
13388 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
13389 | fi | ||
13390 | |||
13391 | fi | ||
13392 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 | ||
13393 | $as_echo "$ac_cv_c_stack_direction" >&6; } | ||
13394 | cat >>confdefs.h <<_ACEOF | ||
13395 | #define STACK_DIRECTION $ac_cv_c_stack_direction | ||
13396 | _ACEOF | ||
13397 | |||
13398 | |||
13399 | fi | ||
13400 | |||
13401 | |||
13402 | # fnmatch | ||
13403 | |||
13404 | |||
13405 | ac_fn_c_check_header_mongrel "$LINENO" "fnmatch.h" "ac_cv_header_fnmatch_h" "$ac_includes_default" | ||
13406 | if test "x$ac_cv_header_fnmatch_h" = x""yes; then : | ||
13407 | _efl_have_fnmatch="yes" | ||
13408 | else | ||
13409 | _efl_have_fnmatch="no" | ||
13410 | fi | ||
13411 | |||
13412 | |||
13413 | |||
13414 | if test "x${_efl_have_fnmatch}" = "xyes" ; then | ||
13415 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fnmatch" >&5 | ||
13416 | $as_echo_n "checking for library containing fnmatch... " >&6; } | ||
13417 | if test "${ac_cv_search_fnmatch+set}" = set; then : | ||
13418 | $as_echo_n "(cached) " >&6 | ||
13419 | else | ||
13420 | ac_func_search_save_LIBS=$LIBS | ||
13421 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13422 | /* end confdefs.h. */ | ||
13423 | |||
13424 | /* Override any GCC internal prototype to avoid an error. | ||
13425 | Use char because int might match the return type of a GCC | ||
13426 | builtin and then its argument prototype would still apply. */ | ||
13427 | #ifdef __cplusplus | ||
13428 | extern "C" | ||
13429 | #endif | ||
13430 | char fnmatch (); | ||
13431 | int | ||
13432 | main () | ||
13433 | { | ||
13434 | return fnmatch (); | ||
13435 | ; | ||
13436 | return 0; | ||
13437 | } | ||
13438 | _ACEOF | ||
13439 | for ac_lib in '' fnmatch evil exotic iberty; do | ||
13440 | if test -z "$ac_lib"; then | ||
13441 | ac_res="none required" | ||
13442 | else | ||
13443 | ac_res=-l$ac_lib | ||
13444 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
13445 | fi | ||
13446 | if ac_fn_c_try_link "$LINENO"; then : | ||
13447 | ac_cv_search_fnmatch=$ac_res | ||
13448 | fi | ||
13449 | rm -f core conftest.err conftest.$ac_objext \ | ||
13450 | conftest$ac_exeext | ||
13451 | if test "${ac_cv_search_fnmatch+set}" = set; then : | ||
13452 | break | ||
13453 | fi | ||
13454 | done | ||
13455 | if test "${ac_cv_search_fnmatch+set}" = set; then : | ||
13456 | |||
13457 | else | ||
13458 | ac_cv_search_fnmatch=no | ||
13459 | fi | ||
13460 | rm conftest.$ac_ext | ||
13461 | LIBS=$ac_func_search_save_LIBS | ||
13462 | fi | ||
13463 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fnmatch" >&5 | ||
13464 | $as_echo "$ac_cv_search_fnmatch" >&6; } | ||
13465 | ac_res=$ac_cv_search_fnmatch | ||
13466 | if test "$ac_res" != no; then : | ||
13467 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
13468 | _efl_have_fnmatch="yes" | ||
13469 | else | ||
13470 | _efl_have_fnmatch="no" | ||
13471 | fi | ||
13472 | |||
13473 | fi | ||
13474 | |||
13475 | EFL_FNMATCH_LIBS="" | ||
13476 | |||
13477 | if (! test "x${ac_cv_search_fnmatch}" = "xnone required") && (! test "x${ac_cv_search_fnmatch}" = "xno") && (! test "x${ac_cv_search_fnmatch}" = "x-levil") ; then | ||
13478 | EFL_FNMATCH_LIBS=${ac_cv_search_fnmatch} | ||
13479 | fi | ||
13480 | |||
13481 | |||
13482 | |||
13483 | if test "x$_efl_have_fnmatch" = "xyes"; then : | ||
13484 | |||
13485 | else | ||
13486 | as_fn_error $? "Cannot find fnmatch()" "$LINENO" 5 | ||
13487 | fi | ||
13488 | |||
13489 | |||
13490 | |||
13491 | # gettimeofday | ||
13492 | |||
13493 | |||
13494 | _efl_have_gettimeofday="no" | ||
13495 | |||
13496 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13497 | /* end confdefs.h. */ | ||
13498 | |||
13499 | #include <stdlib.h> | ||
13500 | #include <sys/time.h> | ||
13501 | |||
13502 | int | ||
13503 | main () | ||
13504 | { | ||
13505 | |||
13506 | int res; | ||
13507 | res = gettimeofday(NULL, NULL); | ||
13508 | |||
13509 | ; | ||
13510 | return 0; | ||
13511 | } | ||
13512 | _ACEOF | ||
13513 | if ac_fn_c_try_link "$LINENO"; then : | ||
13514 | _efl_have_gettimeofday="yes" | ||
13515 | else | ||
13516 | _efl_have_gettimeofday="no" | ||
13517 | fi | ||
13518 | rm -f core conftest.err conftest.$ac_objext \ | ||
13519 | conftest$ac_exeext conftest.$ac_ext | ||
13520 | |||
13521 | if test "x${_efl_have_gettimeofday}" = "xno" -a "x${enable_exotic}" = "xyes"; then | ||
13522 | SAVE_LIBS="${LIBS}" | ||
13523 | SAVE_CFLAGS="${CFLAGS}" | ||
13524 | LIBS="${LIBS} ${EXOTIC_LIBS}" | ||
13525 | CFLAGS="${CFLAGS} ${EXOTIC_CFLAGS}" | ||
13526 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13527 | /* end confdefs.h. */ | ||
13528 | |||
13529 | #include <Exotic.h> | ||
13530 | |||
13531 | int | ||
13532 | main () | ||
13533 | { | ||
13534 | |||
13535 | int res; | ||
13536 | res = gettimeofday(NULL, NULL); | ||
13537 | |||
13538 | ; | ||
13539 | return 0; | ||
13540 | } | ||
13541 | _ACEOF | ||
13542 | if ac_fn_c_try_link "$LINENO"; then : | ||
13543 | _efl_have_gettimeofday="yes" | ||
13544 | else | ||
13545 | _efl_have_gettimeofday="no" | ||
13546 | fi | ||
13547 | rm -f core conftest.err conftest.$ac_objext \ | ||
13548 | conftest$ac_exeext conftest.$ac_ext | ||
13549 | fi | ||
13550 | |||
13551 | if test "x${_efl_have_gettimeofday}" = "xyes"; then | ||
13552 | |||
13553 | $as_echo "#define EFL_HAVE_GETTIMEOFDAY 1" >>confdefs.h | ||
13554 | |||
13555 | fi | ||
13556 | |||
13557 | if test "x${_efl_have_gettimeofday}" = "xyes"; then : | ||
13558 | |||
13559 | else | ||
13560 | as_fn_error $? "Cannot find gettimeofday()" "$LINENO" 5 | ||
13561 | fi | ||
13562 | |||
13563 | |||
13564 | |||
13565 | |||
13566 | |||
13567 | |||
13568 | ac_config_files="$ac_config_files Makefile doc/Makefile doc/Doxyfile doc/embryo.dox embryo.pc include/Makefile src/Makefile src/lib/Makefile src/bin/Makefile embryo.spec" | ||
13569 | |||
13570 | cat >confcache <<\_ACEOF | ||
13571 | # This file is a shell script that caches the results of configure | ||
13572 | # tests run on this system so they can be shared between configure | ||
13573 | # scripts and configure runs, see configure's option --config-cache. | ||
13574 | # It is not useful on other systems. If it contains results you don't | ||
13575 | # want to keep, you may remove or edit it. | ||
13576 | # | ||
13577 | # config.status only pays attention to the cache file if you give it | ||
13578 | # the --recheck option to rerun configure. | ||
13579 | # | ||
13580 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | ||
13581 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | ||
13582 | # following values. | ||
13583 | |||
13584 | _ACEOF | ||
13585 | |||
13586 | # The following way of writing the cache mishandles newlines in values, | ||
13587 | # but we know of no workaround that is simple, portable, and efficient. | ||
13588 | # So, we kill variables containing newlines. | ||
13589 | # Ultrix sh set writes to stderr and can't be redirected directly, | ||
13590 | # and sets the high bit in the cache file unless we assign to the vars. | ||
13591 | ( | ||
13592 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | ||
13593 | eval ac_val=\$$ac_var | ||
13594 | case $ac_val in #( | ||
13595 | *${as_nl}*) | ||
13596 | case $ac_var in #( | ||
13597 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | ||
13598 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | ||
13599 | esac | ||
13600 | case $ac_var in #( | ||
13601 | _ | IFS | as_nl) ;; #( | ||
13602 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | ||
13603 | *) { eval $ac_var=; unset $ac_var;} ;; | ||
13604 | esac ;; | ||
13605 | esac | ||
13606 | done | ||
13607 | |||
13608 | (set) 2>&1 | | ||
13609 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | ||
13610 | *${as_nl}ac_space=\ *) | ||
13611 | # `set' does not quote correctly, so add quotes: double-quote | ||
13612 | # substitution turns \\\\ into \\, and sed turns \\ into \. | ||
13613 | sed -n \ | ||
13614 | "s/'/'\\\\''/g; | ||
13615 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | ||
13616 | ;; #( | ||
13617 | *) | ||
13618 | # `set' quotes correctly as required by POSIX, so do not add quotes. | ||
13619 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | ||
13620 | ;; | ||
13621 | esac | | ||
13622 | sort | ||
13623 | ) | | ||
13624 | sed ' | ||
13625 | /^ac_cv_env_/b end | ||
13626 | t clear | ||
13627 | :clear | ||
13628 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | ||
13629 | t end | ||
13630 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | ||
13631 | :end' >>confcache | ||
13632 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | ||
13633 | if test -w "$cache_file"; then | ||
13634 | test "x$cache_file" != "x/dev/null" && | ||
13635 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | ||
13636 | $as_echo "$as_me: updating cache $cache_file" >&6;} | ||
13637 | cat confcache >$cache_file | ||
13638 | else | ||
13639 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | ||
13640 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | ||
13641 | fi | ||
13642 | fi | ||
13643 | rm -f confcache | ||
13644 | |||
13645 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | ||
13646 | # Let make expand exec_prefix. | ||
13647 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | ||
13648 | |||
13649 | DEFS=-DHAVE_CONFIG_H | ||
13650 | |||
13651 | ac_libobjs= | ||
13652 | ac_ltlibobjs= | ||
13653 | U= | ||
13654 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | ||
13655 | # 1. Remove the extension, and $U if already installed. | ||
13656 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | ||
13657 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | ||
13658 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | ||
13659 | # will be set to the directory where LIBOBJS objects are built. | ||
13660 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | ||
13661 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | ||
13662 | done | ||
13663 | LIBOBJS=$ac_libobjs | ||
13664 | |||
13665 | LTLIBOBJS=$ac_ltlibobjs | ||
13666 | |||
13667 | |||
13668 | if test -n "$EXEEXT"; then | ||
13669 | am__EXEEXT_TRUE= | ||
13670 | am__EXEEXT_FALSE='#' | ||
13671 | else | ||
13672 | am__EXEEXT_TRUE='#' | ||
13673 | am__EXEEXT_FALSE= | ||
13674 | fi | ||
13675 | |||
13676 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | ||
13677 | as_fn_error $? "conditional \"AMDEP\" was never defined. | ||
13678 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
13679 | fi | ||
13680 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | ||
13681 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. | ||
13682 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
13683 | fi | ||
13684 | if test -z "${BUILD_EMBRYO_CC_TRUE}" && test -z "${BUILD_EMBRYO_CC_FALSE}"; then | ||
13685 | as_fn_error $? "conditional \"BUILD_EMBRYO_CC\" was never defined. | ||
13686 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
13687 | fi | ||
13688 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | ||
13689 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. | ||
13690 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
13691 | fi | ||
13692 | if test -z "${EFL_BUILD_DOC_TRUE}" && test -z "${EFL_BUILD_DOC_FALSE}"; then | ||
13693 | as_fn_error $? "conditional \"EFL_BUILD_DOC\" was never defined. | ||
13694 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
13695 | fi | ||
13696 | |||
13697 | |||
13698 | : ${CONFIG_STATUS=./config.status} | ||
13699 | ac_write_fail=0 | ||
13700 | ac_clean_files_save=$ac_clean_files | ||
13701 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | ||
13702 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | ||
13703 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | ||
13704 | as_write_fail=0 | ||
13705 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | ||
13706 | #! $SHELL | ||
13707 | # Generated by $as_me. | ||
13708 | # Run this file to recreate the current configuration. | ||
13709 | # Compiler output produced by configure, useful for debugging | ||
13710 | # configure, is in config.log if it exists. | ||
13711 | |||
13712 | debug=false | ||
13713 | ac_cs_recheck=false | ||
13714 | ac_cs_silent=false | ||
13715 | |||
13716 | SHELL=\${CONFIG_SHELL-$SHELL} | ||
13717 | export SHELL | ||
13718 | _ASEOF | ||
13719 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | ||
13720 | ## -------------------- ## | ||
13721 | ## M4sh Initialization. ## | ||
13722 | ## -------------------- ## | ||
13723 | |||
13724 | # Be more Bourne compatible | ||
13725 | DUALCASE=1; export DUALCASE # for MKS sh | ||
13726 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | ||
13727 | emulate sh | ||
13728 | NULLCMD=: | ||
13729 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | ||
13730 | # is contrary to our usage. Disable this feature. | ||
13731 | alias -g '${1+"$@"}'='"$@"' | ||
13732 | setopt NO_GLOB_SUBST | ||
13733 | else | ||
13734 | case `(set -o) 2>/dev/null` in #( | ||
13735 | *posix*) : | ||
13736 | set -o posix ;; #( | ||
13737 | *) : | ||
13738 | ;; | ||
13739 | esac | ||
13740 | fi | ||
13741 | |||
13742 | |||
13743 | as_nl=' | ||
13744 | ' | ||
13745 | export as_nl | ||
13746 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | ||
13747 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | ||
13748 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | ||
13749 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | ||
13750 | # Prefer a ksh shell builtin over an external printf program on Solaris, | ||
13751 | # but without wasting forks for bash or zsh. | ||
13752 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | ||
13753 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | ||
13754 | as_echo='print -r --' | ||
13755 | as_echo_n='print -rn --' | ||
13756 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | ||
13757 | as_echo='printf %s\n' | ||
13758 | as_echo_n='printf %s' | ||
13759 | else | ||
13760 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | ||
13761 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | ||
13762 | as_echo_n='/usr/ucb/echo -n' | ||
13763 | else | ||
13764 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | ||
13765 | as_echo_n_body='eval | ||
13766 | arg=$1; | ||
13767 | case $arg in #( | ||
13768 | *"$as_nl"*) | ||
13769 | expr "X$arg" : "X\\(.*\\)$as_nl"; | ||
13770 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | ||
13771 | esac; | ||
13772 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | ||
13773 | ' | ||
13774 | export as_echo_n_body | ||
13775 | as_echo_n='sh -c $as_echo_n_body as_echo' | ||
13776 | fi | ||
13777 | export as_echo_body | ||
13778 | as_echo='sh -c $as_echo_body as_echo' | ||
13779 | fi | ||
13780 | |||
13781 | # The user is always right. | ||
13782 | if test "${PATH_SEPARATOR+set}" != set; then | ||
13783 | PATH_SEPARATOR=: | ||
13784 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | ||
13785 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | ||
13786 | PATH_SEPARATOR=';' | ||
13787 | } | ||
13788 | fi | ||
13789 | |||
13790 | |||
13791 | # IFS | ||
13792 | # We need space, tab and new line, in precisely that order. Quoting is | ||
13793 | # there to prevent editors from complaining about space-tab. | ||
13794 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | ||
13795 | # splitting by setting IFS to empty value.) | ||
13796 | IFS=" "" $as_nl" | ||
13797 | |||
13798 | # Find who we are. Look in the path if we contain no directory separator. | ||
13799 | case $0 in #(( | ||
13800 | *[\\/]* ) as_myself=$0 ;; | ||
13801 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
13802 | for as_dir in $PATH | ||
13803 | do | ||
13804 | IFS=$as_save_IFS | ||
13805 | test -z "$as_dir" && as_dir=. | ||
13806 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | ||
13807 | done | ||
13808 | IFS=$as_save_IFS | ||
13809 | |||
13810 | ;; | ||
13811 | esac | ||
13812 | # We did not find ourselves, most probably we were run as `sh COMMAND' | ||
13813 | # in which case we are not to be found in the path. | ||
13814 | if test "x$as_myself" = x; then | ||
13815 | as_myself=$0 | ||
13816 | fi | ||
13817 | if test ! -f "$as_myself"; then | ||
13818 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | ||
13819 | exit 1 | ||
13820 | fi | ||
13821 | |||
13822 | # Unset variables that we do not need and which cause bugs (e.g. in | ||
13823 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | ||
13824 | # suppresses any "Segmentation fault" message there. '((' could | ||
13825 | # trigger a bug in pdksh 5.2.14. | ||
13826 | for as_var in BASH_ENV ENV MAIL MAILPATH | ||
13827 | do eval test x\${$as_var+set} = xset \ | ||
13828 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | ||
13829 | done | ||
13830 | PS1='$ ' | ||
13831 | PS2='> ' | ||
13832 | PS4='+ ' | ||
13833 | |||
13834 | # NLS nuisances. | ||
13835 | LC_ALL=C | ||
13836 | export LC_ALL | ||
13837 | LANGUAGE=C | ||
13838 | export LANGUAGE | ||
13839 | |||
13840 | # CDPATH. | ||
13841 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | ||
13842 | |||
13843 | |||
13844 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | ||
13845 | # ---------------------------------------- | ||
13846 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | ||
13847 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | ||
13848 | # script with STATUS, using 1 if that was 0. | ||
13849 | as_fn_error () | ||
13850 | { | ||
13851 | as_status=$1; test $as_status -eq 0 && as_status=1 | ||
13852 | if test "$4"; then | ||
13853 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
13854 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | ||
13855 | fi | ||
13856 | $as_echo "$as_me: error: $2" >&2 | ||
13857 | as_fn_exit $as_status | ||
13858 | } # as_fn_error | ||
13859 | |||
13860 | |||
13861 | # as_fn_set_status STATUS | ||
13862 | # ----------------------- | ||
13863 | # Set $? to STATUS, without forking. | ||
13864 | as_fn_set_status () | ||
13865 | { | ||
13866 | return $1 | ||
13867 | } # as_fn_set_status | ||
13868 | |||
13869 | # as_fn_exit STATUS | ||
13870 | # ----------------- | ||
13871 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | ||
13872 | as_fn_exit () | ||
13873 | { | ||
13874 | set +e | ||
13875 | as_fn_set_status $1 | ||
13876 | exit $1 | ||
13877 | } # as_fn_exit | ||
13878 | |||
13879 | # as_fn_unset VAR | ||
13880 | # --------------- | ||
13881 | # Portably unset VAR. | ||
13882 | as_fn_unset () | ||
13883 | { | ||
13884 | { eval $1=; unset $1;} | ||
13885 | } | ||
13886 | as_unset=as_fn_unset | ||
13887 | # as_fn_append VAR VALUE | ||
13888 | # ---------------------- | ||
13889 | # Append the text in VALUE to the end of the definition contained in VAR. Take | ||
13890 | # advantage of any shell optimizations that allow amortized linear growth over | ||
13891 | # repeated appends, instead of the typical quadratic growth present in naive | ||
13892 | # implementations. | ||
13893 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | ||
13894 | eval 'as_fn_append () | ||
13895 | { | ||
13896 | eval $1+=\$2 | ||
13897 | }' | ||
13898 | else | ||
13899 | as_fn_append () | ||
13900 | { | ||
13901 | eval $1=\$$1\$2 | ||
13902 | } | ||
13903 | fi # as_fn_append | ||
13904 | |||
13905 | # as_fn_arith ARG... | ||
13906 | # ------------------ | ||
13907 | # Perform arithmetic evaluation on the ARGs, and store the result in the | ||
13908 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | ||
13909 | # must be portable across $(()) and expr. | ||
13910 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | ||
13911 | eval 'as_fn_arith () | ||
13912 | { | ||
13913 | as_val=$(( $* )) | ||
13914 | }' | ||
13915 | else | ||
13916 | as_fn_arith () | ||
13917 | { | ||
13918 | as_val=`expr "$@" || test $? -eq 1` | ||
13919 | } | ||
13920 | fi # as_fn_arith | ||
13921 | |||
13922 | |||
13923 | if expr a : '\(a\)' >/dev/null 2>&1 && | ||
13924 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | ||
13925 | as_expr=expr | ||
13926 | else | ||
13927 | as_expr=false | ||
13928 | fi | ||
13929 | |||
13930 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | ||
13931 | as_basename=basename | ||
13932 | else | ||
13933 | as_basename=false | ||
13934 | fi | ||
13935 | |||
13936 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | ||
13937 | as_dirname=dirname | ||
13938 | else | ||
13939 | as_dirname=false | ||
13940 | fi | ||
13941 | |||
13942 | as_me=`$as_basename -- "$0" || | ||
13943 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | ||
13944 | X"$0" : 'X\(//\)$' \| \ | ||
13945 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | ||
13946 | $as_echo X/"$0" | | ||
13947 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | ||
13948 | s//\1/ | ||
13949 | q | ||
13950 | } | ||
13951 | /^X\/\(\/\/\)$/{ | ||
13952 | s//\1/ | ||
13953 | q | ||
13954 | } | ||
13955 | /^X\/\(\/\).*/{ | ||
13956 | s//\1/ | ||
13957 | q | ||
13958 | } | ||
13959 | s/.*/./; q'` | ||
13960 | |||
13961 | # Avoid depending upon Character Ranges. | ||
13962 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | ||
13963 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | ||
13964 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | ||
13965 | as_cr_digits='0123456789' | ||
13966 | as_cr_alnum=$as_cr_Letters$as_cr_digits | ||
13967 | |||
13968 | ECHO_C= ECHO_N= ECHO_T= | ||
13969 | case `echo -n x` in #((((( | ||
13970 | -n*) | ||
13971 | case `echo 'xy\c'` in | ||
13972 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | ||
13973 | xy) ECHO_C='\c';; | ||
13974 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | ||
13975 | ECHO_T=' ';; | ||
13976 | esac;; | ||
13977 | *) | ||
13978 | ECHO_N='-n';; | ||
13979 | esac | ||
13980 | |||
13981 | rm -f conf$$ conf$$.exe conf$$.file | ||
13982 | if test -d conf$$.dir; then | ||
13983 | rm -f conf$$.dir/conf$$.file | ||
13984 | else | ||
13985 | rm -f conf$$.dir | ||
13986 | mkdir conf$$.dir 2>/dev/null | ||
13987 | fi | ||
13988 | if (echo >conf$$.file) 2>/dev/null; then | ||
13989 | if ln -s conf$$.file conf$$ 2>/dev/null; then | ||
13990 | as_ln_s='ln -s' | ||
13991 | # ... but there are two gotchas: | ||
13992 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | ||
13993 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | ||
13994 | # In both cases, we have to default to `cp -p'. | ||
13995 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | ||
13996 | as_ln_s='cp -p' | ||
13997 | elif ln conf$$.file conf$$ 2>/dev/null; then | ||
13998 | as_ln_s=ln | ||
13999 | else | ||
14000 | as_ln_s='cp -p' | ||
14001 | fi | ||
14002 | else | ||
14003 | as_ln_s='cp -p' | ||
14004 | fi | ||
14005 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | ||
14006 | rmdir conf$$.dir 2>/dev/null | ||
14007 | |||
14008 | |||
14009 | # as_fn_mkdir_p | ||
14010 | # ------------- | ||
14011 | # Create "$as_dir" as a directory, including parents if necessary. | ||
14012 | as_fn_mkdir_p () | ||
14013 | { | ||
14014 | |||
14015 | case $as_dir in #( | ||
14016 | -*) as_dir=./$as_dir;; | ||
14017 | esac | ||
14018 | test -d "$as_dir" || eval $as_mkdir_p || { | ||
14019 | as_dirs= | ||
14020 | while :; do | ||
14021 | case $as_dir in #( | ||
14022 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | ||
14023 | *) as_qdir=$as_dir;; | ||
14024 | esac | ||
14025 | as_dirs="'$as_qdir' $as_dirs" | ||
14026 | as_dir=`$as_dirname -- "$as_dir" || | ||
14027 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
14028 | X"$as_dir" : 'X\(//\)[^/]' \| \ | ||
14029 | X"$as_dir" : 'X\(//\)$' \| \ | ||
14030 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | ||
14031 | $as_echo X"$as_dir" | | ||
14032 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
14033 | s//\1/ | ||
14034 | q | ||
14035 | } | ||
14036 | /^X\(\/\/\)[^/].*/{ | ||
14037 | s//\1/ | ||
14038 | q | ||
14039 | } | ||
14040 | /^X\(\/\/\)$/{ | ||
14041 | s//\1/ | ||
14042 | q | ||
14043 | } | ||
14044 | /^X\(\/\).*/{ | ||
14045 | s//\1/ | ||
14046 | q | ||
14047 | } | ||
14048 | s/.*/./; q'` | ||
14049 | test -d "$as_dir" && break | ||
14050 | done | ||
14051 | test -z "$as_dirs" || eval "mkdir $as_dirs" | ||
14052 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | ||
14053 | |||
14054 | |||
14055 | } # as_fn_mkdir_p | ||
14056 | if mkdir -p . 2>/dev/null; then | ||
14057 | as_mkdir_p='mkdir -p "$as_dir"' | ||
14058 | else | ||
14059 | test -d ./-p && rmdir ./-p | ||
14060 | as_mkdir_p=false | ||
14061 | fi | ||
14062 | |||
14063 | if test -x / >/dev/null 2>&1; then | ||
14064 | as_test_x='test -x' | ||
14065 | else | ||
14066 | if ls -dL / >/dev/null 2>&1; then | ||
14067 | as_ls_L_option=L | ||
14068 | else | ||
14069 | as_ls_L_option= | ||
14070 | fi | ||
14071 | as_test_x=' | ||
14072 | eval sh -c '\'' | ||
14073 | if test -d "$1"; then | ||
14074 | test -d "$1/."; | ||
14075 | else | ||
14076 | case $1 in #( | ||
14077 | -*)set "./$1";; | ||
14078 | esac; | ||
14079 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | ||
14080 | ???[sx]*):;;*)false;;esac;fi | ||
14081 | '\'' sh | ||
14082 | ' | ||
14083 | fi | ||
14084 | as_executable_p=$as_test_x | ||
14085 | |||
14086 | # Sed expression to map a string onto a valid CPP name. | ||
14087 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | ||
14088 | |||
14089 | # Sed expression to map a string onto a valid variable name. | ||
14090 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | ||
14091 | |||
14092 | |||
14093 | exec 6>&1 | ||
14094 | ## ----------------------------------- ## | ||
14095 | ## Main body of $CONFIG_STATUS script. ## | ||
14096 | ## ----------------------------------- ## | ||
14097 | _ASEOF | ||
14098 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | ||
14099 | |||
14100 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
14101 | # Save the log message, to keep $0 and so on meaningful, and to | ||
14102 | # report actual input values of CONFIG_FILES etc. instead of their | ||
14103 | # values after options handling. | ||
14104 | ac_log=" | ||
14105 | This file was extended by embryo $as_me 1.2.0-alpha, which was | ||
14106 | generated by GNU Autoconf 2.67. Invocation command line was | ||
14107 | |||
14108 | CONFIG_FILES = $CONFIG_FILES | ||
14109 | CONFIG_HEADERS = $CONFIG_HEADERS | ||
14110 | CONFIG_LINKS = $CONFIG_LINKS | ||
14111 | CONFIG_COMMANDS = $CONFIG_COMMANDS | ||
14112 | $ $0 $@ | ||
14113 | |||
14114 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | ||
14115 | " | ||
14116 | |||
14117 | _ACEOF | ||
14118 | |||
14119 | case $ac_config_files in *" | ||
14120 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | ||
14121 | esac | ||
14122 | |||
14123 | case $ac_config_headers in *" | ||
14124 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | ||
14125 | esac | ||
14126 | |||
14127 | |||
14128 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
14129 | # Files that config.status was made for. | ||
14130 | config_files="$ac_config_files" | ||
14131 | config_headers="$ac_config_headers" | ||
14132 | config_commands="$ac_config_commands" | ||
14133 | |||
14134 | _ACEOF | ||
14135 | |||
14136 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
14137 | ac_cs_usage="\ | ||
14138 | \`$as_me' instantiates files and other configuration actions | ||
14139 | from templates according to the current configuration. Unless the files | ||
14140 | and actions are specified as TAGs, all are instantiated by default. | ||
14141 | |||
14142 | Usage: $0 [OPTION]... [TAG]... | ||
14143 | |||
14144 | -h, --help print this help, then exit | ||
14145 | -V, --version print version number and configuration settings, then exit | ||
14146 | --config print configuration, then exit | ||
14147 | -q, --quiet, --silent | ||
14148 | do not print progress messages | ||
14149 | -d, --debug don't remove temporary files | ||
14150 | --recheck update $as_me by reconfiguring in the same conditions | ||
14151 | --file=FILE[:TEMPLATE] | ||
14152 | instantiate the configuration file FILE | ||
14153 | --header=FILE[:TEMPLATE] | ||
14154 | instantiate the configuration header FILE | ||
14155 | |||
14156 | Configuration files: | ||
14157 | $config_files | ||
14158 | |||
14159 | Configuration headers: | ||
14160 | $config_headers | ||
14161 | |||
14162 | Configuration commands: | ||
14163 | $config_commands | ||
14164 | |||
14165 | Report bugs to <enlightenment-devel@lists.sourceforge.net>." | ||
14166 | |||
14167 | _ACEOF | ||
14168 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
14169 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" | ||
14170 | ac_cs_version="\\ | ||
14171 | embryo config.status 1.2.0-alpha | ||
14172 | configured by $0, generated by GNU Autoconf 2.67, | ||
14173 | with options \\"\$ac_cs_config\\" | ||
14174 | |||
14175 | Copyright (C) 2010 Free Software Foundation, Inc. | ||
14176 | This config.status script is free software; the Free Software Foundation | ||
14177 | gives unlimited permission to copy, distribute and modify it." | ||
14178 | |||
14179 | ac_pwd='$ac_pwd' | ||
14180 | srcdir='$srcdir' | ||
14181 | INSTALL='$INSTALL' | ||
14182 | MKDIR_P='$MKDIR_P' | ||
14183 | AWK='$AWK' | ||
14184 | test -n "\$AWK" || AWK=awk | ||
14185 | _ACEOF | ||
14186 | |||
14187 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
14188 | # The default lists apply if the user does not specify any file. | ||
14189 | ac_need_defaults=: | ||
14190 | while test $# != 0 | ||
14191 | do | ||
14192 | case $1 in | ||
14193 | --*=?*) | ||
14194 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | ||
14195 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | ||
14196 | ac_shift=: | ||
14197 | ;; | ||
14198 | --*=) | ||
14199 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | ||
14200 | ac_optarg= | ||
14201 | ac_shift=: | ||
14202 | ;; | ||
14203 | *) | ||
14204 | ac_option=$1 | ||
14205 | ac_optarg=$2 | ||
14206 | ac_shift=shift | ||
14207 | ;; | ||
14208 | esac | ||
14209 | |||
14210 | case $ac_option in | ||
14211 | # Handling of the options. | ||
14212 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | ||
14213 | ac_cs_recheck=: ;; | ||
14214 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | ||
14215 | $as_echo "$ac_cs_version"; exit ;; | ||
14216 | --config | --confi | --conf | --con | --co | --c ) | ||
14217 | $as_echo "$ac_cs_config"; exit ;; | ||
14218 | --debug | --debu | --deb | --de | --d | -d ) | ||
14219 | debug=: ;; | ||
14220 | --file | --fil | --fi | --f ) | ||
14221 | $ac_shift | ||
14222 | case $ac_optarg in | ||
14223 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
14224 | '') as_fn_error $? "missing file argument" ;; | ||
14225 | esac | ||
14226 | as_fn_append CONFIG_FILES " '$ac_optarg'" | ||
14227 | ac_need_defaults=false;; | ||
14228 | --header | --heade | --head | --hea ) | ||
14229 | $ac_shift | ||
14230 | case $ac_optarg in | ||
14231 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
14232 | esac | ||
14233 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | ||
14234 | ac_need_defaults=false;; | ||
14235 | --he | --h) | ||
14236 | # Conflict between --help and --header | ||
14237 | as_fn_error $? "ambiguous option: \`$1' | ||
14238 | Try \`$0 --help' for more information.";; | ||
14239 | --help | --hel | -h ) | ||
14240 | $as_echo "$ac_cs_usage"; exit ;; | ||
14241 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
14242 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | ||
14243 | ac_cs_silent=: ;; | ||
14244 | |||
14245 | # This is an error. | ||
14246 | -*) as_fn_error $? "unrecognized option: \`$1' | ||
14247 | Try \`$0 --help' for more information." ;; | ||
14248 | |||
14249 | *) as_fn_append ac_config_targets " $1" | ||
14250 | ac_need_defaults=false ;; | ||
14251 | |||
14252 | esac | ||
14253 | shift | ||
14254 | done | ||
14255 | |||
14256 | ac_configure_extra_args= | ||
14257 | |||
14258 | if $ac_cs_silent; then | ||
14259 | exec 6>/dev/null | ||
14260 | ac_configure_extra_args="$ac_configure_extra_args --silent" | ||
14261 | fi | ||
14262 | |||
14263 | _ACEOF | ||
14264 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
14265 | if \$ac_cs_recheck; then | ||
14266 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | ||
14267 | shift | ||
14268 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | ||
14269 | CONFIG_SHELL='$SHELL' | ||
14270 | export CONFIG_SHELL | ||
14271 | exec "\$@" | ||
14272 | fi | ||
14273 | |||
14274 | _ACEOF | ||
14275 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
14276 | exec 5>>config.log | ||
14277 | { | ||
14278 | echo | ||
14279 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | ||
14280 | ## Running $as_me. ## | ||
14281 | _ASBOX | ||
14282 | $as_echo "$ac_log" | ||
14283 | } >&5 | ||
14284 | |||
14285 | _ACEOF | ||
14286 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
14287 | # | ||
14288 | # INIT-COMMANDS | ||
14289 | # | ||
14290 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" | ||
14291 | |||
14292 | |||
14293 | # The HP-UX ksh and POSIX shell print the target directory to stdout | ||
14294 | # if CDPATH is set. | ||
14295 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | ||
14296 | |||
14297 | sed_quote_subst='$sed_quote_subst' | ||
14298 | double_quote_subst='$double_quote_subst' | ||
14299 | delay_variable_subst='$delay_variable_subst' | ||
14300 | AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`' | ||
14301 | DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`' | ||
14302 | OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' | ||
14303 | macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' | ||
14304 | macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' | ||
14305 | enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' | ||
14306 | enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' | ||
14307 | pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' | ||
14308 | enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' | ||
14309 | host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' | ||
14310 | host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' | ||
14311 | host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' | ||
14312 | build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' | ||
14313 | build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' | ||
14314 | build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' | ||
14315 | SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' | ||
14316 | Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' | ||
14317 | GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' | ||
14318 | EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' | ||
14319 | FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' | ||
14320 | LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' | ||
14321 | NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' | ||
14322 | LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' | ||
14323 | max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' | ||
14324 | ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' | ||
14325 | exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' | ||
14326 | lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' | ||
14327 | lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' | ||
14328 | lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' | ||
14329 | reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' | ||
14330 | reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
14331 | deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' | ||
14332 | file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' | ||
14333 | AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' | ||
14334 | AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' | ||
14335 | STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' | ||
14336 | RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' | ||
14337 | old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
14338 | old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
14339 | old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
14340 | CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' | ||
14341 | CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' | ||
14342 | compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' | ||
14343 | GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' | ||
14344 | lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' | ||
14345 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' | ||
14346 | 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"`' | ||
14347 | 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"`' | ||
14348 | objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' | ||
14349 | SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' | ||
14350 | ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' | ||
14351 | MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' | ||
14352 | lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' | ||
14353 | lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' | ||
14354 | lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' | ||
14355 | lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' | ||
14356 | lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' | ||
14357 | need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' | ||
14358 | DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' | ||
14359 | NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' | ||
14360 | LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' | ||
14361 | OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' | ||
14362 | OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' | ||
14363 | libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' | ||
14364 | shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
14365 | extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
14366 | archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' | ||
14367 | enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' | ||
14368 | export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
14369 | whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
14370 | compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' | ||
14371 | old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
14372 | old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
14373 | archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
14374 | archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
14375 | module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
14376 | module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
14377 | with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' | ||
14378 | allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | ||
14379 | no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | ||
14380 | hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
14381 | hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' | ||
14382 | hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' | ||
14383 | hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' | ||
14384 | hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' | ||
14385 | hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' | ||
14386 | hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | ||
14387 | hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' | ||
14388 | inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' | ||
14389 | link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' | ||
14390 | fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' | ||
14391 | always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' | ||
14392 | export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
14393 | exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | ||
14394 | include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | ||
14395 | prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
14396 | file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
14397 | variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' | ||
14398 | need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' | ||
14399 | need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' | ||
14400 | version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' | ||
14401 | runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' | ||
14402 | shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | ||
14403 | shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' | ||
14404 | libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
14405 | library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
14406 | soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
14407 | postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
14408 | postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
14409 | finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
14410 | finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' | ||
14411 | hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' | ||
14412 | sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
14413 | sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
14414 | hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' | ||
14415 | enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' | ||
14416 | enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' | ||
14417 | enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' | ||
14418 | old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' | ||
14419 | striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' | ||
14420 | |||
14421 | LTCC='$LTCC' | ||
14422 | LTCFLAGS='$LTCFLAGS' | ||
14423 | compiler='$compiler_DEFAULT' | ||
14424 | |||
14425 | # Quote evaled strings. | ||
14426 | for var in SED \ | ||
14427 | GREP \ | ||
14428 | EGREP \ | ||
14429 | FGREP \ | ||
14430 | LD \ | ||
14431 | NM \ | ||
14432 | LN_S \ | ||
14433 | lt_SP2NL \ | ||
14434 | lt_NL2SP \ | ||
14435 | reload_flag \ | ||
14436 | deplibs_check_method \ | ||
14437 | file_magic_cmd \ | ||
14438 | AR \ | ||
14439 | AR_FLAGS \ | ||
14440 | STRIP \ | ||
14441 | RANLIB \ | ||
14442 | CC \ | ||
14443 | CFLAGS \ | ||
14444 | compiler \ | ||
14445 | lt_cv_sys_global_symbol_pipe \ | ||
14446 | lt_cv_sys_global_symbol_to_cdecl \ | ||
14447 | lt_cv_sys_global_symbol_to_c_name_address \ | ||
14448 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | ||
14449 | SHELL \ | ||
14450 | ECHO \ | ||
14451 | lt_prog_compiler_no_builtin_flag \ | ||
14452 | lt_prog_compiler_wl \ | ||
14453 | lt_prog_compiler_pic \ | ||
14454 | lt_prog_compiler_static \ | ||
14455 | lt_cv_prog_compiler_c_o \ | ||
14456 | need_locks \ | ||
14457 | DSYMUTIL \ | ||
14458 | NMEDIT \ | ||
14459 | LIPO \ | ||
14460 | OTOOL \ | ||
14461 | OTOOL64 \ | ||
14462 | shrext_cmds \ | ||
14463 | export_dynamic_flag_spec \ | ||
14464 | whole_archive_flag_spec \ | ||
14465 | compiler_needs_object \ | ||
14466 | with_gnu_ld \ | ||
14467 | allow_undefined_flag \ | ||
14468 | no_undefined_flag \ | ||
14469 | hardcode_libdir_flag_spec \ | ||
14470 | hardcode_libdir_flag_spec_ld \ | ||
14471 | hardcode_libdir_separator \ | ||
14472 | fix_srcfile_path \ | ||
14473 | exclude_expsyms \ | ||
14474 | include_expsyms \ | ||
14475 | file_list_spec \ | ||
14476 | variables_saved_for_relink \ | ||
14477 | libname_spec \ | ||
14478 | library_names_spec \ | ||
14479 | soname_spec \ | ||
14480 | finish_eval \ | ||
14481 | old_striplib \ | ||
14482 | striplib; do | ||
14483 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | ||
14484 | *[\\\\\\\`\\"\\\$]*) | ||
14485 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | ||
14486 | ;; | ||
14487 | *) | ||
14488 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | ||
14489 | ;; | ||
14490 | esac | ||
14491 | done | ||
14492 | |||
14493 | # Double-quote double-evaled strings. | ||
14494 | for var in reload_cmds \ | ||
14495 | old_postinstall_cmds \ | ||
14496 | old_postuninstall_cmds \ | ||
14497 | old_archive_cmds \ | ||
14498 | extract_expsyms_cmds \ | ||
14499 | old_archive_from_new_cmds \ | ||
14500 | old_archive_from_expsyms_cmds \ | ||
14501 | archive_cmds \ | ||
14502 | archive_expsym_cmds \ | ||
14503 | module_cmds \ | ||
14504 | module_expsym_cmds \ | ||
14505 | export_symbols_cmds \ | ||
14506 | prelink_cmds \ | ||
14507 | postinstall_cmds \ | ||
14508 | postuninstall_cmds \ | ||
14509 | finish_cmds \ | ||
14510 | sys_lib_search_path_spec \ | ||
14511 | sys_lib_dlsearch_path_spec; do | ||
14512 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | ||
14513 | *[\\\\\\\`\\"\\\$]*) | ||
14514 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" | ||
14515 | ;; | ||
14516 | *) | ||
14517 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | ||
14518 | ;; | ||
14519 | esac | ||
14520 | done | ||
14521 | |||
14522 | # Fix-up fallback echo if it was mangled by the above quoting rules. | ||
14523 | case \$lt_ECHO in | ||
14524 | *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` | ||
14525 | ;; | ||
14526 | esac | ||
14527 | |||
14528 | ac_aux_dir='$ac_aux_dir' | ||
14529 | xsi_shell='$xsi_shell' | ||
14530 | lt_shell_append='$lt_shell_append' | ||
14531 | |||
14532 | # See if we are running on zsh, and set the options which allow our | ||
14533 | # commands through without removal of \ escapes INIT. | ||
14534 | if test -n "\${ZSH_VERSION+set}" ; then | ||
14535 | setopt NO_GLOB_SUBST | ||
14536 | fi | ||
14537 | |||
14538 | |||
14539 | PACKAGE='$PACKAGE' | ||
14540 | VERSION='$VERSION' | ||
14541 | TIMESTAMP='$TIMESTAMP' | ||
14542 | RM='$RM' | ||
14543 | ofile='$ofile' | ||
14544 | |||
14545 | |||
14546 | |||
14547 | |||
14548 | _ACEOF | ||
14549 | |||
14550 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
14551 | |||
14552 | # Handling of arguments. | ||
14553 | for ac_config_target in $ac_config_targets | ||
14554 | do | ||
14555 | case $ac_config_target in | ||
14556 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | ||
14557 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | ||
14558 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | ||
14559 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | ||
14560 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; | ||
14561 | "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;; | ||
14562 | "doc/embryo.dox") CONFIG_FILES="$CONFIG_FILES doc/embryo.dox" ;; | ||
14563 | "embryo.pc") CONFIG_FILES="$CONFIG_FILES embryo.pc" ;; | ||
14564 | "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; | ||
14565 | "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; | ||
14566 | "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;; | ||
14567 | "src/bin/Makefile") CONFIG_FILES="$CONFIG_FILES src/bin/Makefile" ;; | ||
14568 | "embryo.spec") CONFIG_FILES="$CONFIG_FILES embryo.spec" ;; | ||
14569 | |||
14570 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;; | ||
14571 | esac | ||
14572 | done | ||
14573 | |||
14574 | |||
14575 | # If the user did not use the arguments to specify the items to instantiate, | ||
14576 | # then the envvar interface is used. Set only those that are not. | ||
14577 | # We use the long form for the default assignment because of an extremely | ||
14578 | # bizarre bug on SunOS 4.1.3. | ||
14579 | if $ac_need_defaults; then | ||
14580 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | ||
14581 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | ||
14582 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | ||
14583 | fi | ||
14584 | |||
14585 | # Have a temporary directory for convenience. Make it in the build tree | ||
14586 | # simply because there is no reason against having it here, and in addition, | ||
14587 | # creating and moving files from /tmp can sometimes cause problems. | ||
14588 | # Hook for its removal unless debugging. | ||
14589 | # Note that there is a small window in which the directory will not be cleaned: | ||
14590 | # after its creation but before its name has been assigned to `$tmp'. | ||
14591 | $debug || | ||
14592 | { | ||
14593 | tmp= | ||
14594 | trap 'exit_status=$? | ||
14595 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | ||
14596 | ' 0 | ||
14597 | trap 'as_fn_exit 1' 1 2 13 15 | ||
14598 | } | ||
14599 | # Create a (secure) tmp directory for tmp files. | ||
14600 | |||
14601 | { | ||
14602 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | ||
14603 | test -n "$tmp" && test -d "$tmp" | ||
14604 | } || | ||
14605 | { | ||
14606 | tmp=./conf$$-$RANDOM | ||
14607 | (umask 077 && mkdir "$tmp") | ||
14608 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 | ||
14609 | |||
14610 | # Set up the scripts for CONFIG_FILES section. | ||
14611 | # No need to generate them if there are no CONFIG_FILES. | ||
14612 | # This happens for instance with `./config.status config.h'. | ||
14613 | if test -n "$CONFIG_FILES"; then | ||
14614 | |||
14615 | |||
14616 | ac_cr=`echo X | tr X '\015'` | ||
14617 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | ||
14618 | # But we know of no other shell where ac_cr would be empty at this | ||
14619 | # point, so we can use a bashism as a fallback. | ||
14620 | if test "x$ac_cr" = x; then | ||
14621 | eval ac_cr=\$\'\\r\' | ||
14622 | fi | ||
14623 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | ||
14624 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | ||
14625 | ac_cs_awk_cr='\\r' | ||
14626 | else | ||
14627 | ac_cs_awk_cr=$ac_cr | ||
14628 | fi | ||
14629 | |||
14630 | echo 'BEGIN {' >"$tmp/subs1.awk" && | ||
14631 | _ACEOF | ||
14632 | |||
14633 | |||
14634 | { | ||
14635 | echo "cat >conf$$subs.awk <<_ACEOF" && | ||
14636 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | ||
14637 | echo "_ACEOF" | ||
14638 | } >conf$$subs.sh || | ||
14639 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | ||
14640 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | ||
14641 | ac_delim='%!_!# ' | ||
14642 | for ac_last_try in false false false false false :; do | ||
14643 | . ./conf$$subs.sh || | ||
14644 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | ||
14645 | |||
14646 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | ||
14647 | if test $ac_delim_n = $ac_delim_num; then | ||
14648 | break | ||
14649 | elif $ac_last_try; then | ||
14650 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | ||
14651 | else | ||
14652 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | ||
14653 | fi | ||
14654 | done | ||
14655 | rm -f conf$$subs.sh | ||
14656 | |||
14657 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
14658 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | ||
14659 | _ACEOF | ||
14660 | sed -n ' | ||
14661 | h | ||
14662 | s/^/S["/; s/!.*/"]=/ | ||
14663 | p | ||
14664 | g | ||
14665 | s/^[^!]*!// | ||
14666 | :repl | ||
14667 | t repl | ||
14668 | s/'"$ac_delim"'$// | ||
14669 | t delim | ||
14670 | :nl | ||
14671 | h | ||
14672 | s/\(.\{148\}\)..*/\1/ | ||
14673 | t more1 | ||
14674 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | ||
14675 | p | ||
14676 | n | ||
14677 | b repl | ||
14678 | :more1 | ||
14679 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | ||
14680 | p | ||
14681 | g | ||
14682 | s/.\{148\}// | ||
14683 | t nl | ||
14684 | :delim | ||
14685 | h | ||
14686 | s/\(.\{148\}\)..*/\1/ | ||
14687 | t more2 | ||
14688 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | ||
14689 | p | ||
14690 | b | ||
14691 | :more2 | ||
14692 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | ||
14693 | p | ||
14694 | g | ||
14695 | s/.\{148\}// | ||
14696 | t delim | ||
14697 | ' <conf$$subs.awk | sed ' | ||
14698 | /^[^""]/{ | ||
14699 | N | ||
14700 | s/\n// | ||
14701 | } | ||
14702 | ' >>$CONFIG_STATUS || ac_write_fail=1 | ||
14703 | rm -f conf$$subs.awk | ||
14704 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
14705 | _ACAWK | ||
14706 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | ||
14707 | for (key in S) S_is_set[key] = 1 | ||
14708 | FS = "" | ||
14709 | |||
14710 | } | ||
14711 | { | ||
14712 | line = $ 0 | ||
14713 | nfields = split(line, field, "@") | ||
14714 | substed = 0 | ||
14715 | len = length(field[1]) | ||
14716 | for (i = 2; i < nfields; i++) { | ||
14717 | key = field[i] | ||
14718 | keylen = length(key) | ||
14719 | if (S_is_set[key]) { | ||
14720 | value = S[key] | ||
14721 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | ||
14722 | len += length(value) + length(field[++i]) | ||
14723 | substed = 1 | ||
14724 | } else | ||
14725 | len += 1 + keylen | ||
14726 | } | ||
14727 | |||
14728 | print line | ||
14729 | } | ||
14730 | |||
14731 | _ACAWK | ||
14732 | _ACEOF | ||
14733 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
14734 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | ||
14735 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | ||
14736 | else | ||
14737 | cat | ||
14738 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | ||
14739 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | ||
14740 | _ACEOF | ||
14741 | |||
14742 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), | ||
14743 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | ||
14744 | # trailing colons and then remove the whole line if VPATH becomes empty | ||
14745 | # (actually we leave an empty line to preserve line numbers). | ||
14746 | if test "x$srcdir" = x.; then | ||
14747 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ | ||
14748 | h | ||
14749 | s/// | ||
14750 | s/^/:/ | ||
14751 | s/[ ]*$/:/ | ||
14752 | s/:\$(srcdir):/:/g | ||
14753 | s/:\${srcdir}:/:/g | ||
14754 | s/:@srcdir@:/:/g | ||
14755 | s/^:*// | ||
14756 | s/:*$// | ||
14757 | x | ||
14758 | s/\(=[ ]*\).*/\1/ | ||
14759 | G | ||
14760 | s/\n// | ||
14761 | s/^[^=]*=[ ]*$// | ||
14762 | }' | ||
14763 | fi | ||
14764 | |||
14765 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
14766 | fi # test -n "$CONFIG_FILES" | ||
14767 | |||
14768 | # Set up the scripts for CONFIG_HEADERS section. | ||
14769 | # No need to generate them if there are no CONFIG_HEADERS. | ||
14770 | # This happens for instance with `./config.status Makefile'. | ||
14771 | if test -n "$CONFIG_HEADERS"; then | ||
14772 | cat >"$tmp/defines.awk" <<\_ACAWK || | ||
14773 | BEGIN { | ||
14774 | _ACEOF | ||
14775 | |||
14776 | # Transform confdefs.h into an awk script `defines.awk', embedded as | ||
14777 | # here-document in config.status, that substitutes the proper values into | ||
14778 | # config.h.in to produce config.h. | ||
14779 | |||
14780 | # Create a delimiter string that does not exist in confdefs.h, to ease | ||
14781 | # handling of long lines. | ||
14782 | ac_delim='%!_!# ' | ||
14783 | for ac_last_try in false false :; do | ||
14784 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` | ||
14785 | if test -z "$ac_t"; then | ||
14786 | break | ||
14787 | elif $ac_last_try; then | ||
14788 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 | ||
14789 | else | ||
14790 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | ||
14791 | fi | ||
14792 | done | ||
14793 | |||
14794 | # For the awk script, D is an array of macro values keyed by name, | ||
14795 | # likewise P contains macro parameters if any. Preserve backslash | ||
14796 | # newline sequences. | ||
14797 | |||
14798 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | ||
14799 | sed -n ' | ||
14800 | s/.\{148\}/&'"$ac_delim"'/g | ||
14801 | t rset | ||
14802 | :rset | ||
14803 | s/^[ ]*#[ ]*define[ ][ ]*/ / | ||
14804 | t def | ||
14805 | d | ||
14806 | :def | ||
14807 | s/\\$// | ||
14808 | t bsnl | ||
14809 | s/["\\]/\\&/g | ||
14810 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | ||
14811 | D["\1"]=" \3"/p | ||
14812 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | ||
14813 | d | ||
14814 | :bsnl | ||
14815 | s/["\\]/\\&/g | ||
14816 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | ||
14817 | D["\1"]=" \3\\\\\\n"\\/p | ||
14818 | t cont | ||
14819 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | ||
14820 | t cont | ||
14821 | d | ||
14822 | :cont | ||
14823 | n | ||
14824 | s/.\{148\}/&'"$ac_delim"'/g | ||
14825 | t clear | ||
14826 | :clear | ||
14827 | s/\\$// | ||
14828 | t bsnlc | ||
14829 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | ||
14830 | d | ||
14831 | :bsnlc | ||
14832 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | ||
14833 | b cont | ||
14834 | ' <confdefs.h | sed ' | ||
14835 | s/'"$ac_delim"'/"\\\ | ||
14836 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | ||
14837 | |||
14838 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
14839 | for (key in D) D_is_set[key] = 1 | ||
14840 | FS = "" | ||
14841 | } | ||
14842 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | ||
14843 | line = \$ 0 | ||
14844 | split(line, arg, " ") | ||
14845 | if (arg[1] == "#") { | ||
14846 | defundef = arg[2] | ||
14847 | mac1 = arg[3] | ||
14848 | } else { | ||
14849 | defundef = substr(arg[1], 2) | ||
14850 | mac1 = arg[2] | ||
14851 | } | ||
14852 | split(mac1, mac2, "(") #) | ||
14853 | macro = mac2[1] | ||
14854 | prefix = substr(line, 1, index(line, defundef) - 1) | ||
14855 | if (D_is_set[macro]) { | ||
14856 | # Preserve the white space surrounding the "#". | ||
14857 | print prefix "define", macro P[macro] D[macro] | ||
14858 | next | ||
14859 | } else { | ||
14860 | # Replace #undef with comments. This is necessary, for example, | ||
14861 | # in the case of _POSIX_SOURCE, which is predefined and required | ||
14862 | # on some systems where configure will not decide to define it. | ||
14863 | if (defundef == "undef") { | ||
14864 | print "/*", prefix defundef, macro, "*/" | ||
14865 | next | ||
14866 | } | ||
14867 | } | ||
14868 | } | ||
14869 | { print } | ||
14870 | _ACAWK | ||
14871 | _ACEOF | ||
14872 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
14873 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 | ||
14874 | fi # test -n "$CONFIG_HEADERS" | ||
14875 | |||
14876 | |||
14877 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | ||
14878 | shift | ||
14879 | for ac_tag | ||
14880 | do | ||
14881 | case $ac_tag in | ||
14882 | :[FHLC]) ac_mode=$ac_tag; continue;; | ||
14883 | esac | ||
14884 | case $ac_mode$ac_tag in | ||
14885 | :[FHL]*:*);; | ||
14886 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;; | ||
14887 | :[FH]-) ac_tag=-:-;; | ||
14888 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | ||
14889 | esac | ||
14890 | ac_save_IFS=$IFS | ||
14891 | IFS=: | ||
14892 | set x $ac_tag | ||
14893 | IFS=$ac_save_IFS | ||
14894 | shift | ||
14895 | ac_file=$1 | ||
14896 | shift | ||
14897 | |||
14898 | case $ac_mode in | ||
14899 | :L) ac_source=$1;; | ||
14900 | :[FH]) | ||
14901 | ac_file_inputs= | ||
14902 | for ac_f | ||
14903 | do | ||
14904 | case $ac_f in | ||
14905 | -) ac_f="$tmp/stdin";; | ||
14906 | *) # Look for the file first in the build tree, then in the source tree | ||
14907 | # (if the path is not absolute). The absolute path cannot be DOS-style, | ||
14908 | # because $ac_f cannot contain `:'. | ||
14909 | test -f "$ac_f" || | ||
14910 | case $ac_f in | ||
14911 | [\\/$]*) false;; | ||
14912 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | ||
14913 | esac || | ||
14914 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;; | ||
14915 | esac | ||
14916 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | ||
14917 | as_fn_append ac_file_inputs " '$ac_f'" | ||
14918 | done | ||
14919 | |||
14920 | # Let's still pretend it is `configure' which instantiates (i.e., don't | ||
14921 | # use $as_me), people would be surprised to read: | ||
14922 | # /* config.h. Generated by config.status. */ | ||
14923 | configure_input='Generated from '` | ||
14924 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | ||
14925 | `' by configure.' | ||
14926 | if test x"$ac_file" != x-; then | ||
14927 | configure_input="$ac_file. $configure_input" | ||
14928 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | ||
14929 | $as_echo "$as_me: creating $ac_file" >&6;} | ||
14930 | fi | ||
14931 | # Neutralize special characters interpreted by sed in replacement strings. | ||
14932 | case $configure_input in #( | ||
14933 | *\&* | *\|* | *\\* ) | ||
14934 | ac_sed_conf_input=`$as_echo "$configure_input" | | ||
14935 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | ||
14936 | *) ac_sed_conf_input=$configure_input;; | ||
14937 | esac | ||
14938 | |||
14939 | case $ac_tag in | ||
14940 | *:-:* | *:-) cat >"$tmp/stdin" \ | ||
14941 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | ||
14942 | esac | ||
14943 | ;; | ||
14944 | esac | ||
14945 | |||
14946 | ac_dir=`$as_dirname -- "$ac_file" || | ||
14947 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
14948 | X"$ac_file" : 'X\(//\)[^/]' \| \ | ||
14949 | X"$ac_file" : 'X\(//\)$' \| \ | ||
14950 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | ||
14951 | $as_echo X"$ac_file" | | ||
14952 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
14953 | s//\1/ | ||
14954 | q | ||
14955 | } | ||
14956 | /^X\(\/\/\)[^/].*/{ | ||
14957 | s//\1/ | ||
14958 | q | ||
14959 | } | ||
14960 | /^X\(\/\/\)$/{ | ||
14961 | s//\1/ | ||
14962 | q | ||
14963 | } | ||
14964 | /^X\(\/\).*/{ | ||
14965 | s//\1/ | ||
14966 | q | ||
14967 | } | ||
14968 | s/.*/./; q'` | ||
14969 | as_dir="$ac_dir"; as_fn_mkdir_p | ||
14970 | ac_builddir=. | ||
14971 | |||
14972 | case "$ac_dir" in | ||
14973 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
14974 | *) | ||
14975 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | ||
14976 | # A ".." for each directory in $ac_dir_suffix. | ||
14977 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | ||
14978 | case $ac_top_builddir_sub in | ||
14979 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
14980 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | ||
14981 | esac ;; | ||
14982 | esac | ||
14983 | ac_abs_top_builddir=$ac_pwd | ||
14984 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | ||
14985 | # for backward compatibility: | ||
14986 | ac_top_builddir=$ac_top_build_prefix | ||
14987 | |||
14988 | case $srcdir in | ||
14989 | .) # We are building in place. | ||
14990 | ac_srcdir=. | ||
14991 | ac_top_srcdir=$ac_top_builddir_sub | ||
14992 | ac_abs_top_srcdir=$ac_pwd ;; | ||
14993 | [\\/]* | ?:[\\/]* ) # Absolute name. | ||
14994 | ac_srcdir=$srcdir$ac_dir_suffix; | ||
14995 | ac_top_srcdir=$srcdir | ||
14996 | ac_abs_top_srcdir=$srcdir ;; | ||
14997 | *) # Relative name. | ||
14998 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | ||
14999 | ac_top_srcdir=$ac_top_build_prefix$srcdir | ||
15000 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | ||
15001 | esac | ||
15002 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | ||
15003 | |||
15004 | |||
15005 | case $ac_mode in | ||
15006 | :F) | ||
15007 | # | ||
15008 | # CONFIG_FILE | ||
15009 | # | ||
15010 | |||
15011 | case $INSTALL in | ||
15012 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | ||
15013 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | ||
15014 | esac | ||
15015 | ac_MKDIR_P=$MKDIR_P | ||
15016 | case $MKDIR_P in | ||
15017 | [\\/$]* | ?:[\\/]* ) ;; | ||
15018 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | ||
15019 | esac | ||
15020 | _ACEOF | ||
15021 | |||
15022 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
15023 | # If the template does not know about datarootdir, expand it. | ||
15024 | # FIXME: This hack should be removed a few years after 2.60. | ||
15025 | ac_datarootdir_hack=; ac_datarootdir_seen= | ||
15026 | ac_sed_dataroot=' | ||
15027 | /datarootdir/ { | ||
15028 | p | ||
15029 | q | ||
15030 | } | ||
15031 | /@datadir@/p | ||
15032 | /@docdir@/p | ||
15033 | /@infodir@/p | ||
15034 | /@localedir@/p | ||
15035 | /@mandir@/p' | ||
15036 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | ||
15037 | *datarootdir*) ac_datarootdir_seen=yes;; | ||
15038 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | ||
15039 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | ||
15040 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | ||
15041 | _ACEOF | ||
15042 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
15043 | ac_datarootdir_hack=' | ||
15044 | s&@datadir@&$datadir&g | ||
15045 | s&@docdir@&$docdir&g | ||
15046 | s&@infodir@&$infodir&g | ||
15047 | s&@localedir@&$localedir&g | ||
15048 | s&@mandir@&$mandir&g | ||
15049 | s&\\\${datarootdir}&$datarootdir&g' ;; | ||
15050 | esac | ||
15051 | _ACEOF | ||
15052 | |||
15053 | # Neutralize VPATH when `$srcdir' = `.'. | ||
15054 | # Shell code in configure.ac might set extrasub. | ||
15055 | # FIXME: do we really want to maintain this feature? | ||
15056 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
15057 | ac_sed_extra="$ac_vpsub | ||
15058 | $extrasub | ||
15059 | _ACEOF | ||
15060 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
15061 | :t | ||
15062 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | ||
15063 | s|@configure_input@|$ac_sed_conf_input|;t t | ||
15064 | s&@top_builddir@&$ac_top_builddir_sub&;t t | ||
15065 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | ||
15066 | s&@srcdir@&$ac_srcdir&;t t | ||
15067 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | ||
15068 | s&@top_srcdir@&$ac_top_srcdir&;t t | ||
15069 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | ||
15070 | s&@builddir@&$ac_builddir&;t t | ||
15071 | s&@abs_builddir@&$ac_abs_builddir&;t t | ||
15072 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | ||
15073 | s&@INSTALL@&$ac_INSTALL&;t t | ||
15074 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | ||
15075 | $ac_datarootdir_hack | ||
15076 | " | ||
15077 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | ||
15078 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | ||
15079 | |||
15080 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | ||
15081 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | ||
15082 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | ||
15083 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | ||
15084 | which seems to be undefined. Please make sure it is defined" >&5 | ||
15085 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | ||
15086 | which seems to be undefined. Please make sure it is defined" >&2;} | ||
15087 | |||
15088 | rm -f "$tmp/stdin" | ||
15089 | case $ac_file in | ||
15090 | -) cat "$tmp/out" && rm -f "$tmp/out";; | ||
15091 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | ||
15092 | esac \ | ||
15093 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | ||
15094 | ;; | ||
15095 | :H) | ||
15096 | # | ||
15097 | # CONFIG_HEADER | ||
15098 | # | ||
15099 | if test x"$ac_file" != x-; then | ||
15100 | { | ||
15101 | $as_echo "/* $configure_input */" \ | ||
15102 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | ||
15103 | } >"$tmp/config.h" \ | ||
15104 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | ||
15105 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then | ||
15106 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | ||
15107 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | ||
15108 | else | ||
15109 | rm -f "$ac_file" | ||
15110 | mv "$tmp/config.h" "$ac_file" \ | ||
15111 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | ||
15112 | fi | ||
15113 | else | ||
15114 | $as_echo "/* $configure_input */" \ | ||
15115 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | ||
15116 | || as_fn_error $? "could not create -" "$LINENO" 5 | ||
15117 | fi | ||
15118 | # Compute "$ac_file"'s index in $config_headers. | ||
15119 | _am_arg="$ac_file" | ||
15120 | _am_stamp_count=1 | ||
15121 | for _am_header in $config_headers :; do | ||
15122 | case $_am_header in | ||
15123 | $_am_arg | $_am_arg:* ) | ||
15124 | break ;; | ||
15125 | * ) | ||
15126 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | ||
15127 | esac | ||
15128 | done | ||
15129 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || | ||
15130 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
15131 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | ||
15132 | X"$_am_arg" : 'X\(//\)$' \| \ | ||
15133 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | ||
15134 | $as_echo X"$_am_arg" | | ||
15135 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
15136 | s//\1/ | ||
15137 | q | ||
15138 | } | ||
15139 | /^X\(\/\/\)[^/].*/{ | ||
15140 | s//\1/ | ||
15141 | q | ||
15142 | } | ||
15143 | /^X\(\/\/\)$/{ | ||
15144 | s//\1/ | ||
15145 | q | ||
15146 | } | ||
15147 | /^X\(\/\).*/{ | ||
15148 | s//\1/ | ||
15149 | q | ||
15150 | } | ||
15151 | s/.*/./; q'`/stamp-h$_am_stamp_count | ||
15152 | ;; | ||
15153 | |||
15154 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 | ||
15155 | $as_echo "$as_me: executing $ac_file commands" >&6;} | ||
15156 | ;; | ||
15157 | esac | ||
15158 | |||
15159 | |||
15160 | case $ac_file$ac_mode in | ||
15161 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { | ||
15162 | # Autoconf 2.62 quotes --file arguments for eval, but not when files | ||
15163 | # are listed without --file. Let's play safe and only enable the eval | ||
15164 | # if we detect the quoting. | ||
15165 | case $CONFIG_FILES in | ||
15166 | *\'*) eval set x "$CONFIG_FILES" ;; | ||
15167 | *) set x $CONFIG_FILES ;; | ||
15168 | esac | ||
15169 | shift | ||
15170 | for mf | ||
15171 | do | ||
15172 | # Strip MF so we end up with the name of the file. | ||
15173 | mf=`echo "$mf" | sed -e 's/:.*$//'` | ||
15174 | # Check whether this is an Automake generated Makefile or not. | ||
15175 | # We used to match only the files named `Makefile.in', but | ||
15176 | # some people rename them; so instead we look at the file content. | ||
15177 | # Grep'ing the first line is not enough: some people post-process | ||
15178 | # each Makefile.in and add a new line on top of each file to say so. | ||
15179 | # Grep'ing the whole file is not good either: AIX grep has a line | ||
15180 | # limit of 2048, but all sed's we know have understand at least 4000. | ||
15181 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | ||
15182 | dirpart=`$as_dirname -- "$mf" || | ||
15183 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
15184 | X"$mf" : 'X\(//\)[^/]' \| \ | ||
15185 | X"$mf" : 'X\(//\)$' \| \ | ||
15186 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || | ||
15187 | $as_echo X"$mf" | | ||
15188 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
15189 | s//\1/ | ||
15190 | q | ||
15191 | } | ||
15192 | /^X\(\/\/\)[^/].*/{ | ||
15193 | s//\1/ | ||
15194 | q | ||
15195 | } | ||
15196 | /^X\(\/\/\)$/{ | ||
15197 | s//\1/ | ||
15198 | q | ||
15199 | } | ||
15200 | /^X\(\/\).*/{ | ||
15201 | s//\1/ | ||
15202 | q | ||
15203 | } | ||
15204 | s/.*/./; q'` | ||
15205 | else | ||
15206 | continue | ||
15207 | fi | ||
15208 | # Extract the definition of DEPDIR, am__include, and am__quote | ||
15209 | # from the Makefile without running `make'. | ||
15210 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | ||
15211 | test -z "$DEPDIR" && continue | ||
15212 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | ||
15213 | test -z "am__include" && continue | ||
15214 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | ||
15215 | # When using ansi2knr, U may be empty or an underscore; expand it | ||
15216 | U=`sed -n 's/^U = //p' < "$mf"` | ||
15217 | # Find all dependency output files, they are included files with | ||
15218 | # $(DEPDIR) in their names. We invoke sed twice because it is the | ||
15219 | # simplest approach to changing $(DEPDIR) to its actual value in the | ||
15220 | # expansion. | ||
15221 | for file in `sed -n " | ||
15222 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | ||
15223 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | ||
15224 | # Make sure the directory exists. | ||
15225 | test -f "$dirpart/$file" && continue | ||
15226 | fdir=`$as_dirname -- "$file" || | ||
15227 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
15228 | X"$file" : 'X\(//\)[^/]' \| \ | ||
15229 | X"$file" : 'X\(//\)$' \| \ | ||
15230 | X"$file" : 'X\(/\)' \| . 2>/dev/null || | ||
15231 | $as_echo X"$file" | | ||
15232 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
15233 | s//\1/ | ||
15234 | q | ||
15235 | } | ||
15236 | /^X\(\/\/\)[^/].*/{ | ||
15237 | s//\1/ | ||
15238 | q | ||
15239 | } | ||
15240 | /^X\(\/\/\)$/{ | ||
15241 | s//\1/ | ||
15242 | q | ||
15243 | } | ||
15244 | /^X\(\/\).*/{ | ||
15245 | s//\1/ | ||
15246 | q | ||
15247 | } | ||
15248 | s/.*/./; q'` | ||
15249 | as_dir=$dirpart/$fdir; as_fn_mkdir_p | ||
15250 | # echo "creating $dirpart/$file" | ||
15251 | echo '# dummy' > "$dirpart/$file" | ||
15252 | done | ||
15253 | done | ||
15254 | } | ||
15255 | ;; | ||
15256 | "libtool":C) | ||
15257 | |||
15258 | # See if we are running on zsh, and set the options which allow our | ||
15259 | # commands through without removal of \ escapes. | ||
15260 | if test -n "${ZSH_VERSION+set}" ; then | ||
15261 | setopt NO_GLOB_SUBST | ||
15262 | fi | ||
15263 | |||
15264 | cfgfile="${ofile}T" | ||
15265 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | ||
15266 | $RM "$cfgfile" | ||
15267 | |||
15268 | cat <<_LT_EOF >> "$cfgfile" | ||
15269 | #! $SHELL | ||
15270 | |||
15271 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | ||
15272 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION | ||
15273 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | ||
15274 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | ||
15275 | # | ||
15276 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | ||
15277 | # 2006, 2007, 2008 Free Software Foundation, Inc. | ||
15278 | # Written by Gordon Matzigkeit, 1996 | ||
15279 | # | ||
15280 | # This file is part of GNU Libtool. | ||
15281 | # | ||
15282 | # GNU Libtool is free software; you can redistribute it and/or | ||
15283 | # modify it under the terms of the GNU General Public License as | ||
15284 | # published by the Free Software Foundation; either version 2 of | ||
15285 | # the License, or (at your option) any later version. | ||
15286 | # | ||
15287 | # As a special exception to the GNU General Public License, | ||
15288 | # if you distribute this file as part of a program or library that | ||
15289 | # is built using GNU Libtool, you may include this file under the | ||
15290 | # same distribution terms that you use for the rest of that program. | ||
15291 | # | ||
15292 | # GNU Libtool is distributed in the hope that it will be useful, | ||
15293 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
15294 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
15295 | # GNU General Public License for more details. | ||
15296 | # | ||
15297 | # You should have received a copy of the GNU General Public License | ||
15298 | # along with GNU Libtool; see the file COPYING. If not, a copy | ||
15299 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | ||
15300 | # obtained by writing to the Free Software Foundation, Inc., | ||
15301 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
15302 | |||
15303 | |||
15304 | # The names of the tagged configurations supported by this script. | ||
15305 | available_tags="" | ||
15306 | |||
15307 | # ### BEGIN LIBTOOL CONFIG | ||
15308 | |||
15309 | # Assembler program. | ||
15310 | AS=$AS | ||
15311 | |||
15312 | # DLL creation program. | ||
15313 | DLLTOOL=$DLLTOOL | ||
15314 | |||
15315 | # Object dumper program. | ||
15316 | OBJDUMP=$OBJDUMP | ||
15317 | |||
15318 | # Which release of libtool.m4 was used? | ||
15319 | macro_version=$macro_version | ||
15320 | macro_revision=$macro_revision | ||
15321 | |||
15322 | # Whether or not to build shared libraries. | ||
15323 | build_libtool_libs=$enable_shared | ||
15324 | |||
15325 | # Whether or not to build static libraries. | ||
15326 | build_old_libs=$enable_static | ||
15327 | |||
15328 | # What type of objects to build. | ||
15329 | pic_mode=$pic_mode | ||
15330 | |||
15331 | # Whether or not to optimize for fast installation. | ||
15332 | fast_install=$enable_fast_install | ||
15333 | |||
15334 | # The host system. | ||
15335 | host_alias=$host_alias | ||
15336 | host=$host | ||
15337 | host_os=$host_os | ||
15338 | |||
15339 | # The build system. | ||
15340 | build_alias=$build_alias | ||
15341 | build=$build | ||
15342 | build_os=$build_os | ||
15343 | |||
15344 | # A sed program that does not truncate output. | ||
15345 | SED=$lt_SED | ||
15346 | |||
15347 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | ||
15348 | Xsed="\$SED -e 1s/^X//" | ||
15349 | |||
15350 | # A grep program that handles long lines. | ||
15351 | GREP=$lt_GREP | ||
15352 | |||
15353 | # An ERE matcher. | ||
15354 | EGREP=$lt_EGREP | ||
15355 | |||
15356 | # A literal string matcher. | ||
15357 | FGREP=$lt_FGREP | ||
15358 | |||
15359 | # A BSD- or MS-compatible name lister. | ||
15360 | NM=$lt_NM | ||
15361 | |||
15362 | # Whether we need soft or hard links. | ||
15363 | LN_S=$lt_LN_S | ||
15364 | |||
15365 | # What is the maximum length of a command? | ||
15366 | max_cmd_len=$max_cmd_len | ||
15367 | |||
15368 | # Object file suffix (normally "o"). | ||
15369 | objext=$ac_objext | ||
15370 | |||
15371 | # Executable file suffix (normally ""). | ||
15372 | exeext=$exeext | ||
15373 | |||
15374 | # whether the shell understands "unset". | ||
15375 | lt_unset=$lt_unset | ||
15376 | |||
15377 | # turn spaces into newlines. | ||
15378 | SP2NL=$lt_lt_SP2NL | ||
15379 | |||
15380 | # turn newlines into spaces. | ||
15381 | NL2SP=$lt_lt_NL2SP | ||
15382 | |||
15383 | # How to create reloadable object files. | ||
15384 | reload_flag=$lt_reload_flag | ||
15385 | reload_cmds=$lt_reload_cmds | ||
15386 | |||
15387 | # Method to check whether dependent libraries are shared objects. | ||
15388 | deplibs_check_method=$lt_deplibs_check_method | ||
15389 | |||
15390 | # Command to use when deplibs_check_method == "file_magic". | ||
15391 | file_magic_cmd=$lt_file_magic_cmd | ||
15392 | |||
15393 | # The archiver. | ||
15394 | AR=$lt_AR | ||
15395 | AR_FLAGS=$lt_AR_FLAGS | ||
15396 | |||
15397 | # A symbol stripping program. | ||
15398 | STRIP=$lt_STRIP | ||
15399 | |||
15400 | # Commands used to install an old-style archive. | ||
15401 | RANLIB=$lt_RANLIB | ||
15402 | old_postinstall_cmds=$lt_old_postinstall_cmds | ||
15403 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | ||
15404 | |||
15405 | # A C compiler. | ||
15406 | LTCC=$lt_CC | ||
15407 | |||
15408 | # LTCC compiler flags. | ||
15409 | LTCFLAGS=$lt_CFLAGS | ||
15410 | |||
15411 | # Take the output of nm and produce a listing of raw symbols and C names. | ||
15412 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | ||
15413 | |||
15414 | # Transform the output of nm in a proper C declaration. | ||
15415 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | ||
15416 | |||
15417 | # Transform the output of nm in a C name address pair. | ||
15418 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | ||
15419 | |||
15420 | # Transform the output of nm in a C name address pair when lib prefix is needed. | ||
15421 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | ||
15422 | |||
15423 | # The name of the directory that contains temporary libtool files. | ||
15424 | objdir=$objdir | ||
15425 | |||
15426 | # Shell to use when invoking shell scripts. | ||
15427 | SHELL=$lt_SHELL | ||
15428 | |||
15429 | # An echo program that does not interpret backslashes. | ||
15430 | ECHO=$lt_ECHO | ||
15431 | |||
15432 | # Used to examine libraries when file_magic_cmd begins with "file". | ||
15433 | MAGIC_CMD=$MAGIC_CMD | ||
15434 | |||
15435 | # Must we lock files when doing compilation? | ||
15436 | need_locks=$lt_need_locks | ||
15437 | |||
15438 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. | ||
15439 | DSYMUTIL=$lt_DSYMUTIL | ||
15440 | |||
15441 | # Tool to change global to local symbols on Mac OS X. | ||
15442 | NMEDIT=$lt_NMEDIT | ||
15443 | |||
15444 | # Tool to manipulate fat objects and archives on Mac OS X. | ||
15445 | LIPO=$lt_LIPO | ||
15446 | |||
15447 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. | ||
15448 | OTOOL=$lt_OTOOL | ||
15449 | |||
15450 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | ||
15451 | OTOOL64=$lt_OTOOL64 | ||
15452 | |||
15453 | # Old archive suffix (normally "a"). | ||
15454 | libext=$libext | ||
15455 | |||
15456 | # Shared library suffix (normally ".so"). | ||
15457 | shrext_cmds=$lt_shrext_cmds | ||
15458 | |||
15459 | # The commands to extract the exported symbol list from a shared archive. | ||
15460 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | ||
15461 | |||
15462 | # Variables whose values should be saved in libtool wrapper scripts and | ||
15463 | # restored at link time. | ||
15464 | variables_saved_for_relink=$lt_variables_saved_for_relink | ||
15465 | |||
15466 | # Do we need the "lib" prefix for modules? | ||
15467 | need_lib_prefix=$need_lib_prefix | ||
15468 | |||
15469 | # Do we need a version for libraries? | ||
15470 | need_version=$need_version | ||
15471 | |||
15472 | # Library versioning type. | ||
15473 | version_type=$version_type | ||
15474 | |||
15475 | # Shared library runtime path variable. | ||
15476 | runpath_var=$runpath_var | ||
15477 | |||
15478 | # Shared library path variable. | ||
15479 | shlibpath_var=$shlibpath_var | ||
15480 | |||
15481 | # Is shlibpath searched before the hard-coded library search path? | ||
15482 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | ||
15483 | |||
15484 | # Format of library name prefix. | ||
15485 | libname_spec=$lt_libname_spec | ||
15486 | |||
15487 | # List of archive names. First name is the real one, the rest are links. | ||
15488 | # The last name is the one that the linker finds with -lNAME | ||
15489 | library_names_spec=$lt_library_names_spec | ||
15490 | |||
15491 | # The coded name of the library, if different from the real name. | ||
15492 | soname_spec=$lt_soname_spec | ||
15493 | |||
15494 | # Command to use after installation of a shared archive. | ||
15495 | postinstall_cmds=$lt_postinstall_cmds | ||
15496 | |||
15497 | # Command to use after uninstallation of a shared archive. | ||
15498 | postuninstall_cmds=$lt_postuninstall_cmds | ||
15499 | |||
15500 | # Commands used to finish a libtool library installation in a directory. | ||
15501 | finish_cmds=$lt_finish_cmds | ||
15502 | |||
15503 | # As "finish_cmds", except a single script fragment to be evaled but | ||
15504 | # not shown. | ||
15505 | finish_eval=$lt_finish_eval | ||
15506 | |||
15507 | # Whether we should hardcode library paths into libraries. | ||
15508 | hardcode_into_libs=$hardcode_into_libs | ||
15509 | |||
15510 | # Compile-time system search path for libraries. | ||
15511 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | ||
15512 | |||
15513 | # Run-time system search path for libraries. | ||
15514 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | ||
15515 | |||
15516 | # Whether dlopen is supported. | ||
15517 | dlopen_support=$enable_dlopen | ||
15518 | |||
15519 | # Whether dlopen of programs is supported. | ||
15520 | dlopen_self=$enable_dlopen_self | ||
15521 | |||
15522 | # Whether dlopen of statically linked programs is supported. | ||
15523 | dlopen_self_static=$enable_dlopen_self_static | ||
15524 | |||
15525 | # Commands to strip libraries. | ||
15526 | old_striplib=$lt_old_striplib | ||
15527 | striplib=$lt_striplib | ||
15528 | |||
15529 | |||
15530 | # The linker used to build libraries. | ||
15531 | LD=$lt_LD | ||
15532 | |||
15533 | # Commands used to build an old-style archive. | ||
15534 | old_archive_cmds=$lt_old_archive_cmds | ||
15535 | |||
15536 | # A language specific compiler. | ||
15537 | CC=$lt_compiler | ||
15538 | |||
15539 | # Is the compiler the GNU compiler? | ||
15540 | with_gcc=$GCC | ||
15541 | |||
15542 | # Compiler flag to turn off builtin functions. | ||
15543 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | ||
15544 | |||
15545 | # How to pass a linker flag through the compiler. | ||
15546 | wl=$lt_lt_prog_compiler_wl | ||
15547 | |||
15548 | # Additional compiler flags for building library objects. | ||
15549 | pic_flag=$lt_lt_prog_compiler_pic | ||
15550 | |||
15551 | # Compiler flag to prevent dynamic linking. | ||
15552 | link_static_flag=$lt_lt_prog_compiler_static | ||
15553 | |||
15554 | # Does compiler simultaneously support -c and -o options? | ||
15555 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | ||
15556 | |||
15557 | # Whether or not to add -lc for building shared libraries. | ||
15558 | build_libtool_need_lc=$archive_cmds_need_lc | ||
15559 | |||
15560 | # Whether or not to disallow shared libs when runtime libs are static. | ||
15561 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | ||
15562 | |||
15563 | # Compiler flag to allow reflexive dlopens. | ||
15564 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | ||
15565 | |||
15566 | # Compiler flag to generate shared objects directly from archives. | ||
15567 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | ||
15568 | |||
15569 | # Whether the compiler copes with passing no objects directly. | ||
15570 | compiler_needs_object=$lt_compiler_needs_object | ||
15571 | |||
15572 | # Create an old-style archive from a shared archive. | ||
15573 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | ||
15574 | |||
15575 | # Create a temporary old-style archive to link instead of a shared archive. | ||
15576 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | ||
15577 | |||
15578 | # Commands used to build a shared archive. | ||
15579 | archive_cmds=$lt_archive_cmds | ||
15580 | archive_expsym_cmds=$lt_archive_expsym_cmds | ||
15581 | |||
15582 | # Commands used to build a loadable module if different from building | ||
15583 | # a shared archive. | ||
15584 | module_cmds=$lt_module_cmds | ||
15585 | module_expsym_cmds=$lt_module_expsym_cmds | ||
15586 | |||
15587 | # Whether we are building with GNU ld or not. | ||
15588 | with_gnu_ld=$lt_with_gnu_ld | ||
15589 | |||
15590 | # Flag that allows shared libraries with undefined symbols to be built. | ||
15591 | allow_undefined_flag=$lt_allow_undefined_flag | ||
15592 | |||
15593 | # Flag that enforces no undefined symbols. | ||
15594 | no_undefined_flag=$lt_no_undefined_flag | ||
15595 | |||
15596 | # Flag to hardcode \$libdir into a binary during linking. | ||
15597 | # This must work even if \$libdir does not exist | ||
15598 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | ||
15599 | |||
15600 | # If ld is used when linking, flag to hardcode \$libdir into a binary | ||
15601 | # during linking. This must work even if \$libdir does not exist. | ||
15602 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | ||
15603 | |||
15604 | # Whether we need a single "-rpath" flag with a separated argument. | ||
15605 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | ||
15606 | |||
15607 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | ||
15608 | # DIR into the resulting binary. | ||
15609 | hardcode_direct=$hardcode_direct | ||
15610 | |||
15611 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | ||
15612 | # DIR into the resulting binary and the resulting library dependency is | ||
15613 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | ||
15614 | # library is relocated. | ||
15615 | hardcode_direct_absolute=$hardcode_direct_absolute | ||
15616 | |||
15617 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | ||
15618 | # into the resulting binary. | ||
15619 | hardcode_minus_L=$hardcode_minus_L | ||
15620 | |||
15621 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | ||
15622 | # into the resulting binary. | ||
15623 | hardcode_shlibpath_var=$hardcode_shlibpath_var | ||
15624 | |||
15625 | # Set to "yes" if building a shared library automatically hardcodes DIR | ||
15626 | # into the library and all subsequent libraries and executables linked | ||
15627 | # against it. | ||
15628 | hardcode_automatic=$hardcode_automatic | ||
15629 | |||
15630 | # Set to yes if linker adds runtime paths of dependent libraries | ||
15631 | # to runtime path list. | ||
15632 | inherit_rpath=$inherit_rpath | ||
15633 | |||
15634 | # Whether libtool must link a program against all its dependency libraries. | ||
15635 | link_all_deplibs=$link_all_deplibs | ||
15636 | |||
15637 | # Fix the shell variable \$srcfile for the compiler. | ||
15638 | fix_srcfile_path=$lt_fix_srcfile_path | ||
15639 | |||
15640 | # Set to "yes" if exported symbols are required. | ||
15641 | always_export_symbols=$always_export_symbols | ||
15642 | |||
15643 | # The commands to list exported symbols. | ||
15644 | export_symbols_cmds=$lt_export_symbols_cmds | ||
15645 | |||
15646 | # Symbols that should not be listed in the preloaded symbols. | ||
15647 | exclude_expsyms=$lt_exclude_expsyms | ||
15648 | |||
15649 | # Symbols that must always be exported. | ||
15650 | include_expsyms=$lt_include_expsyms | ||
15651 | |||
15652 | # Commands necessary for linking programs (against libraries) with templates. | ||
15653 | prelink_cmds=$lt_prelink_cmds | ||
15654 | |||
15655 | # Specify filename containing input files. | ||
15656 | file_list_spec=$lt_file_list_spec | ||
15657 | |||
15658 | # How to hardcode a shared library path into an executable. | ||
15659 | hardcode_action=$hardcode_action | ||
15660 | |||
15661 | # ### END LIBTOOL CONFIG | ||
15662 | |||
15663 | _LT_EOF | ||
15664 | |||
15665 | case $host_os in | ||
15666 | aix3*) | ||
15667 | cat <<\_LT_EOF >> "$cfgfile" | ||
15668 | # AIX sometimes has problems with the GCC collect2 program. For some | ||
15669 | # reason, if we set the COLLECT_NAMES environment variable, the problems | ||
15670 | # vanish in a puff of smoke. | ||
15671 | if test "X${COLLECT_NAMES+set}" != Xset; then | ||
15672 | COLLECT_NAMES= | ||
15673 | export COLLECT_NAMES | ||
15674 | fi | ||
15675 | _LT_EOF | ||
15676 | ;; | ||
15677 | esac | ||
15678 | |||
15679 | |||
15680 | ltmain="$ac_aux_dir/ltmain.sh" | ||
15681 | |||
15682 | |||
15683 | # We use sed instead of cat because bash on DJGPP gets confused if | ||
15684 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | ||
15685 | # text mode, it properly converts lines to CR/LF. This bash problem | ||
15686 | # is reportedly fixed, but why not run on old versions too? | ||
15687 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | ||
15688 | || (rm -f "$cfgfile"; exit 1) | ||
15689 | |||
15690 | case $xsi_shell in | ||
15691 | yes) | ||
15692 | cat << \_LT_EOF >> "$cfgfile" | ||
15693 | |||
15694 | # func_dirname file append nondir_replacement | ||
15695 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | ||
15696 | # otherwise set result to NONDIR_REPLACEMENT. | ||
15697 | func_dirname () | ||
15698 | { | ||
15699 | case ${1} in | ||
15700 | */*) func_dirname_result="${1%/*}${2}" ;; | ||
15701 | * ) func_dirname_result="${3}" ;; | ||
15702 | esac | ||
15703 | } | ||
15704 | |||
15705 | # func_basename file | ||
15706 | func_basename () | ||
15707 | { | ||
15708 | func_basename_result="${1##*/}" | ||
15709 | } | ||
15710 | |||
15711 | # func_dirname_and_basename file append nondir_replacement | ||
15712 | # perform func_basename and func_dirname in a single function | ||
15713 | # call: | ||
15714 | # dirname: Compute the dirname of FILE. If nonempty, | ||
15715 | # add APPEND to the result, otherwise set result | ||
15716 | # to NONDIR_REPLACEMENT. | ||
15717 | # value returned in "$func_dirname_result" | ||
15718 | # basename: Compute filename of FILE. | ||
15719 | # value retuned in "$func_basename_result" | ||
15720 | # Implementation must be kept synchronized with func_dirname | ||
15721 | # and func_basename. For efficiency, we do not delegate to | ||
15722 | # those functions but instead duplicate the functionality here. | ||
15723 | func_dirname_and_basename () | ||
15724 | { | ||
15725 | case ${1} in | ||
15726 | */*) func_dirname_result="${1%/*}${2}" ;; | ||
15727 | * ) func_dirname_result="${3}" ;; | ||
15728 | esac | ||
15729 | func_basename_result="${1##*/}" | ||
15730 | } | ||
15731 | |||
15732 | # func_stripname prefix suffix name | ||
15733 | # strip PREFIX and SUFFIX off of NAME. | ||
15734 | # PREFIX and SUFFIX must not contain globbing or regex special | ||
15735 | # characters, hashes, percent signs, but SUFFIX may contain a leading | ||
15736 | # dot (in which case that matches only a dot). | ||
15737 | func_stripname () | ||
15738 | { | ||
15739 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | ||
15740 | # positional parameters, so assign one to ordinary parameter first. | ||
15741 | func_stripname_result=${3} | ||
15742 | func_stripname_result=${func_stripname_result#"${1}"} | ||
15743 | func_stripname_result=${func_stripname_result%"${2}"} | ||
15744 | } | ||
15745 | |||
15746 | # func_opt_split | ||
15747 | func_opt_split () | ||
15748 | { | ||
15749 | func_opt_split_opt=${1%%=*} | ||
15750 | func_opt_split_arg=${1#*=} | ||
15751 | } | ||
15752 | |||
15753 | # func_lo2o object | ||
15754 | func_lo2o () | ||
15755 | { | ||
15756 | case ${1} in | ||
15757 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | ||
15758 | *) func_lo2o_result=${1} ;; | ||
15759 | esac | ||
15760 | } | ||
15761 | |||
15762 | # func_xform libobj-or-source | ||
15763 | func_xform () | ||
15764 | { | ||
15765 | func_xform_result=${1%.*}.lo | ||
15766 | } | ||
15767 | |||
15768 | # func_arith arithmetic-term... | ||
15769 | func_arith () | ||
15770 | { | ||
15771 | func_arith_result=$(( $* )) | ||
15772 | } | ||
15773 | |||
15774 | # func_len string | ||
15775 | # STRING may not start with a hyphen. | ||
15776 | func_len () | ||
15777 | { | ||
15778 | func_len_result=${#1} | ||
15779 | } | ||
15780 | |||
15781 | _LT_EOF | ||
15782 | ;; | ||
15783 | *) # Bourne compatible functions. | ||
15784 | cat << \_LT_EOF >> "$cfgfile" | ||
15785 | |||
15786 | # func_dirname file append nondir_replacement | ||
15787 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | ||
15788 | # otherwise set result to NONDIR_REPLACEMENT. | ||
15789 | func_dirname () | ||
15790 | { | ||
15791 | # Extract subdirectory from the argument. | ||
15792 | func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` | ||
15793 | if test "X$func_dirname_result" = "X${1}"; then | ||
15794 | func_dirname_result="${3}" | ||
15795 | else | ||
15796 | func_dirname_result="$func_dirname_result${2}" | ||
15797 | fi | ||
15798 | } | ||
15799 | |||
15800 | # func_basename file | ||
15801 | func_basename () | ||
15802 | { | ||
15803 | func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` | ||
15804 | } | ||
15805 | |||
15806 | |||
15807 | # func_stripname prefix suffix name | ||
15808 | # strip PREFIX and SUFFIX off of NAME. | ||
15809 | # PREFIX and SUFFIX must not contain globbing or regex special | ||
15810 | # characters, hashes, percent signs, but SUFFIX may contain a leading | ||
15811 | # dot (in which case that matches only a dot). | ||
15812 | # func_strip_suffix prefix name | ||
15813 | func_stripname () | ||
15814 | { | ||
15815 | case ${2} in | ||
15816 | .*) func_stripname_result=`$ECHO "X${3}" \ | ||
15817 | | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; | ||
15818 | *) func_stripname_result=`$ECHO "X${3}" \ | ||
15819 | | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; | ||
15820 | esac | ||
15821 | } | ||
15822 | |||
15823 | # sed scripts: | ||
15824 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' | ||
15825 | my_sed_long_arg='1s/^-[^=]*=//' | ||
15826 | |||
15827 | # func_opt_split | ||
15828 | func_opt_split () | ||
15829 | { | ||
15830 | func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` | ||
15831 | func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` | ||
15832 | } | ||
15833 | |||
15834 | # func_lo2o object | ||
15835 | func_lo2o () | ||
15836 | { | ||
15837 | func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` | ||
15838 | } | ||
15839 | |||
15840 | # func_xform libobj-or-source | ||
15841 | func_xform () | ||
15842 | { | ||
15843 | func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` | ||
15844 | } | ||
15845 | |||
15846 | # func_arith arithmetic-term... | ||
15847 | func_arith () | ||
15848 | { | ||
15849 | func_arith_result=`expr "$@"` | ||
15850 | } | ||
15851 | |||
15852 | # func_len string | ||
15853 | # STRING may not start with a hyphen. | ||
15854 | func_len () | ||
15855 | { | ||
15856 | func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` | ||
15857 | } | ||
15858 | |||
15859 | _LT_EOF | ||
15860 | esac | ||
15861 | |||
15862 | case $lt_shell_append in | ||
15863 | yes) | ||
15864 | cat << \_LT_EOF >> "$cfgfile" | ||
15865 | |||
15866 | # func_append var value | ||
15867 | # Append VALUE to the end of shell variable VAR. | ||
15868 | func_append () | ||
15869 | { | ||
15870 | eval "$1+=\$2" | ||
15871 | } | ||
15872 | _LT_EOF | ||
15873 | ;; | ||
15874 | *) | ||
15875 | cat << \_LT_EOF >> "$cfgfile" | ||
15876 | |||
15877 | # func_append var value | ||
15878 | # Append VALUE to the end of shell variable VAR. | ||
15879 | func_append () | ||
15880 | { | ||
15881 | eval "$1=\$$1\$2" | ||
15882 | } | ||
15883 | |||
15884 | _LT_EOF | ||
15885 | ;; | ||
15886 | esac | ||
15887 | |||
15888 | |||
15889 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ | ||
15890 | || (rm -f "$cfgfile"; exit 1) | ||
15891 | |||
15892 | mv -f "$cfgfile" "$ofile" || | ||
15893 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | ||
15894 | chmod +x "$ofile" | ||
15895 | |||
15896 | ;; | ||
15897 | |||
15898 | esac | ||
15899 | done # for ac_tag | ||
15900 | |||
15901 | |||
15902 | as_fn_exit 0 | ||
15903 | _ACEOF | ||
15904 | ac_clean_files=$ac_clean_files_save | ||
15905 | |||
15906 | test $ac_write_fail = 0 || | ||
15907 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 | ||
15908 | |||
15909 | |||
15910 | # configure is writing to config.log, and then calls config.status. | ||
15911 | # config.status does its own redirection, appending to config.log. | ||
15912 | # Unfortunately, on DOS this fails, as config.log is still kept open | ||
15913 | # by configure, so config.status won't be able to write to it; its | ||
15914 | # output is simply discarded. So we exec the FD to /dev/null, | ||
15915 | # effectively closing config.log, so it can be properly (re)opened and | ||
15916 | # appended to by config.status. When coming back to configure, we | ||
15917 | # need to make the FD available again. | ||
15918 | if test "$no_create" != yes; then | ||
15919 | ac_cs_success=: | ||
15920 | ac_config_status_args= | ||
15921 | test "$silent" = yes && | ||
15922 | ac_config_status_args="$ac_config_status_args --quiet" | ||
15923 | exec 5>/dev/null | ||
15924 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | ||
15925 | exec 5>>config.log | ||
15926 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | ||
15927 | # would make configure fail if this is the last instruction. | ||
15928 | $ac_cs_success || as_fn_exit 1 | ||
15929 | fi | ||
15930 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | ||
15931 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | ||
15932 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | ||
15933 | fi | ||
15934 | |||
15935 | |||
15936 | |||
15937 | ##################################################################### | ||
15938 | ## Info | ||
15939 | |||
15940 | echo | ||
15941 | echo | ||
15942 | echo | ||
15943 | echo "------------------------------------------------------------------------" | ||
15944 | echo "$PACKAGE $VERSION" | ||
15945 | echo "------------------------------------------------------------------------" | ||
15946 | echo | ||
15947 | echo "Configuration Options Summary:" | ||
15948 | echo | ||
15949 | echo " Build embryo_cc......: $have_embryo_cc" | ||
15950 | echo | ||
15951 | echo " Documentation........: ${build_doc}" | ||
15952 | echo | ||
15953 | echo "Compilation............: make (or gmake)" | ||
15954 | echo " CPPFLAGS.............: $CPPFLAGS" | ||
15955 | echo " CFLAGS...............: $CFLAGS" | ||
15956 | echo " LDFLAGS..............: $LDFLAGS" | ||
15957 | echo | ||
15958 | echo "Installation...........: make install (as root if needed, with 'su' or 'sudo')" | ||
15959 | echo " prefix...............: $prefix" | ||
15960 | echo | ||
diff --git a/libraries/embryo/configure.ac b/libraries/embryo/configure.ac deleted file mode 100644 index 09bd04e..0000000 --- a/libraries/embryo/configure.ac +++ /dev/null | |||
@@ -1,222 +0,0 @@ | |||
1 | ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## | ||
2 | ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## | ||
3 | m4_define([v_maj], [1]) | ||
4 | m4_define([v_min], [2]) | ||
5 | m4_define([v_mic], [0]) | ||
6 | m4_define([v_rev], m4_esyscmd([(svnversion "${SVN_REPO_PATH:-.}" | grep -v '\(export\|Unversioned directory\)' || echo 0) | awk -F : '{printf("%s\n", $1);}' | tr -d ' :MSP\n'])) | ||
7 | m4_if(v_rev, [0], [m4_define([v_rev], m4_esyscmd([git log 2> /dev/null | (grep -m1 git-svn-id || echo 0) | sed -e 's/.*@\([0-9]*\).*/\1/' | tr -d '\n']))]) | ||
8 | ##-- When released, remove the dnl on the below line | ||
9 | m4_undefine([v_rev]) | ||
10 | ##-- When doing snapshots - change soname. remove dnl on below line | ||
11 | dnl m4_define([relname], [ver-pre-svn-07]) | ||
12 | dnl m4_define([v_rel], [-release ver-pre-svn-07]) | ||
13 | ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## | ||
14 | m4_ifdef([v_rev], [m4_define([v_ver], [v_maj.v_min.v_mic.v_rev])], [m4_define([v_ver], [v_maj.v_min.v_mic])]) | ||
15 | m4_define([lt_cur], m4_eval(v_maj + v_min)) | ||
16 | m4_define([lt_rev], v_mic) | ||
17 | m4_define([lt_age], v_min) | ||
18 | ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## | ||
19 | ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## | ||
20 | |||
21 | AC_INIT([embryo], [v_ver]-alpha, [enlightenment-devel@lists.sourceforge.net]) | ||
22 | AC_PREREQ([2.52]) | ||
23 | AC_CONFIG_SRCDIR([configure.ac]) | ||
24 | AC_CONFIG_MACRO_DIR([m4]) | ||
25 | |||
26 | AC_CONFIG_HEADERS([config.h]) | ||
27 | AH_TOP([ | ||
28 | #ifndef EFL_CONFIG_H__ | ||
29 | #define EFL_CONFIG_H__ | ||
30 | ]) | ||
31 | AH_BOTTOM([ | ||
32 | #endif /* EFL_CONFIG_H__ */ | ||
33 | ]) | ||
34 | |||
35 | AM_INIT_AUTOMAKE([1.6 dist-bzip2]) | ||
36 | m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) | ||
37 | |||
38 | AC_LIBTOOL_WIN32_DLL | ||
39 | define([AC_LIBTOOL_LANG_CXX_CONFIG], [:])dnl | ||
40 | define([AC_LIBTOOL_LANG_F77_CONFIG], [:])dnl | ||
41 | AC_PROG_LIBTOOL | ||
42 | |||
43 | ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## | ||
44 | ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## | ||
45 | m4_ifdef([v_rev], , [m4_define([v_rev], [0])]) | ||
46 | m4_ifdef([v_rel], , [m4_define([v_rel], [])]) | ||
47 | AC_DEFINE_UNQUOTED(VMAJ, [v_maj], [Major version]) | ||
48 | AC_DEFINE_UNQUOTED(VMIN, [v_min], [Minor version]) | ||
49 | AC_DEFINE_UNQUOTED(VMIC, [v_mic], [Micro version]) | ||
50 | AC_DEFINE_UNQUOTED(VREV, [v_rev], [Revison]) | ||
51 | version_info="lt_cur:lt_rev:lt_age" | ||
52 | release_info="v_rel" | ||
53 | AC_SUBST(version_info) | ||
54 | AC_SUBST(release_info) | ||
55 | ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## | ||
56 | ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## | ||
57 | VMAJ=v_maj | ||
58 | AC_SUBST(VMAJ) | ||
59 | |||
60 | ### Default options with respect to host | ||
61 | |||
62 | AC_CANONICAL_BUILD | ||
63 | AC_CANONICAL_HOST | ||
64 | |||
65 | requirement_embryo="" | ||
66 | embryoincludedir="${datadir}/include" | ||
67 | |||
68 | |||
69 | ### Additional options to configure | ||
70 | |||
71 | EFL_ENABLE_BIN([embryo-cc]) | ||
72 | |||
73 | |||
74 | ### Checks for programs | ||
75 | AC_PROG_CC | ||
76 | |||
77 | # doxygen program for documentation building | ||
78 | |||
79 | EFL_CHECK_DOXYGEN([build_doc="yes"], [build_doc="no"]) | ||
80 | |||
81 | # pkg-config | ||
82 | |||
83 | PKG_PROG_PKG_CONFIG | ||
84 | |||
85 | # Check whether pkg-config supports Requires.private | ||
86 | if $PKG_CONFIG --atleast-pkgconfig-version 0.22; then | ||
87 | pkgconfig_requires_private="Requires.private" | ||
88 | else | ||
89 | pkgconfig_requires_private="Requires" | ||
90 | fi | ||
91 | AC_SUBST(pkgconfig_requires_private) | ||
92 | |||
93 | |||
94 | ### Checks for libraries | ||
95 | |||
96 | # Evil library for compilation on Windows | ||
97 | |||
98 | EFL_EMBRYO_BUILD="" | ||
99 | case "$host_os" in | ||
100 | mingw*) | ||
101 | PKG_CHECK_MODULES([EVIL], [evil >= 1.0.0]) | ||
102 | AC_DEFINE(HAVE_EVIL, 1, [Set to 1 if Evil library is installed]) | ||
103 | requirement_embryo="evil ${requirement_embryo}" | ||
104 | EFL_EMBRYO_BUILD="-DEFL_EMBRYO_BUILD" | ||
105 | ;; | ||
106 | esac | ||
107 | AC_SUBST(EFL_EMBRYO_BUILD) | ||
108 | |||
109 | # For embryo_cc_prefix.c | ||
110 | PKG_CHECK_MODULES([EINA], [eina >= 1.2.0]) | ||
111 | |||
112 | ### Checks for portability layer | ||
113 | |||
114 | PKG_CHECK_MODULES([EXOTIC], | ||
115 | [exotic], | ||
116 | [enable_exotic="yes"], | ||
117 | [enable_exotic="no"]) | ||
118 | |||
119 | if test "x${enable_exotic}" = "xyes"; then | ||
120 | requirement_embryo="exotic ${requirement_embryo}" | ||
121 | |||
122 | AC_DEFINE([HAVE_EXOTIC], [1], [Define to 1 if you have Exotic.]) | ||
123 | fi | ||
124 | |||
125 | ### Checks for header files | ||
126 | |||
127 | AC_CHECK_HEADERS([unistd.h]) | ||
128 | EFL_CHECK_PATH_MAX | ||
129 | |||
130 | |||
131 | ### Checks for types | ||
132 | |||
133 | |||
134 | ### Checks for structures | ||
135 | |||
136 | |||
137 | ### Checks for compiler characteristics | ||
138 | AC_C_BIGENDIAN | ||
139 | AM_PROG_CC_C_O | ||
140 | AC_C_CONST | ||
141 | AC_C_INLINE | ||
142 | AC_PROG_CC_STDC | ||
143 | AC_HEADER_STDC | ||
144 | AC_C___ATTRIBUTE__ | ||
145 | |||
146 | EMBRYO_CPPFLAGS="" | ||
147 | EMBRYO_CFLAGS="" | ||
148 | case "$host_os" in | ||
149 | mingw32ce*) | ||
150 | EMBRYO_CPPFLAGS="-D_WIN32_WCE=0x0420" | ||
151 | ;; | ||
152 | esac | ||
153 | AC_SUBST(EMBRYO_CPPFLAGS) | ||
154 | AC_SUBST(EMBRYO_CFLAGS) | ||
155 | |||
156 | |||
157 | ### Checks for linker characteristics | ||
158 | |||
159 | lt_enable_auto_import="" | ||
160 | case "$host_os" in | ||
161 | mingw*) | ||
162 | lt_enable_auto_import="-Wl,--enable-auto-import" | ||
163 | ;; | ||
164 | esac | ||
165 | AC_SUBST(lt_enable_auto_import) | ||
166 | |||
167 | |||
168 | ### Checks for library functions | ||
169 | |||
170 | AC_ISC_POSIX | ||
171 | |||
172 | # alloca | ||
173 | AC_FUNC_ALLOCA | ||
174 | |||
175 | # fnmatch | ||
176 | EFL_CHECK_FNMATCH([], [AC_MSG_ERROR([Cannot find fnmatch()])]) | ||
177 | |||
178 | # gettimeofday | ||
179 | EFL_CHECK_GETTIMEOFDAY([], [AC_MSG_ERROR([Cannot find gettimeofday()])]) | ||
180 | |||
181 | |||
182 | AC_SUBST(requirement_embryo) | ||
183 | AC_SUBST(embryoincludedir) | ||
184 | |||
185 | AC_OUTPUT([ | ||
186 | Makefile | ||
187 | doc/Makefile | ||
188 | doc/Doxyfile | ||
189 | doc/embryo.dox | ||
190 | embryo.pc | ||
191 | include/Makefile | ||
192 | src/Makefile | ||
193 | src/lib/Makefile | ||
194 | src/bin/Makefile | ||
195 | embryo.spec | ||
196 | ]) | ||
197 | |||
198 | |||
199 | ##################################################################### | ||
200 | ## Info | ||
201 | |||
202 | echo | ||
203 | echo | ||
204 | echo | ||
205 | echo "------------------------------------------------------------------------" | ||
206 | echo "$PACKAGE $VERSION" | ||
207 | echo "------------------------------------------------------------------------" | ||
208 | echo | ||
209 | echo "Configuration Options Summary:" | ||
210 | echo | ||
211 | echo " Build embryo_cc......: $have_embryo_cc" | ||
212 | echo | ||
213 | echo " Documentation........: ${build_doc}" | ||
214 | echo | ||
215 | echo "Compilation............: make (or gmake)" | ||
216 | echo " CPPFLAGS.............: $CPPFLAGS" | ||
217 | echo " CFLAGS...............: $CFLAGS" | ||
218 | echo " LDFLAGS..............: $LDFLAGS" | ||
219 | echo | ||
220 | echo "Installation...........: make install (as root if needed, with 'su' or 'sudo')" | ||
221 | echo " prefix...............: $prefix" | ||
222 | echo | ||