root/configure @ 9bdc85ae6abb47b8ef60e40acfb7a615a0747a3c

Revision 9bdc85ae6abb47b8ef60e40acfb7a615a0747a3c, 154.0 KB (checked in by dsmith <dsmith@…>, 6 years ago)

Prerelease documentation updates

git-svn-id: http://abstrakraft.org/cwiid/svn/trunk@19 918edb2d-ff29-0410-9de2-eb38e7f22bc7

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