2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.67 for psensor 0.6.2.10.
5 # Report bugs to <jeanfi@gmail.com>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
29 case `(set -o) 2>/dev/null` in #(
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70 as_echo_n='sh -c $as_echo_n_body as_echo'
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
93 # Find who we are. Look in the path if we contain no directory separator.
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138 if test "x$CONFIG_SHELL" = x; then
139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
147 case \`(set -o) 2>/dev/null\` in #(
155 as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
169 exitcode=1; echo positional parameters were not saved.
171 test x\$exitcode = x0 || exit 1"
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test \$(( 1 + 1 )) = 2 || exit 1"
177 if (eval "$as_required") 2>/dev/null; then :
182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
190 test -z "$as_dir" && as_dir=.
194 for as_base in sh bash ksh sh5; do
195 # Try only shells that exist, to save several forks.
196 as_shell=$as_dir/$as_base
197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 CONFIG_SHELL=$as_shell as_have_required=yes
200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210 CONFIG_SHELL=$SHELL as_have_required=yes
215 if test "x$CONFIG_SHELL" != x; then :
216 # We cannot yet assume a decent shell, so we have to provide a
217 # neutralization value for shells without unset; and this also
218 # works around shells that cannot unset nonexistent variables.
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
226 if test x$as_have_required = xno; then :
227 $as_echo "$0: This script requires a shell more modern than all"
228 $as_echo "$0: the shells that I found on your system."
229 if test x${ZSH_VERSION+set} = xset ; then
230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
233 $as_echo "$0: Please tell bug-autoconf@gnu.org and jeanfi@gmail.com
234 $0: about your system, including any error possibly output
235 $0: before this message. Then install a modern shell, or
236 $0: manually run the script under such a shell if you do
243 SHELL=${CONFIG_SHELL-/bin/sh}
245 # Unset more variables known to interfere with behavior of common tools.
246 CLICOLOR_FORCE= GREP_OPTIONS=
247 unset CLICOLOR_FORCE GREP_OPTIONS
249 ## --------------------- ##
250 ## M4sh Shell Functions. ##
251 ## --------------------- ##
254 # Portably unset VAR.
257 { eval $1=; unset $1;}
261 # as_fn_set_status STATUS
262 # -----------------------
263 # Set $? to STATUS, without forking.
271 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281 # Create "$as_dir" as a directory, including parents if necessary.
286 -*) as_dir=./$as_dir;;
288 test -d "$as_dir" || eval $as_mkdir_p || {
292 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
295 as_dirs="'$as_qdir' $as_dirs"
296 as_dir=`$as_dirname -- "$as_dir" ||
297 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298 X"$as_dir" : 'X\(//\)[^/]' \| \
299 X"$as_dir" : 'X\(//\)$' \| \
300 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301 $as_echo X"$as_dir" |
302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319 test -d "$as_dir" && break
321 test -z "$as_dirs" || eval "mkdir $as_dirs"
322 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
326 # as_fn_append VAR VALUE
327 # ----------------------
328 # Append the text in VALUE to the end of the definition contained in VAR. Take
329 # advantage of any shell optimizations that allow amortized linear growth over
330 # repeated appends, instead of the typical quadratic growth present in naive
332 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333 eval 'as_fn_append ()
346 # Perform arithmetic evaluation on the ARGs, and store the result in the
347 # global $as_val. Take advantage of shells that can avoid forks. The arguments
348 # must be portable across $(()) and expr.
349 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
357 as_val=`expr "$@" || test $? -eq 1`
362 # as_fn_error STATUS ERROR [LINENO LOG_FD]
363 # ----------------------------------------
364 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366 # script with STATUS, using 1 if that was 0.
369 as_status=$1; test $as_status -eq 0 && as_status=1
371 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
374 $as_echo "$as_me: error: $2" >&2
375 as_fn_exit $as_status
378 if expr a : '\(a\)' >/dev/null 2>&1 &&
379 test "X`expr 00001 : '.*\(...\)'`" = X001; then
385 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397 as_me=`$as_basename -- "$0" ||
398 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399 X"$0" : 'X\(//\)$' \| \
400 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
402 sed '/^.*\/\([^/][^/]*\)\/*$/{
416 # Avoid depending upon Character Ranges.
417 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420 as_cr_digits='0123456789'
421 as_cr_alnum=$as_cr_Letters$as_cr_digits
424 as_lineno_1=$LINENO as_lineno_1a=$LINENO
425 as_lineno_2=$LINENO as_lineno_2a=$LINENO
426 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
440 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 chmod +x "$as_me.lineno" ||
445 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
447 # Don't try to exec as it changes $[0], causing all sort of problems
448 # (the dirname of $[0] is not the place where we might find the
449 # original and so on. Autoconf is especially sensitive to this).
451 # Exit status is that of the last command.
455 ECHO_C= ECHO_N= ECHO_T=
456 case `echo -n x` in #(((((
458 case `echo 'xy\c'` in
459 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
461 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
468 rm -f conf$$ conf$$.exe conf$$.file
469 if test -d conf$$.dir; then
470 rm -f conf$$.dir/conf$$.file
473 mkdir conf$$.dir 2>/dev/null
475 if (echo >conf$$.file) 2>/dev/null; then
476 if ln -s conf$$.file conf$$ 2>/dev/null; then
478 # ... but there are two gotchas:
479 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481 # In both cases, we have to default to `cp -p'.
482 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
484 elif ln conf$$.file conf$$ 2>/dev/null; then
492 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493 rmdir conf$$.dir 2>/dev/null
495 if mkdir -p . 2>/dev/null; then
496 as_mkdir_p='mkdir -p "$as_dir"'
498 test -d ./-p && rmdir ./-p
502 if test -x / >/dev/null 2>&1; then
505 if ls -dL / >/dev/null 2>&1; then
512 if test -d "$1"; then
518 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519 ???[sx]*):;;*)false;;esac;fi
523 as_executable_p=$as_test_x
525 # Sed expression to map a string onto a valid CPP name.
526 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
528 # Sed expression to map a string onto a valid variable name.
529 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
532 test -n "$DJDIR" || exec 7<&0 </dev/null
536 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
537 # so uname gets run too.
538 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543 ac_default_prefix=/usr/local
545 ac_config_libobj_dir=.
552 # Identity of this package.
553 PACKAGE_NAME='psensor'
554 PACKAGE_TARNAME='psensor'
555 PACKAGE_VERSION='0.6.2.10'
556 PACKAGE_STRING='psensor 0.6.2.10'
557 PACKAGE_BUGREPORT='jeanfi@gmail.com'
558 PACKAGE_URL='http://wpitchoune.net/psensor'
560 ac_unique_file="src/compat.h"
561 # Factoring default headers for most tests.
562 ac_includes_default="\
564 #ifdef HAVE_SYS_TYPES_H
565 # include <sys/types.h>
567 #ifdef HAVE_SYS_STAT_H
568 # include <sys/stat.h>
574 # ifdef HAVE_STDLIB_H
579 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 #ifdef HAVE_STRINGS_H
585 # include <strings.h>
587 #ifdef HAVE_INTTYPES_H
588 # include <inttypes.h>
598 ac_subst_vars='am__EXEEXT_FALSE
665 XGETTEXT_EXTRA_OPTIONS
673 GETTEXT_MACRO_VERSION
705 INSTALL_STRIP_PROGRAM
747 program_transform_name
760 enable_option_checking
761 enable_dependency_tracking
770 ac_precious_vars='build_alias
809 # Initialize some variables set by options.
811 ac_init_version=false
812 ac_unrecognized_opts=
814 # The variables have the same names as the options, with
815 # dashes changed to underlines.
823 program_transform_name=s,x,x,
831 # Installation directory options.
832 # These are left unexpanded so users can "make install exec_prefix=/foo"
833 # and all the variables that are supposed to be based on exec_prefix
834 # by default will actually change.
835 # Use braces instead of parens because sh, perl, etc. also accept them.
836 # (The list follows the same order as the GNU Coding Standards.)
837 bindir='${exec_prefix}/bin'
838 sbindir='${exec_prefix}/sbin'
839 libexecdir='${exec_prefix}/libexec'
840 datarootdir='${prefix}/share'
841 datadir='${datarootdir}'
842 sysconfdir='${prefix}/etc'
843 sharedstatedir='${prefix}/com'
844 localstatedir='${prefix}/var'
845 includedir='${prefix}/include'
846 oldincludedir='/usr/include'
847 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
848 infodir='${datarootdir}/info'
853 libdir='${exec_prefix}/lib'
854 localedir='${datarootdir}/locale'
855 mandir='${datarootdir}/man'
861 # If the previous option needs an argument, assign it.
862 if test -n "$ac_prev"; then
863 eval $ac_prev=\$ac_option
869 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
874 # Accept the important Cygnus configure options, so we can diagnose typos.
876 case $ac_dashdash$ac_option in
880 -bindir | --bindir | --bindi | --bind | --bin | --bi)
882 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
885 -build | --build | --buil | --bui | --bu)
886 ac_prev=build_alias ;;
887 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
888 build_alias=$ac_optarg ;;
890 -cache-file | --cache-file | --cache-fil | --cache-fi \
891 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
892 ac_prev=cache_file ;;
893 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
894 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
895 cache_file=$ac_optarg ;;
898 cache_file=config.cache ;;
900 -datadir | --datadir | --datadi | --datad)
902 -datadir=* | --datadir=* | --datadi=* | --datad=*)
903 datadir=$ac_optarg ;;
905 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
906 | --dataroo | --dataro | --datar)
907 ac_prev=datarootdir ;;
908 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
909 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
910 datarootdir=$ac_optarg ;;
912 -disable-* | --disable-*)
913 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
914 # Reject names that are not valid shell variable names.
915 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
916 as_fn_error $? "invalid feature name: $ac_useropt"
917 ac_useropt_orig=$ac_useropt
918 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
919 case $ac_user_opts in
923 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
924 ac_unrecognized_sep=', ';;
926 eval enable_$ac_useropt=no ;;
928 -docdir | --docdir | --docdi | --doc | --do)
930 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
933 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
935 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
938 -enable-* | --enable-*)
939 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
940 # Reject names that are not valid shell variable names.
941 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
942 as_fn_error $? "invalid feature name: $ac_useropt"
943 ac_useropt_orig=$ac_useropt
944 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
945 case $ac_user_opts in
949 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
950 ac_unrecognized_sep=', ';;
952 eval enable_$ac_useropt=\$ac_optarg ;;
954 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
955 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
956 | --exec | --exe | --ex)
957 ac_prev=exec_prefix ;;
958 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
959 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
960 | --exec=* | --exe=* | --ex=*)
961 exec_prefix=$ac_optarg ;;
963 -gas | --gas | --ga | --g)
964 # Obsolete; use --with-gas.
967 -help | --help | --hel | --he | -h)
969 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
970 ac_init_help=recursive ;;
971 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
972 ac_init_help=short ;;
974 -host | --host | --hos | --ho)
975 ac_prev=host_alias ;;
976 -host=* | --host=* | --hos=* | --ho=*)
977 host_alias=$ac_optarg ;;
979 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
981 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
983 htmldir=$ac_optarg ;;
985 -includedir | --includedir | --includedi | --included | --include \
986 | --includ | --inclu | --incl | --inc)
987 ac_prev=includedir ;;
988 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
989 | --includ=* | --inclu=* | --incl=* | --inc=*)
990 includedir=$ac_optarg ;;
992 -infodir | --infodir | --infodi | --infod | --info | --inf)
994 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
995 infodir=$ac_optarg ;;
997 -libdir | --libdir | --libdi | --libd)
999 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1000 libdir=$ac_optarg ;;
1002 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1003 | --libexe | --libex | --libe)
1004 ac_prev=libexecdir ;;
1005 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1006 | --libexe=* | --libex=* | --libe=*)
1007 libexecdir=$ac_optarg ;;
1009 -localedir | --localedir | --localedi | --localed | --locale)
1010 ac_prev=localedir ;;
1011 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1012 localedir=$ac_optarg ;;
1014 -localstatedir | --localstatedir | --localstatedi | --localstated \
1015 | --localstate | --localstat | --localsta | --localst | --locals)
1016 ac_prev=localstatedir ;;
1017 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1018 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1019 localstatedir=$ac_optarg ;;
1021 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1023 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1024 mandir=$ac_optarg ;;
1026 -nfp | --nfp | --nf)
1027 # Obsolete; use --without-fp.
1030 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1031 | --no-cr | --no-c | -n)
1034 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1035 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1038 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1039 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1040 | --oldin | --oldi | --old | --ol | --o)
1041 ac_prev=oldincludedir ;;
1042 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1043 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1044 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1045 oldincludedir=$ac_optarg ;;
1047 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1049 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1050 prefix=$ac_optarg ;;
1052 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1053 | --program-pre | --program-pr | --program-p)
1054 ac_prev=program_prefix ;;
1055 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1056 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1057 program_prefix=$ac_optarg ;;
1059 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1060 | --program-suf | --program-su | --program-s)
1061 ac_prev=program_suffix ;;
1062 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1063 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1064 program_suffix=$ac_optarg ;;
1066 -program-transform-name | --program-transform-name \
1067 | --program-transform-nam | --program-transform-na \
1068 | --program-transform-n | --program-transform- \
1069 | --program-transform | --program-transfor \
1070 | --program-transfo | --program-transf \
1071 | --program-trans | --program-tran \
1072 | --progr-tra | --program-tr | --program-t)
1073 ac_prev=program_transform_name ;;
1074 -program-transform-name=* | --program-transform-name=* \
1075 | --program-transform-nam=* | --program-transform-na=* \
1076 | --program-transform-n=* | --program-transform-=* \
1077 | --program-transform=* | --program-transfor=* \
1078 | --program-transfo=* | --program-transf=* \
1079 | --program-trans=* | --program-tran=* \
1080 | --progr-tra=* | --program-tr=* | --program-t=*)
1081 program_transform_name=$ac_optarg ;;
1083 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1085 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1086 pdfdir=$ac_optarg ;;
1088 -psdir | --psdir | --psdi | --psd | --ps)
1090 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1093 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1094 | -silent | --silent | --silen | --sile | --sil)
1097 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1099 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1101 sbindir=$ac_optarg ;;
1103 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1104 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1105 | --sharedst | --shareds | --shared | --share | --shar \
1107 ac_prev=sharedstatedir ;;
1108 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1109 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1110 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1112 sharedstatedir=$ac_optarg ;;
1114 -site | --site | --sit)
1116 -site=* | --site=* | --sit=*)
1119 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1121 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1122 srcdir=$ac_optarg ;;
1124 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1125 | --syscon | --sysco | --sysc | --sys | --sy)
1126 ac_prev=sysconfdir ;;
1127 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1128 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1129 sysconfdir=$ac_optarg ;;
1131 -target | --target | --targe | --targ | --tar | --ta | --t)
1132 ac_prev=target_alias ;;
1133 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1134 target_alias=$ac_optarg ;;
1136 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1139 -version | --version | --versio | --versi | --vers | -V)
1140 ac_init_version=: ;;
1143 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1144 # Reject names that are not valid shell variable names.
1145 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1146 as_fn_error $? "invalid package name: $ac_useropt"
1147 ac_useropt_orig=$ac_useropt
1148 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1149 case $ac_user_opts in
1153 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1154 ac_unrecognized_sep=', ';;
1156 eval with_$ac_useropt=\$ac_optarg ;;
1158 -without-* | --without-*)
1159 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1160 # Reject names that are not valid shell variable names.
1161 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1162 as_fn_error $? "invalid package name: $ac_useropt"
1163 ac_useropt_orig=$ac_useropt
1164 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1165 case $ac_user_opts in
1169 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1170 ac_unrecognized_sep=', ';;
1172 eval with_$ac_useropt=no ;;
1175 # Obsolete; use --with-x.
1178 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1179 | --x-incl | --x-inc | --x-in | --x-i)
1180 ac_prev=x_includes ;;
1181 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1182 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1183 x_includes=$ac_optarg ;;
1185 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1186 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1187 ac_prev=x_libraries ;;
1188 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1189 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1190 x_libraries=$ac_optarg ;;
1192 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1193 Try \`$0 --help' for more information"
1197 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1198 # Reject names that are not valid shell variable names.
1199 case $ac_envvar in #(
1200 '' | [0-9]* | *[!_$as_cr_alnum]* )
1201 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1203 eval $ac_envvar=\$ac_optarg
1204 export $ac_envvar ;;
1207 # FIXME: should be removed in autoconf 3.0.
1208 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1209 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1210 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1211 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1217 if test -n "$ac_prev"; then
1218 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1219 as_fn_error $? "missing argument to $ac_option"
1222 if test -n "$ac_unrecognized_opts"; then
1223 case $enable_option_checking in
1225 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1226 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1230 # Check all directory arguments for consistency.
1231 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1232 datadir sysconfdir sharedstatedir localstatedir includedir \
1233 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1234 libdir localedir mandir
1236 eval ac_val=\$$ac_var
1237 # Remove trailing slashes.
1240 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1241 eval $ac_var=\$ac_val;;
1243 # Be sure to have absolute directory names.
1245 [\\/$]* | ?:[\\/]* ) continue;;
1246 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1248 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1251 # There might be people who depend on the old broken behavior: `$host'
1252 # used to hold the argument of --host etc.
1253 # FIXME: To remove some day.
1256 target=$target_alias
1258 # FIXME: To remove some day.
1259 if test "x$host_alias" != x; then
1260 if test "x$build_alias" = x; then
1261 cross_compiling=maybe
1262 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1263 If a cross compiler is detected then cross compile mode will be used" >&2
1264 elif test "x$build_alias" != "x$host_alias"; then
1270 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1272 test "$silent" = yes && exec 6>/dev/null
1275 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1276 ac_ls_di=`ls -di .` &&
1277 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1278 as_fn_error $? "working directory cannot be determined"
1279 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1280 as_fn_error $? "pwd does not report name of working directory"
1283 # Find the source files, if location was not specified.
1284 if test -z "$srcdir"; then
1285 ac_srcdir_defaulted=yes
1286 # Try the directory containing this script, then the parent directory.
1287 ac_confdir=`$as_dirname -- "$as_myself" ||
1288 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1289 X"$as_myself" : 'X\(//\)[^/]' \| \
1290 X"$as_myself" : 'X\(//\)$' \| \
1291 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1292 $as_echo X"$as_myself" |
1293 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1311 if test ! -r "$srcdir/$ac_unique_file"; then
1315 ac_srcdir_defaulted=no
1317 if test ! -r "$srcdir/$ac_unique_file"; then
1318 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1319 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1321 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1323 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1325 # When building in place, set srcdir=.
1326 if test "$ac_abs_confdir" = "$ac_pwd"; then
1329 # Remove unnecessary trailing slashes from srcdir.
1330 # Double slashes in file names in object file debugging info
1331 # mess up M-x gdb in Emacs.
1333 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1335 for ac_var in $ac_precious_vars; do
1336 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1337 eval ac_env_${ac_var}_value=\$${ac_var}
1338 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1339 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1343 # Report the --help message.
1345 if test "$ac_init_help" = "long"; then
1346 # Omit some internal or obsolete options to make the list less imposing.
1347 # This message is too long to be a string in the A/UX 3.1 sh.
1349 \`configure' configures psensor 0.6.2.10 to adapt to many kinds of systems.
1351 Usage: $0 [OPTION]... [VAR=VALUE]...
1353 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1354 VAR=VALUE. See below for descriptions of some of the useful variables.
1356 Defaults for the options are specified in brackets.
1359 -h, --help display this help and exit
1360 --help=short display options specific to this package
1361 --help=recursive display the short help of all the included packages
1362 -V, --version display version information and exit
1363 -q, --quiet, --silent do not print \`checking ...' messages
1364 --cache-file=FILE cache test results in FILE [disabled]
1365 -C, --config-cache alias for \`--cache-file=config.cache'
1366 -n, --no-create do not create output files
1367 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1369 Installation directories:
1370 --prefix=PREFIX install architecture-independent files in PREFIX
1371 [$ac_default_prefix]
1372 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1375 By default, \`make install' will install all the files in
1376 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1377 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1378 for instance \`--prefix=\$HOME'.
1380 For better control, use the options below.
1382 Fine tuning of the installation directories:
1383 --bindir=DIR user executables [EPREFIX/bin]
1384 --sbindir=DIR system admin executables [EPREFIX/sbin]
1385 --libexecdir=DIR program executables [EPREFIX/libexec]
1386 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1387 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1388 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1389 --libdir=DIR object code libraries [EPREFIX/lib]
1390 --includedir=DIR C header files [PREFIX/include]
1391 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1392 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1393 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1394 --infodir=DIR info documentation [DATAROOTDIR/info]
1395 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1396 --mandir=DIR man documentation [DATAROOTDIR/man]
1397 --docdir=DIR documentation root [DATAROOTDIR/doc/psensor]
1398 --htmldir=DIR html documentation [DOCDIR]
1399 --dvidir=DIR dvi documentation [DOCDIR]
1400 --pdfdir=DIR pdf documentation [DOCDIR]
1401 --psdir=DIR ps documentation [DOCDIR]
1407 --program-prefix=PREFIX prepend PREFIX to installed program names
1408 --program-suffix=SUFFIX append SUFFIX to installed program names
1409 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1412 --x-includes=DIR X include files are in DIR
1413 --x-libraries=DIR X library files are in DIR
1416 --build=BUILD configure for building on BUILD [guessed]
1417 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1421 if test -n "$ac_init_help"; then
1422 case $ac_init_help in
1423 short | recursive ) echo "Configuration of psensor 0.6.2.10:";;
1428 --disable-option-checking ignore unrecognized --enable/--with options
1429 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1430 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1431 --disable-dependency-tracking speeds up one-time build
1432 --enable-dependency-tracking do not reject slow dependency extractors
1433 --disable-nls do not use Native Language Support
1434 --disable-rpath do not hardcode runtime library paths
1437 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1438 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1439 --with-x use the X Window System
1440 --with-gnu-ld assume the C compiler uses GNU ld default=no
1441 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1442 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1443 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1444 --without-libintl-prefix don't search for libintl in includedir and libdir
1445 --with-gtop=yes|no use gtop
1447 Some influential environment variables:
1448 CC C compiler command
1449 CFLAGS C compiler flags
1450 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1451 nonstandard directory <lib dir>
1452 LIBS libraries to pass to the linker, e.g. -l<library>
1453 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1454 you have headers in a nonstandard directory <include dir>
1455 XMKMF Path to xmkmf, Makefile generator for X Window System
1457 PKG_CONFIG path to pkg-config utility
1459 directories to add to pkg-config's search path
1461 path overriding pkg-config's built-in search path
1462 X11_CFLAGS C compiler flags for X11, overriding pkg-config
1463 X11_LIBS linker flags for X11, overriding pkg-config
1464 XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
1465 XEXT_LIBS linker flags for XEXT, overriding pkg-config
1466 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config
1467 GTK_LIBS linker flags for GTK, overriding pkg-config
1469 C compiler flags for GCONF, overriding pkg-config
1470 GCONF_LIBS linker flags for GCONF, overriding pkg-config
1472 C compiler flags for LIBNOTIFY, overriding pkg-config
1474 linker flags for LIBNOTIFY, overriding pkg-config
1476 C compiler flags for APPINDICATOR, overriding pkg-config
1478 linker flags for APPINDICATOR, overriding pkg-config
1479 CURL_CFLAGS C compiler flags for CURL, overriding pkg-config
1480 CURL_LIBS linker flags for CURL, overriding pkg-config
1481 JSON_CFLAGS C compiler flags for JSON, overriding pkg-config
1482 JSON_LIBS linker flags for JSON, overriding pkg-config
1484 C compiler flags for UNITY, overriding pkg-config
1485 UNITY_LIBS linker flags for UNITY, overriding pkg-config
1486 LUA_CFLAGS C compiler flags for LUA, overriding pkg-config
1487 LUA_LIBS linker flags for LUA, overriding pkg-config
1488 LIBMICROHTTPD_CFLAGS
1489 C compiler flags for LIBMICROHTTPD, overriding pkg-config
1491 linker flags for LIBMICROHTTPD, overriding pkg-config
1492 GTOP_CFLAGS C compiler flags for GTOP, overriding pkg-config
1493 GTOP_LIBS linker flags for GTOP, overriding pkg-config
1495 Use these variables to override the choices made by `configure' or to help
1496 it to find libraries and programs with nonstandard names/locations.
1498 Report bugs to <jeanfi@gmail.com>.
1499 psensor home page: <http://wpitchoune.net/psensor>.
1504 if test "$ac_init_help" = "recursive"; then
1505 # If there are subdirs, report their specific --help.
1506 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1507 test -d "$ac_dir" ||
1508 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1513 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1515 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1516 # A ".." for each directory in $ac_dir_suffix.
1517 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1518 case $ac_top_builddir_sub in
1519 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1520 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1523 ac_abs_top_builddir=$ac_pwd
1524 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1525 # for backward compatibility:
1526 ac_top_builddir=$ac_top_build_prefix
1529 .) # We are building in place.
1531 ac_top_srcdir=$ac_top_builddir_sub
1532 ac_abs_top_srcdir=$ac_pwd ;;
1533 [\\/]* | ?:[\\/]* ) # Absolute name.
1534 ac_srcdir=$srcdir$ac_dir_suffix;
1535 ac_top_srcdir=$srcdir
1536 ac_abs_top_srcdir=$srcdir ;;
1538 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1539 ac_top_srcdir=$ac_top_build_prefix$srcdir
1540 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1542 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1544 cd "$ac_dir" || { ac_status=$?; continue; }
1545 # Check for guested configure.
1546 if test -f "$ac_srcdir/configure.gnu"; then
1548 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1549 elif test -f "$ac_srcdir/configure"; then
1551 $SHELL "$ac_srcdir/configure" --help=recursive
1553 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1555 cd "$ac_pwd" || { ac_status=$?; break; }
1559 test -n "$ac_init_help" && exit $ac_status
1560 if $ac_init_version; then
1562 psensor configure 0.6.2.10
1563 generated by GNU Autoconf 2.67
1565 Copyright (C) 2010 Free Software Foundation, Inc.
1566 This configure script is free software; the Free Software Foundation
1567 gives unlimited permission to copy, distribute and modify it.
1572 ## ------------------------ ##
1573 ## Autoconf initialization. ##
1574 ## ------------------------ ##
1576 # ac_fn_c_try_compile LINENO
1577 # --------------------------
1578 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1579 ac_fn_c_try_compile ()
1581 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1582 rm -f conftest.$ac_objext
1583 if { { ac_try="$ac_compile"
1585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1586 *) ac_try_echo=$ac_try;;
1588 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1589 $as_echo "$ac_try_echo"; } >&5
1590 (eval "$ac_compile") 2>conftest.err
1592 if test -s conftest.err; then
1593 grep -v '^ *+' conftest.err >conftest.er1
1594 cat conftest.er1 >&5
1595 mv -f conftest.er1 conftest.err
1597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1598 test $ac_status = 0; } && {
1599 test -z "$ac_c_werror_flag" ||
1600 test ! -s conftest.err
1601 } && test -s conftest.$ac_objext; then :
1604 $as_echo "$as_me: failed program was:" >&5
1605 sed 's/^/| /' conftest.$ac_ext >&5
1609 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1610 as_fn_set_status $ac_retval
1612 } # ac_fn_c_try_compile
1614 # ac_fn_c_try_cpp LINENO
1615 # ----------------------
1616 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1619 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1620 if { { ac_try="$ac_cpp conftest.$ac_ext"
1622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1623 *) ac_try_echo=$ac_try;;
1625 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1626 $as_echo "$ac_try_echo"; } >&5
1627 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1629 if test -s conftest.err; then
1630 grep -v '^ *+' conftest.err >conftest.er1
1631 cat conftest.er1 >&5
1632 mv -f conftest.er1 conftest.err
1634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1635 test $ac_status = 0; } > conftest.i && {
1636 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1637 test ! -s conftest.err
1641 $as_echo "$as_me: failed program was:" >&5
1642 sed 's/^/| /' conftest.$ac_ext >&5
1646 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1647 as_fn_set_status $ac_retval
1651 # ac_fn_c_try_link LINENO
1652 # -----------------------
1653 # Try to link conftest.$ac_ext, and return whether this succeeded.
1656 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1657 rm -f conftest.$ac_objext conftest$ac_exeext
1658 if { { ac_try="$ac_link"
1660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1661 *) ac_try_echo=$ac_try;;
1663 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1664 $as_echo "$ac_try_echo"; } >&5
1665 (eval "$ac_link") 2>conftest.err
1667 if test -s conftest.err; then
1668 grep -v '^ *+' conftest.err >conftest.er1
1669 cat conftest.er1 >&5
1670 mv -f conftest.er1 conftest.err
1672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1673 test $ac_status = 0; } && {
1674 test -z "$ac_c_werror_flag" ||
1675 test ! -s conftest.err
1676 } && test -s conftest$ac_exeext && {
1677 test "$cross_compiling" = yes ||
1678 $as_test_x conftest$ac_exeext
1682 $as_echo "$as_me: failed program was:" >&5
1683 sed 's/^/| /' conftest.$ac_ext >&5
1687 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1688 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1689 # interfere with the next link command; also delete a directory that is
1690 # left behind by Apple's compiler. We do this before executing the actions.
1691 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1692 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1693 as_fn_set_status $ac_retval
1695 } # ac_fn_c_try_link
1697 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1698 # -------------------------------------------------------
1699 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1700 # the include files in INCLUDES and setting the cache variable VAR
1702 ac_fn_c_check_header_mongrel ()
1704 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1705 if eval "test \"\${$3+set}\"" = set; then :
1706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1707 $as_echo_n "checking for $2... " >&6; }
1708 if eval "test \"\${$3+set}\"" = set; then :
1709 $as_echo_n "(cached) " >&6
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1713 $as_echo "$ac_res" >&6; }
1715 # Is the header compilable?
1716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1717 $as_echo_n "checking $2 usability... " >&6; }
1718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1719 /* end confdefs.h. */
1723 if ac_fn_c_try_compile "$LINENO"; then :
1724 ac_header_compiler=yes
1726 ac_header_compiler=no
1728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1730 $as_echo "$ac_header_compiler" >&6; }
1732 # Is the header present?
1733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1734 $as_echo_n "checking $2 presence... " >&6; }
1735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1736 /* end confdefs.h. */
1739 if ac_fn_c_try_cpp "$LINENO"; then :
1740 ac_header_preproc=yes
1742 ac_header_preproc=no
1744 rm -f conftest.err conftest.i conftest.$ac_ext
1745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1746 $as_echo "$ac_header_preproc" >&6; }
1748 # So? What about this header?
1749 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1752 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1753 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1754 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1758 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1759 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1760 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1762 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1764 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1766 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1767 ( $as_echo "## ------------------------------- ##
1768 ## Report this to jeanfi@gmail.com ##
1769 ## ------------------------------- ##"
1770 ) | sed "s/^/$as_me: WARNING: /" >&2
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1774 $as_echo_n "checking for $2... " >&6; }
1775 if eval "test \"\${$3+set}\"" = set; then :
1776 $as_echo_n "(cached) " >&6
1778 eval "$3=\$ac_header_compiler"
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1782 $as_echo "$ac_res" >&6; }
1784 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1786 } # ac_fn_c_check_header_mongrel
1788 # ac_fn_c_try_run LINENO
1789 # ----------------------
1790 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1791 # that executables *can* be run.
1794 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1795 if { { ac_try="$ac_link"
1797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1798 *) ac_try_echo=$ac_try;;
1800 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1801 $as_echo "$ac_try_echo"; } >&5
1802 (eval "$ac_link") 2>&5
1804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1805 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1806 { { case "(($ac_try" in
1807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1808 *) ac_try_echo=$ac_try;;
1810 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1811 $as_echo "$ac_try_echo"; } >&5
1812 (eval "$ac_try") 2>&5
1814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1815 test $ac_status = 0; }; }; then :
1818 $as_echo "$as_me: program exited with status $ac_status" >&5
1819 $as_echo "$as_me: failed program was:" >&5
1820 sed 's/^/| /' conftest.$ac_ext >&5
1822 ac_retval=$ac_status
1824 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1825 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1826 as_fn_set_status $ac_retval
1830 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1831 # -------------------------------------------------------
1832 # Tests whether HEADER exists and can be compiled using the include files in
1833 # INCLUDES, setting the cache variable VAR accordingly.
1834 ac_fn_c_check_header_compile ()
1836 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1838 $as_echo_n "checking for $2... " >&6; }
1839 if eval "test \"\${$3+set}\"" = set; then :
1840 $as_echo_n "(cached) " >&6
1842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1843 /* end confdefs.h. */
1847 if ac_fn_c_try_compile "$LINENO"; then :
1852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1856 $as_echo "$ac_res" >&6; }
1857 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1859 } # ac_fn_c_check_header_compile
1861 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1862 # -------------------------------------------
1863 # Tests whether TYPE exists after having included INCLUDES, setting cache
1864 # variable VAR accordingly.
1865 ac_fn_c_check_type ()
1867 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1869 $as_echo_n "checking for $2... " >&6; }
1870 if eval "test \"\${$3+set}\"" = set; then :
1871 $as_echo_n "(cached) " >&6
1874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1875 /* end confdefs.h. */
1886 if ac_fn_c_try_compile "$LINENO"; then :
1887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1888 /* end confdefs.h. */
1899 if ac_fn_c_try_compile "$LINENO"; then :
1904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1910 $as_echo "$ac_res" >&6; }
1911 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1913 } # ac_fn_c_check_type
1915 # ac_fn_c_check_func LINENO FUNC VAR
1916 # ----------------------------------
1917 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1918 ac_fn_c_check_func ()
1920 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1922 $as_echo_n "checking for $2... " >&6; }
1923 if eval "test \"\${$3+set}\"" = set; then :
1924 $as_echo_n "(cached) " >&6
1926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1927 /* end confdefs.h. */
1928 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1929 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1930 #define $2 innocuous_$2
1932 /* System header to define __stub macros and hopefully few prototypes,
1933 which can conflict with char $2 (); below.
1934 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1935 <limits.h> exists even on freestanding compilers. */
1938 # include <limits.h>
1940 # include <assert.h>
1945 /* Override any GCC internal prototype to avoid an error.
1946 Use char because int might match the return type of a GCC
1947 builtin and then its argument prototype would still apply. */
1952 /* The GNU C library defines this for functions which it implements
1953 to always fail with ENOSYS. Some functions are actually named
1954 something starting with __ and the normal name is an alias. */
1955 #if defined __stub_$2 || defined __stub___$2
1967 if ac_fn_c_try_link "$LINENO"; then :
1972 rm -f core conftest.err conftest.$ac_objext \
1973 conftest$ac_exeext conftest.$ac_ext
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1977 $as_echo "$ac_res" >&6; }
1978 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1980 } # ac_fn_c_check_func
1981 cat >config.log <<_ACEOF
1982 This file contains any messages produced by compilers while
1983 running configure, to aid debugging if configure makes a mistake.
1985 It was created by psensor $as_me 0.6.2.10, which was
1986 generated by GNU Autoconf 2.67. Invocation command line was
1998 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1999 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2000 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2001 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2002 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2004 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2005 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2007 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2008 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2009 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2010 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2011 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2012 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2013 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2021 test -z "$as_dir" && as_dir=.
2022 $as_echo "PATH: $as_dir"
2038 # Keep a trace of the command line.
2039 # Strip out --no-create and --no-recursion so they do not pile up.
2040 # Strip out --silent because we don't want to record it for future runs.
2041 # Also quote any args containing shell meta-characters.
2042 # Make two passes to allow for proper duplicate-argument suppression.
2046 ac_must_keep_next=false
2052 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2053 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2054 | -silent | --silent | --silen | --sile | --sil)
2057 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2060 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2062 as_fn_append ac_configure_args1 " '$ac_arg'"
2063 if test $ac_must_keep_next = true; then
2064 ac_must_keep_next=false # Got value, back to normal.
2067 *=* | --config-cache | -C | -disable-* | --disable-* \
2068 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2069 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2070 | -with-* | --with-* | -without-* | --without-* | --x)
2071 case "$ac_configure_args0 " in
2072 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2075 -* ) ac_must_keep_next=true ;;
2078 as_fn_append ac_configure_args " '$ac_arg'"
2083 { ac_configure_args0=; unset ac_configure_args0;}
2084 { ac_configure_args1=; unset ac_configure_args1;}
2086 # When interrupted or exit'd, cleanup temporary files, and complete
2087 # config.log. We remove comments because anyway the quotes in there
2088 # would cause problems or look ugly.
2089 # WARNING: Use '\'' to represent an apostrophe within the trap.
2090 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2091 trap 'exit_status=$?
2092 # Save into config.log some information that might help in debugging.
2096 $as_echo "## ---------------- ##
2097 ## Cache variables. ##
2098 ## ---------------- ##"
2100 # The following way of writing the cache mishandles newlines in values,
2102 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2103 eval ac_val=\$$ac_var
2107 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2108 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2111 _ | IFS | as_nl) ;; #(
2112 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2113 *) { eval $ac_var=; unset $ac_var;} ;;
2118 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2119 *${as_nl}ac_space=\ *)
2121 "s/'\''/'\''\\\\'\'''\''/g;
2122 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2125 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2132 $as_echo "## ----------------- ##
2133 ## Output variables. ##
2134 ## ----------------- ##"
2136 for ac_var in $ac_subst_vars
2138 eval ac_val=\$$ac_var
2140 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2142 $as_echo "$ac_var='\''$ac_val'\''"
2146 if test -n "$ac_subst_files"; then
2147 $as_echo "## ------------------- ##
2148 ## File substitutions. ##
2149 ## ------------------- ##"
2151 for ac_var in $ac_subst_files
2153 eval ac_val=\$$ac_var
2155 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2157 $as_echo "$ac_var='\''$ac_val'\''"
2162 if test -s confdefs.h; then
2163 $as_echo "## ----------- ##
2170 test "$ac_signal" != 0 &&
2171 $as_echo "$as_me: caught signal $ac_signal"
2172 $as_echo "$as_me: exit $exit_status"
2174 rm -f core *.core core.conftest.* &&
2175 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2178 for ac_signal in 1 2 13 15; do
2179 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2183 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2184 rm -f -r conftest* confdefs.h
2186 $as_echo "/* confdefs.h */" > confdefs.h
2188 # Predefined preprocessor variables.
2190 cat >>confdefs.h <<_ACEOF
2191 #define PACKAGE_NAME "$PACKAGE_NAME"
2194 cat >>confdefs.h <<_ACEOF
2195 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2198 cat >>confdefs.h <<_ACEOF
2199 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2202 cat >>confdefs.h <<_ACEOF
2203 #define PACKAGE_STRING "$PACKAGE_STRING"
2206 cat >>confdefs.h <<_ACEOF
2207 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2210 cat >>confdefs.h <<_ACEOF
2211 #define PACKAGE_URL "$PACKAGE_URL"
2215 # Let the site file select an alternate cache file if it wants to.
2216 # Prefer an explicitly selected file to automatically selected ones.
2219 if test -n "$CONFIG_SITE"; then
2220 # We do not want a PATH search for config.site.
2221 case $CONFIG_SITE in #((
2222 -*) ac_site_file1=./$CONFIG_SITE;;
2223 */*) ac_site_file1=$CONFIG_SITE;;
2224 *) ac_site_file1=./$CONFIG_SITE;;
2226 elif test "x$prefix" != xNONE; then
2227 ac_site_file1=$prefix/share/config.site
2228 ac_site_file2=$prefix/etc/config.site
2230 ac_site_file1=$ac_default_prefix/share/config.site
2231 ac_site_file2=$ac_default_prefix/etc/config.site
2233 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2235 test "x$ac_site_file" = xNONE && continue
2236 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2238 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2239 sed 's/^/| /' "$ac_site_file" >&5
2241 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2242 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2243 as_fn_error $? "failed to load site script $ac_site_file
2244 See \`config.log' for more details" "$LINENO" 5 ; }
2248 if test -r "$cache_file"; then
2249 # Some versions of bash will fail to source /dev/null (special files
2250 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2251 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2253 $as_echo "$as_me: loading cache $cache_file" >&6;}
2255 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2256 *) . "./$cache_file";;
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2261 $as_echo "$as_me: creating cache $cache_file" >&6;}
2265 gt_needs="$gt_needs "
2266 # Check that the precious variables saved in the cache have kept the same
2268 ac_cache_corrupted=false
2269 for ac_var in $ac_precious_vars; do
2270 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2271 eval ac_new_set=\$ac_env_${ac_var}_set
2272 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2273 eval ac_new_val=\$ac_env_${ac_var}_value
2274 case $ac_old_set,$ac_new_set in
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2277 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2278 ac_cache_corrupted=: ;;
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2281 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2282 ac_cache_corrupted=: ;;
2285 if test "x$ac_old_val" != "x$ac_new_val"; then
2286 # differences in whitespace do not lead to failure.
2287 ac_old_val_w=`echo x $ac_old_val`
2288 ac_new_val_w=`echo x $ac_new_val`
2289 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2291 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2292 ac_cache_corrupted=:
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2295 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2296 eval $ac_var=\$ac_old_val
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2299 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2300 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2301 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2304 # Pass precious variables to config.status.
2305 if test "$ac_new_set" = set; then
2307 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2308 *) ac_arg=$ac_var=$ac_new_val ;;
2310 case " $ac_configure_args " in
2311 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2312 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2316 if $ac_cache_corrupted; then
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2318 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2319 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2320 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2321 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2323 ## -------------------- ##
2324 ## Main body of script. ##
2325 ## -------------------- ##
2328 ac_cpp='$CPP $CPPFLAGS'
2329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2331 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2335 am__api_version='1.11'
2338 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2339 if test -f "$ac_dir/install-sh"; then
2341 ac_install_sh="$ac_aux_dir/install-sh -c"
2343 elif test -f "$ac_dir/install.sh"; then
2345 ac_install_sh="$ac_aux_dir/install.sh -c"
2347 elif test -f "$ac_dir/shtool"; then
2349 ac_install_sh="$ac_aux_dir/shtool install -c"
2353 if test -z "$ac_aux_dir"; then
2354 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2357 # These three variables are undocumented and unsupported,
2358 # and are intended to be withdrawn in a future Autoconf release.
2359 # They can cause serious problems if a builder's source tree is in a directory
2360 # whose full name contains unusual characters.
2361 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2362 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2363 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2366 # Find a good install program. We prefer a C program (faster),
2367 # so one script is as good as another. But avoid the broken or
2368 # incompatible versions:
2369 # SysV /etc/install, /usr/sbin/install
2370 # SunOS /usr/etc/install
2371 # IRIX /sbin/install
2373 # AmigaOS /C/install, which installs bootblocks on floppy discs
2374 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2375 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2376 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2377 # OS/2's system install, which has a completely different semantic
2378 # ./install, which can be erroneously created by make from ./install.sh.
2379 # Reject install programs that cannot install multiple files.
2380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2381 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2382 if test -z "$INSTALL"; then
2383 if test "${ac_cv_path_install+set}" = set; then :
2384 $as_echo_n "(cached) " >&6
2386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2390 test -z "$as_dir" && as_dir=.
2391 # Account for people who put trailing slashes in PATH elements.
2392 case $as_dir/ in #((
2393 ./ | .// | /[cC]/* | \
2394 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2395 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2398 # OSF1 and SCO ODT 3.0 have their own names for install.
2399 # Don't use installbsd from OSF since it installs stuff as root
2401 for ac_prog in ginstall scoinst install; do
2402 for ac_exec_ext in '' $ac_executable_extensions; do
2403 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2404 if test $ac_prog = install &&
2405 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2406 # AIX install. It has an incompatible calling convention.
2408 elif test $ac_prog = install &&
2409 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2410 # program-specific install script used by HP pwplus--don't use.
2413 rm -rf conftest.one conftest.two conftest.dir
2414 echo one > conftest.one
2415 echo two > conftest.two
2417 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2418 test -s conftest.one && test -s conftest.two &&
2419 test -s conftest.dir/conftest.one &&
2420 test -s conftest.dir/conftest.two
2422 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2435 rm -rf conftest.one conftest.two conftest.dir
2438 if test "${ac_cv_path_install+set}" = set; then
2439 INSTALL=$ac_cv_path_install
2441 # As a last resort, use the slow shell script. Don't cache a
2442 # value for INSTALL within a source directory, because that will
2443 # break other packages using the cache if that directory is
2444 # removed, or if the value is a relative name.
2445 INSTALL=$ac_install_sh
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2449 $as_echo "$INSTALL" >&6; }
2451 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2452 # It thinks the first close brace ends the variable substitution.
2453 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2455 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2457 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2460 $as_echo_n "checking whether build environment is sane... " >&6; }
2463 echo timestamp > conftest.file
2464 # Reject unsafe characters in $srcdir or the absolute working directory
2465 # name. Accept space and tab only in the latter.
2469 *[\\\"\#\$\&\'\`$am_lf]*)
2470 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
2473 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2474 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
2477 # Do `set' in a subshell so we don't clobber the current shell's
2478 # arguments. Must try -L first in case configure is actually a
2479 # symlink; some systems play weird games with the mod time of symlinks
2480 # (eg FreeBSD returns the mod time of the symlink's containing
2483 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2484 if test "$*" = "X"; then
2486 set X `ls -t "$srcdir/configure" conftest.file`
2489 if test "$*" != "X $srcdir/configure conftest.file" \
2490 && test "$*" != "X conftest.file $srcdir/configure"; then
2492 # If neither matched, then we have a broken ls. This can happen
2493 # if, for instance, CONFIG_SHELL is bash and it inherits a
2494 # broken ls alias from the environment. This has actually
2495 # happened. Such a system could not be considered "sane".
2496 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2497 alias in your environment" "$LINENO" 5
2500 test "$2" = conftest.file
2506 as_fn_error $? "newly created file is older than distributed files!
2507 Check your system clock" "$LINENO" 5
2509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2510 $as_echo "yes" >&6; }
2511 test "$program_prefix" != NONE &&
2512 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2513 # Use a double $ so make ignores it.
2514 test "$program_suffix" != NONE &&
2515 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2516 # Double any \ or $.
2517 # By default was `s,x,x', remove it if useless.
2518 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2519 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2521 # expand $ac_aux_dir to an absolute path
2522 am_aux_dir=`cd $ac_aux_dir && pwd`
2524 if test x"${MISSING+set}" != xset; then
2527 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2529 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2532 # Use eval to expand $SHELL
2533 if eval "$MISSING --run true"; then
2534 am_missing_run="$MISSING --run "
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2538 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2541 if test x"${install_sh}" != xset; then
2544 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2546 install_sh="\${SHELL} $am_aux_dir/install-sh"
2550 # Installed binaries are usually stripped using `strip' when the user
2551 # run `make install-strip'. However `strip' might not be the right
2552 # tool to use in cross-compilation environments, therefore Automake
2553 # will honor the `STRIP' environment variable to overrule this program.
2554 if test "$cross_compiling" != no; then
2555 if test -n "$ac_tool_prefix"; then
2556 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2557 set dummy ${ac_tool_prefix}strip; ac_word=$2
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2559 $as_echo_n "checking for $ac_word... " >&6; }
2560 if test "${ac_cv_prog_STRIP+set}" = set; then :
2561 $as_echo_n "(cached) " >&6
2563 if test -n "$STRIP"; then
2564 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2570 test -z "$as_dir" && as_dir=.
2571 for ac_exec_ext in '' $ac_executable_extensions; do
2572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2573 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2583 STRIP=$ac_cv_prog_STRIP
2584 if test -n "$STRIP"; then
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2586 $as_echo "$STRIP" >&6; }
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2589 $as_echo "no" >&6; }
2594 if test -z "$ac_cv_prog_STRIP"; then
2596 # Extract the first word of "strip", so it can be a program name with args.
2597 set dummy strip; ac_word=$2
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2599 $as_echo_n "checking for $ac_word... " >&6; }
2600 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2601 $as_echo_n "(cached) " >&6
2603 if test -n "$ac_ct_STRIP"; then
2604 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2610 test -z "$as_dir" && as_dir=.
2611 for ac_exec_ext in '' $ac_executable_extensions; do
2612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2613 ac_cv_prog_ac_ct_STRIP="strip"
2614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2623 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2624 if test -n "$ac_ct_STRIP"; then
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2626 $as_echo "$ac_ct_STRIP" >&6; }
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2629 $as_echo "no" >&6; }
2632 if test "x$ac_ct_STRIP" = x; then
2635 case $cross_compiling:$ac_tool_warned in
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2638 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2639 ac_tool_warned=yes ;;
2644 STRIP="$ac_cv_prog_STRIP"
2648 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2651 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2652 if test -z "$MKDIR_P"; then
2653 if test "${ac_cv_path_mkdir+set}" = set; then :
2654 $as_echo_n "(cached) " >&6
2656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2657 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2660 test -z "$as_dir" && as_dir=.
2661 for ac_prog in mkdir gmkdir; do
2662 for ac_exec_ext in '' $ac_executable_extensions; do
2663 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2664 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2665 'mkdir (GNU coreutils) '* | \
2666 'mkdir (coreutils) '* | \
2667 'mkdir (fileutils) '4.1*)
2668 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2678 test -d ./--version && rmdir ./--version
2679 if test "${ac_cv_path_mkdir+set}" = set; then
2680 MKDIR_P="$ac_cv_path_mkdir -p"
2682 # As a last resort, use the slow shell script. Don't cache a
2683 # value for MKDIR_P within a source directory, because that will
2684 # break other packages using the cache if that directory is
2685 # removed, or if the value is a relative name.
2686 MKDIR_P="$ac_install_sh -d"
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2690 $as_echo "$MKDIR_P" >&6; }
2694 [\\/$]* | ?:[\\/]*) ;;
2695 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2698 for ac_prog in gawk mawk nawk awk
2700 # Extract the first word of "$ac_prog", so it can be a program name with args.
2701 set dummy $ac_prog; ac_word=$2
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2703 $as_echo_n "checking for $ac_word... " >&6; }
2704 if test "${ac_cv_prog_AWK+set}" = set; then :
2705 $as_echo_n "(cached) " >&6
2707 if test -n "$AWK"; then
2708 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2714 test -z "$as_dir" && as_dir=.
2715 for ac_exec_ext in '' $ac_executable_extensions; do
2716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2717 ac_cv_prog_AWK="$ac_prog"
2718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2728 if test -n "$AWK"; then
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2730 $as_echo "$AWK" >&6; }
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2733 $as_echo "no" >&6; }
2737 test -n "$AWK" && break
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2741 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2743 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2744 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
2745 $as_echo_n "(cached) " >&6
2747 cat >conftest.make <<\_ACEOF
2750 @echo '@@@%%%=$(MAKE)=@@@%%%'
2752 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2753 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2755 eval ac_cv_prog_make_${ac_make}_set=yes;;
2757 eval ac_cv_prog_make_${ac_make}_set=no;;
2761 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2763 $as_echo "yes" >&6; }
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2767 $as_echo "no" >&6; }
2768 SET_MAKE="MAKE=${MAKE-make}"
2771 rm -rf .tst 2>/dev/null
2772 mkdir .tst 2>/dev/null
2773 if test -d .tst; then
2778 rmdir .tst 2>/dev/null
2780 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2781 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2782 # is not polluted with repeated "-I."
2783 am__isrc=' -I$(srcdir)'
2784 # test to see if srcdir already configured
2785 if test -f $srcdir/config.status; then
2786 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2790 # test whether we have cygpath
2791 if test -z "$CYGPATH_W"; then
2792 if (cygpath --version) >/dev/null 2>/dev/null; then
2793 CYGPATH_W='cygpath -w'
2800 # Define the identity of the package.
2805 cat >>confdefs.h <<_ACEOF
2806 #define PACKAGE "$PACKAGE"
2810 cat >>confdefs.h <<_ACEOF
2811 #define VERSION "$VERSION"
2814 # Some tools Automake needs.
2816 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2819 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2822 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2825 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2828 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2830 # We need awk for the "check" target. The system "awk" is bad on
2832 # Always define AMTAR for backward compatibility.
2834 AMTAR=${AMTAR-"${am_missing_run}tar"}
2836 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2844 ac_config_headers="$ac_config_headers config.h"
2847 # Checks for programs.
2849 ac_cpp='$CPP $CPPFLAGS'
2850 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2851 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2852 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2853 if test -n "$ac_tool_prefix"; then
2854 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2855 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2857 $as_echo_n "checking for $ac_word... " >&6; }
2858 if test "${ac_cv_prog_CC+set}" = set; then :
2859 $as_echo_n "(cached) " >&6
2861 if test -n "$CC"; then
2862 ac_cv_prog_CC="$CC" # Let the user override the test.
2864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2868 test -z "$as_dir" && as_dir=.
2869 for ac_exec_ext in '' $ac_executable_extensions; do
2870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2871 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2882 if test -n "$CC"; then
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2884 $as_echo "$CC" >&6; }
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2887 $as_echo "no" >&6; }
2892 if test -z "$ac_cv_prog_CC"; then
2894 # Extract the first word of "gcc", so it can be a program name with args.
2895 set dummy gcc; ac_word=$2
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2897 $as_echo_n "checking for $ac_word... " >&6; }
2898 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2899 $as_echo_n "(cached) " >&6
2901 if test -n "$ac_ct_CC"; then
2902 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2908 test -z "$as_dir" && as_dir=.
2909 for ac_exec_ext in '' $ac_executable_extensions; do
2910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2911 ac_cv_prog_ac_ct_CC="gcc"
2912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2921 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2922 if test -n "$ac_ct_CC"; then
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2924 $as_echo "$ac_ct_CC" >&6; }
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2927 $as_echo "no" >&6; }
2930 if test "x$ac_ct_CC" = x; then
2933 case $cross_compiling:$ac_tool_warned in
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2936 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2937 ac_tool_warned=yes ;;
2945 if test -z "$CC"; then
2946 if test -n "$ac_tool_prefix"; then
2947 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2948 set dummy ${ac_tool_prefix}cc; ac_word=$2
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2950 $as_echo_n "checking for $ac_word... " >&6; }
2951 if test "${ac_cv_prog_CC+set}" = set; then :
2952 $as_echo_n "(cached) " >&6
2954 if test -n "$CC"; then
2955 ac_cv_prog_CC="$CC" # Let the user override the test.
2957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2961 test -z "$as_dir" && as_dir=.
2962 for ac_exec_ext in '' $ac_executable_extensions; do
2963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2964 ac_cv_prog_CC="${ac_tool_prefix}cc"
2965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2975 if test -n "$CC"; then
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2977 $as_echo "$CC" >&6; }
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2980 $as_echo "no" >&6; }
2986 if test -z "$CC"; then
2987 # Extract the first word of "cc", so it can be a program name with args.
2988 set dummy cc; ac_word=$2
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2990 $as_echo_n "checking for $ac_word... " >&6; }
2991 if test "${ac_cv_prog_CC+set}" = set; then :
2992 $as_echo_n "(cached) " >&6
2994 if test -n "$CC"; then
2995 ac_cv_prog_CC="$CC" # Let the user override the test.
2998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3002 test -z "$as_dir" && as_dir=.
3003 for ac_exec_ext in '' $ac_executable_extensions; do
3004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3005 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3006 ac_prog_rejected=yes
3010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3017 if test $ac_prog_rejected = yes; then
3018 # We found a bogon in the path, so make sure we never use it.
3019 set dummy $ac_cv_prog_CC
3021 if test $# != 0; then
3022 # We chose a different compiler from the bogus one.
3023 # However, it has the same basename, so the bogon will be chosen
3024 # first if we set CC to just the basename; use the full file name.
3026 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3032 if test -n "$CC"; then
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3034 $as_echo "$CC" >&6; }
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3037 $as_echo "no" >&6; }
3042 if test -z "$CC"; then
3043 if test -n "$ac_tool_prefix"; then
3044 for ac_prog in cl.exe
3046 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3047 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3049 $as_echo_n "checking for $ac_word... " >&6; }
3050 if test "${ac_cv_prog_CC+set}" = set; then :
3051 $as_echo_n "(cached) " >&6
3053 if test -n "$CC"; then
3054 ac_cv_prog_CC="$CC" # Let the user override the test.
3056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3060 test -z "$as_dir" && as_dir=.
3061 for ac_exec_ext in '' $ac_executable_extensions; do
3062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3063 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3074 if test -n "$CC"; then
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3076 $as_echo "$CC" >&6; }
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3079 $as_echo "no" >&6; }
3083 test -n "$CC" && break
3086 if test -z "$CC"; then
3088 for ac_prog in cl.exe
3090 # Extract the first word of "$ac_prog", so it can be a program name with args.
3091 set dummy $ac_prog; ac_word=$2
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3093 $as_echo_n "checking for $ac_word... " >&6; }
3094 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3095 $as_echo_n "(cached) " >&6
3097 if test -n "$ac_ct_CC"; then
3098 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3104 test -z "$as_dir" && as_dir=.
3105 for ac_exec_ext in '' $ac_executable_extensions; do
3106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3107 ac_cv_prog_ac_ct_CC="$ac_prog"
3108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3117 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3118 if test -n "$ac_ct_CC"; then
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3120 $as_echo "$ac_ct_CC" >&6; }
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3123 $as_echo "no" >&6; }
3127 test -n "$ac_ct_CC" && break
3130 if test "x$ac_ct_CC" = x; then
3133 case $cross_compiling:$ac_tool_warned in
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3136 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3137 ac_tool_warned=yes ;;
3146 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3147 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3148 as_fn_error $? "no acceptable C compiler found in \$PATH
3149 See \`config.log' for more details" "$LINENO" 5 ; }
3151 # Provide some information about the compiler.
3152 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3155 for ac_option in --version -v -V -qversion; do
3156 { { ac_try="$ac_compiler $ac_option >&5"
3158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3159 *) ac_try_echo=$ac_try;;
3161 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3162 $as_echo "$ac_try_echo"; } >&5
3163 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3165 if test -s conftest.err; then
3167 ... rest of stderr output deleted ...
3168 10q' conftest.err >conftest.er1
3169 cat conftest.er1 >&5
3171 rm -f conftest.er1 conftest.err
3172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3173 test $ac_status = 0; }
3176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3177 /* end confdefs.h. */
3187 ac_clean_files_save=$ac_clean_files
3188 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3189 # Try to create an executable without -o first, disregard a.out.
3190 # It will help us diagnose broken compilers, and finding out an intuition
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3193 $as_echo_n "checking whether the C compiler works... " >&6; }
3194 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3196 # The possible output files:
3197 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3200 for ac_file in $ac_files
3203 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3204 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3209 if { { ac_try="$ac_link_default"
3211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3212 *) ac_try_echo=$ac_try;;
3214 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3215 $as_echo "$ac_try_echo"; } >&5
3216 (eval "$ac_link_default") 2>&5
3218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3219 test $ac_status = 0; }; then :
3220 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3221 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3222 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3223 # so that the user can short-circuit this test for compilers unknown to
3225 for ac_file in $ac_files ''
3227 test -f "$ac_file" || continue
3229 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3232 # We found the default executable, but exeext='' is most
3236 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3238 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3240 # We set ac_cv_exeext here because the later test for it is not
3241 # safe: cross compilers may not add the suffix if given an `-o'
3242 # argument, so we may need to know it at that point already.
3243 # Even if this section looks crufty: it has the advantage of
3250 test "$ac_cv_exeext" = no && ac_cv_exeext=
3255 if test -z "$ac_file"; then :
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3257 $as_echo "no" >&6; }
3258 $as_echo "$as_me: failed program was:" >&5
3259 sed 's/^/| /' conftest.$ac_ext >&5
3261 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3262 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3263 as_fn_error 77 "C compiler cannot create executables
3264 See \`config.log' for more details" "$LINENO" 5 ; }
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3267 $as_echo "yes" >&6; }
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3270 $as_echo_n "checking for C compiler default output file name... " >&6; }
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3272 $as_echo "$ac_file" >&6; }
3273 ac_exeext=$ac_cv_exeext
3275 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3276 ac_clean_files=$ac_clean_files_save
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3278 $as_echo_n "checking for suffix of executables... " >&6; }
3279 if { { ac_try="$ac_link"
3281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3282 *) ac_try_echo=$ac_try;;
3284 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3285 $as_echo "$ac_try_echo"; } >&5
3286 (eval "$ac_link") 2>&5
3288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3289 test $ac_status = 0; }; then :
3290 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3291 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3292 # work properly (i.e., refer to `conftest.exe'), while it won't with
3294 for ac_file in conftest.exe conftest conftest.*; do
3295 test -f "$ac_file" || continue
3297 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3298 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3304 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3305 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3306 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3307 See \`config.log' for more details" "$LINENO" 5 ; }
3309 rm -f conftest conftest$ac_cv_exeext
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3311 $as_echo "$ac_cv_exeext" >&6; }
3313 rm -f conftest.$ac_ext
3314 EXEEXT=$ac_cv_exeext
3316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3317 /* end confdefs.h. */
3322 FILE *f = fopen ("conftest.out", "w");
3323 return ferror (f) || fclose (f) != 0;
3329 ac_clean_files="$ac_clean_files conftest.out"
3330 # Check that the compiler produces executables we can run. If not, either
3331 # the compiler is broken, or we cross compile.
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3333 $as_echo_n "checking whether we are cross compiling... " >&6; }
3334 if test "$cross_compiling" != yes; then
3335 { { ac_try="$ac_link"
3337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3338 *) ac_try_echo=$ac_try;;
3340 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3341 $as_echo "$ac_try_echo"; } >&5
3342 (eval "$ac_link") 2>&5
3344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3345 test $ac_status = 0; }
3346 if { ac_try='./conftest$ac_cv_exeext'
3347 { { case "(($ac_try" in
3348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3349 *) ac_try_echo=$ac_try;;
3351 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3352 $as_echo "$ac_try_echo"; } >&5
3353 (eval "$ac_try") 2>&5
3355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3356 test $ac_status = 0; }; }; then
3359 if test "$cross_compiling" = maybe; then
3362 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3363 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3364 as_fn_error $? "cannot run C compiled programs.
3365 If you meant to cross compile, use \`--host'.
3366 See \`config.log' for more details" "$LINENO" 5 ; }
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3371 $as_echo "$cross_compiling" >&6; }
3373 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3374 ac_clean_files=$ac_clean_files_save
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3376 $as_echo_n "checking for suffix of object files... " >&6; }
3377 if test "${ac_cv_objext+set}" = set; then :
3378 $as_echo_n "(cached) " >&6
3380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3381 /* end confdefs.h. */
3391 rm -f conftest.o conftest.obj
3392 if { { ac_try="$ac_compile"
3394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3395 *) ac_try_echo=$ac_try;;
3397 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3398 $as_echo "$ac_try_echo"; } >&5
3399 (eval "$ac_compile") 2>&5
3401 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3402 test $ac_status = 0; }; then :
3403 for ac_file in conftest.o conftest.obj conftest.*; do
3404 test -f "$ac_file" || continue;
3406 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3407 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3412 $as_echo "$as_me: failed program was:" >&5
3413 sed 's/^/| /' conftest.$ac_ext >&5
3415 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3416 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3417 as_fn_error $? "cannot compute suffix of object files: cannot compile
3418 See \`config.log' for more details" "$LINENO" 5 ; }
3420 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3423 $as_echo "$ac_cv_objext" >&6; }
3424 OBJEXT=$ac_cv_objext
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3427 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3428 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3429 $as_echo_n "(cached) " >&6
3431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3432 /* end confdefs.h. */
3445 if ac_fn_c_try_compile "$LINENO"; then :
3450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3451 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3455 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3456 if test $ac_compiler_gnu = yes; then
3461 ac_test_CFLAGS=${CFLAGS+set}
3462 ac_save_CFLAGS=$CFLAGS
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3464 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3465 if test "${ac_cv_prog_cc_g+set}" = set; then :
3466 $as_echo_n "(cached) " >&6
3468 ac_save_c_werror_flag=$ac_c_werror_flag
3469 ac_c_werror_flag=yes
3472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3473 /* end confdefs.h. */
3483 if ac_fn_c_try_compile "$LINENO"; then :
3487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3488 /* end confdefs.h. */
3498 if ac_fn_c_try_compile "$LINENO"; then :
3501 ac_c_werror_flag=$ac_save_c_werror_flag
3503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3504 /* end confdefs.h. */
3514 if ac_fn_c_try_compile "$LINENO"; then :
3517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3522 ac_c_werror_flag=$ac_save_c_werror_flag
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3525 $as_echo "$ac_cv_prog_cc_g" >&6; }
3526 if test "$ac_test_CFLAGS" = set; then
3527 CFLAGS=$ac_save_CFLAGS
3528 elif test $ac_cv_prog_cc_g = yes; then
3529 if test "$GCC" = yes; then
3535 if test "$GCC" = yes; then
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3542 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3543 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3544 $as_echo_n "(cached) " >&6
3546 ac_cv_prog_cc_c89=no
3548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3549 /* end confdefs.h. */
3552 #include <sys/types.h>
3553 #include <sys/stat.h>
3554 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3555 struct buf { int x; };
3556 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3557 static char *e (p, i)
3563 static char *f (char * (*g) (char **, int), char **p, ...)
3568 s = g (p, va_arg (v,int));
3573 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3574 function prototypes and stuff, but not '\xHH' hex character constants.
3575 These don't provoke an error unfortunately, instead are silently treated
3576 as 'x'. The following induces an error, until -std is added to get
3577 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3578 array size at least. It's necessary to write '\x00'==0 to get something
3579 that's true only with -std. */
3580 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3582 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3583 inside strings and character constants. */
3585 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3587 int test (int i, double x);
3588 struct s1 {int (*f) (int a);};
3589 struct s2 {int (*f) (double a);};
3590 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3596 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3601 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3602 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3604 CC="$ac_save_CC $ac_arg"
3605 if ac_fn_c_try_compile "$LINENO"; then :
3606 ac_cv_prog_cc_c89=$ac_arg
3608 rm -f core conftest.err conftest.$ac_objext
3609 test "x$ac_cv_prog_cc_c89" != "xno" && break
3611 rm -f conftest.$ac_ext
3616 case "x$ac_cv_prog_cc_c89" in
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3619 $as_echo "none needed" >&6; } ;;
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3622 $as_echo "unsupported" >&6; } ;;
3624 CC="$CC $ac_cv_prog_cc_c89"
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3626 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3628 if test "x$ac_cv_prog_cc_c89" != xno; then :
3633 ac_cpp='$CPP $CPPFLAGS'
3634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3637 DEPDIR="${am__leading_dot}deps"
3639 ac_config_commands="$ac_config_commands depfiles"
3642 am_make=${MAKE-make}
3643 cat > confinc << 'END'
3645 @echo this is the am__doit target
3648 # If we don't find an include directive, just comment out the code.
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3650 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3654 # First try GNU make style include.
3655 echo "include confinc" > confmf
3656 # Ignore all kinds of additional output from `make'.
3657 case `$am_make -s -f confmf 2> /dev/null` in #(
3658 *the\ am__doit\ target*)
3664 # Now try BSD make style include.
3665 if test "$am__include" = "#"; then
3666 echo '.include "confinc"' > confmf
3667 case `$am_make -s -f confmf 2> /dev/null` in #(
3668 *the\ am__doit\ target*)
3669 am__include=.include
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3678 $as_echo "$_am_result" >&6; }
3679 rm -f confinc confmf
3681 # Check whether --enable-dependency-tracking was given.
3682 if test "${enable_dependency_tracking+set}" = set; then :
3683 enableval=$enable_dependency_tracking;
3686 if test "x$enable_dependency_tracking" != xno; then
3687 am_depcomp="$ac_aux_dir/depcomp"
3690 if test "x$enable_dependency_tracking" != xno; then
3700 depcc="$CC" am_compiler_list=
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3703 $as_echo_n "checking dependency style of $depcc... " >&6; }
3704 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3705 $as_echo_n "(cached) " >&6
3707 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3708 # We make a subdir and do the tests there. Otherwise we can end up
3709 # making bogus files that we don't know about and never remove. For
3710 # instance it was reported that on HP-UX the gcc test will end up
3711 # making a dummy file named `D' -- because `-MD' means `put the output
3714 # Copy depcomp to subdir because otherwise we won't find it if we're
3715 # using a relative directory.
3716 cp "$am_depcomp" conftest.dir
3718 # We will build objects and dependencies in a subdirectory because
3719 # it helps to detect inapplicable dependency modes. For instance
3720 # both Tru64's cc and ICC support -MD to output dependencies as a
3721 # side effect of compilation, but ICC will put the dependencies in
3722 # the current directory while Tru64 will put them in the object
3726 am_cv_CC_dependencies_compiler_type=none
3727 if test "$am_compiler_list" = ""; then
3728 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3731 case " $depcc " in #(
3732 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3735 for depmode in $am_compiler_list; do
3736 # Setup a source with many dependencies, because some compilers
3737 # like to wrap large dependency lists on column 80 (with \), and
3738 # we should not choose a depcomp mode which is confused by this.
3740 # We need to recreate these files for each test, as the compiler may
3741 # overwrite some of them when testing with obscure command lines.
3742 # This happens at least with the AIX C compiler.
3744 for i in 1 2 3 4 5 6; do
3745 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3746 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3747 # Solaris 8's {/usr,}/bin/sh.
3748 touch sub/conftst$i.h
3750 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3752 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3753 # mode. It turns out that the SunPro C++ compiler does not properly
3754 # handle `-M -o', and we need to detect this. Also, some Intel
3755 # versions had trouble with output in subdirs
3756 am__obj=sub/conftest.${OBJEXT-o}
3757 am__minus_obj="-o $am__obj"
3760 # This depmode causes a compiler race in universal mode.
3761 test "$am__universal" = false || continue
3764 # after this tag, mechanisms are not by side-effect, so they'll
3765 # only be used when explicitly requested
3766 if test "x$enable_dependency_tracking" = xyes; then
3772 msvisualcpp | msvcmsys)
3773 # This compiler won't grok `-c -o', but also, the minuso test has
3774 # not run yet. These depmodes are late enough in the game, and
3775 # so weak that their functioning should not be impacted.
3776 am__obj=conftest.${OBJEXT-o}
3781 if depmode=$depmode \
3782 source=sub/conftest.c object=$am__obj \
3783 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3784 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3785 >/dev/null 2>conftest.err &&
3786 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3787 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3788 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3789 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3790 # icc doesn't choke on unknown options, it will just issue warnings
3791 # or remarks (even with -Werror). So we grep stderr for any message
3792 # that says an option was ignored or not supported.
3793 # When given -MP, icc 7.0 and 7.1 complain thusly:
3794 # icc: Command line warning: ignoring option '-M'; no argument required
3795 # The diagnosis changed in icc 8.0:
3796 # icc: Command line remark: option '-MP' not supported
3797 if (grep 'ignoring option' conftest.err ||
3798 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3799 am_cv_CC_dependencies_compiler_type=$depmode
3808 am_cv_CC_dependencies_compiler_type=none
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3813 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3814 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3817 test "x$enable_dependency_tracking" != xno \
3818 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3820 am__fastdepCC_FALSE='#'
3822 am__fastdepCC_TRUE='#'
3823 am__fastdepCC_FALSE=
3827 if test "x$CC" != xcc; then
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
3829 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
3832 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
3834 set dummy $CC; ac_cc=`$as_echo "$2" |
3835 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3836 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\"" = set; then :
3837 $as_echo_n "(cached) " >&6
3839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3840 /* end confdefs.h. */
3850 # Make sure it works both with $CC and with simple cc.
3851 # We do the test twice because some compilers refuse to overwrite an
3852 # existing .o file with -o, though they will create one.
3853 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3855 if { { case "(($ac_try" in
3856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3857 *) ac_try_echo=$ac_try;;
3859 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3860 $as_echo "$ac_try_echo"; } >&5
3861 (eval "$ac_try") 2>&5
3863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3864 test $ac_status = 0; } &&
3865 test -f conftest2.$ac_objext && { { case "(($ac_try" in
3866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3867 *) ac_try_echo=$ac_try;;
3869 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3870 $as_echo "$ac_try_echo"; } >&5
3871 (eval "$ac_try") 2>&5
3873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3874 test $ac_status = 0; };
3876 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3877 if test "x$CC" != xcc; then
3878 # Test first that cc exists at all.
3879 if { ac_try='cc -c conftest.$ac_ext >&5'
3880 { { case "(($ac_try" in
3881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3882 *) ac_try_echo=$ac_try;;
3884 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3885 $as_echo "$ac_try_echo"; } >&5
3886 (eval "$ac_try") 2>&5
3888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3889 test $ac_status = 0; }; }; then
3890 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3892 if { { case "(($ac_try" in
3893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3894 *) ac_try_echo=$ac_try;;
3896 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3897 $as_echo "$ac_try_echo"; } >&5
3898 (eval "$ac_try") 2>&5
3900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3901 test $ac_status = 0; } &&
3902 test -f conftest2.$ac_objext && { { case "(($ac_try" in
3903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3904 *) ac_try_echo=$ac_try;;
3906 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3907 $as_echo "$ac_try_echo"; } >&5
3908 (eval "$ac_try") 2>&5
3910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3911 test $ac_status = 0; };
3916 # cc exists but doesn't like -o.
3917 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3922 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3924 rm -f core conftest*
3927 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3929 $as_echo "yes" >&6; }
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3932 $as_echo "no" >&6; }
3934 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
3938 # FIXME: we rely on the cache variable name because
3939 # there is no other way.
3941 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3942 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
3943 if test "$am_t" != yes; then
3944 # Losing compiler, so override with the script.
3945 # FIXME: It is wrong to rewrite CC.
3946 # But if we don't then we get into trouble of one sort or another.
3947 # A longer-term fix would be to have automake use am__CC in this case,
3948 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3949 CC="$am_aux_dir/compile $CC"
3955 if test -n "$ac_tool_prefix"; then
3956 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3957 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3959 $as_echo_n "checking for $ac_word... " >&6; }
3960 if test "${ac_cv_prog_RANLIB+set}" = set; then :
3961 $as_echo_n "(cached) " >&6
3963 if test -n "$RANLIB"; then
3964 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3970 test -z "$as_dir" && as_dir=.
3971 for ac_exec_ext in '' $ac_executable_extensions; do
3972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3973 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3983 RANLIB=$ac_cv_prog_RANLIB
3984 if test -n "$RANLIB"; then
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3986 $as_echo "$RANLIB" >&6; }
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3989 $as_echo "no" >&6; }
3994 if test -z "$ac_cv_prog_RANLIB"; then
3995 ac_ct_RANLIB=$RANLIB
3996 # Extract the first word of "ranlib", so it can be a program name with args.
3997 set dummy ranlib; ac_word=$2
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3999 $as_echo_n "checking for $ac_word... " >&6; }
4000 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4001 $as_echo_n "(cached) " >&6
4003 if test -n "$ac_ct_RANLIB"; then
4004 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4010 test -z "$as_dir" && as_dir=.
4011 for ac_exec_ext in '' $ac_executable_extensions; do
4012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4013 ac_cv_prog_ac_ct_RANLIB="ranlib"
4014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4023 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4024 if test -n "$ac_ct_RANLIB"; then
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4026 $as_echo "$ac_ct_RANLIB" >&6; }
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4029 $as_echo "no" >&6; }
4032 if test "x$ac_ct_RANLIB" = x; then
4035 case $cross_compiling:$ac_tool_warned in
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4038 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4039 ac_tool_warned=yes ;;
4041 RANLIB=$ac_ct_RANLIB
4044 RANLIB="$ac_cv_prog_RANLIB"
4048 # Checks for header files.
4051 ac_cpp='$CPP $CPPFLAGS'
4052 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4053 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4054 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4056 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4057 # On Suns, sometimes $CPP names a directory.
4058 if test -n "$CPP" && test -d "$CPP"; then
4061 if test -z "$CPP"; then
4062 if test "${ac_cv_prog_CPP+set}" = set; then :
4063 $as_echo_n "(cached) " >&6
4065 # Double quotes because CPP needs to be expanded
4066 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4069 for ac_c_preproc_warn_flag in '' yes
4071 # Use a header file that comes with gcc, so configuring glibc
4072 # with a fresh cross-compiler works.
4073 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4074 # <limits.h> exists even on freestanding compilers.
4075 # On the NeXT, cc -E runs the code through the compiler's parser,
4076 # not just through cpp. "Syntax error" is here to catch this case.
4077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4078 /* end confdefs.h. */
4080 # include <limits.h>
4082 # include <assert.h>
4086 if ac_fn_c_try_cpp "$LINENO"; then :
4089 # Broken: fails on valid input.
4092 rm -f conftest.err conftest.i conftest.$ac_ext
4094 # OK, works on sane cases. Now check whether nonexistent headers
4095 # can be detected and how.
4096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4097 /* end confdefs.h. */
4098 #include <ac_nonexistent.h>
4100 if ac_fn_c_try_cpp "$LINENO"; then :
4101 # Broken: success on invalid input.
4104 # Passes both tests.
4108 rm -f conftest.err conftest.i conftest.$ac_ext
4111 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4112 rm -f conftest.i conftest.err conftest.$ac_ext
4113 if $ac_preproc_ok; then :
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4126 $as_echo "$CPP" >&6; }
4128 for ac_c_preproc_warn_flag in '' yes
4130 # Use a header file that comes with gcc, so configuring glibc
4131 # with a fresh cross-compiler works.
4132 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4133 # <limits.h> exists even on freestanding compilers.
4134 # On the NeXT, cc -E runs the code through the compiler's parser,
4135 # not just through cpp. "Syntax error" is here to catch this case.
4136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4137 /* end confdefs.h. */
4139 # include <limits.h>
4141 # include <assert.h>
4145 if ac_fn_c_try_cpp "$LINENO"; then :
4148 # Broken: fails on valid input.
4151 rm -f conftest.err conftest.i conftest.$ac_ext
4153 # OK, works on sane cases. Now check whether nonexistent headers
4154 # can be detected and how.
4155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4156 /* end confdefs.h. */
4157 #include <ac_nonexistent.h>
4159 if ac_fn_c_try_cpp "$LINENO"; then :
4160 # Broken: success on invalid input.
4163 # Passes both tests.
4167 rm -f conftest.err conftest.i conftest.$ac_ext
4170 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4171 rm -f conftest.i conftest.err conftest.$ac_ext
4172 if $ac_preproc_ok; then :
4175 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4176 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4177 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4178 See \`config.log' for more details" "$LINENO" 5 ; }
4182 ac_cpp='$CPP $CPPFLAGS'
4183 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4184 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4185 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
4189 $as_echo_n "checking for X... " >&6; }
4192 # Check whether --with-x was given.
4193 if test "${with_x+set}" = set; then :
4197 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4198 if test "x$with_x" = xno; then
4199 # The user explicitly disabled X.
4202 case $x_includes,$x_libraries in #(
4203 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5 ;; #(
4204 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
4205 $as_echo_n "(cached) " >&6
4207 # One or both of the vars are not set, and there is no cached value.
4208 ac_x_includes=no ac_x_libraries=no
4209 rm -f -r conftest.dir
4210 if mkdir conftest.dir; then
4212 cat >Imakefile <<'_ACEOF'
4214 @echo incroot='${INCROOT}'
4216 @echo usrlibdir='${USRLIBDIR}'
4218 @echo libdir='${LIBDIR}'
4220 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
4221 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4222 for ac_var in incroot usrlibdir libdir; do
4223 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
4225 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4226 for ac_extension in a so sl dylib la dll; do
4227 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
4228 test -f "$ac_im_libdir/libX11.$ac_extension"; then
4229 ac_im_usrlibdir=$ac_im_libdir; break
4232 # Screen out bogus values from the imake configuration. They are
4233 # bogus both because they are the default anyway, and because
4234 # using them would break gcc on systems where it needs fixed includes.
4235 case $ac_im_incroot in
4236 /usr/include) ac_x_includes= ;;
4237 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4239 case $ac_im_usrlibdir in
4240 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
4241 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4245 rm -f -r conftest.dir
4248 # Standard set of common directories for X headers.
4249 # Check X11 before X11Rn because it is often a symlink to the current release.
4263 /usr/local/X11/include
4264 /usr/local/X11R7/include
4265 /usr/local/X11R6/include
4266 /usr/local/X11R5/include
4267 /usr/local/X11R4/include
4269 /usr/local/include/X11
4270 /usr/local/include/X11R7
4271 /usr/local/include/X11R6
4272 /usr/local/include/X11R5
4273 /usr/local/include/X11R4
4277 /usr/XFree86/include/X11
4281 /usr/unsupported/include
4283 /usr/local/x11r5/include
4284 /usr/lpp/Xamples/include
4286 /usr/openwin/include
4287 /usr/openwin/share/include'
4289 if test "$ac_x_includes" = no; then
4290 # Guess where to find include files, by looking for Xlib.h.
4291 # First, try using that file with no special directory specified.
4292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4293 /* end confdefs.h. */
4294 #include <X11/Xlib.h>
4296 if ac_fn_c_try_cpp "$LINENO"; then :
4297 # We can compile using X headers with no special include directory.
4300 for ac_dir in $ac_x_header_dirs; do
4301 if test -r "$ac_dir/X11/Xlib.h"; then
4302 ac_x_includes=$ac_dir
4307 rm -f conftest.err conftest.i conftest.$ac_ext
4308 fi # $ac_x_includes = no
4310 if test "$ac_x_libraries" = no; then
4311 # Check for the libraries.
4312 # See if we find them without any special options.
4313 # Don't add to $LIBS permanently.
4316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4317 /* end confdefs.h. */
4318 #include <X11/Xlib.h>
4327 if ac_fn_c_try_link "$LINENO"; then :
4329 # We can link X programs with no special library path.
4333 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4335 # Don't even attempt the hair of trying to link an X program!
4336 for ac_extension in a so sl dylib la dll; do
4337 if test -r "$ac_dir/libX11.$ac_extension"; then
4338 ac_x_libraries=$ac_dir
4344 rm -f core conftest.err conftest.$ac_objext \
4345 conftest$ac_exeext conftest.$ac_ext
4346 fi # $ac_x_libraries = no
4348 case $ac_x_includes,$ac_x_libraries in #(
4350 # Didn't find X, or a directory has "'" in its name.
4351 ac_cv_have_x="have_x=no";; #(
4353 # Record where we found X for the cache.
4354 ac_cv_have_x="have_x=yes\
4355 ac_x_includes='$ac_x_includes'\
4356 ac_x_libraries='$ac_x_libraries'"
4362 eval "$ac_cv_have_x"
4365 if test "$have_x" != yes; then
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
4367 $as_echo "$have_x" >&6; }
4370 # If each of the values was on the command line, it overrides each guess.
4371 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4372 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4373 # Update the cache value to reflect the command line values.
4374 ac_cv_have_x="have_x=yes\
4375 ac_x_includes='$x_includes'\
4376 ac_x_libraries='$x_libraries'"
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
4378 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4382 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4383 if test "${ac_cv_path_GREP+set}" = set; then :
4384 $as_echo_n "(cached) " >&6
4386 if test -z "$GREP"; then
4387 ac_path_GREP_found=false
4388 # Loop through the user's path and test for each of PROGNAME-LIST
4389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4390 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4393 test -z "$as_dir" && as_dir=.
4394 for ac_prog in grep ggrep; do
4395 for ac_exec_ext in '' $ac_executable_extensions; do
4396 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4397 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4398 # Check for GNU ac_path_GREP and select it if it is found.
4399 # Check for GNU $ac_path_GREP
4400 case `"$ac_path_GREP" --version 2>&1` in
4402 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4405 $as_echo_n 0123456789 >"conftest.in"
4408 cat "conftest.in" "conftest.in" >"conftest.tmp"
4409 mv "conftest.tmp" "conftest.in"
4410 cp "conftest.in" "conftest.nl"
4411 $as_echo 'GREP' >> "conftest.nl"
4412 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4413 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4414 as_fn_arith $ac_count + 1 && ac_count=$as_val
4415 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4416 # Best one so far, save it but keep looking for a better one
4417 ac_cv_path_GREP="$ac_path_GREP"
4418 ac_path_GREP_max=$ac_count
4420 # 10*(2^10) chars as input seems more than enough
4421 test $ac_count -gt 10 && break
4423 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4426 $ac_path_GREP_found && break 3
4431 if test -z "$ac_cv_path_GREP"; then
4432 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4435 ac_cv_path_GREP=$GREP
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4440 $as_echo "$ac_cv_path_GREP" >&6; }
4441 GREP="$ac_cv_path_GREP"
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4445 $as_echo_n "checking for egrep... " >&6; }
4446 if test "${ac_cv_path_EGREP+set}" = set; then :
4447 $as_echo_n "(cached) " >&6
4449 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4450 then ac_cv_path_EGREP="$GREP -E"
4452 if test -z "$EGREP"; then
4453 ac_path_EGREP_found=false
4454 # Loop through the user's path and test for each of PROGNAME-LIST
4455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4456 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4459 test -z "$as_dir" && as_dir=.
4460 for ac_prog in egrep; do
4461 for ac_exec_ext in '' $ac_executable_extensions; do
4462 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4463 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4464 # Check for GNU ac_path_EGREP and select it if it is found.
4465 # Check for GNU $ac_path_EGREP
4466 case `"$ac_path_EGREP" --version 2>&1` in
4468 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4471 $as_echo_n 0123456789 >"conftest.in"
4474 cat "conftest.in" "conftest.in" >"conftest.tmp"
4475 mv "conftest.tmp" "conftest.in"
4476 cp "conftest.in" "conftest.nl"
4477 $as_echo 'EGREP' >> "conftest.nl"
4478 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4479 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4480 as_fn_arith $ac_count + 1 && ac_count=$as_val
4481 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4482 # Best one so far, save it but keep looking for a better one
4483 ac_cv_path_EGREP="$ac_path_EGREP"
4484 ac_path_EGREP_max=$ac_count
4486 # 10*(2^10) chars as input seems more than enough
4487 test $ac_count -gt 10 && break
4489 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4492 $ac_path_EGREP_found && break 3
4497 if test -z "$ac_cv_path_EGREP"; then
4498 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4501 ac_cv_path_EGREP=$EGREP
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4507 $as_echo "$ac_cv_path_EGREP" >&6; }
4508 EGREP="$ac_cv_path_EGREP"
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4512 $as_echo_n "checking for ANSI C header files... " >&6; }
4513 if test "${ac_cv_header_stdc+set}" = set; then :
4514 $as_echo_n "(cached) " >&6
4516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4517 /* end confdefs.h. */
4531 if ac_fn_c_try_compile "$LINENO"; then :
4532 ac_cv_header_stdc=yes
4534 ac_cv_header_stdc=no
4536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4538 if test $ac_cv_header_stdc = yes; then
4539 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4541 /* end confdefs.h. */
4545 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4546 $EGREP "memchr" >/dev/null 2>&1; then :
4549 ac_cv_header_stdc=no
4555 if test $ac_cv_header_stdc = yes; then
4556 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4558 /* end confdefs.h. */
4562 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4563 $EGREP "free" >/dev/null 2>&1; then :
4566 ac_cv_header_stdc=no
4572 if test $ac_cv_header_stdc = yes; then
4573 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4574 if test "$cross_compiling" = yes; then :
4577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4578 /* end confdefs.h. */
4581 #if ((' ' & 0x0FF) == 0x020)
4582 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4583 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4585 # define ISLOWER(c) \
4586 (('a' <= (c) && (c) <= 'i') \
4587 || ('j' <= (c) && (c) <= 'r') \
4588 || ('s' <= (c) && (c) <= 'z'))
4589 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4592 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4597 for (i = 0; i < 256; i++)
4598 if (XOR (islower (i), ISLOWER (i))
4599 || toupper (i) != TOUPPER (i))
4604 if ac_fn_c_try_run "$LINENO"; then :
4607 ac_cv_header_stdc=no
4609 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4610 conftest.$ac_objext conftest.beam conftest.$ac_ext
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4616 $as_echo "$ac_cv_header_stdc" >&6; }
4617 if test $ac_cv_header_stdc = yes; then
4619 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4623 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4624 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4625 inttypes.h stdint.h unistd.h
4627 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4628 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4630 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4631 cat >>confdefs.h <<_ACEOF
4632 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4640 for ac_header in arpa/inet.h netinet/in.h stdint.h stdlib.h string.h sys/socket.h sys/time.h unistd.h getopt.h
4642 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4643 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4644 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4645 cat >>confdefs.h <<_ACEOF
4646 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4654 # Checks for typedefs, structures, and compiler characteristics.
4655 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
4656 if test "x$ac_cv_type_size_t" = x""yes; then :
4660 cat >>confdefs.h <<_ACEOF
4661 #define size_t unsigned int
4666 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
4667 if test "x$ac_cv_type_ssize_t" = x""yes; then :
4671 cat >>confdefs.h <<_ACEOF
4678 # Checks for library functions.
4679 for ac_header in stdlib.h
4681 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
4682 if test "x$ac_cv_header_stdlib_h" = x""yes; then :
4683 cat >>confdefs.h <<_ACEOF
4684 #define HAVE_STDLIB_H 1
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
4692 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
4693 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
4694 $as_echo_n "(cached) " >&6
4696 if test "$cross_compiling" = yes; then :
4697 ac_cv_func_malloc_0_nonnull=no
4699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4700 /* end confdefs.h. */
4701 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
4702 # include <stdlib.h>
4710 return ! malloc (0);
4715 if ac_fn_c_try_run "$LINENO"; then :
4716 ac_cv_func_malloc_0_nonnull=yes
4718 ac_cv_func_malloc_0_nonnull=no
4720 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4721 conftest.$ac_objext conftest.beam conftest.$ac_ext
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
4726 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
4727 if test $ac_cv_func_malloc_0_nonnull = yes; then :
4729 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
4732 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
4734 case " $LIBOBJS " in
4735 *" malloc.$ac_objext "* ) ;;
4736 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
4741 $as_echo "#define malloc rpl_malloc" >>confdefs.h
4746 for ac_header in stdlib.h
4748 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
4749 if test "x$ac_cv_header_stdlib_h" = x""yes; then :
4750 cat >>confdefs.h <<_ACEOF
4751 #define HAVE_STDLIB_H 1
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
4759 $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
4760 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then :
4761 $as_echo_n "(cached) " >&6
4763 if test "$cross_compiling" = yes; then :
4764 ac_cv_func_realloc_0_nonnull=no
4766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4767 /* end confdefs.h. */
4768 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
4769 # include <stdlib.h>
4777 return ! realloc (0, 0);
4782 if ac_fn_c_try_run "$LINENO"; then :
4783 ac_cv_func_realloc_0_nonnull=yes
4785 ac_cv_func_realloc_0_nonnull=no
4787 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4788 conftest.$ac_objext conftest.beam conftest.$ac_ext
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
4793 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
4794 if test $ac_cv_func_realloc_0_nonnull = yes; then :
4796 $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
4799 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
4801 case " $LIBOBJS " in
4802 *" realloc.$ac_objext "* ) ;;
4803 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
4808 $as_echo "#define realloc rpl_realloc" >>confdefs.h
4813 for ac_func in gettimeofday memmove socket strdup strtol
4815 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4816 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4817 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
4818 cat >>confdefs.h <<_ACEOF
4819 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
4829 $as_echo_n "checking whether NLS is requested... " >&6; }
4830 # Check whether --enable-nls was given.
4831 if test "${enable_nls+set}" = set; then :
4832 enableval=$enable_nls; USE_NLS=$enableval
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
4838 $as_echo "$USE_NLS" >&6; }
4843 GETTEXT_MACRO_VERSION=0.18
4848 # Prepare PATH_SEPARATOR.
4849 # The user is always right.
4850 if test "${PATH_SEPARATOR+set}" != set; then
4851 echo "#! /bin/sh" >conf$$.sh
4852 echo "exit 0" >>conf$$.sh
4854 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4862 # Find out how to test for executable files. Don't use a zero-byte file,
4863 # as systems may use methods other than mode bits to determine executability.
4864 cat >conf$$.file <<_ASEOF
4868 chmod +x conf$$.file
4869 if test -x conf$$.file >/dev/null 2>&1; then
4870 ac_executable_p="test -x"
4872 ac_executable_p="test -f"
4876 # Extract the first word of "msgfmt", so it can be a program name with args.
4877 set dummy msgfmt; ac_word=$2
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4879 $as_echo_n "checking for $ac_word... " >&6; }
4880 if test "${ac_cv_path_MSGFMT+set}" = set; then :
4881 $as_echo_n "(cached) " >&6
4885 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4888 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4889 for ac_dir in $PATH; do
4891 test -z "$ac_dir" && ac_dir=.
4892 for ac_exec_ext in '' $ac_executable_extensions; do
4893 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4894 echo "$as_me: trying $ac_dir/$ac_word..." >&5
4895 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
4896 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4897 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4904 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4908 MSGFMT="$ac_cv_path_MSGFMT"
4909 if test "$MSGFMT" != ":"; then
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
4911 $as_echo "$MSGFMT" >&6; }
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4914 $as_echo "no" >&6; }
4917 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4918 set dummy gmsgfmt; ac_word=$2
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4920 $as_echo_n "checking for $ac_word... " >&6; }
4921 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
4922 $as_echo_n "(cached) " >&6
4926 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4933 test -z "$as_dir" && as_dir=.
4934 for ac_exec_ext in '' $ac_executable_extensions; do
4935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4936 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4944 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4948 GMSGFMT=$ac_cv_path_GMSGFMT
4949 if test -n "$GMSGFMT"; then
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
4951 $as_echo "$GMSGFMT" >&6; }
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4954 $as_echo "no" >&6; }
4959 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
4960 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
4961 *) MSGFMT_015=$MSGFMT ;;
4964 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
4965 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
4966 *) GMSGFMT_015=$GMSGFMT ;;
4971 # Prepare PATH_SEPARATOR.
4972 # The user is always right.
4973 if test "${PATH_SEPARATOR+set}" != set; then
4974 echo "#! /bin/sh" >conf$$.sh
4975 echo "exit 0" >>conf$$.sh
4977 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4985 # Find out how to test for executable files. Don't use a zero-byte file,
4986 # as systems may use methods other than mode bits to determine executability.
4987 cat >conf$$.file <<_ASEOF
4991 chmod +x conf$$.file
4992 if test -x conf$$.file >/dev/null 2>&1; then
4993 ac_executable_p="test -x"
4995 ac_executable_p="test -f"
4999 # Extract the first word of "xgettext", so it can be a program name with args.
5000 set dummy xgettext; ac_word=$2
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5002 $as_echo_n "checking for $ac_word... " >&6; }
5003 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
5004 $as_echo_n "(cached) " >&6
5008 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5011 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5012 for ac_dir in $PATH; do
5014 test -z "$ac_dir" && ac_dir=.
5015 for ac_exec_ext in '' $ac_executable_extensions; do
5016 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5017 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5018 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
5019 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5020 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5027 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5031 XGETTEXT="$ac_cv_path_XGETTEXT"
5032 if test "$XGETTEXT" != ":"; then
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
5034 $as_echo "$XGETTEXT" >&6; }
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5037 $as_echo "no" >&6; }
5042 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5043 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
5044 *) XGETTEXT_015=$XGETTEXT ;;
5049 # Prepare PATH_SEPARATOR.
5050 # The user is always right.
5051 if test "${PATH_SEPARATOR+set}" != set; then
5052 echo "#! /bin/sh" >conf$$.sh
5053 echo "exit 0" >>conf$$.sh
5055 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5063 # Find out how to test for executable files. Don't use a zero-byte file,
5064 # as systems may use methods other than mode bits to determine executability.
5065 cat >conf$$.file <<_ASEOF
5069 chmod +x conf$$.file
5070 if test -x conf$$.file >/dev/null 2>&1; then
5071 ac_executable_p="test -x"
5073 ac_executable_p="test -f"
5077 # Extract the first word of "msgmerge", so it can be a program name with args.
5078 set dummy msgmerge; ac_word=$2
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5080 $as_echo_n "checking for $ac_word... " >&6; }
5081 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
5082 $as_echo_n "(cached) " >&6
5086 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5089 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5090 for ac_dir in $PATH; do
5092 test -z "$ac_dir" && ac_dir=.
5093 for ac_exec_ext in '' $ac_executable_extensions; do
5094 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5095 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5096 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
5097 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5104 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5108 MSGMERGE="$ac_cv_path_MSGMERGE"
5109 if test "$MSGMERGE" != ":"; then
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
5111 $as_echo "$MSGMERGE" >&6; }
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5114 $as_echo "no" >&6; }
5118 test -n "$localedir" || localedir='${datadir}/locale'
5121 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
5124 ac_config_commands="$ac_config_commands po-directories"
5128 if test "X$prefix" = "XNONE"; then
5129 acl_final_prefix="$ac_default_prefix"
5131 acl_final_prefix="$prefix"
5133 if test "X$exec_prefix" = "XNONE"; then
5134 acl_final_exec_prefix='${prefix}'
5136 acl_final_exec_prefix="$exec_prefix"
5138 acl_save_prefix="$prefix"
5139 prefix="$acl_final_prefix"
5140 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5141 prefix="$acl_save_prefix"
5143 # Make sure we can run config.sub.
5144 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5145 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5148 $as_echo_n "checking build system type... " >&6; }
5149 if test "${ac_cv_build+set}" = set; then :
5150 $as_echo_n "(cached) " >&6
5152 ac_build_alias=$build_alias
5153 test "x$ac_build_alias" = x &&
5154 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5155 test "x$ac_build_alias" = x &&
5156 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5157 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5158 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5162 $as_echo "$ac_cv_build" >&6; }
5163 case $ac_cv_build in
5165 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
5168 ac_save_IFS=$IFS; IFS='-'
5174 # Remember, the first character of IFS is used to create $*,
5175 # except with old shells:
5178 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5182 $as_echo_n "checking host system type... " >&6; }
5183 if test "${ac_cv_host+set}" = set; then :
5184 $as_echo_n "(cached) " >&6
5186 if test "x$host_alias" = x; then
5187 ac_cv_host=$ac_cv_build
5189 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5190 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5195 $as_echo "$ac_cv_host" >&6; }
5198 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
5201 ac_save_IFS=$IFS; IFS='-'
5207 # Remember, the first character of IFS is used to create $*,
5208 # except with old shells:
5211 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5215 # Check whether --with-gnu-ld was given.
5216 if test "${with_gnu_ld+set}" = set; then :
5217 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5222 # Prepare PATH_SEPARATOR.
5223 # The user is always right.
5224 if test "${PATH_SEPARATOR+set}" != set; then
5225 echo "#! /bin/sh" >conf$$.sh
5226 echo "exit 0" >>conf$$.sh
5228 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5236 if test "$GCC" = yes; then
5237 # Check if gcc -print-prog-name=ld gives a path.
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
5239 $as_echo_n "checking for ld used by GCC... " >&6; }
5242 # gcc leaves a trailing carriage return which upsets mingw
5243 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5245 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5248 # Accept absolute paths.
5249 [\\/]* | [A-Za-z]:[\\/]*)
5250 re_direlt='/[^/][^/]*/\.\./'
5251 # Canonicalize the path of ld
5252 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5253 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5254 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5256 test -z "$LD" && LD="$ac_prog"
5259 # If it fails, then pretend we aren't using GCC.
5263 # If it is relative, then search for the first ld in PATH.
5267 elif test "$with_gnu_ld" = yes; then
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5269 $as_echo_n "checking for GNU ld... " >&6; }
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5272 $as_echo_n "checking for non-GNU ld... " >&6; }
5274 if test "${acl_cv_path_LD+set}" = set; then :
5275 $as_echo_n "(cached) " >&6
5277 if test -z "$LD"; then
5278 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5279 for ac_dir in $PATH; do
5280 test -z "$ac_dir" && ac_dir=.
5281 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5282 acl_cv_path_LD="$ac_dir/$ac_prog"
5283 # Check to see if the program is GNU ld. I'd rather use --version,
5284 # but apparently some GNU ld's only accept -v.
5285 # Break only if it was the GNU/non-GNU ld that we prefer.
5286 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
5287 *GNU* | *'with BFD'*)
5288 test "$with_gnu_ld" != no && break ;;
5290 test "$with_gnu_ld" != yes && break ;;
5296 acl_cv_path_LD="$LD" # Let the user override the test with a path.
5300 LD="$acl_cv_path_LD"
5301 if test -n "$LD"; then
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5303 $as_echo "$LD" >&6; }
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5306 $as_echo "no" >&6; }
5308 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5310 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5311 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
5312 $as_echo_n "(cached) " >&6
5314 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5315 case `$LD -v 2>&1 </dev/null` in
5316 *GNU* | *'with BFD'*)
5317 acl_cv_prog_gnu_ld=yes ;;
5319 acl_cv_prog_gnu_ld=no ;;
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
5323 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
5324 with_gnu_ld=$acl_cv_prog_gnu_ld
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
5330 $as_echo_n "checking for shared library run path origin... " >&6; }
5331 if test "${acl_cv_rpath+set}" = set; then :
5332 $as_echo_n "(cached) " >&6
5335 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5336 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
5343 $as_echo "$acl_cv_rpath" >&6; }
5345 acl_libext="$acl_cv_libext"
5346 acl_shlibext="$acl_cv_shlibext"
5347 acl_libname_spec="$acl_cv_libname_spec"
5348 acl_library_names_spec="$acl_cv_library_names_spec"
5349 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5350 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5351 acl_hardcode_direct="$acl_cv_hardcode_direct"
5352 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
5353 # Check whether --enable-rpath was given.
5354 if test "${enable_rpath+set}" = set; then :
5355 enableval=$enable_rpath; :
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
5368 $as_echo_n "checking for 64-bit host... " >&6; }
5369 if test "${gl_cv_solaris_64bit+set}" = set; then :
5370 $as_echo_n "(cached) " >&6
5372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5373 /* end confdefs.h. */
5380 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5381 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
5382 gl_cv_solaris_64bit=yes
5384 gl_cv_solaris_64bit=no
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
5391 $as_echo "$gl_cv_solaris_64bit" >&6; }
5392 if test $gl_cv_solaris_64bit = yes; then
5393 acl_libdirstem=lib/64
5395 sparc*) acl_libdirstem2=lib/sparcv9 ;;
5396 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
5401 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
5402 if test -n "$searchpath"; then
5403 acl_save_IFS="${IFS= }"; IFS=":"
5404 for searchdir in $searchpath; do
5405 if test -d "$searchdir"; then
5406 case "$searchdir" in
5407 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
5409 # Better ignore directories of this form. They are misleading.
5411 *) searchdir=`cd "$searchdir" && pwd`
5412 case "$searchdir" in
5413 */lib64 ) acl_libdirstem=lib64 ;;
5422 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
5437 acl_save_prefix="$prefix"
5438 prefix="$acl_final_prefix"
5439 acl_save_exec_prefix="$exec_prefix"
5440 exec_prefix="$acl_final_exec_prefix"
5442 eval additional_includedir=\"$includedir\"
5443 eval additional_libdir=\"$libdir\"
5445 exec_prefix="$acl_save_exec_prefix"
5446 prefix="$acl_save_prefix"
5449 # Check whether --with-libiconv-prefix was given.
5450 if test "${with_libiconv_prefix+set}" = set; then :
5451 withval=$with_libiconv_prefix;
5452 if test "X$withval" = "Xno"; then
5455 if test "X$withval" = "X"; then
5457 acl_save_prefix="$prefix"
5458 prefix="$acl_final_prefix"
5459 acl_save_exec_prefix="$exec_prefix"
5460 exec_prefix="$acl_final_exec_prefix"
5462 eval additional_includedir=\"$includedir\"
5463 eval additional_libdir=\"$libdir\"
5465 exec_prefix="$acl_save_exec_prefix"
5466 prefix="$acl_save_prefix"
5469 additional_includedir="$withval/include"
5470 additional_libdir="$withval/$acl_libdirstem"
5471 if test "$acl_libdirstem2" != "$acl_libdirstem" \
5472 && ! test -d "$withval/$acl_libdirstem"; then
5473 additional_libdir="$withval/$acl_libdirstem2"
5487 names_already_handled=
5488 names_next_round='iconv '
5489 while test -n "$names_next_round"; do
5490 names_this_round="$names_next_round"
5492 for name in $names_this_round; do
5494 for n in $names_already_handled; do
5495 if test "$n" = "$name"; then
5500 if test -z "$already_handled"; then
5501 names_already_handled="$names_already_handled $name"
5502 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5503 eval value=\"\$HAVE_LIB$uppername\"
5504 if test -n "$value"; then
5505 if test "$value" = yes; then
5506 eval value=\"\$LIB$uppername\"
5507 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
5508 eval value=\"\$LTLIB$uppername\"
5509 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
5518 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
5519 if test -n "$acl_shlibext"; then
5520 shrext=".$acl_shlibext" # typically: shrext=.so
5524 if test $use_additional = yes; then
5525 dir="$additional_libdir"
5526 if test -n "$acl_shlibext"; then
5527 if test -f "$dir/$libname$shrext"; then
5529 found_so="$dir/$libname$shrext"
5531 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5532 ver=`(cd "$dir" && \
5533 for f in "$libname$shrext".*; do echo "$f"; done \
5534 | sed -e "s,^$libname$shrext\\\\.,," \
5535 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5536 | sed 1q ) 2>/dev/null`
5537 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5539 found_so="$dir/$libname$shrext.$ver"
5542 eval library_names=\"$acl_library_names_spec\"
5543 for f in $library_names; do
5544 if test -f "$dir/$f"; then
5553 if test "X$found_dir" = "X"; then
5554 if test -f "$dir/$libname.$acl_libext"; then
5556 found_a="$dir/$libname.$acl_libext"
5559 if test "X$found_dir" != "X"; then
5560 if test -f "$dir/$libname.la"; then
5561 found_la="$dir/$libname.la"
5565 if test "X$found_dir" = "X"; then
5566 for x in $LDFLAGS $LTLIBICONV; do
5568 acl_save_prefix="$prefix"
5569 prefix="$acl_final_prefix"
5570 acl_save_exec_prefix="$exec_prefix"
5571 exec_prefix="$acl_final_exec_prefix"
5573 exec_prefix="$acl_save_exec_prefix"
5574 prefix="$acl_save_prefix"
5578 dir=`echo "X$x" | sed -e 's/^X-L//'`
5579 if test -n "$acl_shlibext"; then
5580 if test -f "$dir/$libname$shrext"; then
5582 found_so="$dir/$libname$shrext"
5584 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5585 ver=`(cd "$dir" && \
5586 for f in "$libname$shrext".*; do echo "$f"; done \
5587 | sed -e "s,^$libname$shrext\\\\.,," \
5588 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5589 | sed 1q ) 2>/dev/null`
5590 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5592 found_so="$dir/$libname$shrext.$ver"
5595 eval library_names=\"$acl_library_names_spec\"
5596 for f in $library_names; do
5597 if test -f "$dir/$f"; then
5606 if test "X$found_dir" = "X"; then
5607 if test -f "$dir/$libname.$acl_libext"; then
5609 found_a="$dir/$libname.$acl_libext"
5612 if test "X$found_dir" != "X"; then
5613 if test -f "$dir/$libname.la"; then
5614 found_la="$dir/$libname.la"
5619 if test "X$found_dir" != "X"; then
5624 if test "X$found_dir" != "X"; then
5625 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
5626 if test "X$found_so" != "X"; then
5627 if test "$enable_rpath" = no \
5628 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
5629 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
5630 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5633 for x in $ltrpathdirs; do
5634 if test "X$x" = "X$found_dir"; then
5639 if test -z "$haveit"; then
5640 ltrpathdirs="$ltrpathdirs $found_dir"
5642 if test "$acl_hardcode_direct" = yes; then
5643 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5645 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
5646 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5648 for x in $rpathdirs; do
5649 if test "X$x" = "X$found_dir"; then
5654 if test -z "$haveit"; then
5655 rpathdirs="$rpathdirs $found_dir"
5659 for x in $LDFLAGS $LIBICONV; do
5661 acl_save_prefix="$prefix"
5662 prefix="$acl_final_prefix"
5663 acl_save_exec_prefix="$exec_prefix"
5664 exec_prefix="$acl_final_exec_prefix"
5666 exec_prefix="$acl_save_exec_prefix"
5667 prefix="$acl_save_prefix"
5669 if test "X$x" = "X-L$found_dir"; then
5674 if test -z "$haveit"; then
5675 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
5677 if test "$acl_hardcode_minus_L" != no; then
5678 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5680 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5686 if test "X$found_a" != "X"; then
5687 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
5689 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
5692 additional_includedir=
5693 case "$found_dir" in
5694 */$acl_libdirstem | */$acl_libdirstem/)
5695 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
5696 if test "$name" = 'iconv'; then
5697 LIBICONV_PREFIX="$basedir"
5699 additional_includedir="$basedir/include"
5701 */$acl_libdirstem2 | */$acl_libdirstem2/)
5702 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
5703 if test "$name" = 'iconv'; then
5704 LIBICONV_PREFIX="$basedir"
5706 additional_includedir="$basedir/include"
5709 if test "X$additional_includedir" != "X"; then
5710 if test "X$additional_includedir" != "X/usr/include"; then
5712 if test "X$additional_includedir" = "X/usr/local/include"; then
5713 if test -n "$GCC"; then
5715 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5719 if test -z "$haveit"; then
5720 for x in $CPPFLAGS $INCICONV; do
5722 acl_save_prefix="$prefix"
5723 prefix="$acl_final_prefix"
5724 acl_save_exec_prefix="$exec_prefix"
5725 exec_prefix="$acl_final_exec_prefix"
5727 exec_prefix="$acl_save_exec_prefix"
5728 prefix="$acl_save_prefix"
5730 if test "X$x" = "X-I$additional_includedir"; then
5735 if test -z "$haveit"; then
5736 if test -d "$additional_includedir"; then
5737 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
5743 if test -n "$found_la"; then
5744 save_libdir="$libdir"
5746 */* | *\\*) . "$found_la" ;;
5747 *) . "./$found_la" ;;
5749 libdir="$save_libdir"
5750 for dep in $dependency_libs; do
5753 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5754 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
5755 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
5757 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
5758 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
5759 if test -n "$GCC"; then
5761 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5765 if test -z "$haveit"; then
5767 for x in $LDFLAGS $LIBICONV; do
5769 acl_save_prefix="$prefix"
5770 prefix="$acl_final_prefix"
5771 acl_save_exec_prefix="$exec_prefix"
5772 exec_prefix="$acl_final_exec_prefix"
5774 exec_prefix="$acl_save_exec_prefix"
5775 prefix="$acl_save_prefix"
5777 if test "X$x" = "X-L$additional_libdir"; then
5782 if test -z "$haveit"; then
5783 if test -d "$additional_libdir"; then
5784 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
5788 for x in $LDFLAGS $LTLIBICONV; do
5790 acl_save_prefix="$prefix"
5791 prefix="$acl_final_prefix"
5792 acl_save_exec_prefix="$exec_prefix"
5793 exec_prefix="$acl_final_exec_prefix"
5795 exec_prefix="$acl_save_exec_prefix"
5796 prefix="$acl_save_prefix"
5798 if test "X$x" = "X-L$additional_libdir"; then
5803 if test -z "$haveit"; then
5804 if test -d "$additional_libdir"; then
5805 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
5812 dir=`echo "X$dep" | sed -e 's/^X-R//'`
5813 if test "$enable_rpath" != no; then
5815 for x in $rpathdirs; do
5816 if test "X$x" = "X$dir"; then
5821 if test -z "$haveit"; then
5822 rpathdirs="$rpathdirs $dir"
5825 for x in $ltrpathdirs; do
5826 if test "X$x" = "X$dir"; then
5831 if test -z "$haveit"; then
5832 ltrpathdirs="$ltrpathdirs $dir"
5837 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5840 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5843 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
5844 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
5850 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5851 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
5857 if test "X$rpathdirs" != "X"; then
5858 if test -n "$acl_hardcode_libdir_separator"; then
5860 for found_dir in $rpathdirs; do
5861 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
5863 acl_save_libdir="$libdir"
5865 eval flag=\"$acl_hardcode_libdir_flag_spec\"
5866 libdir="$acl_save_libdir"
5867 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5869 for found_dir in $rpathdirs; do
5870 acl_save_libdir="$libdir"
5872 eval flag=\"$acl_hardcode_libdir_flag_spec\"
5873 libdir="$acl_save_libdir"
5874 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5878 if test "X$ltrpathdirs" != "X"; then
5879 for found_dir in $ltrpathdirs; do
5880 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
5915 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
5916 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
5917 $as_echo_n "(cached) " >&6
5919 gt_save_LIBS="$LIBS"
5920 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
5921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5922 /* end confdefs.h. */
5923 #include <CoreFoundation/CFPreferences.h>
5927 CFPreferencesCopyAppValue(NULL, NULL)
5932 if ac_fn_c_try_link "$LINENO"; then :
5933 gt_cv_func_CFPreferencesCopyAppValue=yes
5935 gt_cv_func_CFPreferencesCopyAppValue=no
5937 rm -f core conftest.err conftest.$ac_objext \
5938 conftest$ac_exeext conftest.$ac_ext
5939 LIBS="$gt_save_LIBS"
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
5942 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
5943 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
5945 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
5949 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
5950 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
5951 $as_echo_n "(cached) " >&6
5953 gt_save_LIBS="$LIBS"
5954 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
5955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5956 /* end confdefs.h. */
5957 #include <CoreFoundation/CFLocale.h>
5961 CFLocaleCopyCurrent();
5966 if ac_fn_c_try_link "$LINENO"; then :
5967 gt_cv_func_CFLocaleCopyCurrent=yes
5969 gt_cv_func_CFLocaleCopyCurrent=no
5971 rm -f core conftest.err conftest.$ac_objext \
5972 conftest$ac_exeext conftest.$ac_ext
5973 LIBS="$gt_save_LIBS"
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
5976 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
5977 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5979 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
5983 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5984 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
5996 case " $gt_needs " in
5997 *" need-formatstring-macros "*) gt_api_version=3 ;;
5998 *" need-ngettext "*) gt_api_version=2 ;;
5999 *) gt_api_version=1 ;;
6001 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
6002 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
6004 if test "$USE_NLS" = "yes"; then
6005 gt_use_preinstalled_gnugettext=no
6008 if test $gt_api_version -ge 3; then
6009 gt_revision_test_code='
6010 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
6011 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
6013 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
6016 gt_revision_test_code=
6018 if test $gt_api_version -ge 2; then
6019 gt_expression_test_code=' + * ngettext ("", "", 0)'
6021 gt_expression_test_code=
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
6025 $as_echo_n "checking for GNU gettext in libc... " >&6; }
6026 if eval "test \"\${$gt_func_gnugettext_libc+set}\"" = set; then :
6027 $as_echo_n "(cached) " >&6
6029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6030 /* end confdefs.h. */
6031 #include <libintl.h>
6032 $gt_revision_test_code
6033 extern int _nl_msg_cat_cntr;
6034 extern int *_nl_domain_bindings;
6038 bindtextdomain ("", "");
6039 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
6044 if ac_fn_c_try_link "$LINENO"; then :
6045 eval "$gt_func_gnugettext_libc=yes"
6047 eval "$gt_func_gnugettext_libc=no"
6049 rm -f core conftest.err conftest.$ac_objext \
6050 conftest$ac_exeext conftest.$ac_ext
6052 eval ac_res=\$$gt_func_gnugettext_libc
6053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6054 $as_echo "$ac_res" >&6; }
6056 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
6062 am_save_CPPFLAGS="$CPPFLAGS"
6064 for element in $INCICONV; do
6066 for x in $CPPFLAGS; do
6068 acl_save_prefix="$prefix"
6069 prefix="$acl_final_prefix"
6070 acl_save_exec_prefix="$exec_prefix"
6071 exec_prefix="$acl_final_exec_prefix"
6073 exec_prefix="$acl_save_exec_prefix"
6074 prefix="$acl_save_prefix"
6076 if test "X$x" = "X$element"; then
6081 if test -z "$haveit"; then
6082 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
6088 $as_echo_n "checking for iconv... " >&6; }
6089 if test "${am_cv_func_iconv+set}" = set; then :
6090 $as_echo_n "(cached) " >&6
6093 am_cv_func_iconv="no, consider installing GNU libiconv"
6095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6096 /* end confdefs.h. */
6102 iconv_t cd = iconv_open("","");
6103 iconv(cd,NULL,NULL,NULL,NULL);
6109 if ac_fn_c_try_link "$LINENO"; then :
6110 am_cv_func_iconv=yes
6112 rm -f core conftest.err conftest.$ac_objext \
6113 conftest$ac_exeext conftest.$ac_ext
6114 if test "$am_cv_func_iconv" != yes; then
6115 am_save_LIBS="$LIBS"
6116 LIBS="$LIBS $LIBICONV"
6117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6118 /* end confdefs.h. */
6124 iconv_t cd = iconv_open("","");
6125 iconv(cd,NULL,NULL,NULL,NULL);
6131 if ac_fn_c_try_link "$LINENO"; then :
6133 am_cv_func_iconv=yes
6135 rm -f core conftest.err conftest.$ac_objext \
6136 conftest$ac_exeext conftest.$ac_ext
6137 LIBS="$am_save_LIBS"
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
6142 $as_echo "$am_cv_func_iconv" >&6; }
6143 if test "$am_cv_func_iconv" = yes; then
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
6145 $as_echo_n "checking for working iconv... " >&6; }
6146 if test "${am_cv_func_iconv_works+set}" = set; then :
6147 $as_echo_n "(cached) " >&6
6150 am_save_LIBS="$LIBS"
6151 if test $am_cv_lib_iconv = yes; then
6152 LIBS="$LIBS $LIBICONV"
6154 if test "$cross_compiling" = yes; then :
6156 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
6157 *) am_cv_func_iconv_works="guessing yes" ;;
6160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6161 /* end confdefs.h. */
6167 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
6170 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
6171 if (cd_utf8_to_88591 != (iconv_t)(-1))
6173 static const char input[] = "\342\202\254"; /* EURO SIGN */
6175 const char *inptr = input;
6176 size_t inbytesleft = strlen (input);
6178 size_t outbytesleft = sizeof (buf);
6179 size_t res = iconv (cd_utf8_to_88591,
6180 (char **) &inptr, &inbytesleft,
6181 &outptr, &outbytesleft);
6186 /* Test against Solaris 10 bug: Failures are not distinguishable from
6187 successful returns. */
6189 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
6190 if (cd_ascii_to_88591 != (iconv_t)(-1))
6192 static const char input[] = "\263";
6194 const char *inptr = input;
6195 size_t inbytesleft = strlen (input);
6197 size_t outbytesleft = sizeof (buf);
6198 size_t res = iconv (cd_ascii_to_88591,
6199 (char **) &inptr, &inbytesleft,
6200 &outptr, &outbytesleft);
6205 #if 0 /* This bug could be worked around by the caller. */
6206 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
6208 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
6209 if (cd_88591_to_utf8 != (iconv_t)(-1))
6211 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
6213 const char *inptr = input;
6214 size_t inbytesleft = strlen (input);
6216 size_t outbytesleft = sizeof (buf);
6217 size_t res = iconv (cd_88591_to_utf8,
6218 (char **) &inptr, &inbytesleft,
6219 &outptr, &outbytesleft);
6225 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
6227 if (/* Try standardized names. */
6228 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
6229 /* Try IRIX, OSF/1 names. */
6230 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
6231 /* Try AIX names. */
6232 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
6233 /* Try HP-UX names. */
6234 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
6239 if ac_fn_c_try_run "$LINENO"; then :
6240 am_cv_func_iconv_works=yes
6242 am_cv_func_iconv_works=no
6244 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6245 conftest.$ac_objext conftest.beam conftest.$ac_ext
6248 LIBS="$am_save_LIBS"
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
6252 $as_echo "$am_cv_func_iconv_works" >&6; }
6253 case "$am_cv_func_iconv_works" in
6254 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
6255 *) am_func_iconv=yes ;;
6258 am_func_iconv=no am_cv_lib_iconv=no
6260 if test "$am_func_iconv" = yes; then
6262 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
6265 if test "$am_cv_lib_iconv" = yes; then
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
6267 $as_echo_n "checking how to link with libiconv... " >&6; }
6268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
6269 $as_echo "$LIBICONV" >&6; }
6271 CPPFLAGS="$am_save_CPPFLAGS"
6288 acl_save_prefix="$prefix"
6289 prefix="$acl_final_prefix"
6290 acl_save_exec_prefix="$exec_prefix"
6291 exec_prefix="$acl_final_exec_prefix"
6293 eval additional_includedir=\"$includedir\"
6294 eval additional_libdir=\"$libdir\"
6296 exec_prefix="$acl_save_exec_prefix"
6297 prefix="$acl_save_prefix"
6300 # Check whether --with-libintl-prefix was given.
6301 if test "${with_libintl_prefix+set}" = set; then :
6302 withval=$with_libintl_prefix;
6303 if test "X$withval" = "Xno"; then
6306 if test "X$withval" = "X"; then
6308 acl_save_prefix="$prefix"
6309 prefix="$acl_final_prefix"
6310 acl_save_exec_prefix="$exec_prefix"
6311 exec_prefix="$acl_final_exec_prefix"
6313 eval additional_includedir=\"$includedir\"
6314 eval additional_libdir=\"$libdir\"
6316 exec_prefix="$acl_save_exec_prefix"
6317 prefix="$acl_save_prefix"
6320 additional_includedir="$withval/include"
6321 additional_libdir="$withval/$acl_libdirstem"
6322 if test "$acl_libdirstem2" != "$acl_libdirstem" \
6323 && ! test -d "$withval/$acl_libdirstem"; then
6324 additional_libdir="$withval/$acl_libdirstem2"
6338 names_already_handled=
6339 names_next_round='intl '
6340 while test -n "$names_next_round"; do
6341 names_this_round="$names_next_round"
6343 for name in $names_this_round; do
6345 for n in $names_already_handled; do
6346 if test "$n" = "$name"; then
6351 if test -z "$already_handled"; then
6352 names_already_handled="$names_already_handled $name"
6353 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6354 eval value=\"\$HAVE_LIB$uppername\"
6355 if test -n "$value"; then
6356 if test "$value" = yes; then
6357 eval value=\"\$LIB$uppername\"
6358 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
6359 eval value=\"\$LTLIB$uppername\"
6360 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
6369 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
6370 if test -n "$acl_shlibext"; then
6371 shrext=".$acl_shlibext" # typically: shrext=.so
6375 if test $use_additional = yes; then
6376 dir="$additional_libdir"
6377 if test -n "$acl_shlibext"; then
6378 if test -f "$dir/$libname$shrext"; then
6380 found_so="$dir/$libname$shrext"
6382 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6383 ver=`(cd "$dir" && \
6384 for f in "$libname$shrext".*; do echo "$f"; done \
6385 | sed -e "s,^$libname$shrext\\\\.,," \
6386 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6387 | sed 1q ) 2>/dev/null`
6388 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6390 found_so="$dir/$libname$shrext.$ver"
6393 eval library_names=\"$acl_library_names_spec\"
6394 for f in $library_names; do
6395 if test -f "$dir/$f"; then
6404 if test "X$found_dir" = "X"; then
6405 if test -f "$dir/$libname.$acl_libext"; then
6407 found_a="$dir/$libname.$acl_libext"
6410 if test "X$found_dir" != "X"; then
6411 if test -f "$dir/$libname.la"; then
6412 found_la="$dir/$libname.la"
6416 if test "X$found_dir" = "X"; then
6417 for x in $LDFLAGS $LTLIBINTL; do
6419 acl_save_prefix="$prefix"
6420 prefix="$acl_final_prefix"
6421 acl_save_exec_prefix="$exec_prefix"
6422 exec_prefix="$acl_final_exec_prefix"
6424 exec_prefix="$acl_save_exec_prefix"
6425 prefix="$acl_save_prefix"
6429 dir=`echo "X$x" | sed -e 's/^X-L//'`
6430 if test -n "$acl_shlibext"; then
6431 if test -f "$dir/$libname$shrext"; then
6433 found_so="$dir/$libname$shrext"
6435 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6436 ver=`(cd "$dir" && \
6437 for f in "$libname$shrext".*; do echo "$f"; done \
6438 | sed -e "s,^$libname$shrext\\\\.,," \
6439 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6440 | sed 1q ) 2>/dev/null`
6441 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6443 found_so="$dir/$libname$shrext.$ver"
6446 eval library_names=\"$acl_library_names_spec\"
6447 for f in $library_names; do
6448 if test -f "$dir/$f"; then
6457 if test "X$found_dir" = "X"; then
6458 if test -f "$dir/$libname.$acl_libext"; then
6460 found_a="$dir/$libname.$acl_libext"
6463 if test "X$found_dir" != "X"; then
6464 if test -f "$dir/$libname.la"; then
6465 found_la="$dir/$libname.la"
6470 if test "X$found_dir" != "X"; then
6475 if test "X$found_dir" != "X"; then
6476 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
6477 if test "X$found_so" != "X"; then
6478 if test "$enable_rpath" = no \
6479 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
6480 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
6481 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6484 for x in $ltrpathdirs; do
6485 if test "X$x" = "X$found_dir"; then
6490 if test -z "$haveit"; then
6491 ltrpathdirs="$ltrpathdirs $found_dir"
6493 if test "$acl_hardcode_direct" = yes; then
6494 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6496 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
6497 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6499 for x in $rpathdirs; do
6500 if test "X$x" = "X$found_dir"; then
6505 if test -z "$haveit"; then
6506 rpathdirs="$rpathdirs $found_dir"
6510 for x in $LDFLAGS $LIBINTL; do
6512 acl_save_prefix="$prefix"
6513 prefix="$acl_final_prefix"
6514 acl_save_exec_prefix="$exec_prefix"
6515 exec_prefix="$acl_final_exec_prefix"
6517 exec_prefix="$acl_save_exec_prefix"
6518 prefix="$acl_save_prefix"
6520 if test "X$x" = "X-L$found_dir"; then
6525 if test -z "$haveit"; then
6526 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
6528 if test "$acl_hardcode_minus_L" != no; then
6529 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6531 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6537 if test "X$found_a" != "X"; then
6538 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
6540 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
6543 additional_includedir=
6544 case "$found_dir" in
6545 */$acl_libdirstem | */$acl_libdirstem/)
6546 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
6547 if test "$name" = 'intl'; then
6548 LIBINTL_PREFIX="$basedir"
6550 additional_includedir="$basedir/include"
6552 */$acl_libdirstem2 | */$acl_libdirstem2/)
6553 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
6554 if test "$name" = 'intl'; then
6555 LIBINTL_PREFIX="$basedir"
6557 additional_includedir="$basedir/include"
6560 if test "X$additional_includedir" != "X"; then
6561 if test "X$additional_includedir" != "X/usr/include"; then
6563 if test "X$additional_includedir" = "X/usr/local/include"; then
6564 if test -n "$GCC"; then
6566 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6570 if test -z "$haveit"; then
6571 for x in $CPPFLAGS $INCINTL; do
6573 acl_save_prefix="$prefix"
6574 prefix="$acl_final_prefix"
6575 acl_save_exec_prefix="$exec_prefix"
6576 exec_prefix="$acl_final_exec_prefix"
6578 exec_prefix="$acl_save_exec_prefix"
6579 prefix="$acl_save_prefix"
6581 if test "X$x" = "X-I$additional_includedir"; then
6586 if test -z "$haveit"; then
6587 if test -d "$additional_includedir"; then
6588 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
6594 if test -n "$found_la"; then
6595 save_libdir="$libdir"
6597 */* | *\\*) . "$found_la" ;;
6598 *) . "./$found_la" ;;
6600 libdir="$save_libdir"
6601 for dep in $dependency_libs; do
6604 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6605 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
6606 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
6608 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
6609 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
6610 if test -n "$GCC"; then
6612 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6616 if test -z "$haveit"; then
6618 for x in $LDFLAGS $LIBINTL; do
6620 acl_save_prefix="$prefix"
6621 prefix="$acl_final_prefix"
6622 acl_save_exec_prefix="$exec_prefix"
6623 exec_prefix="$acl_final_exec_prefix"
6625 exec_prefix="$acl_save_exec_prefix"
6626 prefix="$acl_save_prefix"
6628 if test "X$x" = "X-L$additional_libdir"; then
6633 if test -z "$haveit"; then
6634 if test -d "$additional_libdir"; then
6635 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
6639 for x in $LDFLAGS $LTLIBINTL; do
6641 acl_save_prefix="$prefix"
6642 prefix="$acl_final_prefix"
6643 acl_save_exec_prefix="$exec_prefix"
6644 exec_prefix="$acl_final_exec_prefix"
6646 exec_prefix="$acl_save_exec_prefix"
6647 prefix="$acl_save_prefix"
6649 if test "X$x" = "X-L$additional_libdir"; then
6654 if test -z "$haveit"; then
6655 if test -d "$additional_libdir"; then
6656 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
6663 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6664 if test "$enable_rpath" != no; then
6666 for x in $rpathdirs; do
6667 if test "X$x" = "X$dir"; then
6672 if test -z "$haveit"; then
6673 rpathdirs="$rpathdirs $dir"
6676 for x in $ltrpathdirs; do
6677 if test "X$x" = "X$dir"; then
6682 if test -z "$haveit"; then
6683 ltrpathdirs="$ltrpathdirs $dir"
6688 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6691 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6694 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
6695 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
6701 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6702 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
6708 if test "X$rpathdirs" != "X"; then
6709 if test -n "$acl_hardcode_libdir_separator"; then
6711 for found_dir in $rpathdirs; do
6712 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
6714 acl_save_libdir="$libdir"
6716 eval flag=\"$acl_hardcode_libdir_flag_spec\"
6717 libdir="$acl_save_libdir"
6718 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6720 for found_dir in $rpathdirs; do
6721 acl_save_libdir="$libdir"
6723 eval flag=\"$acl_hardcode_libdir_flag_spec\"
6724 libdir="$acl_save_libdir"
6725 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6729 if test "X$ltrpathdirs" != "X"; then
6730 for found_dir in $ltrpathdirs; do
6731 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
6741 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
6742 if eval "test \"\${$gt_func_gnugettext_libintl+set}\"" = set; then :
6743 $as_echo_n "(cached) " >&6
6745 gt_save_CPPFLAGS="$CPPFLAGS"
6746 CPPFLAGS="$CPPFLAGS $INCINTL"
6747 gt_save_LIBS="$LIBS"
6748 LIBS="$LIBS $LIBINTL"
6749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6750 /* end confdefs.h. */
6751 #include <libintl.h>
6752 $gt_revision_test_code
6753 extern int _nl_msg_cat_cntr;
6758 const char *_nl_expand_alias (const char *);
6762 bindtextdomain ("", "");
6763 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6768 if ac_fn_c_try_link "$LINENO"; then :
6769 eval "$gt_func_gnugettext_libintl=yes"
6771 eval "$gt_func_gnugettext_libintl=no"
6773 rm -f core conftest.err conftest.$ac_objext \
6774 conftest$ac_exeext conftest.$ac_ext
6775 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
6776 LIBS="$LIBS $LIBICONV"
6777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6778 /* end confdefs.h. */
6779 #include <libintl.h>
6780 $gt_revision_test_code
6781 extern int _nl_msg_cat_cntr;
6786 const char *_nl_expand_alias (const char *);
6790 bindtextdomain ("", "");
6791 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6796 if ac_fn_c_try_link "$LINENO"; then :
6797 LIBINTL="$LIBINTL $LIBICONV"
6798 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
6799 eval "$gt_func_gnugettext_libintl=yes"
6802 rm -f core conftest.err conftest.$ac_objext \
6803 conftest$ac_exeext conftest.$ac_ext
6805 CPPFLAGS="$gt_save_CPPFLAGS"
6806 LIBS="$gt_save_LIBS"
6808 eval ac_res=\$$gt_func_gnugettext_libintl
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6810 $as_echo "$ac_res" >&6; }
6813 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
6814 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
6815 && test "$PACKAGE" != gettext-runtime \
6816 && test "$PACKAGE" != gettext-tools; }; then
6817 gt_use_preinstalled_gnugettext=yes
6826 if test -n "$INTL_MACOSX_LIBS"; then
6827 if test "$gt_use_preinstalled_gnugettext" = "yes" \
6828 || test "$nls_cv_use_gnu_gettext" = "yes"; then
6829 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
6830 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
6834 if test "$gt_use_preinstalled_gnugettext" = "yes" \
6835 || test "$nls_cv_use_gnu_gettext" = "yes"; then
6837 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
6845 $as_echo_n "checking whether to use NLS... " >&6; }
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6847 $as_echo "$USE_NLS" >&6; }
6848 if test "$USE_NLS" = "yes"; then
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
6850 $as_echo_n "checking where the gettext function comes from... " >&6; }
6851 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6852 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
6853 gt_source="external libintl"
6858 gt_source="included intl directory"
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
6861 $as_echo "$gt_source" >&6; }
6864 if test "$USE_NLS" = "yes"; then
6866 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6867 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
6869 $as_echo_n "checking how to link with libintl... " >&6; }
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
6871 $as_echo "$LIBINTL" >&6; }
6873 for element in $INCINTL; do
6875 for x in $CPPFLAGS; do
6877 acl_save_prefix="$prefix"
6878 prefix="$acl_final_prefix"
6879 acl_save_exec_prefix="$exec_prefix"
6880 exec_prefix="$acl_final_exec_prefix"
6882 exec_prefix="$acl_save_exec_prefix"
6883 prefix="$acl_save_prefix"
6885 if test "X$x" = "X$element"; then
6890 if test -z "$haveit"; then
6891 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6898 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
6901 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
6918 ############### common
6920 # Checks sensors, required by psensor and psensor-server
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sensors_init in -lsensors" >&5
6922 $as_echo_n "checking for sensors_init in -lsensors... " >&6; }
6923 if test "${ac_cv_lib_sensors_sensors_init+set}" = set; then :
6924 $as_echo_n "(cached) " >&6
6926 ac_check_lib_save_LIBS=$LIBS
6927 LIBS="-lsensors $LIBS"
6928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6929 /* end confdefs.h. */
6931 /* Override any GCC internal prototype to avoid an error.
6932 Use char because int might match the return type of a GCC
6933 builtin and then its argument prototype would still apply. */
6937 char sensors_init ();
6941 return sensors_init ();
6946 if ac_fn_c_try_link "$LINENO"; then :
6947 ac_cv_lib_sensors_sensors_init=yes
6949 ac_cv_lib_sensors_sensors_init=no
6951 rm -f core conftest.err conftest.$ac_objext \
6952 conftest$ac_exeext conftest.$ac_ext
6953 LIBS=$ac_check_lib_save_LIBS
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sensors_sensors_init" >&5
6956 $as_echo "$ac_cv_lib_sensors_sensors_init" >&6; }
6957 if test "x$ac_cv_lib_sensors_sensors_init" = x""yes; then :
6958 cat >>confdefs.h <<_ACEOF
6959 #define HAVE_LIBSENSORS 1
6962 LIBS="-lsensors $LIBS"
6966 for ac_header in sensors/sensors.h sensors/errors.h
6968 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6969 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6970 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6971 cat >>confdefs.h <<_ACEOF
6972 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6979 SENSORS_LIBS=-lsensors
6982 ############### psensor
6992 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6993 if test -n "$ac_tool_prefix"; then
6994 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6995 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6997 $as_echo_n "checking for $ac_word... " >&6; }
6998 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
6999 $as_echo_n "(cached) " >&6
7003 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7010 test -z "$as_dir" && as_dir=.
7011 for ac_exec_ext in '' $ac_executable_extensions; do
7012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7013 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7024 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7025 if test -n "$PKG_CONFIG"; then
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7027 $as_echo "$PKG_CONFIG" >&6; }
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7030 $as_echo "no" >&6; }
7035 if test -z "$ac_cv_path_PKG_CONFIG"; then
7036 ac_pt_PKG_CONFIG=$PKG_CONFIG
7037 # Extract the first word of "pkg-config", so it can be a program name with args.
7038 set dummy pkg-config; ac_word=$2
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7040 $as_echo_n "checking for $ac_word... " >&6; }
7041 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
7042 $as_echo_n "(cached) " >&6
7044 case $ac_pt_PKG_CONFIG in
7046 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7053 test -z "$as_dir" && as_dir=.
7054 for ac_exec_ext in '' $ac_executable_extensions; do
7055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7056 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7067 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7068 if test -n "$ac_pt_PKG_CONFIG"; then
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7070 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7073 $as_echo "no" >&6; }
7076 if test "x$ac_pt_PKG_CONFIG" = x; then
7079 case $cross_compiling:$ac_tool_warned in
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7082 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7083 ac_tool_warned=yes ;;
7085 PKG_CONFIG=$ac_pt_PKG_CONFIG
7088 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7092 if test -n "$PKG_CONFIG"; then
7093 _pkg_min_version=0.9.0
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7095 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7096 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7098 $as_echo "yes" >&6; }
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7101 $as_echo "no" >&6; }
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
7108 $as_echo_n "checking for X11... " >&6; }
7110 if test -n "$X11_CFLAGS"; then
7111 pkg_cv_X11_CFLAGS="$X11_CFLAGS"
7112 elif test -n "$PKG_CONFIG"; then
7113 if test -n "$PKG_CONFIG" && \
7114 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
7115 ($PKG_CONFIG --exists --print-errors "x11") 2>&5
7117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7118 test $ac_status = 0; }; then
7119 pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
7126 if test -n "$X11_LIBS"; then
7127 pkg_cv_X11_LIBS="$X11_LIBS"
7128 elif test -n "$PKG_CONFIG"; then
7129 if test -n "$PKG_CONFIG" && \
7130 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
7131 ($PKG_CONFIG --exists --print-errors "x11") 2>&5
7133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7134 test $ac_status = 0; }; then
7135 pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
7145 if test $pkg_failed = yes; then
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7147 $as_echo "no" >&6; }
7149 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7150 _pkg_short_errors_supported=yes
7152 _pkg_short_errors_supported=no
7154 if test $_pkg_short_errors_supported = yes; then
7155 X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11" 2>&1`
7157 X11_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11" 2>&1`
7159 # Put the nasty error message in config.log where it belongs
7160 echo "$X11_PKG_ERRORS" >&5
7162 as_fn_error $? "Package requirements (x11) were not met:
7166 Consider adjusting the PKG_CONFIG_PATH environment variable if you
7167 installed software in a non-standard prefix.
7169 Alternatively, you may set the environment variables X11_CFLAGS
7170 and X11_LIBS to avoid the need to call pkg-config.
7171 See the pkg-config man page for more details." "$LINENO" 5
7172 elif test $pkg_failed = untried; then
7173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7174 $as_echo "no" >&6; }
7175 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7176 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7177 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
7178 is in your PATH or set the PKG_CONFIG environment variable to the full
7181 Alternatively, you may set the environment variables X11_CFLAGS
7182 and X11_LIBS to avoid the need to call pkg-config.
7183 See the pkg-config man page for more details.
7185 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7186 See \`config.log' for more details" "$LINENO" 5 ; }
7188 X11_CFLAGS=$pkg_cv_X11_CFLAGS
7189 X11_LIBS=$pkg_cv_X11_LIBS
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7191 $as_echo "yes" >&6; }
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5
7200 $as_echo_n "checking for XEXT... " >&6; }
7202 if test -n "$XEXT_CFLAGS"; then
7203 pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
7204 elif test -n "$PKG_CONFIG"; then
7205 if test -n "$PKG_CONFIG" && \
7206 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5
7207 ($PKG_CONFIG --exists --print-errors "xext") 2>&5
7209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7210 test $ac_status = 0; }; then
7211 pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xext" 2>/dev/null`
7218 if test -n "$XEXT_LIBS"; then
7219 pkg_cv_XEXT_LIBS="$XEXT_LIBS"
7220 elif test -n "$PKG_CONFIG"; then
7221 if test -n "$PKG_CONFIG" && \
7222 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5
7223 ($PKG_CONFIG --exists --print-errors "xext") 2>&5
7225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7226 test $ac_status = 0; }; then
7227 pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xext" 2>/dev/null`
7237 if test $pkg_failed = yes; then
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7239 $as_echo "no" >&6; }
7241 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7242 _pkg_short_errors_supported=yes
7244 _pkg_short_errors_supported=no
7246 if test $_pkg_short_errors_supported = yes; then
7247 XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xext" 2>&1`
7249 XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors "xext" 2>&1`
7251 # Put the nasty error message in config.log where it belongs
7252 echo "$XEXT_PKG_ERRORS" >&5
7254 as_fn_error $? "Package requirements (xext) were not met:
7258 Consider adjusting the PKG_CONFIG_PATH environment variable if you
7259 installed software in a non-standard prefix.
7261 Alternatively, you may set the environment variables XEXT_CFLAGS
7262 and XEXT_LIBS to avoid the need to call pkg-config.
7263 See the pkg-config man page for more details." "$LINENO" 5
7264 elif test $pkg_failed = untried; then
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7266 $as_echo "no" >&6; }
7267 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7268 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7269 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
7270 is in your PATH or set the PKG_CONFIG environment variable to the full
7273 Alternatively, you may set the environment variables XEXT_CFLAGS
7274 and XEXT_LIBS to avoid the need to call pkg-config.
7275 See the pkg-config man page for more details.
7277 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7278 See \`config.log' for more details" "$LINENO" 5 ; }
7280 XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
7281 XEXT_LIBS=$pkg_cv_XEXT_LIBS
7282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7283 $as_echo "yes" >&6; }
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5
7293 $as_echo_n "checking for GTK... " >&6; }
7295 if test -n "$GTK_CFLAGS"; then
7296 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
7297 elif test -n "$PKG_CONFIG"; then
7298 if test -n "$PKG_CONFIG" && \
7299 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 \""; } >&5
7300 ($PKG_CONFIG --exists --print-errors "gtk+-2.0 ") 2>&5
7302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7303 test $ac_status = 0; }; then
7304 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 " 2>/dev/null`
7311 if test -n "$GTK_LIBS"; then
7312 pkg_cv_GTK_LIBS="$GTK_LIBS"
7313 elif test -n "$PKG_CONFIG"; then
7314 if test -n "$PKG_CONFIG" && \
7315 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 \""; } >&5
7316 ($PKG_CONFIG --exists --print-errors "gtk+-2.0 ") 2>&5
7318 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7319 test $ac_status = 0; }; then
7320 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 " 2>/dev/null`
7330 if test $pkg_failed = yes; then
7331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7332 $as_echo "no" >&6; }
7334 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7335 _pkg_short_errors_supported=yes
7337 _pkg_short_errors_supported=no
7339 if test $_pkg_short_errors_supported = yes; then
7340 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gtk+-2.0 " 2>&1`
7342 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors "gtk+-2.0 " 2>&1`
7344 # Put the nasty error message in config.log where it belongs
7345 echo "$GTK_PKG_ERRORS" >&5
7347 as_fn_error $? "Package requirements (gtk+-2.0 ) were not met:
7351 Consider adjusting the PKG_CONFIG_PATH environment variable if you
7352 installed software in a non-standard prefix.
7354 Alternatively, you may set the environment variables GTK_CFLAGS
7355 and GTK_LIBS to avoid the need to call pkg-config.
7356 See the pkg-config man page for more details." "$LINENO" 5
7357 elif test $pkg_failed = untried; then
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7359 $as_echo "no" >&6; }
7360 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7361 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7362 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
7363 is in your PATH or set the PKG_CONFIG environment variable to the full
7366 Alternatively, you may set the environment variables GTK_CFLAGS
7367 and GTK_LIBS to avoid the need to call pkg-config.
7368 See the pkg-config man page for more details.
7370 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7371 See \`config.log' for more details" "$LINENO" 5 ; }
7373 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
7374 GTK_LIBS=$pkg_cv_GTK_LIBS
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7376 $as_echo "yes" >&6; }
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCONF" >&5
7386 $as_echo_n "checking for GCONF... " >&6; }
7388 if test -n "$GCONF_CFLAGS"; then
7389 pkg_cv_GCONF_CFLAGS="$GCONF_CFLAGS"
7390 elif test -n "$PKG_CONFIG"; then
7391 if test -n "$PKG_CONFIG" && \
7392 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gconf-2.0\""; } >&5
7393 ($PKG_CONFIG --exists --print-errors "gconf-2.0") 2>&5
7395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7396 test $ac_status = 0; }; then
7397 pkg_cv_GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0" 2>/dev/null`
7404 if test -n "$GCONF_LIBS"; then
7405 pkg_cv_GCONF_LIBS="$GCONF_LIBS"
7406 elif test -n "$PKG_CONFIG"; then
7407 if test -n "$PKG_CONFIG" && \
7408 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gconf-2.0\""; } >&5
7409 ($PKG_CONFIG --exists --print-errors "gconf-2.0") 2>&5
7411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7412 test $ac_status = 0; }; then
7413 pkg_cv_GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0" 2>/dev/null`
7423 if test $pkg_failed = yes; then
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7425 $as_echo "no" >&6; }
7427 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7428 _pkg_short_errors_supported=yes
7430 _pkg_short_errors_supported=no
7432 if test $_pkg_short_errors_supported = yes; then
7433 GCONF_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gconf-2.0" 2>&1`
7435 GCONF_PKG_ERRORS=`$PKG_CONFIG --print-errors "gconf-2.0" 2>&1`
7437 # Put the nasty error message in config.log where it belongs
7438 echo "$GCONF_PKG_ERRORS" >&5
7440 as_fn_error $? "Package requirements (gconf-2.0) were not met:
7444 Consider adjusting the PKG_CONFIG_PATH environment variable if you
7445 installed software in a non-standard prefix.
7447 Alternatively, you may set the environment variables GCONF_CFLAGS
7448 and GCONF_LIBS to avoid the need to call pkg-config.
7449 See the pkg-config man page for more details." "$LINENO" 5
7450 elif test $pkg_failed = untried; then
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7452 $as_echo "no" >&6; }
7453 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7454 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7455 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
7456 is in your PATH or set the PKG_CONFIG environment variable to the full
7459 Alternatively, you may set the environment variables GCONF_CFLAGS
7460 and GCONF_LIBS to avoid the need to call pkg-config.
7461 See the pkg-config man page for more details.
7463 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7464 See \`config.log' for more details" "$LINENO" 5 ; }
7466 GCONF_CFLAGS=$pkg_cv_GCONF_CFLAGS
7467 GCONF_LIBS=$pkg_cv_GCONF_LIBS
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7469 $as_echo "yes" >&6; }
7481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBNOTIFY" >&5
7482 $as_echo_n "checking for LIBNOTIFY... " >&6; }
7484 if test -n "$LIBNOTIFY_CFLAGS"; then
7485 pkg_cv_LIBNOTIFY_CFLAGS="$LIBNOTIFY_CFLAGS"
7486 elif test -n "$PKG_CONFIG"; then
7487 if test -n "$PKG_CONFIG" && \
7488 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnotify\""; } >&5
7489 ($PKG_CONFIG --exists --print-errors "libnotify") 2>&5
7491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7492 test $ac_status = 0; }; then
7493 pkg_cv_LIBNOTIFY_CFLAGS=`$PKG_CONFIG --cflags "libnotify" 2>/dev/null`
7500 if test -n "$LIBNOTIFY_LIBS"; then
7501 pkg_cv_LIBNOTIFY_LIBS="$LIBNOTIFY_LIBS"
7502 elif test -n "$PKG_CONFIG"; then
7503 if test -n "$PKG_CONFIG" && \
7504 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnotify\""; } >&5
7505 ($PKG_CONFIG --exists --print-errors "libnotify") 2>&5
7507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7508 test $ac_status = 0; }; then
7509 pkg_cv_LIBNOTIFY_LIBS=`$PKG_CONFIG --libs "libnotify" 2>/dev/null`
7519 if test $pkg_failed = yes; then
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7521 $as_echo "no" >&6; }
7523 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7524 _pkg_short_errors_supported=yes
7526 _pkg_short_errors_supported=no
7528 if test $_pkg_short_errors_supported = yes; then
7529 LIBNOTIFY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libnotify" 2>&1`
7531 LIBNOTIFY_PKG_ERRORS=`$PKG_CONFIG --print-errors "libnotify" 2>&1`
7533 # Put the nasty error message in config.log where it belongs
7534 echo "$LIBNOTIFY_PKG_ERRORS" >&5
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Desktop notification disabled\"" >&5
7537 $as_echo "$as_me: WARNING: \"Desktop notification disabled\"" >&2;}
7538 elif test $pkg_failed = untried; then
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7540 $as_echo "no" >&6; }
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Desktop notification disabled\"" >&5
7542 $as_echo "$as_me: WARNING: \"Desktop notification disabled\"" >&2;}
7544 LIBNOTIFY_CFLAGS=$pkg_cv_LIBNOTIFY_CFLAGS
7545 LIBNOTIFY_LIBS=$pkg_cv_LIBNOTIFY_LIBS
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7547 $as_echo "yes" >&6; }
7549 $as_echo "#define HAVE_LIBNOTIFY 1" >>confdefs.h
7552 if test -n "$LIBNOTIFY_LIBS"; then
7563 # Checks AppIndicator
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APPINDICATOR" >&5
7568 $as_echo_n "checking for APPINDICATOR... " >&6; }
7570 if test -n "$APPINDICATOR_CFLAGS"; then
7571 pkg_cv_APPINDICATOR_CFLAGS="$APPINDICATOR_CFLAGS"
7572 elif test -n "$PKG_CONFIG"; then
7573 if test -n "$PKG_CONFIG" && \
7574 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"appindicator-0.1 <= 0.2.9 \""; } >&5
7575 ($PKG_CONFIG --exists --print-errors "appindicator-0.1 <= 0.2.9 ") 2>&5
7577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7578 test $ac_status = 0; }; then
7579 pkg_cv_APPINDICATOR_CFLAGS=`$PKG_CONFIG --cflags "appindicator-0.1 <= 0.2.9 " 2>/dev/null`
7586 if test -n "$APPINDICATOR_LIBS"; then
7587 pkg_cv_APPINDICATOR_LIBS="$APPINDICATOR_LIBS"
7588 elif test -n "$PKG_CONFIG"; then
7589 if test -n "$PKG_CONFIG" && \
7590 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"appindicator-0.1 <= 0.2.9 \""; } >&5
7591 ($PKG_CONFIG --exists --print-errors "appindicator-0.1 <= 0.2.9 ") 2>&5
7593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7594 test $ac_status = 0; }; then
7595 pkg_cv_APPINDICATOR_LIBS=`$PKG_CONFIG --libs "appindicator-0.1 <= 0.2.9 " 2>/dev/null`
7605 if test $pkg_failed = yes; then
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7607 $as_echo "no" >&6; }
7609 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7610 _pkg_short_errors_supported=yes
7612 _pkg_short_errors_supported=no
7614 if test $_pkg_short_errors_supported = yes; then
7615 APPINDICATOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "appindicator-0.1 <= 0.2.9 " 2>&1`
7617 APPINDICATOR_PKG_ERRORS=`$PKG_CONFIG --print-errors "appindicator-0.1 <= 0.2.9 " 2>&1`
7619 # Put the nasty error message in config.log where it belongs
7620 echo "$APPINDICATOR_PKG_ERRORS" >&5
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: AppIndicator 0.2.9 not present\"" >&5
7623 $as_echo "$as_me: WARNING: AppIndicator 0.2.9 not present\"" >&2;}
7624 elif test $pkg_failed = untried; then
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7626 $as_echo "no" >&6; }
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: AppIndicator 0.2.9 not present\"" >&5
7628 $as_echo "$as_me: WARNING: AppIndicator 0.2.9 not present\"" >&2;}
7630 APPINDICATOR_CFLAGS=$pkg_cv_APPINDICATOR_CFLAGS
7631 APPINDICATOR_LIBS=$pkg_cv_APPINDICATOR_LIBS
7632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7633 $as_echo "yes" >&6; }
7635 $as_echo "#define HAVE_APPINDICATOR 1" >>confdefs.h
7638 $as_echo "#define HAVE_APPINDICATOR_029 1" >>confdefs.h
7643 if test "$APPINDICATOR_LIBS" == ""; then
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APPINDICATOR" >&5
7647 $as_echo_n "checking for APPINDICATOR... " >&6; }
7649 if test -n "$APPINDICATOR_CFLAGS"; then
7650 pkg_cv_APPINDICATOR_CFLAGS="$APPINDICATOR_CFLAGS"
7651 elif test -n "$PKG_CONFIG"; then
7652 if test -n "$PKG_CONFIG" && \
7653 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"appindicator-0.1 > 0.2.9\""; } >&5
7654 ($PKG_CONFIG --exists --print-errors "appindicator-0.1 > 0.2.9") 2>&5
7656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7657 test $ac_status = 0; }; then
7658 pkg_cv_APPINDICATOR_CFLAGS=`$PKG_CONFIG --cflags "appindicator-0.1 > 0.2.9" 2>/dev/null`
7665 if test -n "$APPINDICATOR_LIBS"; then
7666 pkg_cv_APPINDICATOR_LIBS="$APPINDICATOR_LIBS"
7667 elif test -n "$PKG_CONFIG"; then
7668 if test -n "$PKG_CONFIG" && \
7669 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"appindicator-0.1 > 0.2.9\""; } >&5
7670 ($PKG_CONFIG --exists --print-errors "appindicator-0.1 > 0.2.9") 2>&5
7672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7673 test $ac_status = 0; }; then
7674 pkg_cv_APPINDICATOR_LIBS=`$PKG_CONFIG --libs "appindicator-0.1 > 0.2.9" 2>/dev/null`
7684 if test $pkg_failed = yes; then
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7686 $as_echo "no" >&6; }
7688 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7689 _pkg_short_errors_supported=yes
7691 _pkg_short_errors_supported=no
7693 if test $_pkg_short_errors_supported = yes; then
7694 APPINDICATOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "appindicator-0.1 > 0.2.9" 2>&1`
7696 APPINDICATOR_PKG_ERRORS=`$PKG_CONFIG --print-errors "appindicator-0.1 > 0.2.9" 2>&1`
7698 # Put the nasty error message in config.log where it belongs
7699 echo "$APPINDICATOR_PKG_ERRORS" >&5
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"AppIndicator > 0.2.9 not present\"" >&5
7702 $as_echo "$as_me: WARNING: \"AppIndicator > 0.2.9 not present\"" >&2;}
7703 elif test $pkg_failed = untried; then
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7705 $as_echo "no" >&6; }
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"AppIndicator > 0.2.9 not present\"" >&5
7707 $as_echo "$as_me: WARNING: \"AppIndicator > 0.2.9 not present\"" >&2;}
7709 APPINDICATOR_CFLAGS=$pkg_cv_APPINDICATOR_CFLAGS
7710 APPINDICATOR_LIBS=$pkg_cv_APPINDICATOR_LIBS
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7712 $as_echo "yes" >&6; }
7714 $as_echo "#define HAVE_APPINDICATOR 1" >>confdefs.h
7718 if test -n "$APPINDICATOR_LIBS"; then
7720 APPINDICATOR_FALSE='#'
7722 APPINDICATOR_TRUE='#'
7729 # Check CURL, needed for remote monitoring
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CURL" >&5
7734 $as_echo_n "checking for CURL... " >&6; }
7736 if test -n "$CURL_CFLAGS"; then
7737 pkg_cv_CURL_CFLAGS="$CURL_CFLAGS"
7738 elif test -n "$PKG_CONFIG"; then
7739 if test -n "$PKG_CONFIG" && \
7740 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl\""; } >&5
7741 ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5
7743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7744 test $ac_status = 0; }; then
7745 pkg_cv_CURL_CFLAGS=`$PKG_CONFIG --cflags "libcurl" 2>/dev/null`
7752 if test -n "$CURL_LIBS"; then
7753 pkg_cv_CURL_LIBS="$CURL_LIBS"
7754 elif test -n "$PKG_CONFIG"; then
7755 if test -n "$PKG_CONFIG" && \
7756 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl\""; } >&5
7757 ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5
7759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7760 test $ac_status = 0; }; then
7761 pkg_cv_CURL_LIBS=`$PKG_CONFIG --libs "libcurl" 2>/dev/null`
7771 if test $pkg_failed = yes; then
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7773 $as_echo "no" >&6; }
7775 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7776 _pkg_short_errors_supported=yes
7778 _pkg_short_errors_supported=no
7780 if test $_pkg_short_errors_supported = yes; then
7781 CURL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcurl" 2>&1`
7783 CURL_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcurl" 2>&1`
7785 # Put the nasty error message in config.log where it belongs
7786 echo "$CURL_PKG_ERRORS" >&5
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Remote monitoring disabled" >&5
7789 $as_echo "$as_me: WARNING: \"Remote monitoring disabled" >&2;}
7790 elif test $pkg_failed = untried; then
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7792 $as_echo "no" >&6; }
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Remote monitoring disabled" >&5
7794 $as_echo "$as_me: WARNING: \"Remote monitoring disabled" >&2;}
7796 CURL_CFLAGS=$pkg_cv_CURL_CFLAGS
7797 CURL_LIBS=$pkg_cv_CURL_LIBS
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7799 $as_echo "yes" >&6; }
7801 $as_echo "#define HAVE_CURL 1" >>confdefs.h
7804 if test -n "$CURL_LIBS"; then
7815 # Check JSON, needed for remote monitoring
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JSON" >&5
7820 $as_echo_n "checking for JSON... " >&6; }
7822 if test -n "$JSON_CFLAGS"; then
7823 pkg_cv_JSON_CFLAGS="$JSON_CFLAGS"
7824 elif test -n "$PKG_CONFIG"; then
7825 if test -n "$PKG_CONFIG" && \
7826 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json\""; } >&5
7827 ($PKG_CONFIG --exists --print-errors "json") 2>&5
7829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7830 test $ac_status = 0; }; then
7831 pkg_cv_JSON_CFLAGS=`$PKG_CONFIG --cflags "json" 2>/dev/null`
7838 if test -n "$JSON_LIBS"; then
7839 pkg_cv_JSON_LIBS="$JSON_LIBS"
7840 elif test -n "$PKG_CONFIG"; then
7841 if test -n "$PKG_CONFIG" && \
7842 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json\""; } >&5
7843 ($PKG_CONFIG --exists --print-errors "json") 2>&5
7845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7846 test $ac_status = 0; }; then
7847 pkg_cv_JSON_LIBS=`$PKG_CONFIG --libs "json" 2>/dev/null`
7857 if test $pkg_failed = yes; then
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7859 $as_echo "no" >&6; }
7861 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7862 _pkg_short_errors_supported=yes
7864 _pkg_short_errors_supported=no
7866 if test $_pkg_short_errors_supported = yes; then
7867 JSON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "json" 2>&1`
7869 JSON_PKG_ERRORS=`$PKG_CONFIG --print-errors "json" 2>&1`
7871 # Put the nasty error message in config.log where it belongs
7872 echo "$JSON_PKG_ERRORS" >&5
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Remote monitoring disabled" >&5
7875 $as_echo "$as_me: WARNING: \"Remote monitoring disabled" >&2;}
7876 elif test $pkg_failed = untried; then
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7878 $as_echo "no" >&6; }
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Remote monitoring disabled" >&5
7880 $as_echo "$as_me: WARNING: \"Remote monitoring disabled" >&2;}
7882 JSON_CFLAGS=$pkg_cv_JSON_CFLAGS
7883 JSON_LIBS=$pkg_cv_JSON_LIBS
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7885 $as_echo "yes" >&6; }
7887 $as_echo "#define HAVE_JSON 1" >>confdefs.h
7890 if test -n "$JSON_LIBS"; then
7901 # Enables remote monitoring if JSON and CURL is present
7902 if test -n "$JSON_LIBS"; then
7903 if test -n "$CURL_LIBS"; then
7905 $as_echo "#define HAVE_REMOTE_SUPPORT 1" >>confdefs.h
7911 # following code from sensors-applet
7912 # sensors-applet.sourceforge.net/
7913 for ac_header in NVCtrl/NVCtrl.h NVCtrl/NVCtrlLib.h
7915 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7916 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
7917 #include <X11/Xlib.h>
7920 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7921 cat >>confdefs.h <<_ACEOF
7922 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7929 if test -n "${X11_LIBS}"; then
7930 LIBS="${LIBS} -lX11 -lXext"
7932 if test "${HAVE_NVIDIA}" = "true"; then
7933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XNVCTRLQueryExtension in -lXNVCtrl" >&5
7934 $as_echo_n "checking for XNVCTRLQueryExtension in -lXNVCtrl... " >&6; }
7935 if test "${ac_cv_lib_XNVCtrl_XNVCTRLQueryExtension+set}" = set; then :
7936 $as_echo_n "(cached) " >&6
7938 ac_check_lib_save_LIBS=$LIBS
7939 LIBS="-lXNVCtrl $LIBS"
7940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7941 /* end confdefs.h. */
7943 /* Override any GCC internal prototype to avoid an error.
7944 Use char because int might match the return type of a GCC
7945 builtin and then its argument prototype would still apply. */
7949 char XNVCTRLQueryExtension ();
7953 return XNVCTRLQueryExtension ();
7958 if ac_fn_c_try_link "$LINENO"; then :
7959 ac_cv_lib_XNVCtrl_XNVCTRLQueryExtension=yes
7961 ac_cv_lib_XNVCtrl_XNVCTRLQueryExtension=no
7963 rm -f core conftest.err conftest.$ac_objext \
7964 conftest$ac_exeext conftest.$ac_ext
7965 LIBS=$ac_check_lib_save_LIBS
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_XNVCtrl_XNVCTRLQueryExtension" >&5
7968 $as_echo "$ac_cv_lib_XNVCtrl_XNVCTRLQueryExtension" >&6; }
7969 if test "x$ac_cv_lib_XNVCtrl_XNVCTRLQueryExtension" = x""yes; then :
7970 NVIDIA_LIBS="-lXNVCtrl -lX11 -lXext"
7972 $as_echo "#define HAVE_NVIDIA 1" >>confdefs.h
7979 if test -n "$NVIDIA_LIBS"; then
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNITY" >&5
7994 $as_echo_n "checking for UNITY... " >&6; }
7996 if test -n "$UNITY_CFLAGS"; then
7997 pkg_cv_UNITY_CFLAGS="$UNITY_CFLAGS"
7998 elif test -n "$PKG_CONFIG"; then
7999 if test -n "$PKG_CONFIG" && \
8000 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"unity >= 3.4.2\""; } >&5
8001 ($PKG_CONFIG --exists --print-errors "unity >= 3.4.2") 2>&5
8003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8004 test $ac_status = 0; }; then
8005 pkg_cv_UNITY_CFLAGS=`$PKG_CONFIG --cflags "unity >= 3.4.2" 2>/dev/null`
8012 if test -n "$UNITY_LIBS"; then
8013 pkg_cv_UNITY_LIBS="$UNITY_LIBS"
8014 elif test -n "$PKG_CONFIG"; then
8015 if test -n "$PKG_CONFIG" && \
8016 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"unity >= 3.4.2\""; } >&5
8017 ($PKG_CONFIG --exists --print-errors "unity >= 3.4.2") 2>&5
8019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8020 test $ac_status = 0; }; then
8021 pkg_cv_UNITY_LIBS=`$PKG_CONFIG --libs "unity >= 3.4.2" 2>/dev/null`
8031 if test $pkg_failed = yes; then
8032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8033 $as_echo "no" >&6; }
8035 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8036 _pkg_short_errors_supported=yes
8038 _pkg_short_errors_supported=no
8040 if test $_pkg_short_errors_supported = yes; then
8041 UNITY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "unity >= 3.4.2" 2>&1`
8043 UNITY_PKG_ERRORS=`$PKG_CONFIG --print-errors "unity >= 3.4.2" 2>&1`
8045 # Put the nasty error message in config.log where it belongs
8046 echo "$UNITY_PKG_ERRORS" >&5
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unity not present" >&5
8049 $as_echo "$as_me: WARNING: Unity not present" >&2;}
8050 elif test $pkg_failed = untried; then
8051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8052 $as_echo "no" >&6; }
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unity not present" >&5
8054 $as_echo "$as_me: WARNING: Unity not present" >&2;}
8056 UNITY_CFLAGS=$pkg_cv_UNITY_CFLAGS
8057 UNITY_LIBS=$pkg_cv_UNITY_LIBS
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8059 $as_echo "yes" >&6; }
8061 $as_echo "#define HAVE_UNITY 1" >>confdefs.h
8066 if test -n "$UNITY_LIBS"; then
8075 ############### psensor-server
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
8082 $as_echo_n "checking for LUA... " >&6; }
8084 if test -n "$LUA_CFLAGS"; then
8085 pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
8086 elif test -n "$PKG_CONFIG"; then
8087 if test -n "$PKG_CONFIG" && \
8088 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua\""; } >&5
8089 ($PKG_CONFIG --exists --print-errors "lua") 2>&5
8091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8092 test $ac_status = 0; }; then
8093 pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua" 2>/dev/null`
8100 if test -n "$LUA_LIBS"; then
8101 pkg_cv_LUA_LIBS="$LUA_LIBS"
8102 elif test -n "$PKG_CONFIG"; then
8103 if test -n "$PKG_CONFIG" && \
8104 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua\""; } >&5
8105 ($PKG_CONFIG --exists --print-errors "lua") 2>&5
8107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8108 test $ac_status = 0; }; then
8109 pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua" 2>/dev/null`
8119 if test $pkg_failed = yes; then
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8121 $as_echo "no" >&6; }
8123 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8124 _pkg_short_errors_supported=yes
8126 _pkg_short_errors_supported=no
8128 if test $_pkg_short_errors_supported = yes; then
8129 LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua" 2>&1`
8131 LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua" 2>&1`
8133 # Put the nasty error message in config.log where it belongs
8134 echo "$LUA_PKG_ERRORS" >&5
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Lua not present" >&5
8137 $as_echo "$as_me: WARNING: Lua not present" >&2;}
8138 elif test $pkg_failed = untried; then
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8140 $as_echo "no" >&6; }
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Lua not present" >&5
8142 $as_echo "$as_me: WARNING: Lua not present" >&2;}
8144 LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
8145 LUA_LIBS=$pkg_cv_LUA_LIBS
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8147 $as_echo "yes" >&6; }
8149 $as_echo "#define HAVE_LUA 1" >>confdefs.h
8153 # Ubuntu pkg module is lua5.1 not lua
8154 if test "$LUA_LIBS" == ""; then
8157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
8158 $as_echo_n "checking for LUA... " >&6; }
8160 if test -n "$LUA_CFLAGS"; then
8161 pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
8162 elif test -n "$PKG_CONFIG"; then
8163 if test -n "$PKG_CONFIG" && \
8164 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
8165 ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
8167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8168 test $ac_status = 0; }; then
8169 pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
8176 if test -n "$LUA_LIBS"; then
8177 pkg_cv_LUA_LIBS="$LUA_LIBS"
8178 elif test -n "$PKG_CONFIG"; then
8179 if test -n "$PKG_CONFIG" && \
8180 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
8181 ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
8183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8184 test $ac_status = 0; }; then
8185 pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
8195 if test $pkg_failed = yes; then
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8197 $as_echo "no" >&6; }
8199 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8200 _pkg_short_errors_supported=yes
8202 _pkg_short_errors_supported=no
8204 if test $_pkg_short_errors_supported = yes; then
8205 LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua5.1" 2>&1`
8207 LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua5.1" 2>&1`
8209 # Put the nasty error message in config.log where it belongs
8210 echo "$LUA_PKG_ERRORS" >&5
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Lua5.1 not present" >&5
8213 $as_echo "$as_me: WARNING: Lua5.1 not present" >&2;}
8214 elif test $pkg_failed = untried; then
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8216 $as_echo "no" >&6; }
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Lua5.1 not present" >&5
8218 $as_echo "$as_me: WARNING: Lua5.1 not present" >&2;}
8220 LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
8221 LUA_LIBS=$pkg_cv_LUA_LIBS
8222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8223 $as_echo "yes" >&6; }
8225 $as_echo "#define HAVE_LUA 1" >>confdefs.h
8229 if test -n "$LUA_LIBS"; then
8240 # libmicrohttpd, mandatory for psensor-server
8244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBMICROHTTPD" >&5
8245 $as_echo_n "checking for LIBMICROHTTPD... " >&6; }
8247 if test -n "$LIBMICROHTTPD_CFLAGS"; then
8248 pkg_cv_LIBMICROHTTPD_CFLAGS="$LIBMICROHTTPD_CFLAGS"
8249 elif test -n "$PKG_CONFIG"; then
8250 if test -n "$PKG_CONFIG" && \
8251 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmicrohttpd\""; } >&5
8252 ($PKG_CONFIG --exists --print-errors "libmicrohttpd") 2>&5
8254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8255 test $ac_status = 0; }; then
8256 pkg_cv_LIBMICROHTTPD_CFLAGS=`$PKG_CONFIG --cflags "libmicrohttpd" 2>/dev/null`
8263 if test -n "$LIBMICROHTTPD_LIBS"; then
8264 pkg_cv_LIBMICROHTTPD_LIBS="$LIBMICROHTTPD_LIBS"
8265 elif test -n "$PKG_CONFIG"; then
8266 if test -n "$PKG_CONFIG" && \
8267 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmicrohttpd\""; } >&5
8268 ($PKG_CONFIG --exists --print-errors "libmicrohttpd") 2>&5
8270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8271 test $ac_status = 0; }; then
8272 pkg_cv_LIBMICROHTTPD_LIBS=`$PKG_CONFIG --libs "libmicrohttpd" 2>/dev/null`
8282 if test $pkg_failed = yes; then
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8284 $as_echo "no" >&6; }
8286 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8287 _pkg_short_errors_supported=yes
8289 _pkg_short_errors_supported=no
8291 if test $_pkg_short_errors_supported = yes; then
8292 LIBMICROHTTPD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libmicrohttpd" 2>&1`
8294 LIBMICROHTTPD_PKG_ERRORS=`$PKG_CONFIG --print-errors "libmicrohttpd" 2>&1`
8296 # Put the nasty error message in config.log where it belongs
8297 echo "$LIBMICROHTTPD_PKG_ERRORS" >&5
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"libmicrohttpd not present" >&5
8300 $as_echo "$as_me: WARNING: \"libmicrohttpd not present" >&2;}
8301 elif test $pkg_failed = untried; then
8302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8303 $as_echo "no" >&6; }
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"libmicrohttpd not present" >&5
8305 $as_echo "$as_me: WARNING: \"libmicrohttpd not present" >&2;}
8307 LIBMICROHTTPD_CFLAGS=$pkg_cv_LIBMICROHTTPD_CFLAGS
8308 LIBMICROHTTPD_LIBS=$pkg_cv_LIBMICROHTTPD_LIBS
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8310 $as_echo "yes" >&6; }
8312 $as_echo "#define HAVE_LIBMICROHTTPD 1" >>confdefs.h
8315 if test -n "$LIBMICROHTTPD_LIBS"; then
8317 LIBMICROHTTPD_FALSE='#'
8319 LIBMICROHTTPD_TRUE='#'
8320 LIBMICROHTTPD_FALSE=
8329 # Check whether --with-gtop was given.
8330 if test "${with_gtop+set}" = set; then :
8341 if test "$with_gtop" = "yes"; then
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTOP" >&5
8345 $as_echo_n "checking for GTOP... " >&6; }
8347 if test -n "$GTOP_CFLAGS"; then
8348 pkg_cv_GTOP_CFLAGS="$GTOP_CFLAGS"
8349 elif test -n "$PKG_CONFIG"; then
8350 if test -n "$PKG_CONFIG" && \
8351 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgtop-2.0\""; } >&5
8352 ($PKG_CONFIG --exists --print-errors "libgtop-2.0") 2>&5
8354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8355 test $ac_status = 0; }; then
8356 pkg_cv_GTOP_CFLAGS=`$PKG_CONFIG --cflags "libgtop-2.0" 2>/dev/null`
8363 if test -n "$GTOP_LIBS"; then
8364 pkg_cv_GTOP_LIBS="$GTOP_LIBS"
8365 elif test -n "$PKG_CONFIG"; then
8366 if test -n "$PKG_CONFIG" && \
8367 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgtop-2.0\""; } >&5
8368 ($PKG_CONFIG --exists --print-errors "libgtop-2.0") 2>&5
8370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8371 test $ac_status = 0; }; then
8372 pkg_cv_GTOP_LIBS=`$PKG_CONFIG --libs "libgtop-2.0" 2>/dev/null`
8382 if test $pkg_failed = yes; then
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8384 $as_echo "no" >&6; }
8386 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8387 _pkg_short_errors_supported=yes
8389 _pkg_short_errors_supported=no
8391 if test $_pkg_short_errors_supported = yes; then
8392 GTOP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgtop-2.0" 2>&1`
8394 GTOP_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgtop-2.0" 2>&1`
8396 # Put the nasty error message in config.log where it belongs
8397 echo "$GTOP_PKG_ERRORS" >&5
8399 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"gtop not present" >&5
8400 $as_echo "$as_me: WARNING: \"gtop not present" >&2;}
8401 elif test $pkg_failed = untried; then
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8403 $as_echo "no" >&6; }
8404 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"gtop not present" >&5
8405 $as_echo "$as_me: WARNING: \"gtop not present" >&2;}
8407 GTOP_CFLAGS=$pkg_cv_GTOP_CFLAGS
8408 GTOP_LIBS=$pkg_cv_GTOP_LIBS
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8410 $as_echo "yes" >&6; }
8412 $as_echo "#define HAVE_GTOP 1" >>confdefs.h
8416 if test -n "$GTOP_LIBS"; then
8427 ac_config_files="$ac_config_files Makefile src/Makefile src/glade/Makefile src/plib/Makefile src/lib/Makefile src/unity/Makefile src/libpsensor_json/Makefile src/server/Makefile pixmaps/scalable/Makefile pixmaps/14x14/Makefile pixmaps/16x16/Makefile pixmaps/22x22/Makefile pixmaps/24x24/Makefile pixmaps/32x32/Makefile pixmaps/48x48/Makefile pixmaps/64x64/Makefile www/Makefile po/Makefile.in tests/Makefile"
8430 for ac_prog in help2man
8432 # Extract the first word of "$ac_prog", so it can be a program name with args.
8433 set dummy $ac_prog; ac_word=$2
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8435 $as_echo_n "checking for $ac_word... " >&6; }
8436 if test "${ac_cv_prog_HELP2MAN+set}" = set; then :
8437 $as_echo_n "(cached) " >&6
8439 if test -n "$HELP2MAN"; then
8440 ac_cv_prog_HELP2MAN="$HELP2MAN" # Let the user override the test.
8442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8446 test -z "$as_dir" && as_dir=.
8447 for ac_exec_ext in '' $ac_executable_extensions; do
8448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8449 ac_cv_prog_HELP2MAN="$ac_prog"
8450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8459 HELP2MAN=$ac_cv_prog_HELP2MAN
8460 if test -n "$HELP2MAN"; then
8461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HELP2MAN" >&5
8462 $as_echo "$HELP2MAN" >&6; }
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8465 $as_echo "no" >&6; }
8469 test -n "$HELP2MAN" && break
8473 cat >confcache <<\_ACEOF
8474 # This file is a shell script that caches the results of configure
8475 # tests run on this system so they can be shared between configure
8476 # scripts and configure runs, see configure's option --config-cache.
8477 # It is not useful on other systems. If it contains results you don't
8478 # want to keep, you may remove or edit it.
8480 # config.status only pays attention to the cache file if you give it
8481 # the --recheck option to rerun configure.
8483 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8484 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8489 # The following way of writing the cache mishandles newlines in values,
8490 # but we know of no workaround that is simple, portable, and efficient.
8491 # So, we kill variables containing newlines.
8492 # Ultrix sh set writes to stderr and can't be redirected directly,
8493 # and sets the high bit in the cache file unless we assign to the vars.
8495 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8496 eval ac_val=\$$ac_var
8500 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8501 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8504 _ | IFS | as_nl) ;; #(
8505 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8506 *) { eval $ac_var=; unset $ac_var;} ;;
8512 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8513 *${as_nl}ac_space=\ *)
8514 # `set' does not quote correctly, so add quotes: double-quote
8515 # substitution turns \\\\ into \\, and sed turns \\ into \.
8518 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8521 # `set' quotes correctly as required by POSIX, so do not add quotes.
8522 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8531 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8533 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8535 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8536 if test -w "$cache_file"; then
8537 test "x$cache_file" != "x/dev/null" &&
8538 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8539 $as_echo "$as_me: updating cache $cache_file" >&6;}
8540 cat confcache >$cache_file
8542 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8543 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8548 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8549 # Let make expand exec_prefix.
8550 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8552 DEFS=-DHAVE_CONFIG_H
8557 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8558 # 1. Remove the extension, and $U if already installed.
8559 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8560 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
8561 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8562 # will be set to the directory where LIBOBJS objects are built.
8563 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8564 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
8568 LTLIBOBJS=$ac_ltlibobjs
8571 if test -n "$EXEEXT"; then
8573 am__EXEEXT_FALSE='#'
8579 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
8580 as_fn_error $? "conditional \"AMDEP\" was never defined.
8581 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8583 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8584 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
8585 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8587 if test -z "${LIBNOTIFY_TRUE}" && test -z "${LIBNOTIFY_FALSE}"; then
8588 as_fn_error $? "conditional \"LIBNOTIFY\" was never defined.
8589 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8591 if test -z "${APPINDICATOR_TRUE}" && test -z "${APPINDICATOR_FALSE}"; then
8592 as_fn_error $? "conditional \"APPINDICATOR\" was never defined.
8593 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8595 if test -z "${CURL_TRUE}" && test -z "${CURL_FALSE}"; then
8596 as_fn_error $? "conditional \"CURL\" was never defined.
8597 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8599 if test -z "${JSON_TRUE}" && test -z "${JSON_FALSE}"; then
8600 as_fn_error $? "conditional \"JSON\" was never defined.
8601 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8603 if test -z "${NVIDIA_TRUE}" && test -z "${NVIDIA_FALSE}"; then
8604 as_fn_error $? "conditional \"NVIDIA\" was never defined.
8605 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8607 if test -z "${UNITY_TRUE}" && test -z "${UNITY_FALSE}"; then
8608 as_fn_error $? "conditional \"UNITY\" was never defined.
8609 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8611 if test -z "${LUA_TRUE}" && test -z "${LUA_FALSE}"; then
8612 as_fn_error $? "conditional \"LUA\" was never defined.
8613 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8615 if test -z "${LIBMICROHTTPD_TRUE}" && test -z "${LIBMICROHTTPD_FALSE}"; then
8616 as_fn_error $? "conditional \"LIBMICROHTTPD\" was never defined.
8617 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8619 if test -z "${GTOP_TRUE}" && test -z "${GTOP_FALSE}"; then
8620 as_fn_error $? "conditional \"GTOP\" was never defined.
8621 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8624 : ${CONFIG_STATUS=./config.status}
8626 ac_clean_files_save=$ac_clean_files
8627 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8628 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8629 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8631 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8633 # Generated by $as_me.
8634 # Run this file to recreate the current configuration.
8635 # Compiler output produced by configure, useful for debugging
8636 # configure, is in config.log if it exists.
8642 SHELL=\${CONFIG_SHELL-$SHELL}
8645 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
8646 ## -------------------- ##
8647 ## M4sh Initialization. ##
8648 ## -------------------- ##
8650 # Be more Bourne compatible
8651 DUALCASE=1; export DUALCASE # for MKS sh
8652 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
8655 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8656 # is contrary to our usage. Disable this feature.
8657 alias -g '${1+"$@"}'='"$@"'
8658 setopt NO_GLOB_SUBST
8660 case `(set -o) 2>/dev/null` in #(
8672 # Printing a long string crashes Solaris 7 /usr/bin/printf.
8673 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8674 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8675 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8676 # Prefer a ksh shell builtin over an external printf program on Solaris,
8677 # but without wasting forks for bash or zsh.
8678 if test -z "$BASH_VERSION$ZSH_VERSION" \
8679 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
8680 as_echo='print -r --'
8681 as_echo_n='print -rn --'
8682 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8683 as_echo='printf %s\n'
8684 as_echo_n='printf %s'
8686 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8687 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
8688 as_echo_n='/usr/ucb/echo -n'
8690 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8691 as_echo_n_body='eval
8695 expr "X$arg" : "X\\(.*\\)$as_nl";
8696 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8698 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
8700 export as_echo_n_body
8701 as_echo_n='sh -c $as_echo_n_body as_echo'
8704 as_echo='sh -c $as_echo_body as_echo'
8707 # The user is always right.
8708 if test "${PATH_SEPARATOR+set}" != set; then
8710 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8711 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8718 # We need space, tab and new line, in precisely that order. Quoting is
8719 # there to prevent editors from complaining about space-tab.
8720 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8721 # splitting by setting IFS to empty value.)
8724 # Find who we are. Look in the path if we contain no directory separator.
8726 *[\\/]* ) as_myself=$0 ;;
8727 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8731 test -z "$as_dir" && as_dir=.
8732 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8738 # We did not find ourselves, most probably we were run as `sh COMMAND'
8739 # in which case we are not to be found in the path.
8740 if test "x$as_myself" = x; then
8743 if test ! -f "$as_myself"; then
8744 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8748 # Unset variables that we do not need and which cause bugs (e.g. in
8749 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
8750 # suppresses any "Segmentation fault" message there. '((' could
8751 # trigger a bug in pdksh 5.2.14.
8752 for as_var in BASH_ENV ENV MAIL MAILPATH
8753 do eval test x\${$as_var+set} = xset \
8754 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8767 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8770 # as_fn_error STATUS ERROR [LINENO LOG_FD]
8771 # ----------------------------------------
8772 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8773 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8774 # script with STATUS, using 1 if that was 0.
8777 as_status=$1; test $as_status -eq 0 && as_status=1
8779 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8780 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
8782 $as_echo "$as_me: error: $2" >&2
8783 as_fn_exit $as_status
8787 # as_fn_set_status STATUS
8788 # -----------------------
8789 # Set $? to STATUS, without forking.
8793 } # as_fn_set_status
8797 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8807 # Portably unset VAR.
8810 { eval $1=; unset $1;}
8812 as_unset=as_fn_unset
8813 # as_fn_append VAR VALUE
8814 # ----------------------
8815 # Append the text in VALUE to the end of the definition contained in VAR. Take
8816 # advantage of any shell optimizations that allow amortized linear growth over
8817 # repeated appends, instead of the typical quadratic growth present in naive
8819 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
8820 eval 'as_fn_append ()
8831 # as_fn_arith ARG...
8832 # ------------------
8833 # Perform arithmetic evaluation on the ARGs, and store the result in the
8834 # global $as_val. Take advantage of shells that can avoid forks. The arguments
8835 # must be portable across $(()) and expr.
8836 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
8837 eval 'as_fn_arith ()
8844 as_val=`expr "$@" || test $? -eq 1`
8849 if expr a : '\(a\)' >/dev/null 2>&1 &&
8850 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8856 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8857 as_basename=basename
8862 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8868 as_me=`$as_basename -- "$0" ||
8869 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8870 X"$0" : 'X\(//\)$' \| \
8871 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8873 sed '/^.*\/\([^/][^/]*\)\/*$/{
8887 # Avoid depending upon Character Ranges.
8888 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8889 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8890 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8891 as_cr_digits='0123456789'
8892 as_cr_alnum=$as_cr_Letters$as_cr_digits
8894 ECHO_C= ECHO_N= ECHO_T=
8895 case `echo -n x` in #(((((
8897 case `echo 'xy\c'` in
8898 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
8900 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
8907 rm -f conf$$ conf$$.exe conf$$.file
8908 if test -d conf$$.dir; then
8909 rm -f conf$$.dir/conf$$.file
8912 mkdir conf$$.dir 2>/dev/null
8914 if (echo >conf$$.file) 2>/dev/null; then
8915 if ln -s conf$$.file conf$$ 2>/dev/null; then
8917 # ... but there are two gotchas:
8918 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8919 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8920 # In both cases, we have to default to `cp -p'.
8921 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8923 elif ln conf$$.file conf$$ 2>/dev/null; then
8931 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8932 rmdir conf$$.dir 2>/dev/null
8937 # Create "$as_dir" as a directory, including parents if necessary.
8942 -*) as_dir=./$as_dir;;
8944 test -d "$as_dir" || eval $as_mkdir_p || {
8948 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8949 *) as_qdir=$as_dir;;
8951 as_dirs="'$as_qdir' $as_dirs"
8952 as_dir=`$as_dirname -- "$as_dir" ||
8953 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8954 X"$as_dir" : 'X\(//\)[^/]' \| \
8955 X"$as_dir" : 'X\(//\)$' \| \
8956 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8957 $as_echo X"$as_dir" |
8958 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8975 test -d "$as_dir" && break
8977 test -z "$as_dirs" || eval "mkdir $as_dirs"
8978 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
8982 if mkdir -p . 2>/dev/null; then
8983 as_mkdir_p='mkdir -p "$as_dir"'
8985 test -d ./-p && rmdir ./-p
8989 if test -x / >/dev/null 2>&1; then
8992 if ls -dL / >/dev/null 2>&1; then
8999 if test -d "$1"; then
9005 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
9006 ???[sx]*):;;*)false;;esac;fi
9010 as_executable_p=$as_test_x
9012 # Sed expression to map a string onto a valid CPP name.
9013 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9015 # Sed expression to map a string onto a valid variable name.
9016 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9020 ## ----------------------------------- ##
9021 ## Main body of $CONFIG_STATUS script. ##
9022 ## ----------------------------------- ##
9024 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
9026 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9027 # Save the log message, to keep $0 and so on meaningful, and to
9028 # report actual input values of CONFIG_FILES etc. instead of their
9029 # values after options handling.
9031 This file was extended by psensor $as_me 0.6.2.10, which was
9032 generated by GNU Autoconf 2.67. Invocation command line was
9034 CONFIG_FILES = $CONFIG_FILES
9035 CONFIG_HEADERS = $CONFIG_HEADERS
9036 CONFIG_LINKS = $CONFIG_LINKS
9037 CONFIG_COMMANDS = $CONFIG_COMMANDS
9040 on `(hostname || uname -n) 2>/dev/null | sed 1q`
9045 case $ac_config_files in *"
9046 "*) set x $ac_config_files; shift; ac_config_files=$*;;
9049 case $ac_config_headers in *"
9050 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
9054 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9055 # Files that config.status was made for.
9056 config_files="$ac_config_files"
9057 config_headers="$ac_config_headers"
9058 config_commands="$ac_config_commands"
9062 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9064 \`$as_me' instantiates files and other configuration actions
9065 from templates according to the current configuration. Unless the files
9066 and actions are specified as TAGs, all are instantiated by default.
9068 Usage: $0 [OPTION]... [TAG]...
9070 -h, --help print this help, then exit
9071 -V, --version print version number and configuration settings, then exit
9072 --config print configuration, then exit
9073 -q, --quiet, --silent
9074 do not print progress messages
9075 -d, --debug don't remove temporary files
9076 --recheck update $as_me by reconfiguring in the same conditions
9077 --file=FILE[:TEMPLATE]
9078 instantiate the configuration file FILE
9079 --header=FILE[:TEMPLATE]
9080 instantiate the configuration header FILE
9082 Configuration files:
9085 Configuration headers:
9088 Configuration commands:
9091 Report bugs to <jeanfi@gmail.com>.
9092 psensor home page: <http://wpitchoune.net/psensor>."
9095 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9096 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
9098 psensor config.status 0.6.2.10
9099 configured by $0, generated by GNU Autoconf 2.67,
9100 with options \\"\$ac_cs_config\\"
9102 Copyright (C) 2010 Free Software Foundation, Inc.
9103 This config.status script is free software; the Free Software Foundation
9104 gives unlimited permission to copy, distribute and modify it."
9111 test -n "\$AWK" || AWK=awk
9114 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9115 # The default lists apply if the user does not specify any file.
9121 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9122 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9126 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9138 # Handling of the options.
9139 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9141 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9142 $as_echo "$ac_cs_version"; exit ;;
9143 --config | --confi | --conf | --con | --co | --c )
9144 $as_echo "$ac_cs_config"; exit ;;
9145 --debug | --debu | --deb | --de | --d | -d )
9147 --file | --fil | --fi | --f )
9150 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9151 '') as_fn_error $? "missing file argument" ;;
9153 as_fn_append CONFIG_FILES " '$ac_optarg'"
9154 ac_need_defaults=false;;
9155 --header | --heade | --head | --hea )
9158 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9160 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
9161 ac_need_defaults=false;;
9163 # Conflict between --help and --header
9164 as_fn_error $? "ambiguous option: \`$1'
9165 Try \`$0 --help' for more information.";;
9166 --help | --hel | -h )
9167 $as_echo "$ac_cs_usage"; exit ;;
9168 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9169 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9173 -*) as_fn_error $? "unrecognized option: \`$1'
9174 Try \`$0 --help' for more information." ;;
9176 *) as_fn_append ac_config_targets " $1"
9177 ac_need_defaults=false ;;
9183 ac_configure_extra_args=
9185 if $ac_cs_silent; then
9187 ac_configure_extra_args="$ac_configure_extra_args --silent"
9191 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9192 if \$ac_cs_recheck; then
9193 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9195 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
9196 CONFIG_SHELL='$SHELL'
9202 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9206 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9207 ## Running $as_me. ##
9213 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9217 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9218 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
9219 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
9220 # from automake < 1.5.
9221 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
9222 # Capture the value of LINGUAS because we need it to compute CATALOGS.
9223 LINGUAS="${LINGUAS-%UNSET%}"
9228 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9230 # Handling of arguments.
9231 for ac_config_target in $ac_config_targets
9233 case $ac_config_target in
9234 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
9235 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9236 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
9237 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9238 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
9239 "src/glade/Makefile") CONFIG_FILES="$CONFIG_FILES src/glade/Makefile" ;;
9240 "src/plib/Makefile") CONFIG_FILES="$CONFIG_FILES src/plib/Makefile" ;;
9241 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
9242 "src/unity/Makefile") CONFIG_FILES="$CONFIG_FILES src/unity/Makefile" ;;
9243 "src/libpsensor_json/Makefile") CONFIG_FILES="$CONFIG_FILES src/libpsensor_json/Makefile" ;;
9244 "src/server/Makefile") CONFIG_FILES="$CONFIG_FILES src/server/Makefile" ;;
9245 "pixmaps/scalable/Makefile") CONFIG_FILES="$CONFIG_FILES pixmaps/scalable/Makefile" ;;
9246 "pixmaps/14x14/Makefile") CONFIG_FILES="$CONFIG_FILES pixmaps/14x14/Makefile" ;;
9247 "pixmaps/16x16/Makefile") CONFIG_FILES="$CONFIG_FILES pixmaps/16x16/Makefile" ;;
9248 "pixmaps/22x22/Makefile") CONFIG_FILES="$CONFIG_FILES pixmaps/22x22/Makefile" ;;
9249 "pixmaps/24x24/Makefile") CONFIG_FILES="$CONFIG_FILES pixmaps/24x24/Makefile" ;;
9250 "pixmaps/32x32/Makefile") CONFIG_FILES="$CONFIG_FILES pixmaps/32x32/Makefile" ;;
9251 "pixmaps/48x48/Makefile") CONFIG_FILES="$CONFIG_FILES pixmaps/48x48/Makefile" ;;
9252 "pixmaps/64x64/Makefile") CONFIG_FILES="$CONFIG_FILES pixmaps/64x64/Makefile" ;;
9253 "www/Makefile") CONFIG_FILES="$CONFIG_FILES www/Makefile" ;;
9254 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
9255 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
9257 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
9262 # If the user did not use the arguments to specify the items to instantiate,
9263 # then the envvar interface is used. Set only those that are not.
9264 # We use the long form for the default assignment because of an extremely
9265 # bizarre bug on SunOS 4.1.3.
9266 if $ac_need_defaults; then
9267 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9268 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9269 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9272 # Have a temporary directory for convenience. Make it in the build tree
9273 # simply because there is no reason against having it here, and in addition,
9274 # creating and moving files from /tmp can sometimes cause problems.
9275 # Hook for its removal unless debugging.
9276 # Note that there is a small window in which the directory will not be cleaned:
9277 # after its creation but before its name has been assigned to `$tmp'.
9281 trap 'exit_status=$?
9282 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
9284 trap 'as_fn_exit 1' 1 2 13 15
9286 # Create a (secure) tmp directory for tmp files.
9289 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9290 test -n "$tmp" && test -d "$tmp"
9293 tmp=./conf$$-$RANDOM
9294 (umask 077 && mkdir "$tmp")
9295 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
9297 # Set up the scripts for CONFIG_FILES section.
9298 # No need to generate them if there are no CONFIG_FILES.
9299 # This happens for instance with `./config.status config.h'.
9300 if test -n "$CONFIG_FILES"; then
9303 ac_cr=`echo X | tr X '\015'`
9304 # On cygwin, bash can eat \r inside `` if the user requested igncr.
9305 # But we know of no other shell where ac_cr would be empty at this
9306 # point, so we can use a bashism as a fallback.
9307 if test "x$ac_cr" = x; then
9308 eval ac_cr=\$\'\\r\'
9310 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
9311 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
9317 echo 'BEGIN {' >"$tmp/subs1.awk" &&
9322 echo "cat >conf$$subs.awk <<_ACEOF" &&
9323 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
9326 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9327 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
9329 for ac_last_try in false false false false false :; do
9330 . ./conf$$subs.sh ||
9331 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9333 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
9334 if test $ac_delim_n = $ac_delim_num; then
9336 elif $ac_last_try; then
9337 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9339 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9344 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9345 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
9349 s/^/S["/; s/!.*/"]=/
9359 s/\(.\{148\}\)..*/\1/
9361 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
9366 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9373 s/\(.\{148\}\)..*/\1/
9375 s/["\\]/\\&/g; s/^/"/; s/$/"/
9379 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9384 ' <conf$$subs.awk | sed '
9389 ' >>$CONFIG_STATUS || ac_write_fail=1
9390 rm -f conf$$subs.awk
9391 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9393 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
9394 for (key in S) S_is_set[key] = 1
9400 nfields = split(line, field, "@")
9402 len = length(field[1])
9403 for (i = 2; i < nfields; i++) {
9405 keylen = length(key)
9406 if (S_is_set[key]) {
9408 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
9409 len += length(value) + length(field[++i])
9420 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9421 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9422 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
9425 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
9426 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
9429 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
9430 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
9431 # trailing colons and then remove the whole line if VPATH becomes empty
9432 # (actually we leave an empty line to preserve line numbers).
9433 if test "x$srcdir" = x.; then
9434 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
9452 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9453 fi # test -n "$CONFIG_FILES"
9455 # Set up the scripts for CONFIG_HEADERS section.
9456 # No need to generate them if there are no CONFIG_HEADERS.
9457 # This happens for instance with `./config.status Makefile'.
9458 if test -n "$CONFIG_HEADERS"; then
9459 cat >"$tmp/defines.awk" <<\_ACAWK ||
9463 # Transform confdefs.h into an awk script `defines.awk', embedded as
9464 # here-document in config.status, that substitutes the proper values into
9465 # config.h.in to produce config.h.
9467 # Create a delimiter string that does not exist in confdefs.h, to ease
9468 # handling of long lines.
9470 for ac_last_try in false false :; do
9471 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
9472 if test -z "$ac_t"; then
9474 elif $ac_last_try; then
9475 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
9477 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9481 # For the awk script, D is an array of macro values keyed by name,
9482 # likewise P contains macro parameters if any. Preserve backslash
9483 # newline sequences.
9485 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9487 s/.\{148\}/&'"$ac_delim"'/g
9490 s/^[ ]*#[ ]*define[ ][ ]*/ /
9497 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9499 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
9503 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9504 D["\1"]=" \3\\\\\\n"\\/p
9506 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
9511 s/.\{148\}/&'"$ac_delim"'/g
9516 s/["\\]/\\&/g; s/^/"/; s/$/"/p
9519 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
9521 ' <confdefs.h | sed '
9522 s/'"$ac_delim"'/"\\\
9523 "/g' >>$CONFIG_STATUS || ac_write_fail=1
9525 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9526 for (key in D) D_is_set[key] = 1
9529 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
9531 split(line, arg, " ")
9532 if (arg[1] == "#") {
9536 defundef = substr(arg[1], 2)
9539 split(mac1, mac2, "(") #)
9541 prefix = substr(line, 1, index(line, defundef) - 1)
9542 if (D_is_set[macro]) {
9543 # Preserve the white space surrounding the "#".
9544 print prefix "define", macro P[macro] D[macro]
9547 # Replace #undef with comments. This is necessary, for example,
9548 # in the case of _POSIX_SOURCE, which is predefined and required
9549 # on some systems where configure will not decide to define it.
9550 if (defundef == "undef") {
9551 print "/*", prefix defundef, macro, "*/"
9559 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9560 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
9561 fi # test -n "$CONFIG_HEADERS"
9564 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
9569 :[FHLC]) ac_mode=$ac_tag; continue;;
9571 case $ac_mode$ac_tag in
9573 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
9574 :[FH]-) ac_tag=-:-;;
9575 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9592 -) ac_f="$tmp/stdin";;
9593 *) # Look for the file first in the build tree, then in the source tree
9594 # (if the path is not absolute). The absolute path cannot be DOS-style,
9595 # because $ac_f cannot contain `:'.
9599 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9601 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
9603 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9604 as_fn_append ac_file_inputs " '$ac_f'"
9607 # Let's still pretend it is `configure' which instantiates (i.e., don't
9608 # use $as_me), people would be surprised to read:
9609 # /* config.h. Generated by config.status. */
9610 configure_input='Generated from '`
9611 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9613 if test x"$ac_file" != x-; then
9614 configure_input="$ac_file. $configure_input"
9615 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
9616 $as_echo "$as_me: creating $ac_file" >&6;}
9618 # Neutralize special characters interpreted by sed in replacement strings.
9619 case $configure_input in #(
9620 *\&* | *\|* | *\\* )
9621 ac_sed_conf_input=`$as_echo "$configure_input" |
9622 sed 's/[\\\\&|]/\\\\&/g'`;; #(
9623 *) ac_sed_conf_input=$configure_input;;
9627 *:-:* | *:-) cat >"$tmp/stdin" \
9628 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
9633 ac_dir=`$as_dirname -- "$ac_file" ||
9634 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9635 X"$ac_file" : 'X\(//\)[^/]' \| \
9636 X"$ac_file" : 'X\(//\)$' \| \
9637 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9638 $as_echo X"$ac_file" |
9639 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9656 as_dir="$ac_dir"; as_fn_mkdir_p
9660 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9662 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9663 # A ".." for each directory in $ac_dir_suffix.
9664 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9665 case $ac_top_builddir_sub in
9666 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9667 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9670 ac_abs_top_builddir=$ac_pwd
9671 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9672 # for backward compatibility:
9673 ac_top_builddir=$ac_top_build_prefix
9676 .) # We are building in place.
9678 ac_top_srcdir=$ac_top_builddir_sub
9679 ac_abs_top_srcdir=$ac_pwd ;;
9680 [\\/]* | ?:[\\/]* ) # Absolute name.
9681 ac_srcdir=$srcdir$ac_dir_suffix;
9682 ac_top_srcdir=$srcdir
9683 ac_abs_top_srcdir=$srcdir ;;
9685 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9686 ac_top_srcdir=$ac_top_build_prefix$srcdir
9687 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9689 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9699 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9700 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
9704 [\\/$]* | ?:[\\/]* ) ;;
9705 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
9709 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9710 # If the template does not know about datarootdir, expand it.
9711 # FIXME: This hack should be removed a few years after 2.60.
9712 ac_datarootdir_hack=; ac_datarootdir_seen=
9723 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9724 *datarootdir*) ac_datarootdir_seen=yes;;
9725 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9727 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9729 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9730 ac_datarootdir_hack='
9731 s&@datadir@&$datadir&g
9732 s&@docdir@&$docdir&g
9733 s&@infodir@&$infodir&g
9734 s&@localedir@&$localedir&g
9735 s&@mandir@&$mandir&g
9736 s&\\\${datarootdir}&$datarootdir&g' ;;
9740 # Neutralize VPATH when `$srcdir' = `.'.
9741 # Shell code in configure.ac might set extrasub.
9742 # FIXME: do we really want to maintain this feature?
9743 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9744 ac_sed_extra="$ac_vpsub
9747 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9749 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9750 s|@configure_input@|$ac_sed_conf_input|;t t
9751 s&@top_builddir@&$ac_top_builddir_sub&;t t
9752 s&@top_build_prefix@&$ac_top_build_prefix&;t t
9753 s&@srcdir@&$ac_srcdir&;t t
9754 s&@abs_srcdir@&$ac_abs_srcdir&;t t
9755 s&@top_srcdir@&$ac_top_srcdir&;t t
9756 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9757 s&@builddir@&$ac_builddir&;t t
9758 s&@abs_builddir@&$ac_abs_builddir&;t t
9759 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9760 s&@INSTALL@&$ac_INSTALL&;t t
9761 s&@MKDIR_P@&$ac_MKDIR_P&;t t
9762 $ac_datarootdir_hack
9764 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
9765 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9767 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9768 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
9769 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
9770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9771 which seems to be undefined. Please make sure it is defined" >&5
9772 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9773 which seems to be undefined. Please make sure it is defined" >&2;}
9777 -) cat "$tmp/out" && rm -f "$tmp/out";;
9778 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
9780 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9786 if test x"$ac_file" != x-; then
9788 $as_echo "/* $configure_input */" \
9789 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
9790 } >"$tmp/config.h" \
9791 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9792 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
9793 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
9794 $as_echo "$as_me: $ac_file is unchanged" >&6;}
9797 mv "$tmp/config.h" "$ac_file" \
9798 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9801 $as_echo "/* $configure_input */" \
9802 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
9803 || as_fn_error $? "could not create -" "$LINENO" 5
9805 # Compute "$ac_file"'s index in $config_headers.
9808 for _am_header in $config_headers :; do
9810 $_am_arg | $_am_arg:* )
9813 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
9816 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
9817 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9818 X"$_am_arg" : 'X\(//\)[^/]' \| \
9819 X"$_am_arg" : 'X\(//\)$' \| \
9820 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
9821 $as_echo X"$_am_arg" |
9822 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9838 s/.*/./; q'`/stamp-h$_am_stamp_count
9841 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
9842 $as_echo "$as_me: executing $ac_file commands" >&6;}
9847 case $ac_file$ac_mode in
9848 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
9849 # Autoconf 2.62 quotes --file arguments for eval, but not when files
9850 # are listed without --file. Let's play safe and only enable the eval
9851 # if we detect the quoting.
9852 case $CONFIG_FILES in
9853 *\'*) eval set x "$CONFIG_FILES" ;;
9854 *) set x $CONFIG_FILES ;;
9859 # Strip MF so we end up with the name of the file.
9860 mf=`echo "$mf" | sed -e 's/:.*$//'`
9861 # Check whether this is an Automake generated Makefile or not.
9862 # We used to match only the files named `Makefile.in', but
9863 # some people rename them; so instead we look at the file content.
9864 # Grep'ing the first line is not enough: some people post-process
9865 # each Makefile.in and add a new line on top of each file to say so.
9866 # Grep'ing the whole file is not good either: AIX grep has a line
9867 # limit of 2048, but all sed's we know have understand at least 4000.
9868 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
9869 dirpart=`$as_dirname -- "$mf" ||
9870 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9871 X"$mf" : 'X\(//\)[^/]' \| \
9872 X"$mf" : 'X\(//\)$' \| \
9873 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
9875 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9895 # Extract the definition of DEPDIR, am__include, and am__quote
9896 # from the Makefile without running `make'.
9897 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9898 test -z "$DEPDIR" && continue
9899 am__include=`sed -n 's/^am__include = //p' < "$mf"`
9900 test -z "am__include" && continue
9901 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
9902 # When using ansi2knr, U may be empty or an underscore; expand it
9903 U=`sed -n 's/^U = //p' < "$mf"`
9904 # Find all dependency output files, they are included files with
9905 # $(DEPDIR) in their names. We invoke sed twice because it is the
9906 # simplest approach to changing $(DEPDIR) to its actual value in the
9908 for file in `sed -n "
9909 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
9910 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9911 # Make sure the directory exists.
9912 test -f "$dirpart/$file" && continue
9913 fdir=`$as_dirname -- "$file" ||
9914 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9915 X"$file" : 'X\(//\)[^/]' \| \
9916 X"$file" : 'X\(//\)$' \| \
9917 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
9919 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9936 as_dir=$dirpart/$fdir; as_fn_mkdir_p
9937 # echo "creating $dirpart/$file"
9938 echo '# dummy' > "$dirpart/$file"
9944 for ac_file in $CONFIG_FILES; do
9945 # Support "outfile[:infile[:infile...]]"
9947 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9949 # PO directories have a Makefile.in generated from Makefile.in.in.
9950 case "$ac_file" in */Makefile.in)
9951 # Adjust a relative srcdir.
9952 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
9953 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
9954 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
9955 # In autoconf-2.13 it is called $ac_given_srcdir.
9956 # In autoconf-2.50 it is called $srcdir.
9957 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
9958 case "$ac_given_srcdir" in
9959 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
9960 /*) top_srcdir="$ac_given_srcdir" ;;
9961 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
9963 # Treat a directory as a PO directory if and only if it has a
9964 # POTFILES.in file. This allows packages to have multiple PO
9965 # directories under different names or in different locations.
9966 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
9967 rm -f "$ac_dir/POTFILES"
9968 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
9969 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
9970 POMAKEFILEDEPS="POTFILES.in"
9971 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
9972 # on $ac_dir but don't depend on user-specified configuration
9974 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
9975 # The LINGUAS file contains the set of available languages.
9976 if test -n "$OBSOLETE_ALL_LINGUAS"; then
9977 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
9979 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
9980 # Hide the ALL_LINGUAS assigment from automake < 1.5.
9981 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
9982 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
9984 # The set of available languages was given in configure.in.
9985 # Hide the ALL_LINGUAS assigment from automake < 1.5.
9986 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
9989 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
9990 # Compute UPDATEPOFILES
9991 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
9992 # Compute DUMMYPOFILES
9993 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
9995 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
9996 case "$ac_given_srcdir" in
9998 *) srcdirpre='$(srcdir)/' ;;
10004 for lang in $ALL_LINGUAS; do
10005 POFILES="$POFILES $srcdirpre$lang.po"
10006 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
10007 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
10008 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
10010 # CATALOGS depends on both $ac_dir and the user's LINGUAS
10011 # environment variable.
10013 if test -n "$ALL_LINGUAS"; then
10014 for presentlang in $ALL_LINGUAS; do
10016 if test "%UNSET%" != "$LINGUAS"; then
10017 desiredlanguages="$LINGUAS"
10019 desiredlanguages="$ALL_LINGUAS"
10021 for desiredlang in $desiredlanguages; do
10022 # Use the presentlang catalog if desiredlang is
10023 # a. equal to presentlang, or
10024 # b. a variant of presentlang (because in this case,
10025 # presentlang can be used as a fallback for messages
10026 # which are not translated in the desiredlang catalog).
10027 case "$desiredlang" in
10028 "$presentlang"*) useit=yes;;
10031 if test $useit = yes; then
10032 INST_LINGUAS="$INST_LINGUAS $presentlang"
10037 if test -n "$INST_LINGUAS"; then
10038 for lang in $INST_LINGUAS; do
10039 CATALOGS="$CATALOGS $lang.gmo"
10042 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
10043 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
10044 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
10045 if test -f "$f"; then
10047 *.orig | *.bak | *~) ;;
10048 *) cat "$f" >> "$ac_dir/Makefile" ;;
10063 ac_clean_files=$ac_clean_files_save
10065 test $ac_write_fail = 0 ||
10066 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
10069 # configure is writing to config.log, and then calls config.status.
10070 # config.status does its own redirection, appending to config.log.
10071 # Unfortunately, on DOS this fails, as config.log is still kept open
10072 # by configure, so config.status won't be able to write to it; its
10073 # output is simply discarded. So we exec the FD to /dev/null,
10074 # effectively closing config.log, so it can be properly (re)opened and
10075 # appended to by config.status. When coming back to configure, we
10076 # need to make the FD available again.
10077 if test "$no_create" != yes; then
10079 ac_config_status_args=
10080 test "$silent" = yes &&
10081 ac_config_status_args="$ac_config_status_args --quiet"
10083 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10085 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10086 # would make configure fail if this is the last instruction.
10087 $ac_cs_success || as_fn_exit 1
10089 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
10090 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10091 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}