Debian Codegraph @

configure

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