Mon, 11 Aug 2014 19:17:32 +0200
Make sure we don't read the DHT11 within 2 seconds.
0 | 1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
3 | # Generated by GNU Autoconf 2.69. | |
4 | # | |
5 | # | |
6 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. | |
7 | # | |
8 | # | |
9 | # This configure script is free software; the Free Software Foundation | |
10 | # gives unlimited permission to copy, distribute and modify it. | |
11 | ## -------------------- ## | |
12 | ## M4sh Initialization. ## | |
13 | ## -------------------- ## | |
14 | ||
15 | # Be more Bourne compatible | |
16 | DUALCASE=1; export DUALCASE # for MKS sh | |
17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
18 | emulate sh | |
19 | NULLCMD=: | |
20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
21 | # is contrary to our usage. Disable this feature. | |
22 | alias -g '${1+"$@"}'='"$@"' | |
23 | setopt NO_GLOB_SUBST | |
24 | else | |
25 | case `(set -o) 2>/dev/null` in #( | |
26 | *posix*) : | |
27 | set -o posix ;; #( | |
28 | *) : | |
29 | ;; | |
30 | esac | |
31 | fi | |
32 | ||
33 | ||
34 | as_nl=' | |
35 | ' | |
36 | export as_nl | |
37 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
38 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
39 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
40 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
41 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
42 | # but without wasting forks for bash or zsh. | |
43 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
44 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
45 | as_echo='print -r --' | |
46 | as_echo_n='print -rn --' | |
47 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
48 | as_echo='printf %s\n' | |
49 | as_echo_n='printf %s' | |
50 | else | |
51 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
52 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
53 | as_echo_n='/usr/ucb/echo -n' | |
54 | else | |
55 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
56 | as_echo_n_body='eval | |
57 | arg=$1; | |
58 | case $arg in #( | |
59 | *"$as_nl"*) | |
60 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
61 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
62 | esac; | |
63 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
64 | ' | |
65 | export as_echo_n_body | |
66 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
67 | fi | |
68 | export as_echo_body | |
69 | as_echo='sh -c $as_echo_body as_echo' | |
70 | fi | |
71 | ||
72 | # The user is always right. | |
73 | if test "${PATH_SEPARATOR+set}" != set; then | |
74 | PATH_SEPARATOR=: | |
75 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
76 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
77 | PATH_SEPARATOR=';' | |
78 | } | |
79 | fi | |
80 | ||
81 | ||
82 | # IFS | |
83 | # We need space, tab and new line, in precisely that order. Quoting is | |
84 | # there to prevent editors from complaining about space-tab. | |
85 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
86 | # splitting by setting IFS to empty value.) | |
87 | IFS=" "" $as_nl" | |
88 | ||
89 | # Find who we are. Look in the path if we contain no directory separator. | |
90 | as_myself= | |
91 | case $0 in #(( | |
92 | *[\\/]* ) as_myself=$0 ;; | |
93 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
94 | for as_dir in $PATH | |
95 | do | |
96 | IFS=$as_save_IFS | |
97 | test -z "$as_dir" && as_dir=. | |
98 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
99 | done | |
100 | IFS=$as_save_IFS | |
101 | ||
102 | ;; | |
103 | esac | |
104 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
105 | # in which case we are not to be found in the path. | |
106 | if test "x$as_myself" = x; then | |
107 | as_myself=$0 | |
108 | fi | |
109 | if test ! -f "$as_myself"; then | |
110 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
111 | exit 1 | |
112 | fi | |
113 | ||
114 | # Unset variables that we do not need and which cause bugs (e.g. in | |
115 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
116 | # suppresses any "Segmentation fault" message there. '((' could | |
117 | # trigger a bug in pdksh 5.2.14. | |
118 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
119 | do eval test x\${$as_var+set} = xset \ | |
120 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
121 | done | |
122 | PS1='$ ' | |
123 | PS2='> ' | |
124 | PS4='+ ' | |
125 | ||
126 | # NLS nuisances. | |
127 | LC_ALL=C | |
128 | export LC_ALL | |
129 | LANGUAGE=C | |
130 | export LANGUAGE | |
131 | ||
132 | # CDPATH. | |
133 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
134 | ||
135 | # Use a proper internal environment variable to ensure we don't fall | |
136 | # into an infinite loop, continuously re-executing ourselves. | |
137 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then | |
138 | _as_can_reexec=no; export _as_can_reexec; | |
139 | # We cannot yet assume a decent shell, so we have to provide a | |
140 | # neutralization value for shells without unset; and this also | |
141 | # works around shells that cannot unset nonexistent variables. | |
142 | # Preserve -v and -x to the replacement shell. | |
143 | BASH_ENV=/dev/null | |
144 | ENV=/dev/null | |
145 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
146 | case $- in # (((( | |
147 | *v*x* | *x*v* ) as_opts=-vx ;; | |
148 | *v* ) as_opts=-v ;; | |
149 | *x* ) as_opts=-x ;; | |
150 | * ) as_opts= ;; | |
151 | esac | |
152 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
153 | # Admittedly, this is quite paranoid, since all the known shells bail | |
154 | # out after a failed `exec'. | |
155 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
156 | as_fn_exit 255 | |
157 | fi | |
158 | # We don't want this to propagate to other subprocesses. | |
159 | { _as_can_reexec=; unset _as_can_reexec;} | |
160 | if test "x$CONFIG_SHELL" = x; then | |
161 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
162 | emulate sh | |
163 | NULLCMD=: | |
164 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
165 | # is contrary to our usage. Disable this feature. | |
166 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
167 | setopt NO_GLOB_SUBST | |
168 | else | |
169 | case \`(set -o) 2>/dev/null\` in #( | |
170 | *posix*) : | |
171 | set -o posix ;; #( | |
172 | *) : | |
173 | ;; | |
174 | esac | |
175 | fi | |
176 | " | |
177 | as_required="as_fn_return () { (exit \$1); } | |
178 | as_fn_success () { as_fn_return 0; } | |
179 | as_fn_failure () { as_fn_return 1; } | |
180 | as_fn_ret_success () { return 0; } | |
181 | as_fn_ret_failure () { return 1; } | |
182 | ||
183 | exitcode=0 | |
184 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
185 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
186 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
187 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
188 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
189 | ||
190 | else | |
191 | exitcode=1; echo positional parameters were not saved. | |
192 | fi | |
193 | test x\$exitcode = x0 || exit 1 | |
194 | test -x / || exit 1" | |
195 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | |
196 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
197 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
198 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | |
199 | test \$(( 1 + 1 )) = 2 || exit 1" | |
200 | if (eval "$as_required") 2>/dev/null; then : | |
201 | as_have_required=yes | |
202 | else | |
203 | as_have_required=no | |
204 | fi | |
205 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
206 | ||
207 | else | |
208 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
209 | as_found=false | |
210 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
211 | do | |
212 | IFS=$as_save_IFS | |
213 | test -z "$as_dir" && as_dir=. | |
214 | as_found=: | |
215 | case $as_dir in #( | |
216 | /*) | |
217 | for as_base in sh bash ksh sh5; do | |
218 | # Try only shells that exist, to save several forks. | |
219 | as_shell=$as_dir/$as_base | |
220 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
221 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
222 | CONFIG_SHELL=$as_shell as_have_required=yes | |
223 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
224 | break 2 | |
225 | fi | |
226 | fi | |
227 | done;; | |
228 | esac | |
229 | as_found=false | |
230 | done | |
231 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
232 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
233 | CONFIG_SHELL=$SHELL as_have_required=yes | |
234 | fi; } | |
235 | IFS=$as_save_IFS | |
236 | ||
237 | ||
238 | if test "x$CONFIG_SHELL" != x; then : | |
239 | export CONFIG_SHELL | |
240 | # We cannot yet assume a decent shell, so we have to provide a | |
241 | # neutralization value for shells without unset; and this also | |
242 | # works around shells that cannot unset nonexistent variables. | |
243 | # Preserve -v and -x to the replacement shell. | |
244 | BASH_ENV=/dev/null | |
245 | ENV=/dev/null | |
246 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
247 | case $- in # (((( | |
248 | *v*x* | *x*v* ) as_opts=-vx ;; | |
249 | *v* ) as_opts=-v ;; | |
250 | *x* ) as_opts=-x ;; | |
251 | * ) as_opts= ;; | |
252 | esac | |
253 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
254 | # Admittedly, this is quite paranoid, since all the known shells bail | |
255 | # out after a failed `exec'. | |
256 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
257 | exit 255 | |
258 | fi | |
259 | ||
260 | if test x$as_have_required = xno; then : | |
261 | $as_echo "$0: This script requires a shell more modern than all" | |
262 | $as_echo "$0: the shells that I found on your system." | |
263 | if test x${ZSH_VERSION+set} = xset ; then | |
264 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
265 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
266 | else | |
267 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, | |
268 | $0: including any error possibly output before this | |
269 | $0: message. Then install a modern shell, or manually run | |
270 | $0: the script under such a shell if you do have one." | |
271 | fi | |
272 | exit 1 | |
273 | fi | |
274 | fi | |
275 | fi | |
276 | SHELL=${CONFIG_SHELL-/bin/sh} | |
277 | export SHELL | |
278 | # Unset more variables known to interfere with behavior of common tools. | |
279 | CLICOLOR_FORCE= GREP_OPTIONS= | |
280 | unset CLICOLOR_FORCE GREP_OPTIONS | |
281 | ||
282 | ## --------------------- ## | |
283 | ## M4sh Shell Functions. ## | |
284 | ## --------------------- ## | |
285 | # as_fn_unset VAR | |
286 | # --------------- | |
287 | # Portably unset VAR. | |
288 | as_fn_unset () | |
289 | { | |
290 | { eval $1=; unset $1;} | |
291 | } | |
292 | as_unset=as_fn_unset | |
293 | ||
294 | # as_fn_set_status STATUS | |
295 | # ----------------------- | |
296 | # Set $? to STATUS, without forking. | |
297 | as_fn_set_status () | |
298 | { | |
299 | return $1 | |
300 | } # as_fn_set_status | |
301 | ||
302 | # as_fn_exit STATUS | |
303 | # ----------------- | |
304 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
305 | as_fn_exit () | |
306 | { | |
307 | set +e | |
308 | as_fn_set_status $1 | |
309 | exit $1 | |
310 | } # as_fn_exit | |
311 | ||
312 | # as_fn_mkdir_p | |
313 | # ------------- | |
314 | # Create "$as_dir" as a directory, including parents if necessary. | |
315 | as_fn_mkdir_p () | |
316 | { | |
317 | ||
318 | case $as_dir in #( | |
319 | -*) as_dir=./$as_dir;; | |
320 | esac | |
321 | test -d "$as_dir" || eval $as_mkdir_p || { | |
322 | as_dirs= | |
323 | while :; do | |
324 | case $as_dir in #( | |
325 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
326 | *) as_qdir=$as_dir;; | |
327 | esac | |
328 | as_dirs="'$as_qdir' $as_dirs" | |
329 | as_dir=`$as_dirname -- "$as_dir" || | |
330 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
331 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
332 | X"$as_dir" : 'X\(//\)$' \| \ | |
333 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
334 | $as_echo X"$as_dir" | | |
335 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
336 | s//\1/ | |
337 | q | |
338 | } | |
339 | /^X\(\/\/\)[^/].*/{ | |
340 | s//\1/ | |
341 | q | |
342 | } | |
343 | /^X\(\/\/\)$/{ | |
344 | s//\1/ | |
345 | q | |
346 | } | |
347 | /^X\(\/\).*/{ | |
348 | s//\1/ | |
349 | q | |
350 | } | |
351 | s/.*/./; q'` | |
352 | test -d "$as_dir" && break | |
353 | done | |
354 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
355 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
356 | ||
357 | ||
358 | } # as_fn_mkdir_p | |
359 | ||
360 | # as_fn_executable_p FILE | |
361 | # ----------------------- | |
362 | # Test if FILE is an executable regular file. | |
363 | as_fn_executable_p () | |
364 | { | |
365 | test -f "$1" && test -x "$1" | |
366 | } # as_fn_executable_p | |
367 | # as_fn_append VAR VALUE | |
368 | # ---------------------- | |
369 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
370 | # advantage of any shell optimizations that allow amortized linear growth over | |
371 | # repeated appends, instead of the typical quadratic growth present in naive | |
372 | # implementations. | |
373 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
374 | eval 'as_fn_append () | |
375 | { | |
376 | eval $1+=\$2 | |
377 | }' | |
378 | else | |
379 | as_fn_append () | |
380 | { | |
381 | eval $1=\$$1\$2 | |
382 | } | |
383 | fi # as_fn_append | |
384 | ||
385 | # as_fn_arith ARG... | |
386 | # ------------------ | |
387 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
388 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
389 | # must be portable across $(()) and expr. | |
390 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
391 | eval 'as_fn_arith () | |
392 | { | |
393 | as_val=$(( $* )) | |
394 | }' | |
395 | else | |
396 | as_fn_arith () | |
397 | { | |
398 | as_val=`expr "$@" || test $? -eq 1` | |
399 | } | |
400 | fi # as_fn_arith | |
401 | ||
402 | ||
403 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
404 | # ---------------------------------------- | |
405 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
406 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
407 | # script with STATUS, using 1 if that was 0. | |
408 | as_fn_error () | |
409 | { | |
410 | as_status=$1; test $as_status -eq 0 && as_status=1 | |
411 | if test "$4"; then | |
412 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
413 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
414 | fi | |
415 | $as_echo "$as_me: error: $2" >&2 | |
416 | as_fn_exit $as_status | |
417 | } # as_fn_error | |
418 | ||
419 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
420 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
421 | as_expr=expr | |
422 | else | |
423 | as_expr=false | |
424 | fi | |
425 | ||
426 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
427 | as_basename=basename | |
428 | else | |
429 | as_basename=false | |
430 | fi | |
431 | ||
432 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
433 | as_dirname=dirname | |
434 | else | |
435 | as_dirname=false | |
436 | fi | |
437 | ||
438 | as_me=`$as_basename -- "$0" || | |
439 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
440 | X"$0" : 'X\(//\)$' \| \ | |
441 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
442 | $as_echo X/"$0" | | |
443 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
444 | s//\1/ | |
445 | q | |
446 | } | |
447 | /^X\/\(\/\/\)$/{ | |
448 | s//\1/ | |
449 | q | |
450 | } | |
451 | /^X\/\(\/\).*/{ | |
452 | s//\1/ | |
453 | q | |
454 | } | |
455 | s/.*/./; q'` | |
456 | ||
457 | # Avoid depending upon Character Ranges. | |
458 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
459 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
460 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
461 | as_cr_digits='0123456789' | |
462 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
463 | ||
464 | ||
465 | as_lineno_1=$LINENO as_lineno_1a=$LINENO | |
466 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
467 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
468 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
469 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
470 | sed -n ' | |
471 | p | |
472 | /[$]LINENO/= | |
473 | ' <$as_myself | | |
474 | sed ' | |
475 | s/[$]LINENO.*/&-/ | |
476 | t lineno | |
477 | b | |
478 | :lineno | |
479 | N | |
480 | :loop | |
481 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
482 | t loop | |
483 | s/-\n.*// | |
484 | ' >$as_me.lineno && | |
485 | chmod +x "$as_me.lineno" || | |
486 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
487 | ||
488 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have | |
489 | # already done that, so ensure we don't try to do so again and fall | |
490 | # in an infinite loop. This has already happened in practice. | |
491 | _as_can_reexec=no; export _as_can_reexec | |
492 | # Don't try to exec as it changes $[0], causing all sort of problems | |
493 | # (the dirname of $[0] is not the place where we might find the | |
494 | # original and so on. Autoconf is especially sensitive to this). | |
495 | . "./$as_me.lineno" | |
496 | # Exit status is that of the last command. | |
497 | exit | |
498 | } | |
499 | ||
500 | ECHO_C= ECHO_N= ECHO_T= | |
501 | case `echo -n x` in #((((( | |
502 | -n*) | |
503 | case `echo 'xy\c'` in | |
504 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
505 | xy) ECHO_C='\c';; | |
506 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
507 | ECHO_T=' ';; | |
508 | esac;; | |
509 | *) | |
510 | ECHO_N='-n';; | |
511 | esac | |
512 | ||
513 | rm -f conf$$ conf$$.exe conf$$.file | |
514 | if test -d conf$$.dir; then | |
515 | rm -f conf$$.dir/conf$$.file | |
516 | else | |
517 | rm -f conf$$.dir | |
518 | mkdir conf$$.dir 2>/dev/null | |
519 | fi | |
520 | if (echo >conf$$.file) 2>/dev/null; then | |
521 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
522 | as_ln_s='ln -s' | |
523 | # ... but there are two gotchas: | |
524 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
525 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
526 | # In both cases, we have to default to `cp -pR'. | |
527 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
528 | as_ln_s='cp -pR' | |
529 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
530 | as_ln_s=ln | |
531 | else | |
532 | as_ln_s='cp -pR' | |
533 | fi | |
534 | else | |
535 | as_ln_s='cp -pR' | |
536 | fi | |
537 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
538 | rmdir conf$$.dir 2>/dev/null | |
539 | ||
540 | if mkdir -p . 2>/dev/null; then | |
541 | as_mkdir_p='mkdir -p "$as_dir"' | |
542 | else | |
543 | test -d ./-p && rmdir ./-p | |
544 | as_mkdir_p=false | |
545 | fi | |
546 | ||
547 | as_test_x='test -x' | |
548 | as_executable_p=as_fn_executable_p | |
549 | ||
550 | # Sed expression to map a string onto a valid CPP name. | |
551 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
552 | ||
553 | # Sed expression to map a string onto a valid variable name. | |
554 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
555 | ||
556 | ||
557 | test -n "$DJDIR" || exec 7<&0 </dev/null | |
558 | exec 6>&1 | |
559 | ||
560 | # Name of the host. | |
561 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, | |
562 | # so uname gets run too. | |
563 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
564 | ||
565 | # | |
566 | # Initializations. | |
567 | # | |
568 | ac_default_prefix=/usr/local | |
569 | ac_clean_files= | |
570 | ac_config_libobj_dir=. | |
571 | LIBOBJS= | |
572 | cross_compiling=no | |
573 | subdirs= | |
574 | MFLAGS= | |
575 | MAKEFLAGS= | |
576 | ||
577 | # Identity of this package. | |
578 | PACKAGE_NAME= | |
579 | PACKAGE_TARNAME= | |
580 | PACKAGE_VERSION= | |
581 | PACKAGE_STRING= | |
582 | PACKAGE_BUGREPORT= | |
583 | PACKAGE_URL= | |
584 | ||
51
a03b6dac5398
Removed library, bumped to version 0.0.7
Michiel Broek <mbroek@mbse.eu>
parents:
41
diff
changeset
|
585 | ac_unique_file="thermometers/thermometers.c" |
0 | 586 | ac_default_prefix=/usr/local |
17
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
587 | # Factoring default headers for most tests. |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
588 | ac_includes_default="\ |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
589 | #include <stdio.h> |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
590 | #ifdef HAVE_SYS_TYPES_H |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
591 | # include <sys/types.h> |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
592 | #endif |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
593 | #ifdef HAVE_SYS_STAT_H |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
594 | # include <sys/stat.h> |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
595 | #endif |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
596 | #ifdef STDC_HEADERS |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
597 | # include <stdlib.h> |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
598 | # include <stddef.h> |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
599 | #else |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
600 | # ifdef HAVE_STDLIB_H |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
601 | # include <stdlib.h> |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
602 | # endif |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
603 | #endif |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
604 | #ifdef HAVE_STRING_H |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
605 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
606 | # include <memory.h> |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
607 | # endif |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
608 | # include <string.h> |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
609 | #endif |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
610 | #ifdef HAVE_STRINGS_H |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
611 | # include <strings.h> |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
612 | #endif |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
613 | #ifdef HAVE_INTTYPES_H |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
614 | # include <inttypes.h> |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
615 | #endif |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
616 | #ifdef HAVE_STDINT_H |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
617 | # include <stdint.h> |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
618 | #endif |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
619 | #ifdef HAVE_UNISTD_H |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
620 | # include <unistd.h> |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
621 | #endif" |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
622 | |
0 | 623 | ac_subst_vars='LTLIBOBJS |
624 | LIBOBJS | |
625 | CXXFLAGS | |
626 | EGREP | |
627 | GREP | |
628 | CPP | |
629 | TAR | |
630 | INSTALL | |
631 | RANLIB | |
632 | OBJEXT | |
633 | EXEEXT | |
634 | ac_ct_CC | |
635 | CPPFLAGS | |
636 | LDFLAGS | |
637 | CFLAGS | |
638 | CC | |
639 | CYEARS | |
640 | COPYRIGHT | |
641 | VERSION | |
642 | PACKAGE | |
643 | SUBDIRS | |
644 | target_alias | |
645 | host_alias | |
646 | build_alias | |
647 | LIBS | |
648 | ECHO_T | |
649 | ECHO_N | |
650 | ECHO_C | |
651 | DEFS | |
652 | mandir | |
653 | localedir | |
654 | libdir | |
655 | psdir | |
656 | pdfdir | |
657 | dvidir | |
658 | htmldir | |
659 | infodir | |
660 | docdir | |
661 | oldincludedir | |
662 | includedir | |
663 | localstatedir | |
664 | sharedstatedir | |
665 | sysconfdir | |
666 | datadir | |
667 | datarootdir | |
668 | libexecdir | |
669 | sbindir | |
670 | bindir | |
671 | program_transform_name | |
672 | prefix | |
673 | exec_prefix | |
674 | PACKAGE_URL | |
675 | PACKAGE_BUGREPORT | |
676 | PACKAGE_STRING | |
677 | PACKAGE_VERSION | |
678 | PACKAGE_TARNAME | |
679 | PACKAGE_NAME | |
680 | PATH_SEPARATOR | |
681 | SHELL' | |
682 | ac_subst_files='' | |
683 | ac_user_opts=' | |
684 | enable_option_checking | |
685 | enable_experiment | |
686 | enable_debugging | |
687 | ' | |
688 | ac_precious_vars='build_alias | |
689 | host_alias | |
690 | target_alias | |
691 | CC | |
692 | CFLAGS | |
693 | LDFLAGS | |
694 | LIBS | |
695 | CPPFLAGS | |
696 | CPP' | |
697 | ||
698 | ||
699 | # Initialize some variables set by options. | |
700 | ac_init_help= | |
701 | ac_init_version=false | |
702 | ac_unrecognized_opts= | |
703 | ac_unrecognized_sep= | |
704 | # The variables have the same names as the options, with | |
705 | # dashes changed to underlines. | |
706 | cache_file=/dev/null | |
707 | exec_prefix=NONE | |
708 | no_create= | |
709 | no_recursion= | |
710 | prefix=NONE | |
711 | program_prefix=NONE | |
712 | program_suffix=NONE | |
713 | program_transform_name=s,x,x, | |
714 | silent= | |
715 | site= | |
716 | srcdir= | |
717 | verbose= | |
718 | x_includes=NONE | |
719 | x_libraries=NONE | |
720 | ||
721 | # Installation directory options. | |
722 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
723 | # and all the variables that are supposed to be based on exec_prefix | |
724 | # by default will actually change. | |
725 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
726 | # (The list follows the same order as the GNU Coding Standards.) | |
727 | bindir='${exec_prefix}/bin' | |
728 | sbindir='${exec_prefix}/sbin' | |
729 | libexecdir='${exec_prefix}/libexec' | |
730 | datarootdir='${prefix}/share' | |
731 | datadir='${datarootdir}' | |
732 | sysconfdir='${prefix}/etc' | |
733 | sharedstatedir='${prefix}/com' | |
734 | localstatedir='${prefix}/var' | |
735 | includedir='${prefix}/include' | |
736 | oldincludedir='/usr/include' | |
737 | docdir='${datarootdir}/doc/${PACKAGE}' | |
738 | infodir='${datarootdir}/info' | |
739 | htmldir='${docdir}' | |
740 | dvidir='${docdir}' | |
741 | pdfdir='${docdir}' | |
742 | psdir='${docdir}' | |
743 | libdir='${exec_prefix}/lib' | |
744 | localedir='${datarootdir}/locale' | |
745 | mandir='${datarootdir}/man' | |
746 | ||
747 | ac_prev= | |
748 | ac_dashdash= | |
749 | for ac_option | |
750 | do | |
751 | # If the previous option needs an argument, assign it. | |
752 | if test -n "$ac_prev"; then | |
753 | eval $ac_prev=\$ac_option | |
754 | ac_prev= | |
755 | continue | |
756 | fi | |
757 | ||
758 | case $ac_option in | |
759 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
760 | *=) ac_optarg= ;; | |
761 | *) ac_optarg=yes ;; | |
762 | esac | |
763 | ||
764 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
765 | ||
766 | case $ac_dashdash$ac_option in | |
767 | --) | |
768 | ac_dashdash=yes ;; | |
769 | ||
770 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
771 | ac_prev=bindir ;; | |
772 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
773 | bindir=$ac_optarg ;; | |
774 | ||
775 | -build | --build | --buil | --bui | --bu) | |
776 | ac_prev=build_alias ;; | |
777 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
778 | build_alias=$ac_optarg ;; | |
779 | ||
780 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
781 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
782 | ac_prev=cache_file ;; | |
783 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
784 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
785 | cache_file=$ac_optarg ;; | |
786 | ||
787 | --config-cache | -C) | |
788 | cache_file=config.cache ;; | |
789 | ||
790 | -datadir | --datadir | --datadi | --datad) | |
791 | ac_prev=datadir ;; | |
792 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | |
793 | datadir=$ac_optarg ;; | |
794 | ||
795 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | |
796 | | --dataroo | --dataro | --datar) | |
797 | ac_prev=datarootdir ;; | |
798 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
799 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
800 | datarootdir=$ac_optarg ;; | |
801 | ||
802 | -disable-* | --disable-*) | |
803 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
804 | # Reject names that are not valid shell variable names. | |
805 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
806 | as_fn_error $? "invalid feature name: $ac_useropt" | |
807 | ac_useropt_orig=$ac_useropt | |
808 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
809 | case $ac_user_opts in | |
810 | *" | |
811 | "enable_$ac_useropt" | |
812 | "*) ;; | |
813 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
814 | ac_unrecognized_sep=', ';; | |
815 | esac | |
816 | eval enable_$ac_useropt=no ;; | |
817 | ||
818 | -docdir | --docdir | --docdi | --doc | --do) | |
819 | ac_prev=docdir ;; | |
820 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
821 | docdir=$ac_optarg ;; | |
822 | ||
823 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
824 | ac_prev=dvidir ;; | |
825 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
826 | dvidir=$ac_optarg ;; | |
827 | ||
828 | -enable-* | --enable-*) | |
829 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
830 | # Reject names that are not valid shell variable names. | |
831 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
832 | as_fn_error $? "invalid feature name: $ac_useropt" | |
833 | ac_useropt_orig=$ac_useropt | |
834 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
835 | case $ac_user_opts in | |
836 | *" | |
837 | "enable_$ac_useropt" | |
838 | "*) ;; | |
839 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
840 | ac_unrecognized_sep=', ';; | |
841 | esac | |
842 | eval enable_$ac_useropt=\$ac_optarg ;; | |
843 | ||
844 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
845 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
846 | | --exec | --exe | --ex) | |
847 | ac_prev=exec_prefix ;; | |
848 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
849 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
850 | | --exec=* | --exe=* | --ex=*) | |
851 | exec_prefix=$ac_optarg ;; | |
852 | ||
853 | -gas | --gas | --ga | --g) | |
854 | # Obsolete; use --with-gas. | |
855 | with_gas=yes ;; | |
856 | ||
857 | -help | --help | --hel | --he | -h) | |
858 | ac_init_help=long ;; | |
859 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
860 | ac_init_help=recursive ;; | |
861 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
862 | ac_init_help=short ;; | |
863 | ||
864 | -host | --host | --hos | --ho) | |
865 | ac_prev=host_alias ;; | |
866 | -host=* | --host=* | --hos=* | --ho=*) | |
867 | host_alias=$ac_optarg ;; | |
868 | ||
869 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | |
870 | ac_prev=htmldir ;; | |
871 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
872 | | --ht=*) | |
873 | htmldir=$ac_optarg ;; | |
874 | ||
875 | -includedir | --includedir | --includedi | --included | --include \ | |
876 | | --includ | --inclu | --incl | --inc) | |
877 | ac_prev=includedir ;; | |
878 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
879 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
880 | includedir=$ac_optarg ;; | |
881 | ||
882 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
883 | ac_prev=infodir ;; | |
884 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
885 | infodir=$ac_optarg ;; | |
886 | ||
887 | -libdir | --libdir | --libdi | --libd) | |
888 | ac_prev=libdir ;; | |
889 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
890 | libdir=$ac_optarg ;; | |
891 | ||
892 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
893 | | --libexe | --libex | --libe) | |
894 | ac_prev=libexecdir ;; | |
895 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
896 | | --libexe=* | --libex=* | --libe=*) | |
897 | libexecdir=$ac_optarg ;; | |
898 | ||
899 | -localedir | --localedir | --localedi | --localed | --locale) | |
900 | ac_prev=localedir ;; | |
901 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
902 | localedir=$ac_optarg ;; | |
903 | ||
904 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
905 | | --localstate | --localstat | --localsta | --localst | --locals) | |
906 | ac_prev=localstatedir ;; | |
907 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
908 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | |
909 | localstatedir=$ac_optarg ;; | |
910 | ||
911 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
912 | ac_prev=mandir ;; | |
913 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
914 | mandir=$ac_optarg ;; | |
915 | ||
916 | -nfp | --nfp | --nf) | |
917 | # Obsolete; use --without-fp. | |
918 | with_fp=no ;; | |
919 | ||
920 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
921 | | --no-cr | --no-c | -n) | |
922 | no_create=yes ;; | |
923 | ||
924 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
925 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
926 | no_recursion=yes ;; | |
927 | ||
928 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
929 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
930 | | --oldin | --oldi | --old | --ol | --o) | |
931 | ac_prev=oldincludedir ;; | |
932 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
933 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
934 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
935 | oldincludedir=$ac_optarg ;; | |
936 | ||
937 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
938 | ac_prev=prefix ;; | |
939 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
940 | prefix=$ac_optarg ;; | |
941 | ||
942 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
943 | | --program-pre | --program-pr | --program-p) | |
944 | ac_prev=program_prefix ;; | |
945 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
946 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
947 | program_prefix=$ac_optarg ;; | |
948 | ||
949 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
950 | | --program-suf | --program-su | --program-s) | |
951 | ac_prev=program_suffix ;; | |
952 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
953 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
954 | program_suffix=$ac_optarg ;; | |
955 | ||
956 | -program-transform-name | --program-transform-name \ | |
957 | | --program-transform-nam | --program-transform-na \ | |
958 | | --program-transform-n | --program-transform- \ | |
959 | | --program-transform | --program-transfor \ | |
960 | | --program-transfo | --program-transf \ | |
961 | | --program-trans | --program-tran \ | |
962 | | --progr-tra | --program-tr | --program-t) | |
963 | ac_prev=program_transform_name ;; | |
964 | -program-transform-name=* | --program-transform-name=* \ | |
965 | | --program-transform-nam=* | --program-transform-na=* \ | |
966 | | --program-transform-n=* | --program-transform-=* \ | |
967 | | --program-transform=* | --program-transfor=* \ | |
968 | | --program-transfo=* | --program-transf=* \ | |
969 | | --program-trans=* | --program-tran=* \ | |
970 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
971 | program_transform_name=$ac_optarg ;; | |
972 | ||
973 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | |
974 | ac_prev=pdfdir ;; | |
975 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
976 | pdfdir=$ac_optarg ;; | |
977 | ||
978 | -psdir | --psdir | --psdi | --psd | --ps) | |
979 | ac_prev=psdir ;; | |
980 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
981 | psdir=$ac_optarg ;; | |
982 | ||
983 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
984 | | -silent | --silent | --silen | --sile | --sil) | |
985 | silent=yes ;; | |
986 | ||
987 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
988 | ac_prev=sbindir ;; | |
989 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
990 | | --sbi=* | --sb=*) | |
991 | sbindir=$ac_optarg ;; | |
992 | ||
993 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
994 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
995 | | --sharedst | --shareds | --shared | --share | --shar \ | |
996 | | --sha | --sh) | |
997 | ac_prev=sharedstatedir ;; | |
998 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
999 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1000 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1001 | | --sha=* | --sh=*) | |
1002 | sharedstatedir=$ac_optarg ;; | |
1003 | ||
1004 | -site | --site | --sit) | |
1005 | ac_prev=site ;; | |
1006 | -site=* | --site=* | --sit=*) | |
1007 | site=$ac_optarg ;; | |
1008 | ||
1009 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1010 | ac_prev=srcdir ;; | |
1011 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1012 | srcdir=$ac_optarg ;; | |
1013 | ||
1014 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1015 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1016 | ac_prev=sysconfdir ;; | |
1017 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1018 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1019 | sysconfdir=$ac_optarg ;; | |
1020 | ||
1021 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1022 | ac_prev=target_alias ;; | |
1023 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1024 | target_alias=$ac_optarg ;; | |
1025 | ||
1026 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1027 | verbose=yes ;; | |
1028 | ||
1029 | -version | --version | --versio | --versi | --vers | -V) | |
1030 | ac_init_version=: ;; | |
1031 | ||
1032 | -with-* | --with-*) | |
1033 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
1034 | # Reject names that are not valid shell variable names. | |
1035 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1036 | as_fn_error $? "invalid package name: $ac_useropt" | |
1037 | ac_useropt_orig=$ac_useropt | |
1038 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1039 | case $ac_user_opts in | |
1040 | *" | |
1041 | "with_$ac_useropt" | |
1042 | "*) ;; | |
1043 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1044 | ac_unrecognized_sep=', ';; | |
1045 | esac | |
1046 | eval with_$ac_useropt=\$ac_optarg ;; | |
1047 | ||
1048 | -without-* | --without-*) | |
1049 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
1050 | # Reject names that are not valid shell variable names. | |
1051 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1052 | as_fn_error $? "invalid package name: $ac_useropt" | |
1053 | ac_useropt_orig=$ac_useropt | |
1054 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1055 | case $ac_user_opts in | |
1056 | *" | |
1057 | "with_$ac_useropt" | |
1058 | "*) ;; | |
1059 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1060 | ac_unrecognized_sep=', ';; | |
1061 | esac | |
1062 | eval with_$ac_useropt=no ;; | |
1063 | ||
1064 | --x) | |
1065 | # Obsolete; use --with-x. | |
1066 | with_x=yes ;; | |
1067 | ||
1068 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1069 | | --x-incl | --x-inc | --x-in | --x-i) | |
1070 | ac_prev=x_includes ;; | |
1071 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1072 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1073 | x_includes=$ac_optarg ;; | |
1074 | ||
1075 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1076 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1077 | ac_prev=x_libraries ;; | |
1078 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1079 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1080 | x_libraries=$ac_optarg ;; | |
1081 | ||
1082 | -*) as_fn_error $? "unrecognized option: \`$ac_option' | |
1083 | Try \`$0 --help' for more information" | |
1084 | ;; | |
1085 | ||
1086 | *=*) | |
1087 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1088 | # Reject names that are not valid shell variable names. | |
1089 | case $ac_envvar in #( | |
1090 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1091 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; | |
1092 | esac | |
1093 | eval $ac_envvar=\$ac_optarg | |
1094 | export $ac_envvar ;; | |
1095 | ||
1096 | *) | |
1097 | # FIXME: should be removed in autoconf 3.0. | |
1098 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1099 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1100 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
1101 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" | |
1102 | ;; | |
1103 | ||
1104 | esac | |
1105 | done | |
1106 | ||
1107 | if test -n "$ac_prev"; then | |
1108 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
1109 | as_fn_error $? "missing argument to $ac_option" | |
1110 | fi | |
1111 | ||
1112 | if test -n "$ac_unrecognized_opts"; then | |
1113 | case $enable_option_checking in | |
1114 | no) ;; | |
1115 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; | |
1116 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
1117 | esac | |
1118 | fi | |
1119 | ||
1120 | # Check all directory arguments for consistency. | |
1121 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1122 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1123 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1124 | libdir localedir mandir | |
1125 | do | |
1126 | eval ac_val=\$$ac_var | |
1127 | # Remove trailing slashes. | |
1128 | case $ac_val in | |
1129 | */ ) | |
1130 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1131 | eval $ac_var=\$ac_val;; | |
1132 | esac | |
1133 | # Be sure to have absolute directory names. | |
1134 | case $ac_val in | |
1135 | [\\/$]* | ?:[\\/]* ) continue;; | |
1136 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
1137 | esac | |
1138 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" | |
1139 | done | |
1140 | ||
1141 | # There might be people who depend on the old broken behavior: `$host' | |
1142 | # used to hold the argument of --host etc. | |
1143 | # FIXME: To remove some day. | |
1144 | build=$build_alias | |
1145 | host=$host_alias | |
1146 | target=$target_alias | |
1147 | ||
1148 | # FIXME: To remove some day. | |
1149 | if test "x$host_alias" != x; then | |
1150 | if test "x$build_alias" = x; then | |
1151 | cross_compiling=maybe | |
1152 | elif test "x$build_alias" != "x$host_alias"; then | |
1153 | cross_compiling=yes | |
1154 | fi | |
1155 | fi | |
1156 | ||
1157 | ac_tool_prefix= | |
1158 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1159 | ||
1160 | test "$silent" = yes && exec 6>/dev/null | |
1161 | ||
1162 | ||
1163 | ac_pwd=`pwd` && test -n "$ac_pwd" && | |
1164 | ac_ls_di=`ls -di .` && | |
1165 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1166 | as_fn_error $? "working directory cannot be determined" | |
1167 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1168 | as_fn_error $? "pwd does not report name of working directory" | |
1169 | ||
1170 | ||
1171 | # Find the source files, if location was not specified. | |
1172 | if test -z "$srcdir"; then | |
1173 | ac_srcdir_defaulted=yes | |
1174 | # Try the directory containing this script, then the parent directory. | |
1175 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1176 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1177 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1178 | X"$as_myself" : 'X\(//\)$' \| \ | |
1179 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1180 | $as_echo X"$as_myself" | | |
1181 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1182 | s//\1/ | |
1183 | q | |
1184 | } | |
1185 | /^X\(\/\/\)[^/].*/{ | |
1186 | s//\1/ | |
1187 | q | |
1188 | } | |
1189 | /^X\(\/\/\)$/{ | |
1190 | s//\1/ | |
1191 | q | |
1192 | } | |
1193 | /^X\(\/\).*/{ | |
1194 | s//\1/ | |
1195 | q | |
1196 | } | |
1197 | s/.*/./; q'` | |
1198 | srcdir=$ac_confdir | |
1199 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1200 | srcdir=.. | |
1201 | fi | |
1202 | else | |
1203 | ac_srcdir_defaulted=no | |
1204 | fi | |
1205 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1206 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1207 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" | |
1208 | fi | |
1209 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1210 | ac_abs_confdir=`( | |
1211 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" | |
1212 | pwd)` | |
1213 | # When building in place, set srcdir=. | |
1214 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1215 | srcdir=. | |
1216 | fi | |
1217 | # Remove unnecessary trailing slashes from srcdir. | |
1218 | # Double slashes in file names in object file debugging info | |
1219 | # mess up M-x gdb in Emacs. | |
1220 | case $srcdir in | |
1221 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1222 | esac | |
1223 | for ac_var in $ac_precious_vars; do | |
1224 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1225 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1226 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1227 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1228 | done | |
1229 | ||
1230 | # | |
1231 | # Report the --help message. | |
1232 | # | |
1233 | if test "$ac_init_help" = "long"; then | |
1234 | # Omit some internal or obsolete options to make the list less imposing. | |
1235 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1236 | cat <<_ACEOF | |
1237 | \`configure' configures this package to adapt to many kinds of systems. | |
1238 | ||
1239 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1240 | ||
1241 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1242 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1243 | ||
1244 | Defaults for the options are specified in brackets. | |
1245 | ||
1246 | Configuration: | |
1247 | -h, --help display this help and exit | |
1248 | --help=short display options specific to this package | |
1249 | --help=recursive display the short help of all the included packages | |
1250 | -V, --version display version information and exit | |
1251 | -q, --quiet, --silent do not print \`checking ...' messages | |
1252 | --cache-file=FILE cache test results in FILE [disabled] | |
1253 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1254 | -n, --no-create do not create output files | |
1255 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1256 | ||
1257 | Installation directories: | |
1258 | --prefix=PREFIX install architecture-independent files in PREFIX | |
1259 | [$ac_default_prefix] | |
1260 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
1261 | [PREFIX] | |
1262 | ||
1263 | By default, \`make install' will install all the files in | |
1264 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1265 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1266 | for instance \`--prefix=\$HOME'. | |
1267 | ||
1268 | For better control, use the options below. | |
1269 | ||
1270 | Fine tuning of the installation directories: | |
1271 | --bindir=DIR user executables [EPREFIX/bin] | |
1272 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1273 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1274 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1275 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1276 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1277 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1278 | --includedir=DIR C header files [PREFIX/include] | |
1279 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1280 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1281 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1282 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1283 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1284 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1285 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1286 | --htmldir=DIR html documentation [DOCDIR] | |
1287 | --dvidir=DIR dvi documentation [DOCDIR] | |
1288 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1289 | --psdir=DIR ps documentation [DOCDIR] | |
1290 | _ACEOF | |
1291 | ||
1292 | cat <<\_ACEOF | |
1293 | _ACEOF | |
1294 | fi | |
1295 | ||
1296 | if test -n "$ac_init_help"; then | |
1297 | ||
1298 | cat <<\_ACEOF | |
1299 | ||
1300 | Optional Features: | |
1301 | --disable-option-checking ignore unrecognized --enable/--with options | |
1302 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1303 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1304 | --enable-experiment Compile experimental code | |
1305 | --enable-debugging Compile for debugging | |
1306 | ||
1307 | Some influential environment variables: | |
1308 | CC C compiler command | |
1309 | CFLAGS C compiler flags | |
1310 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1311 | nonstandard directory <lib dir> | |
1312 | LIBS libraries to pass to the linker, e.g. -l<library> | |
1313 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if | |
1314 | you have headers in a nonstandard directory <include dir> | |
1315 | CPP C preprocessor | |
1316 | ||
1317 | Use these variables to override the choices made by `configure' or to help | |
1318 | it to find libraries and programs with nonstandard names/locations. | |
1319 | ||
1320 | Report bugs to the package provider. | |
1321 | _ACEOF | |
1322 | ac_status=$? | |
1323 | fi | |
1324 | ||
1325 | if test "$ac_init_help" = "recursive"; then | |
1326 | # If there are subdirs, report their specific --help. | |
1327 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1328 | test -d "$ac_dir" || | |
1329 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1330 | continue | |
1331 | ac_builddir=. | |
1332 | ||
1333 | case "$ac_dir" in | |
1334 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1335 | *) | |
1336 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1337 | # A ".." for each directory in $ac_dir_suffix. | |
1338 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1339 | case $ac_top_builddir_sub in | |
1340 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1341 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1342 | esac ;; | |
1343 | esac | |
1344 | ac_abs_top_builddir=$ac_pwd | |
1345 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1346 | # for backward compatibility: | |
1347 | ac_top_builddir=$ac_top_build_prefix | |
1348 | ||
1349 | case $srcdir in | |
1350 | .) # We are building in place. | |
1351 | ac_srcdir=. | |
1352 | ac_top_srcdir=$ac_top_builddir_sub | |
1353 | ac_abs_top_srcdir=$ac_pwd ;; | |
1354 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1355 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1356 | ac_top_srcdir=$srcdir | |
1357 | ac_abs_top_srcdir=$srcdir ;; | |
1358 | *) # Relative name. | |
1359 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1360 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1361 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1362 | esac | |
1363 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
1364 | ||
1365 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1366 | # Check for guested configure. | |
1367 | if test -f "$ac_srcdir/configure.gnu"; then | |
1368 | echo && | |
1369 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1370 | elif test -f "$ac_srcdir/configure"; then | |
1371 | echo && | |
1372 | $SHELL "$ac_srcdir/configure" --help=recursive | |
1373 | else | |
1374 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1375 | fi || ac_status=$? | |
1376 | cd "$ac_pwd" || { ac_status=$?; break; } | |
1377 | done | |
1378 | fi | |
1379 | ||
1380 | test -n "$ac_init_help" && exit $ac_status | |
1381 | if $ac_init_version; then | |
1382 | cat <<\_ACEOF | |
1383 | configure | |
1384 | generated by GNU Autoconf 2.69 | |
1385 | ||
1386 | Copyright (C) 2012 Free Software Foundation, Inc. | |
1387 | This configure script is free software; the Free Software Foundation | |
1388 | gives unlimited permission to copy, distribute and modify it. | |
1389 | _ACEOF | |
1390 | exit | |
1391 | fi | |
1392 | ||
1393 | ## ------------------------ ## | |
1394 | ## Autoconf initialization. ## | |
1395 | ## ------------------------ ## | |
1396 | ||
1397 | # ac_fn_c_try_compile LINENO | |
1398 | # -------------------------- | |
1399 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1400 | ac_fn_c_try_compile () | |
1401 | { | |
1402 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1403 | rm -f conftest.$ac_objext | |
1404 | if { { ac_try="$ac_compile" | |
1405 | case "(($ac_try" in | |
1406 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1407 | *) ac_try_echo=$ac_try;; | |
1408 | esac | |
1409 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1410 | $as_echo "$ac_try_echo"; } >&5 | |
1411 | (eval "$ac_compile") 2>conftest.err | |
1412 | ac_status=$? | |
1413 | if test -s conftest.err; then | |
1414 | grep -v '^ *+' conftest.err >conftest.er1 | |
1415 | cat conftest.er1 >&5 | |
1416 | mv -f conftest.er1 conftest.err | |
1417 | fi | |
1418 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1419 | test $ac_status = 0; } && { | |
1420 | test -z "$ac_c_werror_flag" || | |
1421 | test ! -s conftest.err | |
1422 | } && test -s conftest.$ac_objext; then : | |
1423 | ac_retval=0 | |
1424 | else | |
1425 | $as_echo "$as_me: failed program was:" >&5 | |
1426 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1427 | ||
1428 | ac_retval=1 | |
1429 | fi | |
1430 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1431 | as_fn_set_status $ac_retval | |
1432 | ||
1433 | } # ac_fn_c_try_compile | |
1434 | ||
6 | 1435 | # ac_fn_c_try_link LINENO |
1436 | # ----------------------- | |
1437 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1438 | ac_fn_c_try_link () | |
1439 | { | |
1440 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1441 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1442 | if { { ac_try="$ac_link" | |
1443 | case "(($ac_try" in | |
1444 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1445 | *) ac_try_echo=$ac_try;; | |
1446 | esac | |
1447 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1448 | $as_echo "$ac_try_echo"; } >&5 | |
1449 | (eval "$ac_link") 2>conftest.err | |
1450 | ac_status=$? | |
1451 | if test -s conftest.err; then | |
1452 | grep -v '^ *+' conftest.err >conftest.er1 | |
1453 | cat conftest.er1 >&5 | |
1454 | mv -f conftest.er1 conftest.err | |
1455 | fi | |
1456 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1457 | test $ac_status = 0; } && { | |
1458 | test -z "$ac_c_werror_flag" || | |
1459 | test ! -s conftest.err | |
1460 | } && test -s conftest$ac_exeext && { | |
1461 | test "$cross_compiling" = yes || | |
1462 | test -x conftest$ac_exeext | |
1463 | }; then : | |
1464 | ac_retval=0 | |
1465 | else | |
1466 | $as_echo "$as_me: failed program was:" >&5 | |
1467 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1468 | ||
1469 | ac_retval=1 | |
1470 | fi | |
1471 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1472 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1473 | # interfere with the next link command; also delete a directory that is | |
1474 | # left behind by Apple's compiler. We do this before executing the actions. | |
1475 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1476 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1477 | as_fn_set_status $ac_retval | |
1478 | ||
1479 | } # ac_fn_c_try_link | |
1480 | ||
0 | 1481 | # ac_fn_c_try_cpp LINENO |
1482 | # ---------------------- | |
1483 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1484 | ac_fn_c_try_cpp () | |
1485 | { | |
1486 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1487 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1488 | case "(($ac_try" in | |
1489 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1490 | *) ac_try_echo=$ac_try;; | |
1491 | esac | |
1492 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1493 | $as_echo "$ac_try_echo"; } >&5 | |
1494 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1495 | ac_status=$? | |
1496 | if test -s conftest.err; then | |
1497 | grep -v '^ *+' conftest.err >conftest.er1 | |
1498 | cat conftest.er1 >&5 | |
1499 | mv -f conftest.er1 conftest.err | |
1500 | fi | |
1501 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1502 | test $ac_status = 0; } > conftest.i && { | |
1503 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
1504 | test ! -s conftest.err | |
1505 | }; then : | |
1506 | ac_retval=0 | |
1507 | else | |
1508 | $as_echo "$as_me: failed program was:" >&5 | |
1509 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1510 | ||
1511 | ac_retval=1 | |
1512 | fi | |
1513 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1514 | as_fn_set_status $ac_retval | |
1515 | ||
1516 | } # ac_fn_c_try_cpp | |
1517 | ||
17
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
1518 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
1519 | # ------------------------------------------------------- |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
1520 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
1521 | # the include files in INCLUDES and setting the cache variable VAR |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
1522 | # accordingly. |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
1523 | ac_fn_c_check_header_mongrel () |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
1524 | { |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
1525 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
1526 | if eval \${$3+:} false; then : |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
1527 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
1528 | $as_echo_n "checking for $2... " >&6; } |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
1529 | if eval \${$3+:} false; then : |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
1530 | $as_echo_n "(cached) " >&6 |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
1531 | fi |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
1532 | eval ac_res=\$$3 |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
1533 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
1534 | $as_echo "$ac_res" >&6; } |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
1535 | else |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
1536 | # Is the header compilable? |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
1537 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
1538 | $as_echo_n "checking $2 usability... " >&6; } |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
1539 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
1540 | /* end confdefs.h. */ |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
1541 | $4 |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
1542 | #include <$2> |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
1543 | _ACEOF |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
1544 | if ac_fn_c_try_compile "$LINENO"; then : |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
1545 | ac_header_compiler=yes |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
1546 | else |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
1547 | ac_header_compiler=no |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
1548 | fi |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
1549 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
1550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
1551 | $as_echo "$ac_header_compiler" >&6; } |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
1552 | |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
1553 | # Is the header present? |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
1554 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
1555 | $as_echo_n "checking $2 presence... " >&6; } |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
1556 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
1557 | /* end confdefs.h. */ |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
1558 | #include <$2> |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
1559 | _ACEOF |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
1560 | if ac_fn_c_try_cpp "$LINENO"; then : |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
1561 | ac_header_preproc=yes |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
1562 | else |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
1563 | ac_header_preproc=no |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
1564 | fi |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
1565 | rm -f conftest.err conftest.i conftest.$ac_ext |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
1566 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
1567 | $as_echo "$ac_header_preproc" >&6; } |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
1568 | |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
1569 | # So? What about this header? |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
1570 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
1571 | yes:no: ) |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
1572 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
1573 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
1574 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
1575 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
1576 | ;; |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
1577 | no:yes:* ) |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
1578 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
1579 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
1580 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
1581 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
1582 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
1583 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
1584 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
1585 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
1586 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
1587 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
1588 | ;; |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
1589 | esac |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
1590 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
1591 | $as_echo_n "checking for $2... " >&6; } |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
1592 | if eval \${$3+:} false; then : |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
1593 | $as_echo_n "(cached) " >&6 |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
1594 | else |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
1595 | eval "$3=\$ac_header_compiler" |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
1596 | fi |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
1597 | eval ac_res=\$$3 |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
1598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
1599 | $as_echo "$ac_res" >&6; } |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
1600 | fi |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
1601 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
1602 | |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
1603 | } # ac_fn_c_check_header_mongrel |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
1604 | |
0 | 1605 | # ac_fn_c_try_run LINENO |
1606 | # ---------------------- | |
1607 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1608 | # that executables *can* be run. | |
1609 | ac_fn_c_try_run () | |
1610 | { | |
1611 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1612 | if { { ac_try="$ac_link" | |
1613 | case "(($ac_try" in | |
1614 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1615 | *) ac_try_echo=$ac_try;; | |
1616 | esac | |
1617 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1618 | $as_echo "$ac_try_echo"; } >&5 | |
1619 | (eval "$ac_link") 2>&5 | |
1620 | ac_status=$? | |
1621 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1622 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1623 | { { case "(($ac_try" in | |
1624 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1625 | *) ac_try_echo=$ac_try;; | |
1626 | esac | |
1627 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1628 | $as_echo "$ac_try_echo"; } >&5 | |
1629 | (eval "$ac_try") 2>&5 | |
1630 | ac_status=$? | |
1631 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1632 | test $ac_status = 0; }; }; then : | |
1633 | ac_retval=0 | |
1634 | else | |
1635 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1636 | $as_echo "$as_me: failed program was:" >&5 | |
1637 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1638 | ||
1639 | ac_retval=$ac_status | |
1640 | fi | |
1641 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1642 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1643 | as_fn_set_status $ac_retval | |
1644 | ||
1645 | } # ac_fn_c_try_run | |
17
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
1646 | |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
1647 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
1648 | # ------------------------------------------------------- |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
1649 | # Tests whether HEADER exists and can be compiled using the include files in |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
1650 | # INCLUDES, setting the cache variable VAR accordingly. |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
1651 | ac_fn_c_check_header_compile () |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
1652 | { |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
1653 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
1654 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
1655 | $as_echo_n "checking for $2... " >&6; } |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
1656 | if eval \${$3+:} false; then : |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
1657 | $as_echo_n "(cached) " >&6 |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
1658 | else |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
1659 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
1660 | /* end confdefs.h. */ |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
1661 | $4 |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
1662 | #include <$2> |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
1663 | _ACEOF |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
1664 | if ac_fn_c_try_compile "$LINENO"; then : |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
1665 | eval "$3=yes" |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
1666 | else |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
1667 | eval "$3=no" |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
1668 | fi |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
1669 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
1670 | fi |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
1671 | eval ac_res=\$$3 |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
1672 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
1673 | $as_echo "$ac_res" >&6; } |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
1674 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
1675 | |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
1676 | } # ac_fn_c_check_header_compile |
0 | 1677 | cat >config.log <<_ACEOF |
1678 | This file contains any messages produced by compilers while | |
1679 | running configure, to aid debugging if configure makes a mistake. | |
1680 | ||
1681 | It was created by $as_me, which was | |
1682 | generated by GNU Autoconf 2.69. Invocation command line was | |
1683 | ||
1684 | $ $0 $@ | |
1685 | ||
1686 | _ACEOF | |
1687 | exec 5>>config.log | |
1688 | { | |
1689 | cat <<_ASUNAME | |
1690 | ## --------- ## | |
1691 | ## Platform. ## | |
1692 | ## --------- ## | |
1693 | ||
1694 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1695 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1696 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1697 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1698 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1699 | ||
1700 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1701 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1702 | ||
1703 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1704 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1705 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1706 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
1707 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1708 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1709 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1710 | ||
1711 | _ASUNAME | |
1712 | ||
1713 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1714 | for as_dir in $PATH | |
1715 | do | |
1716 | IFS=$as_save_IFS | |
1717 | test -z "$as_dir" && as_dir=. | |
1718 | $as_echo "PATH: $as_dir" | |
1719 | done | |
1720 | IFS=$as_save_IFS | |
1721 | ||
1722 | } >&5 | |
1723 | ||
1724 | cat >&5 <<_ACEOF | |
1725 | ||
1726 | ||
1727 | ## ----------- ## | |
1728 | ## Core tests. ## | |
1729 | ## ----------- ## | |
1730 | ||
1731 | _ACEOF | |
1732 | ||
1733 | ||
1734 | # Keep a trace of the command line. | |
1735 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1736 | # Strip out --silent because we don't want to record it for future runs. | |
1737 | # Also quote any args containing shell meta-characters. | |
1738 | # Make two passes to allow for proper duplicate-argument suppression. | |
1739 | ac_configure_args= | |
1740 | ac_configure_args0= | |
1741 | ac_configure_args1= | |
1742 | ac_must_keep_next=false | |
1743 | for ac_pass in 1 2 | |
1744 | do | |
1745 | for ac_arg | |
1746 | do | |
1747 | case $ac_arg in | |
1748 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1749 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1750 | | -silent | --silent | --silen | --sile | --sil) | |
1751 | continue ;; | |
1752 | *\'*) | |
1753 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1754 | esac | |
1755 | case $ac_pass in | |
1756 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
1757 | 2) | |
1758 | as_fn_append ac_configure_args1 " '$ac_arg'" | |
1759 | if test $ac_must_keep_next = true; then | |
1760 | ac_must_keep_next=false # Got value, back to normal. | |
1761 | else | |
1762 | case $ac_arg in | |
1763 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1764 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1765 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1766 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1767 | case "$ac_configure_args0 " in | |
1768 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1769 | esac | |
1770 | ;; | |
1771 | -* ) ac_must_keep_next=true ;; | |
1772 | esac | |
1773 | fi | |
1774 | as_fn_append ac_configure_args " '$ac_arg'" | |
1775 | ;; | |
1776 | esac | |
1777 | done | |
1778 | done | |
1779 | { ac_configure_args0=; unset ac_configure_args0;} | |
1780 | { ac_configure_args1=; unset ac_configure_args1;} | |
1781 | ||
1782 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1783 | # config.log. We remove comments because anyway the quotes in there | |
1784 | # would cause problems or look ugly. | |
1785 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
1786 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
1787 | trap 'exit_status=$? | |
1788 | # Save into config.log some information that might help in debugging. | |
1789 | { | |
1790 | echo | |
1791 | ||
1792 | $as_echo "## ---------------- ## | |
1793 | ## Cache variables. ## | |
1794 | ## ---------------- ##" | |
1795 | echo | |
1796 | # The following way of writing the cache mishandles newlines in values, | |
1797 | ( | |
1798 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1799 | eval ac_val=\$$ac_var | |
1800 | case $ac_val in #( | |
1801 | *${as_nl}*) | |
1802 | case $ac_var in #( | |
1803 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
1804 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
1805 | esac | |
1806 | case $ac_var in #( | |
1807 | _ | IFS | as_nl) ;; #( | |
1808 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
1809 | *) { eval $ac_var=; unset $ac_var;} ;; | |
1810 | esac ;; | |
1811 | esac | |
1812 | done | |
1813 | (set) 2>&1 | | |
1814 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
1815 | *${as_nl}ac_space=\ *) | |
1816 | sed -n \ | |
1817 | "s/'\''/'\''\\\\'\'''\''/g; | |
1818 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1819 | ;; #( | |
1820 | *) | |
1821 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
1822 | ;; | |
1823 | esac | | |
1824 | sort | |
1825 | ) | |
1826 | echo | |
1827 | ||
1828 | $as_echo "## ----------------- ## | |
1829 | ## Output variables. ## | |
1830 | ## ----------------- ##" | |
1831 | echo | |
1832 | for ac_var in $ac_subst_vars | |
1833 | do | |
1834 | eval ac_val=\$$ac_var | |
1835 | case $ac_val in | |
1836 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1837 | esac | |
1838 | $as_echo "$ac_var='\''$ac_val'\''" | |
1839 | done | sort | |
1840 | echo | |
1841 | ||
1842 | if test -n "$ac_subst_files"; then | |
1843 | $as_echo "## ------------------- ## | |
1844 | ## File substitutions. ## | |
1845 | ## ------------------- ##" | |
1846 | echo | |
1847 | for ac_var in $ac_subst_files | |
1848 | do | |
1849 | eval ac_val=\$$ac_var | |
1850 | case $ac_val in | |
1851 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1852 | esac | |
1853 | $as_echo "$ac_var='\''$ac_val'\''" | |
1854 | done | sort | |
1855 | echo | |
1856 | fi | |
1857 | ||
1858 | if test -s confdefs.h; then | |
1859 | $as_echo "## ----------- ## | |
1860 | ## confdefs.h. ## | |
1861 | ## ----------- ##" | |
1862 | echo | |
1863 | cat confdefs.h | |
1864 | echo | |
1865 | fi | |
1866 | test "$ac_signal" != 0 && | |
1867 | $as_echo "$as_me: caught signal $ac_signal" | |
1868 | $as_echo "$as_me: exit $exit_status" | |
1869 | } >&5 | |
1870 | rm -f core *.core core.conftest.* && | |
1871 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
1872 | exit $exit_status | |
1873 | ' 0 | |
1874 | for ac_signal in 1 2 13 15; do | |
1875 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
1876 | done | |
1877 | ac_signal=0 | |
1878 | ||
1879 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1880 | rm -f -r conftest* confdefs.h | |
1881 | ||
1882 | $as_echo "/* confdefs.h */" > confdefs.h | |
1883 | ||
1884 | # Predefined preprocessor variables. | |
1885 | ||
1886 | cat >>confdefs.h <<_ACEOF | |
1887 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1888 | _ACEOF | |
1889 | ||
1890 | cat >>confdefs.h <<_ACEOF | |
1891 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1892 | _ACEOF | |
1893 | ||
1894 | cat >>confdefs.h <<_ACEOF | |
1895 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1896 | _ACEOF | |
1897 | ||
1898 | cat >>confdefs.h <<_ACEOF | |
1899 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1900 | _ACEOF | |
1901 | ||
1902 | cat >>confdefs.h <<_ACEOF | |
1903 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1904 | _ACEOF | |
1905 | ||
1906 | cat >>confdefs.h <<_ACEOF | |
1907 | #define PACKAGE_URL "$PACKAGE_URL" | |
1908 | _ACEOF | |
1909 | ||
1910 | ||
1911 | # Let the site file select an alternate cache file if it wants to. | |
1912 | # Prefer an explicitly selected file to automatically selected ones. | |
1913 | ac_site_file1=NONE | |
1914 | ac_site_file2=NONE | |
1915 | if test -n "$CONFIG_SITE"; then | |
1916 | # We do not want a PATH search for config.site. | |
1917 | case $CONFIG_SITE in #(( | |
1918 | -*) ac_site_file1=./$CONFIG_SITE;; | |
1919 | */*) ac_site_file1=$CONFIG_SITE;; | |
1920 | *) ac_site_file1=./$CONFIG_SITE;; | |
1921 | esac | |
1922 | elif test "x$prefix" != xNONE; then | |
1923 | ac_site_file1=$prefix/share/config.site | |
1924 | ac_site_file2=$prefix/etc/config.site | |
1925 | else | |
1926 | ac_site_file1=$ac_default_prefix/share/config.site | |
1927 | ac_site_file2=$ac_default_prefix/etc/config.site | |
1928 | fi | |
1929 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
1930 | do | |
1931 | test "x$ac_site_file" = xNONE && continue | |
1932 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then | |
1933 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | |
1934 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
1935 | sed 's/^/| /' "$ac_site_file" >&5 | |
1936 | . "$ac_site_file" \ | |
1937 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
1938 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
1939 | as_fn_error $? "failed to load site script $ac_site_file | |
1940 | See \`config.log' for more details" "$LINENO" 5; } | |
1941 | fi | |
1942 | done | |
1943 | ||
1944 | if test -r "$cache_file"; then | |
1945 | # Some versions of bash will fail to source /dev/null (special files | |
1946 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
1947 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
1948 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | |
1949 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
1950 | case $cache_file in | |
1951 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
1952 | *) . "./$cache_file";; | |
1953 | esac | |
1954 | fi | |
1955 | else | |
1956 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
1957 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
1958 | >$cache_file | |
1959 | fi | |
1960 | ||
1961 | # Check that the precious variables saved in the cache have kept the same | |
1962 | # value. | |
1963 | ac_cache_corrupted=false | |
1964 | for ac_var in $ac_precious_vars; do | |
1965 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
1966 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1967 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
1968 | eval ac_new_val=\$ac_env_${ac_var}_value | |
1969 | case $ac_old_set,$ac_new_set in | |
1970 | set,) | |
1971 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1972 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1973 | ac_cache_corrupted=: ;; | |
1974 | ,set) | |
1975 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
1976 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1977 | ac_cache_corrupted=: ;; | |
1978 | ,);; | |
1979 | *) | |
1980 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
1981 | # differences in whitespace do not lead to failure. | |
1982 | ac_old_val_w=`echo x $ac_old_val` | |
1983 | ac_new_val_w=`echo x $ac_new_val` | |
1984 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
1985 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
1986 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1987 | ac_cache_corrupted=: | |
1988 | else | |
1989 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
1990 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
1991 | eval $ac_var=\$ac_old_val | |
1992 | fi | |
1993 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
1994 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
1995 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
1996 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
1997 | fi;; | |
1998 | esac | |
1999 | # Pass precious variables to config.status. | |
2000 | if test "$ac_new_set" = set; then | |
2001 | case $ac_new_val in | |
2002 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2003 | *) ac_arg=$ac_var=$ac_new_val ;; | |
2004 | esac | |
2005 | case " $ac_configure_args " in | |
2006 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2007 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2008 | esac | |
2009 | fi | |
2010 | done | |
2011 | if $ac_cache_corrupted; then | |
2012 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2013 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2014 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2015 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2016 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
2017 | fi | |
2018 | ## -------------------- ## | |
2019 | ## Main body of script. ## | |
2020 | ## -------------------- ## | |
2021 | ||
2022 | ac_ext=c | |
2023 | ac_cpp='$CPP $CPPFLAGS' | |
2024 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2025 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2026 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2027 | ||
2028 | ||
2 | 2029 | ac_config_headers="$ac_config_headers config.h" |
2030 | ||
51
a03b6dac5398
Removed library, bumped to version 0.0.7
Michiel Broek <mbroek@mbse.eu>
parents:
41
diff
changeset
|
2031 | SUBDIRS="dht11 rc433 thermferm thermometers" |
0 | 2032 | |
2033 | ||
2034 | PACKAGE="mbsePi-apps" | |
142
4f21ffc16cd4
Bumped to version 0.0.11. Added owserver C api.
Michiel Broek <mbroek@mbse.eu>
parents:
107
diff
changeset
|
2035 | VERSION="0.0.11" |
0 | 2036 | COPYRIGHT="Copyright (C) 2014 Michiel Broek, All Rights Reserved" |
2037 | CYEARS="2014" | |
2038 | ||
2039 | ||
2040 | ||
2041 | ||
2042 | ||
2043 | cat >>confdefs.h <<_ACEOF | |
2044 | #define VERSION "$VERSION" | |
2045 | _ACEOF | |
2046 | ||
2047 | cat >>confdefs.h <<_ACEOF | |
2048 | #define COPYRIGHT "$COPYRIGHT" | |
2049 | _ACEOF | |
2050 | ||
2051 | TARGET="$target" | |
2052 | ||
2053 | ||
2054 | ac_ext=c | |
2055 | ac_cpp='$CPP $CPPFLAGS' | |
2056 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2057 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2058 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2059 | if test -n "$ac_tool_prefix"; then | |
2060 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2061 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
2062 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2063 | $as_echo_n "checking for $ac_word... " >&6; } | |
2064 | if ${ac_cv_prog_CC+:} false; then : | |
2065 | $as_echo_n "(cached) " >&6 | |
2066 | else | |
2067 | if test -n "$CC"; then | |
2068 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2069 | else | |
2070 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2071 | for as_dir in $PATH | |
2072 | do | |
2073 | IFS=$as_save_IFS | |
2074 | test -z "$as_dir" && as_dir=. | |
2075 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2076 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2077 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
2078 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2079 | break 2 | |
2080 | fi | |
2081 | done | |
2082 | done | |
2083 | IFS=$as_save_IFS | |
2084 | ||
2085 | fi | |
2086 | fi | |
2087 | CC=$ac_cv_prog_CC | |
2088 | if test -n "$CC"; then | |
2089 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2090 | $as_echo "$CC" >&6; } | |
2091 | else | |
2092 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2093 | $as_echo "no" >&6; } | |
2094 | fi | |
2095 | ||
2096 | ||
2097 | fi | |
2098 | if test -z "$ac_cv_prog_CC"; then | |
2099 | ac_ct_CC=$CC | |
2100 | # Extract the first word of "gcc", so it can be a program name with args. | |
2101 | set dummy gcc; ac_word=$2 | |
2102 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2103 | $as_echo_n "checking for $ac_word... " >&6; } | |
2104 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
2105 | $as_echo_n "(cached) " >&6 | |
2106 | else | |
2107 | if test -n "$ac_ct_CC"; then | |
2108 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2109 | else | |
2110 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2111 | for as_dir in $PATH | |
2112 | do | |
2113 | IFS=$as_save_IFS | |
2114 | test -z "$as_dir" && as_dir=. | |
2115 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2116 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2117 | ac_cv_prog_ac_ct_CC="gcc" | |
2118 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2119 | break 2 | |
2120 | fi | |
2121 | done | |
2122 | done | |
2123 | IFS=$as_save_IFS | |
2124 | ||
2125 | fi | |
2126 | fi | |
2127 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2128 | if test -n "$ac_ct_CC"; then | |
2129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
2130 | $as_echo "$ac_ct_CC" >&6; } | |
2131 | else | |
2132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2133 | $as_echo "no" >&6; } | |
2134 | fi | |
2135 | ||
2136 | if test "x$ac_ct_CC" = x; then | |
2137 | CC="" | |
2138 | else | |
2139 | case $cross_compiling:$ac_tool_warned in | |
2140 | yes:) | |
2141 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2142 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2143 | ac_tool_warned=yes ;; | |
2144 | esac | |
2145 | CC=$ac_ct_CC | |
2146 | fi | |
2147 | else | |
2148 | CC="$ac_cv_prog_CC" | |
2149 | fi | |
2150 | ||
2151 | if test -z "$CC"; then | |
2152 | if test -n "$ac_tool_prefix"; then | |
2153 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2154 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
2155 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2156 | $as_echo_n "checking for $ac_word... " >&6; } | |
2157 | if ${ac_cv_prog_CC+:} false; then : | |
2158 | $as_echo_n "(cached) " >&6 | |
2159 | else | |
2160 | if test -n "$CC"; then | |
2161 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2162 | else | |
2163 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2164 | for as_dir in $PATH | |
2165 | do | |
2166 | IFS=$as_save_IFS | |
2167 | test -z "$as_dir" && as_dir=. | |
2168 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2169 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2170 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
2171 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2172 | break 2 | |
2173 | fi | |
2174 | done | |
2175 | done | |
2176 | IFS=$as_save_IFS | |
2177 | ||
2178 | fi | |
2179 | fi | |
2180 | CC=$ac_cv_prog_CC | |
2181 | if test -n "$CC"; then | |
2182 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2183 | $as_echo "$CC" >&6; } | |
2184 | else | |
2185 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2186 | $as_echo "no" >&6; } | |
2187 | fi | |
2188 | ||
2189 | ||
2190 | fi | |
2191 | fi | |
2192 | if test -z "$CC"; then | |
2193 | # Extract the first word of "cc", so it can be a program name with args. | |
2194 | set dummy cc; ac_word=$2 | |
2195 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2196 | $as_echo_n "checking for $ac_word... " >&6; } | |
2197 | if ${ac_cv_prog_CC+:} false; then : | |
2198 | $as_echo_n "(cached) " >&6 | |
2199 | else | |
2200 | if test -n "$CC"; then | |
2201 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2202 | else | |
2203 | ac_prog_rejected=no | |
2204 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2205 | for as_dir in $PATH | |
2206 | do | |
2207 | IFS=$as_save_IFS | |
2208 | test -z "$as_dir" && as_dir=. | |
2209 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2210 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2211 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
2212 | ac_prog_rejected=yes | |
2213 | continue | |
2214 | fi | |
2215 | ac_cv_prog_CC="cc" | |
2216 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2217 | break 2 | |
2218 | fi | |
2219 | done | |
2220 | done | |
2221 | IFS=$as_save_IFS | |
2222 | ||
2223 | if test $ac_prog_rejected = yes; then | |
2224 | # We found a bogon in the path, so make sure we never use it. | |
2225 | set dummy $ac_cv_prog_CC | |
2226 | shift | |
2227 | if test $# != 0; then | |
2228 | # We chose a different compiler from the bogus one. | |
2229 | # However, it has the same basename, so the bogon will be chosen | |
2230 | # first if we set CC to just the basename; use the full file name. | |
2231 | shift | |
2232 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
2233 | fi | |
2234 | fi | |
2235 | fi | |
2236 | fi | |
2237 | CC=$ac_cv_prog_CC | |
2238 | if test -n "$CC"; then | |
2239 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2240 | $as_echo "$CC" >&6; } | |
2241 | else | |
2242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2243 | $as_echo "no" >&6; } | |
2244 | fi | |
2245 | ||
2246 | ||
2247 | fi | |
2248 | if test -z "$CC"; then | |
2249 | if test -n "$ac_tool_prefix"; then | |
2250 | for ac_prog in cl.exe | |
2251 | do | |
2252 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2253 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
2254 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2255 | $as_echo_n "checking for $ac_word... " >&6; } | |
2256 | if ${ac_cv_prog_CC+:} false; then : | |
2257 | $as_echo_n "(cached) " >&6 | |
2258 | else | |
2259 | if test -n "$CC"; then | |
2260 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2261 | else | |
2262 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2263 | for as_dir in $PATH | |
2264 | do | |
2265 | IFS=$as_save_IFS | |
2266 | test -z "$as_dir" && as_dir=. | |
2267 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2268 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2269 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
2270 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2271 | break 2 | |
2272 | fi | |
2273 | done | |
2274 | done | |
2275 | IFS=$as_save_IFS | |
2276 | ||
2277 | fi | |
2278 | fi | |
2279 | CC=$ac_cv_prog_CC | |
2280 | if test -n "$CC"; then | |
2281 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2282 | $as_echo "$CC" >&6; } | |
2283 | else | |
2284 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2285 | $as_echo "no" >&6; } | |
2286 | fi | |
2287 | ||
2288 | ||
2289 | test -n "$CC" && break | |
2290 | done | |
2291 | fi | |
2292 | if test -z "$CC"; then | |
2293 | ac_ct_CC=$CC | |
2294 | for ac_prog in cl.exe | |
2295 | do | |
2296 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2297 | set dummy $ac_prog; ac_word=$2 | |
2298 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2299 | $as_echo_n "checking for $ac_word... " >&6; } | |
2300 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
2301 | $as_echo_n "(cached) " >&6 | |
2302 | else | |
2303 | if test -n "$ac_ct_CC"; then | |
2304 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2305 | else | |
2306 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2307 | for as_dir in $PATH | |
2308 | do | |
2309 | IFS=$as_save_IFS | |
2310 | test -z "$as_dir" && as_dir=. | |
2311 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2312 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2313 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
2314 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2315 | break 2 | |
2316 | fi | |
2317 | done | |
2318 | done | |
2319 | IFS=$as_save_IFS | |
2320 | ||
2321 | fi | |
2322 | fi | |
2323 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2324 | if test -n "$ac_ct_CC"; then | |
2325 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
2326 | $as_echo "$ac_ct_CC" >&6; } | |
2327 | else | |
2328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2329 | $as_echo "no" >&6; } | |
2330 | fi | |
2331 | ||
2332 | ||
2333 | test -n "$ac_ct_CC" && break | |
2334 | done | |
2335 | ||
2336 | if test "x$ac_ct_CC" = x; then | |
2337 | CC="" | |
2338 | else | |
2339 | case $cross_compiling:$ac_tool_warned in | |
2340 | yes:) | |
2341 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2342 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2343 | ac_tool_warned=yes ;; | |
2344 | esac | |
2345 | CC=$ac_ct_CC | |
2346 | fi | |
2347 | fi | |
2348 | ||
2349 | fi | |
2350 | ||
2351 | ||
2352 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2353 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2354 | as_fn_error $? "no acceptable C compiler found in \$PATH | |
2355 | See \`config.log' for more details" "$LINENO" 5; } | |
2356 | ||
2357 | # Provide some information about the compiler. | |
2358 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
2359 | set X $ac_compile | |
2360 | ac_compiler=$2 | |
2361 | for ac_option in --version -v -V -qversion; do | |
2362 | { { ac_try="$ac_compiler $ac_option >&5" | |
2363 | case "(($ac_try" in | |
2364 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2365 | *) ac_try_echo=$ac_try;; | |
2366 | esac | |
2367 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2368 | $as_echo "$ac_try_echo"; } >&5 | |
2369 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
2370 | ac_status=$? | |
2371 | if test -s conftest.err; then | |
2372 | sed '10a\ | |
2373 | ... rest of stderr output deleted ... | |
2374 | 10q' conftest.err >conftest.er1 | |
2375 | cat conftest.er1 >&5 | |
2376 | fi | |
2377 | rm -f conftest.er1 conftest.err | |
2378 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2379 | test $ac_status = 0; } | |
2380 | done | |
2381 | ||
2382 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2383 | /* end confdefs.h. */ | |
2384 | ||
2385 | int | |
2386 | main () | |
2387 | { | |
2388 | ||
2389 | ; | |
2390 | return 0; | |
2391 | } | |
2392 | _ACEOF | |
2393 | ac_clean_files_save=$ac_clean_files | |
2394 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | |
2395 | # Try to create an executable without -o first, disregard a.out. | |
2396 | # It will help us diagnose broken compilers, and finding out an intuition | |
2397 | # of exeext. | |
2398 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | |
2399 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
2400 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
2401 | ||
2402 | # The possible output files: | |
2403 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
2404 | ||
2405 | ac_rmfiles= | |
2406 | for ac_file in $ac_files | |
2407 | do | |
2408 | case $ac_file in | |
2409 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
2410 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
2411 | esac | |
2412 | done | |
2413 | rm -f $ac_rmfiles | |
2414 | ||
2415 | if { { ac_try="$ac_link_default" | |
2416 | case "(($ac_try" in | |
2417 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2418 | *) ac_try_echo=$ac_try;; | |
2419 | esac | |
2420 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2421 | $as_echo "$ac_try_echo"; } >&5 | |
2422 | (eval "$ac_link_default") 2>&5 | |
2423 | ac_status=$? | |
2424 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2425 | test $ac_status = 0; }; then : | |
2426 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
2427 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2428 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2429 | # so that the user can short-circuit this test for compilers unknown to | |
2430 | # Autoconf. | |
2431 | for ac_file in $ac_files '' | |
2432 | do | |
2433 | test -f "$ac_file" || continue | |
2434 | case $ac_file in | |
2435 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
2436 | ;; | |
2437 | [ab].out ) | |
2438 | # We found the default executable, but exeext='' is most | |
2439 | # certainly right. | |
2440 | break;; | |
2441 | *.* ) | |
2442 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
2443 | then :; else | |
2444 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2445 | fi | |
2446 | # We set ac_cv_exeext here because the later test for it is not | |
2447 | # safe: cross compilers may not add the suffix if given an `-o' | |
2448 | # argument, so we may need to know it at that point already. | |
2449 | # Even if this section looks crufty: it has the advantage of | |
2450 | # actually working. | |
2451 | break;; | |
2452 | * ) | |
2453 | break;; | |
2454 | esac | |
2455 | done | |
2456 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
2457 | ||
2458 | else | |
2459 | ac_file='' | |
2460 | fi | |
2461 | if test -z "$ac_file"; then : | |
2462 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2463 | $as_echo "no" >&6; } | |
2464 | $as_echo "$as_me: failed program was:" >&5 | |
2465 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2466 | ||
2467 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2468 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2469 | as_fn_error 77 "C compiler cannot create executables | |
2470 | See \`config.log' for more details" "$LINENO" 5; } | |
2471 | else | |
2472 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
2473 | $as_echo "yes" >&6; } | |
2474 | fi | |
2475 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | |
2476 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
2477 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
2478 | $as_echo "$ac_file" >&6; } | |
2479 | ac_exeext=$ac_cv_exeext | |
2480 | ||
2481 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out | |
2482 | ac_clean_files=$ac_clean_files_save | |
2483 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
2484 | $as_echo_n "checking for suffix of executables... " >&6; } | |
2485 | if { { ac_try="$ac_link" | |
2486 | case "(($ac_try" in | |
2487 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2488 | *) ac_try_echo=$ac_try;; | |
2489 | esac | |
2490 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2491 | $as_echo "$ac_try_echo"; } >&5 | |
2492 | (eval "$ac_link") 2>&5 | |
2493 | ac_status=$? | |
2494 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2495 | test $ac_status = 0; }; then : | |
2496 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2497 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2498 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2499 | # `rm'. | |
2500 | for ac_file in conftest.exe conftest conftest.*; do | |
2501 | test -f "$ac_file" || continue | |
2502 | case $ac_file in | |
2503 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
2504 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2505 | break;; | |
2506 | * ) break;; | |
2507 | esac | |
2508 | done | |
2509 | else | |
2510 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2511 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2512 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link | |
2513 | See \`config.log' for more details" "$LINENO" 5; } | |
2514 | fi | |
2515 | rm -f conftest conftest$ac_cv_exeext | |
2516 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | |
2517 | $as_echo "$ac_cv_exeext" >&6; } | |
2518 | ||
2519 | rm -f conftest.$ac_ext | |
2520 | EXEEXT=$ac_cv_exeext | |
2521 | ac_exeext=$EXEEXT | |
2522 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2523 | /* end confdefs.h. */ | |
2524 | #include <stdio.h> | |
2525 | int | |
2526 | main () | |
2527 | { | |
2528 | FILE *f = fopen ("conftest.out", "w"); | |
2529 | return ferror (f) || fclose (f) != 0; | |
2530 | ||
2531 | ; | |
2532 | return 0; | |
2533 | } | |
2534 | _ACEOF | |
2535 | ac_clean_files="$ac_clean_files conftest.out" | |
2536 | # Check that the compiler produces executables we can run. If not, either | |
2537 | # the compiler is broken, or we cross compile. | |
2538 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
2539 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
2540 | if test "$cross_compiling" != yes; then | |
2541 | { { ac_try="$ac_link" | |
2542 | case "(($ac_try" in | |
2543 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2544 | *) ac_try_echo=$ac_try;; | |
2545 | esac | |
2546 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2547 | $as_echo "$ac_try_echo"; } >&5 | |
2548 | (eval "$ac_link") 2>&5 | |
2549 | ac_status=$? | |
2550 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2551 | test $ac_status = 0; } | |
2552 | if { ac_try='./conftest$ac_cv_exeext' | |
2553 | { { case "(($ac_try" in | |
2554 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2555 | *) ac_try_echo=$ac_try;; | |
2556 | esac | |
2557 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2558 | $as_echo "$ac_try_echo"; } >&5 | |
2559 | (eval "$ac_try") 2>&5 | |
2560 | ac_status=$? | |
2561 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2562 | test $ac_status = 0; }; }; then | |
2563 | cross_compiling=no | |
2564 | else | |
2565 | if test "$cross_compiling" = maybe; then | |
2566 | cross_compiling=yes | |
2567 | else | |
2568 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2569 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2570 | as_fn_error $? "cannot run C compiled programs. | |
2571 | If you meant to cross compile, use \`--host'. | |
2572 | See \`config.log' for more details" "$LINENO" 5; } | |
2573 | fi | |
2574 | fi | |
2575 | fi | |
2576 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
2577 | $as_echo "$cross_compiling" >&6; } | |
2578 | ||
2579 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
2580 | ac_clean_files=$ac_clean_files_save | |
2581 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | |
2582 | $as_echo_n "checking for suffix of object files... " >&6; } | |
2583 | if ${ac_cv_objext+:} false; then : | |
2584 | $as_echo_n "(cached) " >&6 | |
2585 | else | |
2586 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2587 | /* end confdefs.h. */ | |
2588 | ||
2589 | int | |
2590 | main () | |
2591 | { | |
2592 | ||
2593 | ; | |
2594 | return 0; | |
2595 | } | |
2596 | _ACEOF | |
2597 | rm -f conftest.o conftest.obj | |
2598 | if { { ac_try="$ac_compile" | |
2599 | case "(($ac_try" in | |
2600 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2601 | *) ac_try_echo=$ac_try;; | |
2602 | esac | |
2603 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2604 | $as_echo "$ac_try_echo"; } >&5 | |
2605 | (eval "$ac_compile") 2>&5 | |
2606 | ac_status=$? | |
2607 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2608 | test $ac_status = 0; }; then : | |
2609 | for ac_file in conftest.o conftest.obj conftest.*; do | |
2610 | test -f "$ac_file" || continue; | |
2611 | case $ac_file in | |
2612 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
2613 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
2614 | break;; | |
2615 | esac | |
2616 | done | |
2617 | else | |
2618 | $as_echo "$as_me: failed program was:" >&5 | |
2619 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2620 | ||
2621 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2622 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2623 | as_fn_error $? "cannot compute suffix of object files: cannot compile | |
2624 | See \`config.log' for more details" "$LINENO" 5; } | |
2625 | fi | |
2626 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
2627 | fi | |
2628 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | |
2629 | $as_echo "$ac_cv_objext" >&6; } | |
2630 | OBJEXT=$ac_cv_objext | |
2631 | ac_objext=$OBJEXT | |
2632 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
2633 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
2634 | if ${ac_cv_c_compiler_gnu+:} false; then : | |
2635 | $as_echo_n "(cached) " >&6 | |
2636 | else | |
2637 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2638 | /* end confdefs.h. */ | |
2639 | ||
2640 | int | |
2641 | main () | |
2642 | { | |
2643 | #ifndef __GNUC__ | |
2644 | choke me | |
2645 | #endif | |
2646 | ||
2647 | ; | |
2648 | return 0; | |
2649 | } | |
2650 | _ACEOF | |
2651 | if ac_fn_c_try_compile "$LINENO"; then : | |
2652 | ac_compiler_gnu=yes | |
2653 | else | |
2654 | ac_compiler_gnu=no | |
2655 | fi | |
2656 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2657 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
2658 | ||
2659 | fi | |
2660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
2661 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
2662 | if test $ac_compiler_gnu = yes; then | |
2663 | GCC=yes | |
2664 | else | |
2665 | GCC= | |
2666 | fi | |
2667 | ac_test_CFLAGS=${CFLAGS+set} | |
2668 | ac_save_CFLAGS=$CFLAGS | |
2669 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
2670 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
2671 | if ${ac_cv_prog_cc_g+:} false; then : | |
2672 | $as_echo_n "(cached) " >&6 | |
2673 | else | |
2674 | ac_save_c_werror_flag=$ac_c_werror_flag | |
2675 | ac_c_werror_flag=yes | |
2676 | ac_cv_prog_cc_g=no | |
2677 | CFLAGS="-g" | |
2678 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2679 | /* end confdefs.h. */ | |
2680 | ||
2681 | int | |
2682 | main () | |
2683 | { | |
2684 | ||
2685 | ; | |
2686 | return 0; | |
2687 | } | |
2688 | _ACEOF | |
2689 | if ac_fn_c_try_compile "$LINENO"; then : | |
2690 | ac_cv_prog_cc_g=yes | |
2691 | else | |
2692 | CFLAGS="" | |
2693 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2694 | /* end confdefs.h. */ | |
2695 | ||
2696 | int | |
2697 | main () | |
2698 | { | |
2699 | ||
2700 | ; | |
2701 | return 0; | |
2702 | } | |
2703 | _ACEOF | |
2704 | if ac_fn_c_try_compile "$LINENO"; then : | |
2705 | ||
2706 | else | |
2707 | ac_c_werror_flag=$ac_save_c_werror_flag | |
2708 | CFLAGS="-g" | |
2709 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2710 | /* end confdefs.h. */ | |
2711 | ||
2712 | int | |
2713 | main () | |
2714 | { | |
2715 | ||
2716 | ; | |
2717 | return 0; | |
2718 | } | |
2719 | _ACEOF | |
2720 | if ac_fn_c_try_compile "$LINENO"; then : | |
2721 | ac_cv_prog_cc_g=yes | |
2722 | fi | |
2723 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2724 | fi | |
2725 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2726 | fi | |
2727 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2728 | ac_c_werror_flag=$ac_save_c_werror_flag | |
2729 | fi | |
2730 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
2731 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
2732 | if test "$ac_test_CFLAGS" = set; then | |
2733 | CFLAGS=$ac_save_CFLAGS | |
2734 | elif test $ac_cv_prog_cc_g = yes; then | |
2735 | if test "$GCC" = yes; then | |
2736 | CFLAGS="-g -O2" | |
2737 | else | |
2738 | CFLAGS="-g" | |
2739 | fi | |
2740 | else | |
2741 | if test "$GCC" = yes; then | |
2742 | CFLAGS="-O2" | |
2743 | else | |
2744 | CFLAGS= | |
2745 | fi | |
2746 | fi | |
2747 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
2748 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
2749 | if ${ac_cv_prog_cc_c89+:} false; then : | |
2750 | $as_echo_n "(cached) " >&6 | |
2751 | else | |
2752 | ac_cv_prog_cc_c89=no | |
2753 | ac_save_CC=$CC | |
2754 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2755 | /* end confdefs.h. */ | |
2756 | #include <stdarg.h> | |
2757 | #include <stdio.h> | |
2758 | struct stat; | |
2759 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2760 | struct buf { int x; }; | |
2761 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2762 | static char *e (p, i) | |
2763 | char **p; | |
2764 | int i; | |
2765 | { | |
2766 | return p[i]; | |
2767 | } | |
2768 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2769 | { | |
2770 | char *s; | |
2771 | va_list v; | |
2772 | va_start (v,p); | |
2773 | s = g (p, va_arg (v,int)); | |
2774 | va_end (v); | |
2775 | return s; | |
2776 | } | |
2777 | ||
2778 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
2779 | function prototypes and stuff, but not '\xHH' hex character constants. | |
2780 | These don't provoke an error unfortunately, instead are silently treated | |
2781 | as 'x'. The following induces an error, until -std is added to get | |
2782 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
2783 | array size at least. It's necessary to write '\x00'==0 to get something | |
2784 | that's true only with -std. */ | |
2785 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
2786 | ||
2787 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
2788 | inside strings and character constants. */ | |
2789 | #define FOO(x) 'x' | |
2790 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
2791 | ||
2792 | int test (int i, double x); | |
2793 | struct s1 {int (*f) (int a);}; | |
2794 | struct s2 {int (*f) (double a);}; | |
2795 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2796 | int argc; | |
2797 | char **argv; | |
2798 | int | |
2799 | main () | |
2800 | { | |
2801 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
2802 | ; | |
2803 | return 0; | |
2804 | } | |
2805 | _ACEOF | |
2806 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
2807 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
2808 | do | |
2809 | CC="$ac_save_CC $ac_arg" | |
2810 | if ac_fn_c_try_compile "$LINENO"; then : | |
2811 | ac_cv_prog_cc_c89=$ac_arg | |
2812 | fi | |
2813 | rm -f core conftest.err conftest.$ac_objext | |
2814 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
2815 | done | |
2816 | rm -f conftest.$ac_ext | |
2817 | CC=$ac_save_CC | |
2818 | ||
2819 | fi | |
2820 | # AC_CACHE_VAL | |
2821 | case "x$ac_cv_prog_cc_c89" in | |
2822 | x) | |
2823 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
2824 | $as_echo "none needed" >&6; } ;; | |
2825 | xno) | |
2826 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
2827 | $as_echo "unsupported" >&6; } ;; | |
2828 | *) | |
2829 | CC="$CC $ac_cv_prog_cc_c89" | |
2830 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
2831 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
2832 | esac | |
2833 | if test "x$ac_cv_prog_cc_c89" != xno; then : | |
2834 | ||
2835 | fi | |
2836 | ||
2837 | ac_ext=c | |
2838 | ac_cpp='$CPP $CPPFLAGS' | |
2839 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2840 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2841 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2842 | ||
2843 | if test -n "$ac_tool_prefix"; then | |
2844 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
2845 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
2846 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2847 | $as_echo_n "checking for $ac_word... " >&6; } | |
2848 | if ${ac_cv_prog_RANLIB+:} false; then : | |
2849 | $as_echo_n "(cached) " >&6 | |
2850 | else | |
2851 | if test -n "$RANLIB"; then | |
2852 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
2853 | else | |
2854 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2855 | for as_dir in $PATH | |
2856 | do | |
2857 | IFS=$as_save_IFS | |
2858 | test -z "$as_dir" && as_dir=. | |
2859 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2860 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2861 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
2862 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2863 | break 2 | |
2864 | fi | |
2865 | done | |
2866 | done | |
2867 | IFS=$as_save_IFS | |
2868 | ||
2869 | fi | |
2870 | fi | |
2871 | RANLIB=$ac_cv_prog_RANLIB | |
2872 | if test -n "$RANLIB"; then | |
2873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
2874 | $as_echo "$RANLIB" >&6; } | |
2875 | else | |
2876 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2877 | $as_echo "no" >&6; } | |
2878 | fi | |
2879 | ||
2880 | ||
2881 | fi | |
2882 | if test -z "$ac_cv_prog_RANLIB"; then | |
2883 | ac_ct_RANLIB=$RANLIB | |
2884 | # Extract the first word of "ranlib", so it can be a program name with args. | |
2885 | set dummy ranlib; ac_word=$2 | |
2886 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2887 | $as_echo_n "checking for $ac_word... " >&6; } | |
2888 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : | |
2889 | $as_echo_n "(cached) " >&6 | |
2890 | else | |
2891 | if test -n "$ac_ct_RANLIB"; then | |
2892 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
2893 | else | |
2894 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2895 | for as_dir in $PATH | |
2896 | do | |
2897 | IFS=$as_save_IFS | |
2898 | test -z "$as_dir" && as_dir=. | |
2899 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2900 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2901 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
2902 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2903 | break 2 | |
2904 | fi | |
2905 | done | |
2906 | done | |
2907 | IFS=$as_save_IFS | |
2908 | ||
2909 | fi | |
2910 | fi | |
2911 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
2912 | if test -n "$ac_ct_RANLIB"; then | |
2913 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
2914 | $as_echo "$ac_ct_RANLIB" >&6; } | |
2915 | else | |
2916 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2917 | $as_echo "no" >&6; } | |
2918 | fi | |
2919 | ||
2920 | if test "x$ac_ct_RANLIB" = x; then | |
2921 | RANLIB=":" | |
2922 | else | |
2923 | case $cross_compiling:$ac_tool_warned in | |
2924 | yes:) | |
2925 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2926 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2927 | ac_tool_warned=yes ;; | |
2928 | esac | |
2929 | RANLIB=$ac_ct_RANLIB | |
2930 | fi | |
2931 | else | |
2932 | RANLIB="$ac_cv_prog_RANLIB" | |
2933 | fi | |
2934 | ||
2935 | # Extract the first word of "ginstall", so it can be a program name with args. | |
2936 | set dummy ginstall; ac_word=$2 | |
2937 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2938 | $as_echo_n "checking for $ac_word... " >&6; } | |
2939 | if ${ac_cv_prog_INSTALL+:} false; then : | |
2940 | $as_echo_n "(cached) " >&6 | |
2941 | else | |
2942 | if test -n "$INSTALL"; then | |
2943 | ac_cv_prog_INSTALL="$INSTALL" # Let the user override the test. | |
2944 | else | |
2945 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2946 | for as_dir in $PATH | |
2947 | do | |
2948 | IFS=$as_save_IFS | |
2949 | test -z "$as_dir" && as_dir=. | |
2950 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2951 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2952 | ac_cv_prog_INSTALL="ginstall" | |
2953 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2954 | break 2 | |
2955 | fi | |
2956 | done | |
2957 | done | |
2958 | IFS=$as_save_IFS | |
2959 | ||
2960 | fi | |
2961 | fi | |
2962 | INSTALL=$ac_cv_prog_INSTALL | |
2963 | if test -n "$INSTALL"; then | |
2964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | |
2965 | $as_echo "$INSTALL" >&6; } | |
2966 | else | |
2967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2968 | $as_echo "no" >&6; } | |
2969 | fi | |
2970 | ||
2971 | ||
2972 | # Extract the first word of "install", so it can be a program name with args. | |
2973 | set dummy install; ac_word=$2 | |
2974 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2975 | $as_echo_n "checking for $ac_word... " >&6; } | |
2976 | if ${ac_cv_prog_INSTALL+:} false; then : | |
2977 | $as_echo_n "(cached) " >&6 | |
2978 | else | |
2979 | if test -n "$INSTALL"; then | |
2980 | ac_cv_prog_INSTALL="$INSTALL" # Let the user override the test. | |
2981 | else | |
2982 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2983 | for as_dir in $PATH | |
2984 | do | |
2985 | IFS=$as_save_IFS | |
2986 | test -z "$as_dir" && as_dir=. | |
2987 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2988 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2989 | ac_cv_prog_INSTALL="install" | |
2990 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2991 | break 2 | |
2992 | fi | |
2993 | done | |
2994 | done | |
2995 | IFS=$as_save_IFS | |
2996 | ||
2997 | fi | |
2998 | fi | |
2999 | INSTALL=$ac_cv_prog_INSTALL | |
3000 | if test -n "$INSTALL"; then | |
3001 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | |
3002 | $as_echo "$INSTALL" >&6; } | |
3003 | else | |
3004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3005 | $as_echo "no" >&6; } | |
3006 | fi | |
3007 | ||
3008 | ||
3009 | # Extract the first word of "tar", so it can be a program name with args. | |
3010 | set dummy tar; ac_word=$2 | |
3011 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3012 | $as_echo_n "checking for $ac_word... " >&6; } | |
3013 | if ${ac_cv_prog_TAR+:} false; then : | |
3014 | $as_echo_n "(cached) " >&6 | |
3015 | else | |
3016 | if test -n "$TAR"; then | |
3017 | ac_cv_prog_TAR="$TAR" # Let the user override the test. | |
3018 | else | |
3019 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3020 | for as_dir in $PATH | |
3021 | do | |
3022 | IFS=$as_save_IFS | |
3023 | test -z "$as_dir" && as_dir=. | |
3024 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3025 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3026 | ac_cv_prog_TAR="tar" | |
3027 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3028 | break 2 | |
3029 | fi | |
3030 | done | |
3031 | done | |
3032 | IFS=$as_save_IFS | |
3033 | ||
3034 | fi | |
3035 | fi | |
3036 | TAR=$ac_cv_prog_TAR | |
3037 | if test -n "$TAR"; then | |
3038 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 | |
3039 | $as_echo "$TAR" >&6; } | |
3040 | else | |
3041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3042 | $as_echo "no" >&6; } | |
3043 | fi | |
3044 | ||
3045 | ||
3046 | ||
3047 | # | |
6 | 3048 | # Libraries for mbsePi-apps |
3049 | # | |
144
3446371e0bdb
Removed code dependencies to mosquitto and owfs
Michiel Broek <mbroek@mbse.eu>
parents:
142
diff
changeset
|
3050 | WIRINGPI=No |
3446371e0bdb
Removed code dependencies to mosquitto and owfs
Michiel Broek <mbroek@mbse.eu>
parents:
142
diff
changeset
|
3051 | |
3446371e0bdb
Removed code dependencies to mosquitto and owfs
Michiel Broek <mbroek@mbse.eu>
parents:
142
diff
changeset
|
3052 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wiringPiSetup in -lwiringPi" >&5 |
3446371e0bdb
Removed code dependencies to mosquitto and owfs
Michiel Broek <mbroek@mbse.eu>
parents:
142
diff
changeset
|
3053 | $as_echo_n "checking for wiringPiSetup in -lwiringPi... " >&6; } |
3446371e0bdb
Removed code dependencies to mosquitto and owfs
Michiel Broek <mbroek@mbse.eu>
parents:
142
diff
changeset
|
3054 | if ${ac_cv_lib_wiringPi_wiringPiSetup+:} false; then : |
6 | 3055 | $as_echo_n "(cached) " >&6 |
3056 | else | |
3057 | ac_check_lib_save_LIBS=$LIBS | |
144
3446371e0bdb
Removed code dependencies to mosquitto and owfs
Michiel Broek <mbroek@mbse.eu>
parents:
142
diff
changeset
|
3058 | LIBS="-lwiringPi $LIBS" |
6 | 3059 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3060 | /* end confdefs.h. */ | |
3061 | ||
3062 | /* Override any GCC internal prototype to avoid an error. | |
3063 | Use char because int might match the return type of a GCC | |
3064 | builtin and then its argument prototype would still apply. */ | |
3065 | #ifdef __cplusplus | |
3066 | extern "C" | |
3067 | #endif | |
144
3446371e0bdb
Removed code dependencies to mosquitto and owfs
Michiel Broek <mbroek@mbse.eu>
parents:
142
diff
changeset
|
3068 | char wiringPiSetup (); |
6 | 3069 | int |
3070 | main () | |
3071 | { | |
144
3446371e0bdb
Removed code dependencies to mosquitto and owfs
Michiel Broek <mbroek@mbse.eu>
parents:
142
diff
changeset
|
3072 | return wiringPiSetup (); |
6 | 3073 | ; |
3074 | return 0; | |
3075 | } | |
3076 | _ACEOF | |
3077 | if ac_fn_c_try_link "$LINENO"; then : | |
144
3446371e0bdb
Removed code dependencies to mosquitto and owfs
Michiel Broek <mbroek@mbse.eu>
parents:
142
diff
changeset
|
3078 | ac_cv_lib_wiringPi_wiringPiSetup=yes |
6 | 3079 | else |
144
3446371e0bdb
Removed code dependencies to mosquitto and owfs
Michiel Broek <mbroek@mbse.eu>
parents:
142
diff
changeset
|
3080 | ac_cv_lib_wiringPi_wiringPiSetup=no |
6 | 3081 | fi |
3082 | rm -f core conftest.err conftest.$ac_objext \ | |
3083 | conftest$ac_exeext conftest.$ac_ext | |
3084 | LIBS=$ac_check_lib_save_LIBS | |
3085 | fi | |
144
3446371e0bdb
Removed code dependencies to mosquitto and owfs
Michiel Broek <mbroek@mbse.eu>
parents:
142
diff
changeset
|
3086 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wiringPi_wiringPiSetup" >&5 |
3446371e0bdb
Removed code dependencies to mosquitto and owfs
Michiel Broek <mbroek@mbse.eu>
parents:
142
diff
changeset
|
3087 | $as_echo "$ac_cv_lib_wiringPi_wiringPiSetup" >&6; } |
3446371e0bdb
Removed code dependencies to mosquitto and owfs
Michiel Broek <mbroek@mbse.eu>
parents:
142
diff
changeset
|
3088 | if test "x$ac_cv_lib_wiringPi_wiringPiSetup" = xyes; then : |
6 | 3089 | result=yes |
3090 | else | |
3091 | result=no | |
3092 | fi | |
3093 | ||
3094 | if test "$result" = "yes"; then | |
144
3446371e0bdb
Removed code dependencies to mosquitto and owfs
Michiel Broek <mbroek@mbse.eu>
parents:
142
diff
changeset
|
3095 | LIBS="$LIBS -lwiringPi -lwiringPiDev" |
17
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3096 | ac_ext=c |
0 | 3097 | ac_cpp='$CPP $CPPFLAGS' |
3098 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3099 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3100 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3101 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
3102 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
3103 | # On Suns, sometimes $CPP names a directory. | |
3104 | if test -n "$CPP" && test -d "$CPP"; then | |
3105 | CPP= | |
3106 | fi | |
3107 | if test -z "$CPP"; then | |
3108 | if ${ac_cv_prog_CPP+:} false; then : | |
3109 | $as_echo_n "(cached) " >&6 | |
3110 | else | |
3111 | # Double quotes because CPP needs to be expanded | |
3112 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3113 | do | |
3114 | ac_preproc_ok=false | |
3115 | for ac_c_preproc_warn_flag in '' yes | |
3116 | do | |
3117 | # Use a header file that comes with gcc, so configuring glibc | |
3118 | # with a fresh cross-compiler works. | |
3119 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3120 | # <limits.h> exists even on freestanding compilers. | |
3121 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3122 | # not just through cpp. "Syntax error" is here to catch this case. | |
3123 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3124 | /* end confdefs.h. */ | |
3125 | #ifdef __STDC__ | |
3126 | # include <limits.h> | |
3127 | #else | |
3128 | # include <assert.h> | |
3129 | #endif | |
3130 | Syntax error | |
3131 | _ACEOF | |
3132 | if ac_fn_c_try_cpp "$LINENO"; then : | |
3133 | ||
3134 | else | |
3135 | # Broken: fails on valid input. | |
3136 | continue | |
3137 | fi | |
3138 | rm -f conftest.err conftest.i conftest.$ac_ext | |
3139 | ||
3140 | # OK, works on sane cases. Now check whether nonexistent headers | |
3141 | # can be detected and how. | |
3142 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3143 | /* end confdefs.h. */ | |
3144 | #include <ac_nonexistent.h> | |
3145 | _ACEOF | |
3146 | if ac_fn_c_try_cpp "$LINENO"; then : | |
3147 | # Broken: success on invalid input. | |
3148 | continue | |
3149 | else | |
3150 | # Passes both tests. | |
3151 | ac_preproc_ok=: | |
3152 | break | |
3153 | fi | |
3154 | rm -f conftest.err conftest.i conftest.$ac_ext | |
3155 | ||
3156 | done | |
3157 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3158 | rm -f conftest.i conftest.err conftest.$ac_ext | |
3159 | if $ac_preproc_ok; then : | |
3160 | break | |
3161 | fi | |
3162 | ||
3163 | done | |
3164 | ac_cv_prog_CPP=$CPP | |
3165 | ||
3166 | fi | |
3167 | CPP=$ac_cv_prog_CPP | |
3168 | else | |
3169 | ac_cv_prog_CPP=$CPP | |
3170 | fi | |
3171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
3172 | $as_echo "$CPP" >&6; } | |
3173 | ac_preproc_ok=false | |
3174 | for ac_c_preproc_warn_flag in '' yes | |
3175 | do | |
3176 | # Use a header file that comes with gcc, so configuring glibc | |
3177 | # with a fresh cross-compiler works. | |
3178 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3179 | # <limits.h> exists even on freestanding compilers. | |
3180 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3181 | # not just through cpp. "Syntax error" is here to catch this case. | |
3182 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3183 | /* end confdefs.h. */ | |
3184 | #ifdef __STDC__ | |
3185 | # include <limits.h> | |
3186 | #else | |
3187 | # include <assert.h> | |
3188 | #endif | |
3189 | Syntax error | |
3190 | _ACEOF | |
3191 | if ac_fn_c_try_cpp "$LINENO"; then : | |
3192 | ||
3193 | else | |
3194 | # Broken: fails on valid input. | |
3195 | continue | |
3196 | fi | |
3197 | rm -f conftest.err conftest.i conftest.$ac_ext | |
3198 | ||
3199 | # OK, works on sane cases. Now check whether nonexistent headers | |
3200 | # can be detected and how. | |
3201 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3202 | /* end confdefs.h. */ | |
3203 | #include <ac_nonexistent.h> | |
3204 | _ACEOF | |
3205 | if ac_fn_c_try_cpp "$LINENO"; then : | |
3206 | # Broken: success on invalid input. | |
3207 | continue | |
3208 | else | |
3209 | # Passes both tests. | |
3210 | ac_preproc_ok=: | |
3211 | break | |
3212 | fi | |
3213 | rm -f conftest.err conftest.i conftest.$ac_ext | |
3214 | ||
3215 | done | |
3216 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3217 | rm -f conftest.i conftest.err conftest.$ac_ext | |
3218 | if $ac_preproc_ok; then : | |
3219 | ||
3220 | else | |
3221 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3222 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3223 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | |
3224 | See \`config.log' for more details" "$LINENO" 5; } | |
3225 | fi | |
3226 | ||
3227 | ac_ext=c | |
3228 | ac_cpp='$CPP $CPPFLAGS' | |
3229 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3230 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3231 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3232 | ||
3233 | ||
3234 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | |
3235 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
3236 | if ${ac_cv_path_GREP+:} false; then : | |
3237 | $as_echo_n "(cached) " >&6 | |
3238 | else | |
3239 | if test -z "$GREP"; then | |
3240 | ac_path_GREP_found=false | |
3241 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3242 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3243 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3244 | do | |
3245 | IFS=$as_save_IFS | |
3246 | test -z "$as_dir" && as_dir=. | |
3247 | for ac_prog in grep ggrep; do | |
3248 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3249 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
3250 | as_fn_executable_p "$ac_path_GREP" || continue | |
3251 | # Check for GNU ac_path_GREP and select it if it is found. | |
3252 | # Check for GNU $ac_path_GREP | |
3253 | case `"$ac_path_GREP" --version 2>&1` in | |
3254 | *GNU*) | |
3255 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3256 | *) | |
3257 | ac_count=0 | |
3258 | $as_echo_n 0123456789 >"conftest.in" | |
3259 | while : | |
3260 | do | |
3261 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3262 | mv "conftest.tmp" "conftest.in" | |
3263 | cp "conftest.in" "conftest.nl" | |
3264 | $as_echo 'GREP' >> "conftest.nl" | |
3265 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3266 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3267 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3268 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3269 | # Best one so far, save it but keep looking for a better one | |
3270 | ac_cv_path_GREP="$ac_path_GREP" | |
3271 | ac_path_GREP_max=$ac_count | |
3272 | fi | |
3273 | # 10*(2^10) chars as input seems more than enough | |
3274 | test $ac_count -gt 10 && break | |
3275 | done | |
3276 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3277 | esac | |
3278 | ||
3279 | $ac_path_GREP_found && break 3 | |
3280 | done | |
3281 | done | |
3282 | done | |
3283 | IFS=$as_save_IFS | |
3284 | if test -z "$ac_cv_path_GREP"; then | |
3285 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
3286 | fi | |
3287 | else | |
3288 | ac_cv_path_GREP=$GREP | |
3289 | fi | |
3290 | ||
3291 | fi | |
3292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
3293 | $as_echo "$ac_cv_path_GREP" >&6; } | |
3294 | GREP="$ac_cv_path_GREP" | |
3295 | ||
3296 | ||
3297 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
3298 | $as_echo_n "checking for egrep... " >&6; } | |
3299 | if ${ac_cv_path_EGREP+:} false; then : | |
3300 | $as_echo_n "(cached) " >&6 | |
3301 | else | |
3302 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
3303 | then ac_cv_path_EGREP="$GREP -E" | |
3304 | else | |
3305 | if test -z "$EGREP"; then | |
3306 | ac_path_EGREP_found=false | |
3307 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3308 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3309 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3310 | do | |
3311 | IFS=$as_save_IFS | |
3312 | test -z "$as_dir" && as_dir=. | |
3313 | for ac_prog in egrep; do | |
3314 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3315 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
3316 | as_fn_executable_p "$ac_path_EGREP" || continue | |
3317 | # Check for GNU ac_path_EGREP and select it if it is found. | |
3318 | # Check for GNU $ac_path_EGREP | |
3319 | case `"$ac_path_EGREP" --version 2>&1` in | |
3320 | *GNU*) | |
3321 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
3322 | *) | |
3323 | ac_count=0 | |
3324 | $as_echo_n 0123456789 >"conftest.in" | |
3325 | while : | |
3326 | do | |
3327 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3328 | mv "conftest.tmp" "conftest.in" | |
3329 | cp "conftest.in" "conftest.nl" | |
3330 | $as_echo 'EGREP' >> "conftest.nl" | |
3331 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3332 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3333 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3334 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
3335 | # Best one so far, save it but keep looking for a better one | |
3336 | ac_cv_path_EGREP="$ac_path_EGREP" | |
3337 | ac_path_EGREP_max=$ac_count | |
3338 | fi | |
3339 | # 10*(2^10) chars as input seems more than enough | |
3340 | test $ac_count -gt 10 && break | |
3341 | done | |
3342 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3343 | esac | |
3344 | ||
3345 | $ac_path_EGREP_found && break 3 | |
3346 | done | |
3347 | done | |
3348 | done | |
3349 | IFS=$as_save_IFS | |
3350 | if test -z "$ac_cv_path_EGREP"; then | |
3351 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
3352 | fi | |
3353 | else | |
3354 | ac_cv_path_EGREP=$EGREP | |
3355 | fi | |
3356 | ||
3357 | fi | |
3358 | fi | |
3359 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
3360 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
3361 | EGREP="$ac_cv_path_EGREP" | |
3362 | ||
3363 | ||
3364 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
3365 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
3366 | if ${ac_cv_header_stdc+:} false; then : | |
3367 | $as_echo_n "(cached) " >&6 | |
3368 | else | |
3369 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3370 | /* end confdefs.h. */ | |
3371 | #include <stdlib.h> | |
3372 | #include <stdarg.h> | |
3373 | #include <string.h> | |
3374 | #include <float.h> | |
3375 | ||
3376 | int | |
3377 | main () | |
3378 | { | |
3379 | ||
3380 | ; | |
3381 | return 0; | |
3382 | } | |
3383 | _ACEOF | |
3384 | if ac_fn_c_try_compile "$LINENO"; then : | |
3385 | ac_cv_header_stdc=yes | |
3386 | else | |
3387 | ac_cv_header_stdc=no | |
3388 | fi | |
3389 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3390 | ||
3391 | if test $ac_cv_header_stdc = yes; then | |
3392 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
3393 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3394 | /* end confdefs.h. */ | |
3395 | #include <string.h> | |
3396 | ||
3397 | _ACEOF | |
3398 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3399 | $EGREP "memchr" >/dev/null 2>&1; then : | |
3400 | ||
3401 | else | |
3402 | ac_cv_header_stdc=no | |
3403 | fi | |
3404 | rm -f conftest* | |
3405 | ||
3406 | fi | |
3407 | ||
3408 | if test $ac_cv_header_stdc = yes; then | |
3409 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
3410 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3411 | /* end confdefs.h. */ | |
3412 | #include <stdlib.h> | |
3413 | ||
3414 | _ACEOF | |
3415 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3416 | $EGREP "free" >/dev/null 2>&1; then : | |
3417 | ||
3418 | else | |
3419 | ac_cv_header_stdc=no | |
3420 | fi | |
3421 | rm -f conftest* | |
3422 | ||
3423 | fi | |
3424 | ||
3425 | if test $ac_cv_header_stdc = yes; then | |
3426 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
3427 | if test "$cross_compiling" = yes; then : | |
3428 | : | |
3429 | else | |
3430 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3431 | /* end confdefs.h. */ | |
3432 | #include <ctype.h> | |
3433 | #include <stdlib.h> | |
3434 | #if ((' ' & 0x0FF) == 0x020) | |
3435 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
3436 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
3437 | #else | |
3438 | # define ISLOWER(c) \ | |
3439 | (('a' <= (c) && (c) <= 'i') \ | |
3440 | || ('j' <= (c) && (c) <= 'r') \ | |
3441 | || ('s' <= (c) && (c) <= 'z')) | |
3442 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
3443 | #endif | |
3444 | ||
3445 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
3446 | int | |
3447 | main () | |
3448 | { | |
3449 | int i; | |
3450 | for (i = 0; i < 256; i++) | |
3451 | if (XOR (islower (i), ISLOWER (i)) | |
3452 | || toupper (i) != TOUPPER (i)) | |
3453 | return 2; | |
3454 | return 0; | |
3455 | } | |
3456 | _ACEOF | |
3457 | if ac_fn_c_try_run "$LINENO"; then : | |
3458 | ||
3459 | else | |
3460 | ac_cv_header_stdc=no | |
3461 | fi | |
3462 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
3463 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
3464 | fi | |
3465 | ||
3466 | fi | |
3467 | fi | |
3468 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
3469 | $as_echo "$ac_cv_header_stdc" >&6; } | |
3470 | if test $ac_cv_header_stdc = yes; then | |
3471 | ||
3472 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
3473 | ||
3474 | fi | |
3475 | ||
17
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3476 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3477 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3478 | inttypes.h stdint.h unistd.h |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3479 | do : |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3480 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3481 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3482 | " |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3483 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3484 | cat >>confdefs.h <<_ACEOF |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3485 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3486 | _ACEOF |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3487 | |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3488 | fi |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3489 | |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3490 | done |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3491 | |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3492 | |
144
3446371e0bdb
Removed code dependencies to mosquitto and owfs
Michiel Broek <mbroek@mbse.eu>
parents:
142
diff
changeset
|
3493 | for ac_header in wiringPi.h |
17
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3494 | do : |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3495 | ac_fn_c_check_header_mongrel "$LINENO" "wiringPi.h" "ac_cv_header_wiringPi_h" "$ac_includes_default" |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3496 | if test "x$ac_cv_header_wiringPi_h" = xyes; then : |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3497 | cat >>confdefs.h <<_ACEOF |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3498 | #define HAVE_WIRINGPI_H 1 |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3499 | _ACEOF |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3500 | WIRINGPI=Yes |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3501 | else |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3502 | WIRINGPI=No |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3503 | fi |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3504 | |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3505 | done |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3506 | |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3507 | fi |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3508 | |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3509 | # |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3510 | # Additional commandline switches |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3511 | # |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3512 | # Check whether --enable-experiment was given. |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3513 | if test "${enable_experiment+set}" = set; then : |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3514 | enableval=$enable_experiment; experiment=$enableval |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3515 | else |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3516 | experiment=no |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3517 | fi |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3518 | |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3519 | if test "$experiment" = "yes"; then |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3520 | $as_echo "#define USE_EXPERIMENT 1" >>confdefs.h |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3521 | |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3522 | fi |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3523 | |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3524 | # Check whether --enable-debugging was given. |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3525 | if test "${enable_debugging+set}" = set; then : |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3526 | enableval=$enable_debugging; debugging=$enableval |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3527 | else |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3528 | debugging=no |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3529 | fi |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3530 | |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3531 | if test "$debugging" = "yes"; then |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3532 | CFLAGS="-O -g -Wall -Wshadow -Wwrite-strings -Wstrict-prototypes -Winline" |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3533 | else |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3534 | CFLAGS="-g -O2 -fomit-frame-pointer -fno-strict-aliasing -Wall -Wshadow -Wwrite-strings -Wstrict-prototypes -Winline" |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3535 | fi |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3536 | |
57
a76dc0db592c
Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents:
51
diff
changeset
|
3537 | |
a76dc0db592c
Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents:
51
diff
changeset
|
3538 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseFile in -lxml2" >&5 |
a76dc0db592c
Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents:
51
diff
changeset
|
3539 | $as_echo_n "checking for xmlParseFile in -lxml2... " >&6; } |
a76dc0db592c
Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents:
51
diff
changeset
|
3540 | if ${ac_cv_lib_xml2_xmlParseFile+:} false; then : |
a76dc0db592c
Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents:
51
diff
changeset
|
3541 | $as_echo_n "(cached) " >&6 |
a76dc0db592c
Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents:
51
diff
changeset
|
3542 | else |
a76dc0db592c
Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents:
51
diff
changeset
|
3543 | ac_check_lib_save_LIBS=$LIBS |
a76dc0db592c
Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents:
51
diff
changeset
|
3544 | LIBS="-lxml2 $LIBS" |
a76dc0db592c
Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents:
51
diff
changeset
|
3545 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a76dc0db592c
Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents:
51
diff
changeset
|
3546 | /* end confdefs.h. */ |
a76dc0db592c
Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents:
51
diff
changeset
|
3547 | |
a76dc0db592c
Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents:
51
diff
changeset
|
3548 | /* Override any GCC internal prototype to avoid an error. |
a76dc0db592c
Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents:
51
diff
changeset
|
3549 | Use char because int might match the return type of a GCC |
a76dc0db592c
Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents:
51
diff
changeset
|
3550 | builtin and then its argument prototype would still apply. */ |
a76dc0db592c
Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents:
51
diff
changeset
|
3551 | #ifdef __cplusplus |
a76dc0db592c
Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents:
51
diff
changeset
|
3552 | extern "C" |
a76dc0db592c
Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents:
51
diff
changeset
|
3553 | #endif |
a76dc0db592c
Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents:
51
diff
changeset
|
3554 | char xmlParseFile (); |
a76dc0db592c
Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents:
51
diff
changeset
|
3555 | int |
a76dc0db592c
Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents:
51
diff
changeset
|
3556 | main () |
a76dc0db592c
Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents:
51
diff
changeset
|
3557 | { |
a76dc0db592c
Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents:
51
diff
changeset
|
3558 | return xmlParseFile (); |
a76dc0db592c
Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents:
51
diff
changeset
|
3559 | ; |
a76dc0db592c
Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents:
51
diff
changeset
|
3560 | return 0; |
a76dc0db592c
Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents:
51
diff
changeset
|
3561 | } |
a76dc0db592c
Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents:
51
diff
changeset
|
3562 | _ACEOF |
a76dc0db592c
Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents:
51
diff
changeset
|
3563 | if ac_fn_c_try_link "$LINENO"; then : |
a76dc0db592c
Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents:
51
diff
changeset
|
3564 | ac_cv_lib_xml2_xmlParseFile=yes |
a76dc0db592c
Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents:
51
diff
changeset
|
3565 | else |
a76dc0db592c
Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents:
51
diff
changeset
|
3566 | ac_cv_lib_xml2_xmlParseFile=no |
a76dc0db592c
Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents:
51
diff
changeset
|
3567 | fi |
a76dc0db592c
Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents:
51
diff
changeset
|
3568 | rm -f core conftest.err conftest.$ac_objext \ |
a76dc0db592c
Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents:
51
diff
changeset
|
3569 | conftest$ac_exeext conftest.$ac_ext |
a76dc0db592c
Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents:
51
diff
changeset
|
3570 | LIBS=$ac_check_lib_save_LIBS |
a76dc0db592c
Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents:
51
diff
changeset
|
3571 | fi |
a76dc0db592c
Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents:
51
diff
changeset
|
3572 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseFile" >&5 |
a76dc0db592c
Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents:
51
diff
changeset
|
3573 | $as_echo "$ac_cv_lib_xml2_xmlParseFile" >&6; } |
a76dc0db592c
Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents:
51
diff
changeset
|
3574 | if test "x$ac_cv_lib_xml2_xmlParseFile" = xyes; then : |
a76dc0db592c
Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents:
51
diff
changeset
|
3575 | result=yes |
a76dc0db592c
Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents:
51
diff
changeset
|
3576 | else |
a76dc0db592c
Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents:
51
diff
changeset
|
3577 | result=no |
a76dc0db592c
Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents:
51
diff
changeset
|
3578 | fi |
a76dc0db592c
Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents:
51
diff
changeset
|
3579 | |
a76dc0db592c
Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents:
51
diff
changeset
|
3580 | if test "$result" = "yes"; then |
a76dc0db592c
Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents:
51
diff
changeset
|
3581 | LIBS="$LIBS -lxml2" |
a76dc0db592c
Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents:
51
diff
changeset
|
3582 | CFLAGS="$CFLAGS $(xml2-config --cflags)" |
a76dc0db592c
Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents:
51
diff
changeset
|
3583 | for ac_header in libxml/xmlmemory.h |
a76dc0db592c
Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents:
51
diff
changeset
|
3584 | do : |
a76dc0db592c
Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents:
51
diff
changeset
|
3585 | ac_fn_c_check_header_mongrel "$LINENO" "libxml/xmlmemory.h" "ac_cv_header_libxml_xmlmemory_h" "$ac_includes_default" |
a76dc0db592c
Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents:
51
diff
changeset
|
3586 | if test "x$ac_cv_header_libxml_xmlmemory_h" = xyes; then : |
a76dc0db592c
Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents:
51
diff
changeset
|
3587 | cat >>confdefs.h <<_ACEOF |
a76dc0db592c
Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents:
51
diff
changeset
|
3588 | #define HAVE_LIBXML_XMLMEMORY_H 1 |
a76dc0db592c
Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents:
51
diff
changeset
|
3589 | _ACEOF |
79 | 3590 | |
57
a76dc0db592c
Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents:
51
diff
changeset
|
3591 | fi |
a76dc0db592c
Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents:
51
diff
changeset
|
3592 | |
a76dc0db592c
Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents:
51
diff
changeset
|
3593 | done |
a76dc0db592c
Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents:
51
diff
changeset
|
3594 | |
75
4b976601737d
Writes a basic xml configuration next to the plain ascii config file
Michiel Broek <mbroek@mbse.eu>
parents:
57
diff
changeset
|
3595 | else |
4b976601737d
Writes a basic xml configuration next to the plain ascii config file
Michiel Broek <mbroek@mbse.eu>
parents:
57
diff
changeset
|
3596 | as_fn_error $? "libxml2 not found" "$LINENO" 5 |
57
a76dc0db592c
Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents:
51
diff
changeset
|
3597 | fi |
a76dc0db592c
Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents:
51
diff
changeset
|
3598 | |
79 | 3599 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5 |
3600 | $as_echo_n "checking for uuid_generate in -luuid... " >&6; } | |
3601 | if ${ac_cv_lib_uuid_uuid_generate+:} false; then : | |
3602 | $as_echo_n "(cached) " >&6 | |
3603 | else | |
3604 | ac_check_lib_save_LIBS=$LIBS | |
3605 | LIBS="-luuid $LIBS" | |
3606 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3607 | /* end confdefs.h. */ | |
3608 | ||
3609 | /* Override any GCC internal prototype to avoid an error. | |
3610 | Use char because int might match the return type of a GCC | |
3611 | builtin and then its argument prototype would still apply. */ | |
3612 | #ifdef __cplusplus | |
3613 | extern "C" | |
3614 | #endif | |
3615 | char uuid_generate (); | |
3616 | int | |
3617 | main () | |
3618 | { | |
3619 | return uuid_generate (); | |
3620 | ; | |
3621 | return 0; | |
3622 | } | |
3623 | _ACEOF | |
3624 | if ac_fn_c_try_link "$LINENO"; then : | |
3625 | ac_cv_lib_uuid_uuid_generate=yes | |
3626 | else | |
3627 | ac_cv_lib_uuid_uuid_generate=no | |
3628 | fi | |
3629 | rm -f core conftest.err conftest.$ac_objext \ | |
3630 | conftest$ac_exeext conftest.$ac_ext | |
3631 | LIBS=$ac_check_lib_save_LIBS | |
3632 | fi | |
3633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5 | |
3634 | $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; } | |
3635 | if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then : | |
3636 | result=yes | |
3637 | else | |
3638 | result=no | |
3639 | fi | |
3640 | ||
3641 | if test "$result" = "yes"; then | |
3642 | LIBS="$LIBS $(pkg-config --libs uuid)" | |
3643 | CFLAGS="$CFLAGS $(pkg-config --cflags uuid)" | |
3644 | for ac_header in uuid/uuid.h | |
3645 | do : | |
3646 | ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default" | |
3647 | if test "x$ac_cv_header_uuid_uuid_h" = xyes; then : | |
3648 | cat >>confdefs.h <<_ACEOF | |
3649 | #define HAVE_UUID_UUID_H 1 | |
3650 | _ACEOF | |
3651 | ||
3652 | fi | |
3653 | ||
3654 | done | |
3655 | ||
3656 | else | |
3657 | as_fn_error $? "libuuid not found" "$LINENO" 5 | |
3658 | fi | |
57
a76dc0db592c
Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents:
51
diff
changeset
|
3659 | |
a76dc0db592c
Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents:
51
diff
changeset
|
3660 | |
17
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3661 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3662 | $as_echo_n "checking for ANSI C header files... " >&6; } |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3663 | if ${ac_cv_header_stdc+:} false; then : |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3664 | $as_echo_n "(cached) " >&6 |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3665 | else |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3666 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3667 | /* end confdefs.h. */ |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3668 | #include <stdlib.h> |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3669 | #include <stdarg.h> |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3670 | #include <string.h> |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3671 | #include <float.h> |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3672 | |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3673 | int |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3674 | main () |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3675 | { |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3676 | |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3677 | ; |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3678 | return 0; |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3679 | } |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3680 | _ACEOF |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3681 | if ac_fn_c_try_compile "$LINENO"; then : |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3682 | ac_cv_header_stdc=yes |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3683 | else |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3684 | ac_cv_header_stdc=no |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3685 | fi |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3686 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3687 | |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3688 | if test $ac_cv_header_stdc = yes; then |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3689 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3690 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3691 | /* end confdefs.h. */ |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3692 | #include <string.h> |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3693 | |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3694 | _ACEOF |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3695 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3696 | $EGREP "memchr" >/dev/null 2>&1; then : |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3697 | |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3698 | else |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3699 | ac_cv_header_stdc=no |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3700 | fi |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3701 | rm -f conftest* |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3702 | |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3703 | fi |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3704 | |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3705 | if test $ac_cv_header_stdc = yes; then |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3706 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3707 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3708 | /* end confdefs.h. */ |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3709 | #include <stdlib.h> |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3710 | |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3711 | _ACEOF |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3712 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3713 | $EGREP "free" >/dev/null 2>&1; then : |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3714 | |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3715 | else |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3716 | ac_cv_header_stdc=no |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3717 | fi |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3718 | rm -f conftest* |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3719 | |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3720 | fi |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3721 | |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3722 | if test $ac_cv_header_stdc = yes; then |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3723 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3724 | if test "$cross_compiling" = yes; then : |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3725 | : |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3726 | else |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3727 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3728 | /* end confdefs.h. */ |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3729 | #include <ctype.h> |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3730 | #include <stdlib.h> |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3731 | #if ((' ' & 0x0FF) == 0x020) |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3732 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3733 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3734 | #else |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3735 | # define ISLOWER(c) \ |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3736 | (('a' <= (c) && (c) <= 'i') \ |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3737 | || ('j' <= (c) && (c) <= 'r') \ |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3738 | || ('s' <= (c) && (c) <= 'z')) |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3739 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3740 | #endif |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3741 | |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3742 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3743 | int |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3744 | main () |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3745 | { |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3746 | int i; |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3747 | for (i = 0; i < 256; i++) |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3748 | if (XOR (islower (i), ISLOWER (i)) |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3749 | || toupper (i) != TOUPPER (i)) |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3750 | return 2; |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3751 | return 0; |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3752 | } |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3753 | _ACEOF |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3754 | if ac_fn_c_try_run "$LINENO"; then : |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3755 | |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3756 | else |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3757 | ac_cv_header_stdc=no |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3758 | fi |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3759 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3760 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3761 | fi |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3762 | |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3763 | fi |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3764 | fi |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3766 | $as_echo "$ac_cv_header_stdc" >&6; } |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3767 | if test $ac_cv_header_stdc = yes; then |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3768 | |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3769 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3770 | |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3771 | fi |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3772 | |
0 | 3773 | |
3774 | ||
3775 | ||
3776 | ||
3777 | ac_config_files="$ac_config_files Makefile.global" | |
3778 | ||
3779 | cat >confcache <<\_ACEOF | |
3780 | # This file is a shell script that caches the results of configure | |
3781 | # tests run on this system so they can be shared between configure | |
3782 | # scripts and configure runs, see configure's option --config-cache. | |
3783 | # It is not useful on other systems. If it contains results you don't | |
3784 | # want to keep, you may remove or edit it. | |
3785 | # | |
3786 | # config.status only pays attention to the cache file if you give it | |
3787 | # the --recheck option to rerun configure. | |
3788 | # | |
3789 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
3790 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
3791 | # following values. | |
3792 | ||
3793 | _ACEOF | |
3794 | ||
3795 | # The following way of writing the cache mishandles newlines in values, | |
3796 | # but we know of no workaround that is simple, portable, and efficient. | |
3797 | # So, we kill variables containing newlines. | |
3798 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
3799 | # and sets the high bit in the cache file unless we assign to the vars. | |
3800 | ( | |
3801 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
3802 | eval ac_val=\$$ac_var | |
3803 | case $ac_val in #( | |
3804 | *${as_nl}*) | |
3805 | case $ac_var in #( | |
3806 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
3807 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
3808 | esac | |
3809 | case $ac_var in #( | |
3810 | _ | IFS | as_nl) ;; #( | |
3811 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
3812 | *) { eval $ac_var=; unset $ac_var;} ;; | |
3813 | esac ;; | |
3814 | esac | |
3815 | done | |
3816 | ||
3817 | (set) 2>&1 | | |
3818 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
3819 | *${as_nl}ac_space=\ *) | |
3820 | # `set' does not quote correctly, so add quotes: double-quote | |
3821 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
3822 | sed -n \ | |
3823 | "s/'/'\\\\''/g; | |
3824 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
3825 | ;; #( | |
3826 | *) | |
3827 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
3828 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
3829 | ;; | |
3830 | esac | | |
3831 | sort | |
3832 | ) | | |
3833 | sed ' | |
3834 | /^ac_cv_env_/b end | |
3835 | t clear | |
3836 | :clear | |
3837 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
3838 | t end | |
3839 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
3840 | :end' >>confcache | |
3841 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
3842 | if test -w "$cache_file"; then | |
3843 | if test "x$cache_file" != "x/dev/null"; then | |
3844 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
3845 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
3846 | if test ! -f "$cache_file" || test -h "$cache_file"; then | |
3847 | cat confcache >"$cache_file" | |
3848 | else | |
3849 | case $cache_file in #( | |
3850 | */* | ?:*) | |
3851 | mv -f confcache "$cache_file"$$ && | |
3852 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
3853 | *) | |
3854 | mv -f confcache "$cache_file" ;; | |
3855 | esac | |
3856 | fi | |
3857 | fi | |
3858 | else | |
3859 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | |
3860 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
3861 | fi | |
3862 | fi | |
3863 | rm -f confcache | |
3864 | ||
3865 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
3866 | # Let make expand exec_prefix. | |
3867 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
3868 | ||
2 | 3869 | DEFS=-DHAVE_CONFIG_H |
0 | 3870 | |
3871 | ac_libobjs= | |
3872 | ac_ltlibobjs= | |
3873 | U= | |
3874 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
3875 | # 1. Remove the extension, and $U if already installed. | |
3876 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
3877 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
3878 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
3879 | # will be set to the directory where LIBOBJS objects are built. | |
3880 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
3881 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
3882 | done | |
3883 | LIBOBJS=$ac_libobjs | |
3884 | ||
3885 | LTLIBOBJS=$ac_ltlibobjs | |
3886 | ||
3887 | ||
3888 | ||
3889 | : "${CONFIG_STATUS=./config.status}" | |
3890 | ac_write_fail=0 | |
3891 | ac_clean_files_save=$ac_clean_files | |
3892 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
3893 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | |
3894 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
3895 | as_write_fail=0 | |
3896 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
3897 | #! $SHELL | |
3898 | # Generated by $as_me. | |
3899 | # Run this file to recreate the current configuration. | |
3900 | # Compiler output produced by configure, useful for debugging | |
3901 | # configure, is in config.log if it exists. | |
3902 | ||
3903 | debug=false | |
3904 | ac_cs_recheck=false | |
3905 | ac_cs_silent=false | |
3906 | ||
3907 | SHELL=\${CONFIG_SHELL-$SHELL} | |
3908 | export SHELL | |
3909 | _ASEOF | |
3910 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
3911 | ## -------------------- ## | |
3912 | ## M4sh Initialization. ## | |
3913 | ## -------------------- ## | |
3914 | ||
3915 | # Be more Bourne compatible | |
3916 | DUALCASE=1; export DUALCASE # for MKS sh | |
3917 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
3918 | emulate sh | |
3919 | NULLCMD=: | |
3920 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
3921 | # is contrary to our usage. Disable this feature. | |
3922 | alias -g '${1+"$@"}'='"$@"' | |
3923 | setopt NO_GLOB_SUBST | |
3924 | else | |
3925 | case `(set -o) 2>/dev/null` in #( | |
3926 | *posix*) : | |
3927 | set -o posix ;; #( | |
3928 | *) : | |
3929 | ;; | |
3930 | esac | |
3931 | fi | |
3932 | ||
3933 | ||
3934 | as_nl=' | |
3935 | ' | |
3936 | export as_nl | |
3937 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
3938 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
3939 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
3940 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
3941 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
3942 | # but without wasting forks for bash or zsh. | |
3943 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
3944 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
3945 | as_echo='print -r --' | |
3946 | as_echo_n='print -rn --' | |
3947 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
3948 | as_echo='printf %s\n' | |
3949 | as_echo_n='printf %s' | |
3950 | else | |
3951 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
3952 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
3953 | as_echo_n='/usr/ucb/echo -n' | |
3954 | else | |
3955 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
3956 | as_echo_n_body='eval | |
3957 | arg=$1; | |
3958 | case $arg in #( | |
3959 | *"$as_nl"*) | |
3960 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
3961 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
3962 | esac; | |
3963 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
3964 | ' | |
3965 | export as_echo_n_body | |
3966 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
3967 | fi | |
3968 | export as_echo_body | |
3969 | as_echo='sh -c $as_echo_body as_echo' | |
3970 | fi | |
3971 | ||
3972 | # The user is always right. | |
3973 | if test "${PATH_SEPARATOR+set}" != set; then | |
3974 | PATH_SEPARATOR=: | |
3975 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
3976 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
3977 | PATH_SEPARATOR=';' | |
3978 | } | |
3979 | fi | |
3980 | ||
3981 | ||
3982 | # IFS | |
3983 | # We need space, tab and new line, in precisely that order. Quoting is | |
3984 | # there to prevent editors from complaining about space-tab. | |
3985 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
3986 | # splitting by setting IFS to empty value.) | |
3987 | IFS=" "" $as_nl" | |
3988 | ||
3989 | # Find who we are. Look in the path if we contain no directory separator. | |
3990 | as_myself= | |
3991 | case $0 in #(( | |
3992 | *[\\/]* ) as_myself=$0 ;; | |
3993 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3994 | for as_dir in $PATH | |
3995 | do | |
3996 | IFS=$as_save_IFS | |
3997 | test -z "$as_dir" && as_dir=. | |
3998 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
3999 | done | |
4000 | IFS=$as_save_IFS | |
4001 | ||
4002 | ;; | |
4003 | esac | |
4004 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
4005 | # in which case we are not to be found in the path. | |
4006 | if test "x$as_myself" = x; then | |
4007 | as_myself=$0 | |
4008 | fi | |
4009 | if test ! -f "$as_myself"; then | |
4010 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
4011 | exit 1 | |
4012 | fi | |
4013 | ||
4014 | # Unset variables that we do not need and which cause bugs (e.g. in | |
4015 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
4016 | # suppresses any "Segmentation fault" message there. '((' could | |
4017 | # trigger a bug in pdksh 5.2.14. | |
4018 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
4019 | do eval test x\${$as_var+set} = xset \ | |
4020 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
4021 | done | |
4022 | PS1='$ ' | |
4023 | PS2='> ' | |
4024 | PS4='+ ' | |
4025 | ||
4026 | # NLS nuisances. | |
4027 | LC_ALL=C | |
4028 | export LC_ALL | |
4029 | LANGUAGE=C | |
4030 | export LANGUAGE | |
4031 | ||
4032 | # CDPATH. | |
4033 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
4034 | ||
4035 | ||
4036 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
4037 | # ---------------------------------------- | |
4038 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
4039 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
4040 | # script with STATUS, using 1 if that was 0. | |
4041 | as_fn_error () | |
4042 | { | |
4043 | as_status=$1; test $as_status -eq 0 && as_status=1 | |
4044 | if test "$4"; then | |
4045 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
4046 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
4047 | fi | |
4048 | $as_echo "$as_me: error: $2" >&2 | |
4049 | as_fn_exit $as_status | |
4050 | } # as_fn_error | |
4051 | ||
4052 | ||
4053 | # as_fn_set_status STATUS | |
4054 | # ----------------------- | |
4055 | # Set $? to STATUS, without forking. | |
4056 | as_fn_set_status () | |
4057 | { | |
4058 | return $1 | |
4059 | } # as_fn_set_status | |
4060 | ||
4061 | # as_fn_exit STATUS | |
4062 | # ----------------- | |
4063 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
4064 | as_fn_exit () | |
4065 | { | |
4066 | set +e | |
4067 | as_fn_set_status $1 | |
4068 | exit $1 | |
4069 | } # as_fn_exit | |
4070 | ||
4071 | # as_fn_unset VAR | |
4072 | # --------------- | |
4073 | # Portably unset VAR. | |
4074 | as_fn_unset () | |
4075 | { | |
4076 | { eval $1=; unset $1;} | |
4077 | } | |
4078 | as_unset=as_fn_unset | |
4079 | # as_fn_append VAR VALUE | |
4080 | # ---------------------- | |
4081 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
4082 | # advantage of any shell optimizations that allow amortized linear growth over | |
4083 | # repeated appends, instead of the typical quadratic growth present in naive | |
4084 | # implementations. | |
4085 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
4086 | eval 'as_fn_append () | |
4087 | { | |
4088 | eval $1+=\$2 | |
4089 | }' | |
4090 | else | |
4091 | as_fn_append () | |
4092 | { | |
4093 | eval $1=\$$1\$2 | |
4094 | } | |
4095 | fi # as_fn_append | |
4096 | ||
4097 | # as_fn_arith ARG... | |
4098 | # ------------------ | |
4099 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
4100 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
4101 | # must be portable across $(()) and expr. | |
4102 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
4103 | eval 'as_fn_arith () | |
4104 | { | |
4105 | as_val=$(( $* )) | |
4106 | }' | |
4107 | else | |
4108 | as_fn_arith () | |
4109 | { | |
4110 | as_val=`expr "$@" || test $? -eq 1` | |
4111 | } | |
4112 | fi # as_fn_arith | |
4113 | ||
4114 | ||
4115 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
4116 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
4117 | as_expr=expr | |
4118 | else | |
4119 | as_expr=false | |
4120 | fi | |
4121 | ||
4122 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
4123 | as_basename=basename | |
4124 | else | |
4125 | as_basename=false | |
4126 | fi | |
4127 | ||
4128 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
4129 | as_dirname=dirname | |
4130 | else | |
4131 | as_dirname=false | |
4132 | fi | |
4133 | ||
4134 | as_me=`$as_basename -- "$0" || | |
4135 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
4136 | X"$0" : 'X\(//\)$' \| \ | |
4137 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
4138 | $as_echo X/"$0" | | |
4139 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
4140 | s//\1/ | |
4141 | q | |
4142 | } | |
4143 | /^X\/\(\/\/\)$/{ | |
4144 | s//\1/ | |
4145 | q | |
4146 | } | |
4147 | /^X\/\(\/\).*/{ | |
4148 | s//\1/ | |
4149 | q | |
4150 | } | |
4151 | s/.*/./; q'` | |
4152 | ||
4153 | # Avoid depending upon Character Ranges. | |
4154 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
4155 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
4156 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
4157 | as_cr_digits='0123456789' | |
4158 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
4159 | ||
4160 | ECHO_C= ECHO_N= ECHO_T= | |
4161 | case `echo -n x` in #((((( | |
4162 | -n*) | |
4163 | case `echo 'xy\c'` in | |
4164 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
4165 | xy) ECHO_C='\c';; | |
4166 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
4167 | ECHO_T=' ';; | |
4168 | esac;; | |
4169 | *) | |
4170 | ECHO_N='-n';; | |
4171 | esac | |
4172 | ||
4173 | rm -f conf$$ conf$$.exe conf$$.file | |
4174 | if test -d conf$$.dir; then | |
4175 | rm -f conf$$.dir/conf$$.file | |
4176 | else | |
4177 | rm -f conf$$.dir | |
4178 | mkdir conf$$.dir 2>/dev/null | |
4179 | fi | |
4180 | if (echo >conf$$.file) 2>/dev/null; then | |
4181 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
4182 | as_ln_s='ln -s' | |
4183 | # ... but there are two gotchas: | |
4184 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
4185 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
4186 | # In both cases, we have to default to `cp -pR'. | |
4187 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
4188 | as_ln_s='cp -pR' | |
4189 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
4190 | as_ln_s=ln | |
4191 | else | |
4192 | as_ln_s='cp -pR' | |
4193 | fi | |
4194 | else | |
4195 | as_ln_s='cp -pR' | |
4196 | fi | |
4197 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
4198 | rmdir conf$$.dir 2>/dev/null | |
4199 | ||
4200 | ||
4201 | # as_fn_mkdir_p | |
4202 | # ------------- | |
4203 | # Create "$as_dir" as a directory, including parents if necessary. | |
4204 | as_fn_mkdir_p () | |
4205 | { | |
4206 | ||
4207 | case $as_dir in #( | |
4208 | -*) as_dir=./$as_dir;; | |
4209 | esac | |
4210 | test -d "$as_dir" || eval $as_mkdir_p || { | |
4211 | as_dirs= | |
4212 | while :; do | |
4213 | case $as_dir in #( | |
4214 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
4215 | *) as_qdir=$as_dir;; | |
4216 | esac | |
4217 | as_dirs="'$as_qdir' $as_dirs" | |
4218 | as_dir=`$as_dirname -- "$as_dir" || | |
4219 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
4220 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
4221 | X"$as_dir" : 'X\(//\)$' \| \ | |
4222 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
4223 | $as_echo X"$as_dir" | | |
4224 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
4225 | s//\1/ | |
4226 | q | |
4227 | } | |
4228 | /^X\(\/\/\)[^/].*/{ | |
4229 | s//\1/ | |
4230 | q | |
4231 | } | |
4232 | /^X\(\/\/\)$/{ | |
4233 | s//\1/ | |
4234 | q | |
4235 | } | |
4236 | /^X\(\/\).*/{ | |
4237 | s//\1/ | |
4238 | q | |
4239 | } | |
4240 | s/.*/./; q'` | |
4241 | test -d "$as_dir" && break | |
4242 | done | |
4243 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
4244 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
4245 | ||
4246 | ||
4247 | } # as_fn_mkdir_p | |
4248 | if mkdir -p . 2>/dev/null; then | |
4249 | as_mkdir_p='mkdir -p "$as_dir"' | |
4250 | else | |
4251 | test -d ./-p && rmdir ./-p | |
4252 | as_mkdir_p=false | |
4253 | fi | |
4254 | ||
4255 | ||
4256 | # as_fn_executable_p FILE | |
4257 | # ----------------------- | |
4258 | # Test if FILE is an executable regular file. | |
4259 | as_fn_executable_p () | |
4260 | { | |
4261 | test -f "$1" && test -x "$1" | |
4262 | } # as_fn_executable_p | |
4263 | as_test_x='test -x' | |
4264 | as_executable_p=as_fn_executable_p | |
4265 | ||
4266 | # Sed expression to map a string onto a valid CPP name. | |
4267 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
4268 | ||
4269 | # Sed expression to map a string onto a valid variable name. | |
4270 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
4271 | ||
4272 | ||
4273 | exec 6>&1 | |
4274 | ## ----------------------------------- ## | |
4275 | ## Main body of $CONFIG_STATUS script. ## | |
4276 | ## ----------------------------------- ## | |
4277 | _ASEOF | |
4278 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
4279 | ||
4280 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
4281 | # Save the log message, to keep $0 and so on meaningful, and to | |
4282 | # report actual input values of CONFIG_FILES etc. instead of their | |
4283 | # values after options handling. | |
4284 | ac_log=" | |
4285 | This file was extended by $as_me, which was | |
4286 | generated by GNU Autoconf 2.69. Invocation command line was | |
4287 | ||
4288 | CONFIG_FILES = $CONFIG_FILES | |
4289 | CONFIG_HEADERS = $CONFIG_HEADERS | |
4290 | CONFIG_LINKS = $CONFIG_LINKS | |
4291 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
4292 | $ $0 $@ | |
4293 | ||
4294 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
4295 | " | |
4296 | ||
4297 | _ACEOF | |
4298 | ||
4299 | case $ac_config_files in *" | |
4300 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
4301 | esac | |
4302 | ||
2 | 4303 | case $ac_config_headers in *" |
4304 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
4305 | esac | |
0 | 4306 | |
4307 | ||
4308 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
4309 | # Files that config.status was made for. | |
4310 | config_files="$ac_config_files" | |
2 | 4311 | config_headers="$ac_config_headers" |
0 | 4312 | |
4313 | _ACEOF | |
4314 | ||
4315 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
4316 | ac_cs_usage="\ | |
4317 | \`$as_me' instantiates files and other configuration actions | |
4318 | from templates according to the current configuration. Unless the files | |
4319 | and actions are specified as TAGs, all are instantiated by default. | |
4320 | ||
4321 | Usage: $0 [OPTION]... [TAG]... | |
4322 | ||
4323 | -h, --help print this help, then exit | |
4324 | -V, --version print version number and configuration settings, then exit | |
4325 | --config print configuration, then exit | |
4326 | -q, --quiet, --silent | |
4327 | do not print progress messages | |
4328 | -d, --debug don't remove temporary files | |
4329 | --recheck update $as_me by reconfiguring in the same conditions | |
4330 | --file=FILE[:TEMPLATE] | |
4331 | instantiate the configuration file FILE | |
2 | 4332 | --header=FILE[:TEMPLATE] |
4333 | instantiate the configuration header FILE | |
0 | 4334 | |
4335 | Configuration files: | |
4336 | $config_files | |
4337 | ||
2 | 4338 | Configuration headers: |
4339 | $config_headers | |
4340 | ||
0 | 4341 | Report bugs to the package provider." |
4342 | ||
4343 | _ACEOF | |
4344 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
4345 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" | |
4346 | ac_cs_version="\\ | |
4347 | config.status | |
4348 | configured by $0, generated by GNU Autoconf 2.69, | |
4349 | with options \\"\$ac_cs_config\\" | |
4350 | ||
4351 | Copyright (C) 2012 Free Software Foundation, Inc. | |
4352 | This config.status script is free software; the Free Software Foundation | |
4353 | gives unlimited permission to copy, distribute and modify it." | |
4354 | ||
4355 | ac_pwd='$ac_pwd' | |
4356 | srcdir='$srcdir' | |
4357 | test -n "\$AWK" || AWK=awk | |
4358 | _ACEOF | |
4359 | ||
4360 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
4361 | # The default lists apply if the user does not specify any file. | |
4362 | ac_need_defaults=: | |
4363 | while test $# != 0 | |
4364 | do | |
4365 | case $1 in | |
4366 | --*=?*) | |
4367 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
4368 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
4369 | ac_shift=: | |
4370 | ;; | |
4371 | --*=) | |
4372 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
4373 | ac_optarg= | |
4374 | ac_shift=: | |
4375 | ;; | |
4376 | *) | |
4377 | ac_option=$1 | |
4378 | ac_optarg=$2 | |
4379 | ac_shift=shift | |
4380 | ;; | |
4381 | esac | |
4382 | ||
4383 | case $ac_option in | |
4384 | # Handling of the options. | |
4385 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
4386 | ac_cs_recheck=: ;; | |
4387 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
4388 | $as_echo "$ac_cs_version"; exit ;; | |
4389 | --config | --confi | --conf | --con | --co | --c ) | |
4390 | $as_echo "$ac_cs_config"; exit ;; | |
4391 | --debug | --debu | --deb | --de | --d | -d ) | |
4392 | debug=: ;; | |
4393 | --file | --fil | --fi | --f ) | |
4394 | $ac_shift | |
4395 | case $ac_optarg in | |
4396 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
4397 | '') as_fn_error $? "missing file argument" ;; | |
4398 | esac | |
4399 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
4400 | ac_need_defaults=false;; | |
2 | 4401 | --header | --heade | --head | --hea ) |
4402 | $ac_shift | |
4403 | case $ac_optarg in | |
4404 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
4405 | esac | |
4406 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
4407 | ac_need_defaults=false;; | |
4408 | --he | --h) | |
4409 | # Conflict between --help and --header | |
4410 | as_fn_error $? "ambiguous option: \`$1' | |
4411 | Try \`$0 --help' for more information.";; | |
4412 | --help | --hel | -h ) | |
0 | 4413 | $as_echo "$ac_cs_usage"; exit ;; |
4414 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
4415 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
4416 | ac_cs_silent=: ;; | |
4417 | ||
4418 | # This is an error. | |
4419 | -*) as_fn_error $? "unrecognized option: \`$1' | |
4420 | Try \`$0 --help' for more information." ;; | |
4421 | ||
4422 | *) as_fn_append ac_config_targets " $1" | |
4423 | ac_need_defaults=false ;; | |
4424 | ||
4425 | esac | |
4426 | shift | |
4427 | done | |
4428 | ||
4429 | ac_configure_extra_args= | |
4430 | ||
4431 | if $ac_cs_silent; then | |
4432 | exec 6>/dev/null | |
4433 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
4434 | fi | |
4435 | ||
4436 | _ACEOF | |
4437 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
4438 | if \$ac_cs_recheck; then | |
4439 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
4440 | shift | |
4441 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
4442 | CONFIG_SHELL='$SHELL' | |
4443 | export CONFIG_SHELL | |
4444 | exec "\$@" | |
4445 | fi | |
4446 | ||
4447 | _ACEOF | |
4448 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
4449 | exec 5>>config.log | |
4450 | { | |
4451 | echo | |
4452 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
4453 | ## Running $as_me. ## | |
4454 | _ASBOX | |
4455 | $as_echo "$ac_log" | |
4456 | } >&5 | |
4457 | ||
4458 | _ACEOF | |
4459 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
4460 | _ACEOF | |
4461 | ||
4462 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
4463 | ||
4464 | # Handling of arguments. | |
4465 | for ac_config_target in $ac_config_targets | |
4466 | do | |
4467 | case $ac_config_target in | |
2 | 4468 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
0 | 4469 | "Makefile.global") CONFIG_FILES="$CONFIG_FILES Makefile.global" ;; |
4470 | ||
4471 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
4472 | esac | |
4473 | done | |
4474 | ||
4475 | ||
4476 | # If the user did not use the arguments to specify the items to instantiate, | |
4477 | # then the envvar interface is used. Set only those that are not. | |
4478 | # We use the long form for the default assignment because of an extremely | |
4479 | # bizarre bug on SunOS 4.1.3. | |
4480 | if $ac_need_defaults; then | |
4481 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
2 | 4482 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
0 | 4483 | fi |
4484 | ||
4485 | # Have a temporary directory for convenience. Make it in the build tree | |
4486 | # simply because there is no reason against having it here, and in addition, | |
4487 | # creating and moving files from /tmp can sometimes cause problems. | |
4488 | # Hook for its removal unless debugging. | |
4489 | # Note that there is a small window in which the directory will not be cleaned: | |
4490 | # after its creation but before its name has been assigned to `$tmp'. | |
4491 | $debug || | |
4492 | { | |
4493 | tmp= ac_tmp= | |
4494 | trap 'exit_status=$? | |
4495 | : "${ac_tmp:=$tmp}" | |
4496 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
4497 | ' 0 | |
4498 | trap 'as_fn_exit 1' 1 2 13 15 | |
4499 | } | |
4500 | # Create a (secure) tmp directory for tmp files. | |
4501 | ||
4502 | { | |
4503 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
4504 | test -d "$tmp" | |
4505 | } || | |
4506 | { | |
4507 | tmp=./conf$$-$RANDOM | |
4508 | (umask 077 && mkdir "$tmp") | |
4509 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 | |
4510 | ac_tmp=$tmp | |
4511 | ||
4512 | # Set up the scripts for CONFIG_FILES section. | |
4513 | # No need to generate them if there are no CONFIG_FILES. | |
4514 | # This happens for instance with `./config.status config.h'. | |
4515 | if test -n "$CONFIG_FILES"; then | |
4516 | ||
4517 | ||
4518 | ac_cr=`echo X | tr X '\015'` | |
4519 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
4520 | # But we know of no other shell where ac_cr would be empty at this | |
4521 | # point, so we can use a bashism as a fallback. | |
4522 | if test "x$ac_cr" = x; then | |
4523 | eval ac_cr=\$\'\\r\' | |
4524 | fi | |
4525 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
4526 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
4527 | ac_cs_awk_cr='\\r' | |
4528 | else | |
4529 | ac_cs_awk_cr=$ac_cr | |
4530 | fi | |
4531 | ||
4532 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && | |
4533 | _ACEOF | |
4534 | ||
4535 | ||
4536 | { | |
4537 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
4538 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
4539 | echo "_ACEOF" | |
4540 | } >conf$$subs.sh || | |
4541 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
4542 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
4543 | ac_delim='%!_!# ' | |
4544 | for ac_last_try in false false false false false :; do | |
4545 | . ./conf$$subs.sh || | |
4546 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
4547 | ||
4548 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
4549 | if test $ac_delim_n = $ac_delim_num; then | |
4550 | break | |
4551 | elif $ac_last_try; then | |
4552 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
4553 | else | |
4554 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
4555 | fi | |
4556 | done | |
4557 | rm -f conf$$subs.sh | |
4558 | ||
4559 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
4560 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && | |
4561 | _ACEOF | |
4562 | sed -n ' | |
4563 | h | |
4564 | s/^/S["/; s/!.*/"]=/ | |
4565 | p | |
4566 | g | |
4567 | s/^[^!]*!// | |
4568 | :repl | |
4569 | t repl | |
4570 | s/'"$ac_delim"'$// | |
4571 | t delim | |
4572 | :nl | |
4573 | h | |
4574 | s/\(.\{148\}\)..*/\1/ | |
4575 | t more1 | |
4576 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
4577 | p | |
4578 | n | |
4579 | b repl | |
4580 | :more1 | |
4581 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
4582 | p | |
4583 | g | |
4584 | s/.\{148\}// | |
4585 | t nl | |
4586 | :delim | |
4587 | h | |
4588 | s/\(.\{148\}\)..*/\1/ | |
4589 | t more2 | |
4590 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
4591 | p | |
4592 | b | |
4593 | :more2 | |
4594 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
4595 | p | |
4596 | g | |
4597 | s/.\{148\}// | |
4598 | t delim | |
4599 | ' <conf$$subs.awk | sed ' | |
4600 | /^[^""]/{ | |
4601 | N | |
4602 | s/\n// | |
4603 | } | |
4604 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
4605 | rm -f conf$$subs.awk | |
4606 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
4607 | _ACAWK | |
4608 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && | |
4609 | for (key in S) S_is_set[key] = 1 | |
4610 | FS = "" | |
4611 | ||
4612 | } | |
4613 | { | |
4614 | line = $ 0 | |
4615 | nfields = split(line, field, "@") | |
4616 | substed = 0 | |
4617 | len = length(field[1]) | |
4618 | for (i = 2; i < nfields; i++) { | |
4619 | key = field[i] | |
4620 | keylen = length(key) | |
4621 | if (S_is_set[key]) { | |
4622 | value = S[key] | |
4623 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
4624 | len += length(value) + length(field[++i]) | |
4625 | substed = 1 | |
4626 | } else | |
4627 | len += 1 + keylen | |
4628 | } | |
4629 | ||
4630 | print line | |
4631 | } | |
4632 | ||
4633 | _ACAWK | |
4634 | _ACEOF | |
4635 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
4636 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
4637 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
4638 | else | |
4639 | cat | |
4640 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ | |
4641 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
4642 | _ACEOF | |
4643 | ||
4644 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), | |
4645 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
4646 | # trailing colons and then remove the whole line if VPATH becomes empty | |
4647 | # (actually we leave an empty line to preserve line numbers). | |
4648 | if test "x$srcdir" = x.; then | |
4649 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ | |
4650 | h | |
4651 | s/// | |
4652 | s/^/:/ | |
4653 | s/[ ]*$/:/ | |
4654 | s/:\$(srcdir):/:/g | |
4655 | s/:\${srcdir}:/:/g | |
4656 | s/:@srcdir@:/:/g | |
4657 | s/^:*// | |
4658 | s/:*$// | |
4659 | x | |
4660 | s/\(=[ ]*\).*/\1/ | |
4661 | G | |
4662 | s/\n// | |
4663 | s/^[^=]*=[ ]*$// | |
4664 | }' | |
4665 | fi | |
4666 | ||
4667 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
4668 | fi # test -n "$CONFIG_FILES" | |
4669 | ||
2 | 4670 | # Set up the scripts for CONFIG_HEADERS section. |
4671 | # No need to generate them if there are no CONFIG_HEADERS. | |
4672 | # This happens for instance with `./config.status Makefile'. | |
4673 | if test -n "$CONFIG_HEADERS"; then | |
4674 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || | |
4675 | BEGIN { | |
4676 | _ACEOF | |
4677 | ||
4678 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
4679 | # here-document in config.status, that substitutes the proper values into | |
4680 | # config.h.in to produce config.h. | |
4681 | ||
4682 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
4683 | # handling of long lines. | |
4684 | ac_delim='%!_!# ' | |
4685 | for ac_last_try in false false :; do | |
4686 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` | |
4687 | if test -z "$ac_tt"; then | |
4688 | break | |
4689 | elif $ac_last_try; then | |
4690 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 | |
4691 | else | |
4692 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
4693 | fi | |
4694 | done | |
4695 | ||
4696 | # For the awk script, D is an array of macro values keyed by name, | |
4697 | # likewise P contains macro parameters if any. Preserve backslash | |
4698 | # newline sequences. | |
4699 | ||
4700 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
4701 | sed -n ' | |
4702 | s/.\{148\}/&'"$ac_delim"'/g | |
4703 | t rset | |
4704 | :rset | |
4705 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
4706 | t def | |
4707 | d | |
4708 | :def | |
4709 | s/\\$// | |
4710 | t bsnl | |
4711 | s/["\\]/\\&/g | |
4712 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
4713 | D["\1"]=" \3"/p | |
4714 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
4715 | d | |
4716 | :bsnl | |
4717 | s/["\\]/\\&/g | |
4718 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
4719 | D["\1"]=" \3\\\\\\n"\\/p | |
4720 | t cont | |
4721 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
4722 | t cont | |
4723 | d | |
4724 | :cont | |
4725 | n | |
4726 | s/.\{148\}/&'"$ac_delim"'/g | |
4727 | t clear | |
4728 | :clear | |
4729 | s/\\$// | |
4730 | t bsnlc | |
4731 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
4732 | d | |
4733 | :bsnlc | |
4734 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
4735 | b cont | |
4736 | ' <confdefs.h | sed ' | |
4737 | s/'"$ac_delim"'/"\\\ | |
4738 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
4739 | ||
4740 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
4741 | for (key in D) D_is_set[key] = 1 | |
4742 | FS = "" | |
4743 | } | |
4744 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
4745 | line = \$ 0 | |
4746 | split(line, arg, " ") | |
4747 | if (arg[1] == "#") { | |
4748 | defundef = arg[2] | |
4749 | mac1 = arg[3] | |
4750 | } else { | |
4751 | defundef = substr(arg[1], 2) | |
4752 | mac1 = arg[2] | |
4753 | } | |
4754 | split(mac1, mac2, "(") #) | |
4755 | macro = mac2[1] | |
4756 | prefix = substr(line, 1, index(line, defundef) - 1) | |
4757 | if (D_is_set[macro]) { | |
4758 | # Preserve the white space surrounding the "#". | |
4759 | print prefix "define", macro P[macro] D[macro] | |
4760 | next | |
4761 | } else { | |
4762 | # Replace #undef with comments. This is necessary, for example, | |
4763 | # in the case of _POSIX_SOURCE, which is predefined and required | |
4764 | # on some systems where configure will not decide to define it. | |
4765 | if (defundef == "undef") { | |
4766 | print "/*", prefix defundef, macro, "*/" | |
4767 | next | |
4768 | } | |
4769 | } | |
4770 | } | |
4771 | { print } | |
4772 | _ACAWK | |
4773 | _ACEOF | |
4774 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
4775 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 | |
4776 | fi # test -n "$CONFIG_HEADERS" | |
4777 | ||
4778 | ||
4779 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " | |
0 | 4780 | shift |
4781 | for ac_tag | |
4782 | do | |
4783 | case $ac_tag in | |
4784 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
4785 | esac | |
4786 | case $ac_mode$ac_tag in | |
4787 | :[FHL]*:*);; | |
4788 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
4789 | :[FH]-) ac_tag=-:-;; | |
4790 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
4791 | esac | |
4792 | ac_save_IFS=$IFS | |
4793 | IFS=: | |
4794 | set x $ac_tag | |
4795 | IFS=$ac_save_IFS | |
4796 | shift | |
4797 | ac_file=$1 | |
4798 | shift | |
4799 | ||
4800 | case $ac_mode in | |
4801 | :L) ac_source=$1;; | |
4802 | :[FH]) | |
4803 | ac_file_inputs= | |
4804 | for ac_f | |
4805 | do | |
4806 | case $ac_f in | |
4807 | -) ac_f="$ac_tmp/stdin";; | |
4808 | *) # Look for the file first in the build tree, then in the source tree | |
4809 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
4810 | # because $ac_f cannot contain `:'. | |
4811 | test -f "$ac_f" || | |
4812 | case $ac_f in | |
4813 | [\\/$]*) false;; | |
4814 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
4815 | esac || | |
4816 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
4817 | esac | |
4818 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
4819 | as_fn_append ac_file_inputs " '$ac_f'" | |
4820 | done | |
4821 | ||
4822 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
4823 | # use $as_me), people would be surprised to read: | |
4824 | # /* config.h. Generated by config.status. */ | |
4825 | configure_input='Generated from '` | |
4826 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
4827 | `' by configure.' | |
4828 | if test x"$ac_file" != x-; then | |
4829 | configure_input="$ac_file. $configure_input" | |
4830 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
4831 | $as_echo "$as_me: creating $ac_file" >&6;} | |
4832 | fi | |
4833 | # Neutralize special characters interpreted by sed in replacement strings. | |
4834 | case $configure_input in #( | |
4835 | *\&* | *\|* | *\\* ) | |
4836 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
4837 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
4838 | *) ac_sed_conf_input=$configure_input;; | |
4839 | esac | |
4840 | ||
4841 | case $ac_tag in | |
4842 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ | |
4843 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
4844 | esac | |
4845 | ;; | |
4846 | esac | |
4847 | ||
4848 | ac_dir=`$as_dirname -- "$ac_file" || | |
4849 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
4850 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
4851 | X"$ac_file" : 'X\(//\)$' \| \ | |
4852 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
4853 | $as_echo X"$ac_file" | | |
4854 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
4855 | s//\1/ | |
4856 | q | |
4857 | } | |
4858 | /^X\(\/\/\)[^/].*/{ | |
4859 | s//\1/ | |
4860 | q | |
4861 | } | |
4862 | /^X\(\/\/\)$/{ | |
4863 | s//\1/ | |
4864 | q | |
4865 | } | |
4866 | /^X\(\/\).*/{ | |
4867 | s//\1/ | |
4868 | q | |
4869 | } | |
4870 | s/.*/./; q'` | |
4871 | as_dir="$ac_dir"; as_fn_mkdir_p | |
4872 | ac_builddir=. | |
4873 | ||
4874 | case "$ac_dir" in | |
4875 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
4876 | *) | |
4877 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
4878 | # A ".." for each directory in $ac_dir_suffix. | |
4879 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
4880 | case $ac_top_builddir_sub in | |
4881 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
4882 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
4883 | esac ;; | |
4884 | esac | |
4885 | ac_abs_top_builddir=$ac_pwd | |
4886 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
4887 | # for backward compatibility: | |
4888 | ac_top_builddir=$ac_top_build_prefix | |
4889 | ||
4890 | case $srcdir in | |
4891 | .) # We are building in place. | |
4892 | ac_srcdir=. | |
4893 | ac_top_srcdir=$ac_top_builddir_sub | |
4894 | ac_abs_top_srcdir=$ac_pwd ;; | |
4895 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
4896 | ac_srcdir=$srcdir$ac_dir_suffix; | |
4897 | ac_top_srcdir=$srcdir | |
4898 | ac_abs_top_srcdir=$srcdir ;; | |
4899 | *) # Relative name. | |
4900 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
4901 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
4902 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
4903 | esac | |
4904 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
4905 | ||
4906 | ||
4907 | case $ac_mode in | |
4908 | :F) | |
4909 | # | |
4910 | # CONFIG_FILE | |
4911 | # | |
4912 | ||
4913 | _ACEOF | |
4914 | ||
4915 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
4916 | # If the template does not know about datarootdir, expand it. | |
4917 | # FIXME: This hack should be removed a few years after 2.60. | |
4918 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
4919 | ac_sed_dataroot=' | |
4920 | /datarootdir/ { | |
4921 | p | |
4922 | q | |
4923 | } | |
4924 | /@datadir@/p | |
4925 | /@docdir@/p | |
4926 | /@infodir@/p | |
4927 | /@localedir@/p | |
4928 | /@mandir@/p' | |
4929 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
4930 | *datarootdir*) ac_datarootdir_seen=yes;; | |
4931 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
4932 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
4933 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
4934 | _ACEOF | |
4935 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
4936 | ac_datarootdir_hack=' | |
4937 | s&@datadir@&$datadir&g | |
4938 | s&@docdir@&$docdir&g | |
4939 | s&@infodir@&$infodir&g | |
4940 | s&@localedir@&$localedir&g | |
4941 | s&@mandir@&$mandir&g | |
4942 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
4943 | esac | |
4944 | _ACEOF | |
4945 | ||
4946 | # Neutralize VPATH when `$srcdir' = `.'. | |
4947 | # Shell code in configure.ac might set extrasub. | |
4948 | # FIXME: do we really want to maintain this feature? | |
4949 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
4950 | ac_sed_extra="$ac_vpsub | |
4951 | $extrasub | |
4952 | _ACEOF | |
4953 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
4954 | :t | |
4955 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
4956 | s|@configure_input@|$ac_sed_conf_input|;t t | |
4957 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
4958 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
4959 | s&@srcdir@&$ac_srcdir&;t t | |
4960 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
4961 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
4962 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
4963 | s&@builddir@&$ac_builddir&;t t | |
4964 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
4965 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
4966 | $ac_datarootdir_hack | |
4967 | " | |
4968 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ | |
4969 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
4970 | ||
4971 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
4972 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && | |
4973 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
4974 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
4975 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
4976 | which seems to be undefined. Please make sure it is defined" >&5 | |
4977 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
4978 | which seems to be undefined. Please make sure it is defined" >&2;} | |
4979 | ||
4980 | rm -f "$ac_tmp/stdin" | |
4981 | case $ac_file in | |
4982 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; | |
4983 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
4984 | esac \ | |
4985 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
4986 | ;; | |
2 | 4987 | :H) |
4988 | # | |
4989 | # CONFIG_HEADER | |
4990 | # | |
4991 | if test x"$ac_file" != x-; then | |
4992 | { | |
4993 | $as_echo "/* $configure_input */" \ | |
4994 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" | |
4995 | } >"$ac_tmp/config.h" \ | |
4996 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
4997 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
4998 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | |
4999 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
5000 | else | |
5001 | rm -f "$ac_file" | |
5002 | mv "$ac_tmp/config.h" "$ac_file" \ | |
5003 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
5004 | fi | |
5005 | else | |
5006 | $as_echo "/* $configure_input */" \ | |
5007 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ | |
5008 | || as_fn_error $? "could not create -" "$LINENO" 5 | |
5009 | fi | |
5010 | ;; | |
0 | 5011 | |
5012 | ||
5013 | esac | |
5014 | ||
5015 | done # for ac_tag | |
5016 | ||
5017 | ||
5018 | as_fn_exit 0 | |
5019 | _ACEOF | |
5020 | ac_clean_files=$ac_clean_files_save | |
5021 | ||
5022 | test $ac_write_fail = 0 || | |
5023 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
5024 | ||
5025 | ||
5026 | # configure is writing to config.log, and then calls config.status. | |
5027 | # config.status does its own redirection, appending to config.log. | |
5028 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
5029 | # by configure, so config.status won't be able to write to it; its | |
5030 | # output is simply discarded. So we exec the FD to /dev/null, | |
5031 | # effectively closing config.log, so it can be properly (re)opened and | |
5032 | # appended to by config.status. When coming back to configure, we | |
5033 | # need to make the FD available again. | |
5034 | if test "$no_create" != yes; then | |
5035 | ac_cs_success=: | |
5036 | ac_config_status_args= | |
5037 | test "$silent" = yes && | |
5038 | ac_config_status_args="$ac_config_status_args --quiet" | |
5039 | exec 5>/dev/null | |
5040 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
5041 | exec 5>>config.log | |
5042 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
5043 | # would make configure fail if this is the last instruction. | |
5044 | $ac_cs_success || as_fn_exit 1 | |
5045 | fi | |
5046 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
5047 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
5048 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
5049 | fi | |
5050 | ||
5051 | ||
5052 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: | |
5053 | -=-=-=-=-=-=-=-=-=-= Configuration Complete =-=-=-=-=-=-=-=-=-=- | |
5054 | ||
5055 | Configuration summary : | |
5056 | ||
5057 | Version : ............ ${VERSION} | |
5058 | Main directory : ..... ${prefix} | |
17
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
5059 | WiringPi : ........... ${WIRINGPI} |
0 | 5060 | |
5061 | Now type 'make' and 'sudo make install' | |
5062 | " >&5 | |
5063 | $as_echo " | |
5064 | -=-=-=-=-=-=-=-=-=-= Configuration Complete =-=-=-=-=-=-=-=-=-=- | |
5065 | ||
5066 | Configuration summary : | |
5067 | ||
5068 | Version : ............ ${VERSION} | |
5069 | Main directory : ..... ${prefix} | |
17
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
5070 | WiringPi : ........... ${WIRINGPI} |
0 | 5071 | |
5072 | Now type 'make' and 'sudo make install' | |
5073 | " >&6; } | |
5074 |