2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for psensor 0.7.0.x.
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.
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 case \`(set -o) 2>/dev/null\` in #(
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
170 exitcode=1; echo positional parameters were not saved.
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1"
178 if (eval "$as_required") 2>/dev/null; then :
183 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
188 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
191 test -z "$as_dir" && as_dir=.
195 for as_base in sh bash ksh sh5; do
196 # Try only shells that exist, to save several forks.
197 as_shell=$as_dir/$as_base
198 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 CONFIG_SHELL=$as_shell as_have_required=yes
201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
209 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211 CONFIG_SHELL=$SHELL as_have_required=yes
216 if test "x$CONFIG_SHELL" != x; then :
217 # We cannot yet assume a decent shell, so we have to provide a
218 # neutralization value for shells without unset; and this also
219 # works around shells that cannot unset nonexistent variables.
220 # Preserve -v and -x to the replacement shell.
223 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 *v*x* | *x*v* ) as_opts=-vx ;;
231 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
234 if test x$as_have_required = xno; then :
235 $as_echo "$0: This script requires a shell more modern than all"
236 $as_echo "$0: the shells that I found on your system."
237 if test x${ZSH_VERSION+set} = xset ; then
238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
241 $as_echo "$0: Please tell bug-autoconf@gnu.org and jeanfi@gmail.com
242 $0: about your system, including any error possibly output
243 $0: before this message. Then install a modern shell, or
244 $0: manually run the script under such a shell if you do
251 SHELL=${CONFIG_SHELL-/bin/sh}
253 # Unset more variables known to interfere with behavior of common tools.
254 CLICOLOR_FORCE= GREP_OPTIONS=
255 unset CLICOLOR_FORCE GREP_OPTIONS
257 ## --------------------- ##
258 ## M4sh Shell Functions. ##
259 ## --------------------- ##
262 # Portably unset VAR.
265 { eval $1=; unset $1;}
269 # as_fn_set_status STATUS
270 # -----------------------
271 # Set $? to STATUS, without forking.
279 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
289 # Create "$as_dir" as a directory, including parents if necessary.
294 -*) as_dir=./$as_dir;;
296 test -d "$as_dir" || eval $as_mkdir_p || {
300 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
303 as_dirs="'$as_qdir' $as_dirs"
304 as_dir=`$as_dirname -- "$as_dir" ||
305 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
306 X"$as_dir" : 'X\(//\)[^/]' \| \
307 X"$as_dir" : 'X\(//\)$' \| \
308 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
309 $as_echo X"$as_dir" |
310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
327 test -d "$as_dir" && break
329 test -z "$as_dirs" || eval "mkdir $as_dirs"
330 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
334 # as_fn_append VAR VALUE
335 # ----------------------
336 # Append the text in VALUE to the end of the definition contained in VAR. Take
337 # advantage of any shell optimizations that allow amortized linear growth over
338 # repeated appends, instead of the typical quadratic growth present in naive
340 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
341 eval 'as_fn_append ()
354 # Perform arithmetic evaluation on the ARGs, and store the result in the
355 # global $as_val. Take advantage of shells that can avoid forks. The arguments
356 # must be portable across $(()) and expr.
357 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
365 as_val=`expr "$@" || test $? -eq 1`
370 # as_fn_error STATUS ERROR [LINENO LOG_FD]
371 # ----------------------------------------
372 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
373 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
374 # script with STATUS, using 1 if that was 0.
377 as_status=$1; test $as_status -eq 0 && as_status=1
379 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
380 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
382 $as_echo "$as_me: error: $2" >&2
383 as_fn_exit $as_status
386 if expr a : '\(a\)' >/dev/null 2>&1 &&
387 test "X`expr 00001 : '.*\(...\)'`" = X001; then
393 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
399 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
405 as_me=`$as_basename -- "$0" ||
406 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
407 X"$0" : 'X\(//\)$' \| \
408 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
410 sed '/^.*\/\([^/][^/]*\)\/*$/{
424 # Avoid depending upon Character Ranges.
425 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
426 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
427 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
428 as_cr_digits='0123456789'
429 as_cr_alnum=$as_cr_Letters$as_cr_digits
432 as_lineno_1=$LINENO as_lineno_1a=$LINENO
433 as_lineno_2=$LINENO as_lineno_2a=$LINENO
434 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
435 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
436 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
448 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452 chmod +x "$as_me.lineno" ||
453 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
459 # Exit status is that of the last command.
463 ECHO_C= ECHO_N= ECHO_T=
464 case `echo -n x` in #(((((
466 case `echo 'xy\c'` in
467 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
469 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
476 rm -f conf$$ conf$$.exe conf$$.file
477 if test -d conf$$.dir; then
478 rm -f conf$$.dir/conf$$.file
481 mkdir conf$$.dir 2>/dev/null
483 if (echo >conf$$.file) 2>/dev/null; then
484 if ln -s conf$$.file conf$$ 2>/dev/null; then
486 # ... but there are two gotchas:
487 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
488 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
489 # In both cases, we have to default to `cp -p'.
490 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
492 elif ln conf$$.file conf$$ 2>/dev/null; then
500 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
501 rmdir conf$$.dir 2>/dev/null
503 if mkdir -p . 2>/dev/null; then
504 as_mkdir_p='mkdir -p "$as_dir"'
506 test -d ./-p && rmdir ./-p
510 if test -x / >/dev/null 2>&1; then
513 if ls -dL / >/dev/null 2>&1; then
520 if test -d "$1"; then
526 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
527 ???[sx]*):;;*)false;;esac;fi
531 as_executable_p=$as_test_x
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
540 test -n "$DJDIR" || exec 7<&0 </dev/null
544 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
551 ac_default_prefix=/usr/local
553 ac_config_libobj_dir=.
560 # Identity of this package.
561 PACKAGE_NAME='psensor'
562 PACKAGE_TARNAME='psensor'
563 PACKAGE_VERSION='0.7.0.x'
564 PACKAGE_STRING='psensor 0.7.0.x'
565 PACKAGE_BUGREPORT='jeanfi@gmail.com'
566 PACKAGE_URL='http://wpitchoune.net/psensor'
568 ac_unique_file="src/compat.h"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
572 #ifdef HAVE_SYS_TYPES_H
573 # include <sys/types.h>
575 #ifdef HAVE_SYS_STAT_H
576 # include <sys/stat.h>
582 # ifdef HAVE_STDLIB_H
587 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
592 #ifdef HAVE_STRINGS_H
593 # include <strings.h>
595 #ifdef HAVE_INTTYPES_H
596 # include <inttypes.h>
606 ac_subst_vars='am__EXEEXT_FALSE
666 GCONF_SCHEMAS_INSTALL_FALSE
667 GCONF_SCHEMAS_INSTALL_TRUE
668 GCONF_SCHEMA_FILE_DIR
669 GCONF_SCHEMA_CONFIG_SOURCE
686 XGETTEXT_EXTRA_OPTIONS
694 GETTEXT_MACRO_VERSION
727 INSTALL_STRIP_PROGRAM
769 program_transform_name
782 enable_option_checking
783 enable_dependency_tracking
791 with_gconf_schema_file_dir
792 enable_schemas_install
796 ac_precious_vars='build_alias
835 # Initialize some variables set by options.
837 ac_init_version=false
838 ac_unrecognized_opts=
840 # The variables have the same names as the options, with
841 # dashes changed to underlines.
849 program_transform_name=s,x,x,
857 # Installation directory options.
858 # These are left unexpanded so users can "make install exec_prefix=/foo"
859 # and all the variables that are supposed to be based on exec_prefix
860 # by default will actually change.
861 # Use braces instead of parens because sh, perl, etc. also accept them.
862 # (The list follows the same order as the GNU Coding Standards.)
863 bindir='${exec_prefix}/bin'
864 sbindir='${exec_prefix}/sbin'
865 libexecdir='${exec_prefix}/libexec'
866 datarootdir='${prefix}/share'
867 datadir='${datarootdir}'
868 sysconfdir='${prefix}/etc'
869 sharedstatedir='${prefix}/com'
870 localstatedir='${prefix}/var'
871 includedir='${prefix}/include'
872 oldincludedir='/usr/include'
873 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
874 infodir='${datarootdir}/info'
879 libdir='${exec_prefix}/lib'
880 localedir='${datarootdir}/locale'
881 mandir='${datarootdir}/man'
887 # If the previous option needs an argument, assign it.
888 if test -n "$ac_prev"; then
889 eval $ac_prev=\$ac_option
895 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
900 # Accept the important Cygnus configure options, so we can diagnose typos.
902 case $ac_dashdash$ac_option in
906 -bindir | --bindir | --bindi | --bind | --bin | --bi)
908 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
911 -build | --build | --buil | --bui | --bu)
912 ac_prev=build_alias ;;
913 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
914 build_alias=$ac_optarg ;;
916 -cache-file | --cache-file | --cache-fil | --cache-fi \
917 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
918 ac_prev=cache_file ;;
919 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
920 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
921 cache_file=$ac_optarg ;;
924 cache_file=config.cache ;;
926 -datadir | --datadir | --datadi | --datad)
928 -datadir=* | --datadir=* | --datadi=* | --datad=*)
929 datadir=$ac_optarg ;;
931 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
932 | --dataroo | --dataro | --datar)
933 ac_prev=datarootdir ;;
934 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
935 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
936 datarootdir=$ac_optarg ;;
938 -disable-* | --disable-*)
939 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
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--disable-$ac_useropt_orig"
950 ac_unrecognized_sep=', ';;
952 eval enable_$ac_useropt=no ;;
954 -docdir | --docdir | --docdi | --doc | --do)
956 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
959 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
961 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
964 -enable-* | --enable-*)
965 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
966 # Reject names that are not valid shell variable names.
967 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
968 as_fn_error $? "invalid feature name: $ac_useropt"
969 ac_useropt_orig=$ac_useropt
970 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
971 case $ac_user_opts in
975 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
976 ac_unrecognized_sep=', ';;
978 eval enable_$ac_useropt=\$ac_optarg ;;
980 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
981 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
982 | --exec | --exe | --ex)
983 ac_prev=exec_prefix ;;
984 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
985 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
986 | --exec=* | --exe=* | --ex=*)
987 exec_prefix=$ac_optarg ;;
989 -gas | --gas | --ga | --g)
990 # Obsolete; use --with-gas.
993 -help | --help | --hel | --he | -h)
995 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
996 ac_init_help=recursive ;;
997 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
998 ac_init_help=short ;;
1000 -host | --host | --hos | --ho)
1001 ac_prev=host_alias ;;
1002 -host=* | --host=* | --hos=* | --ho=*)
1003 host_alias=$ac_optarg ;;
1005 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1007 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1009 htmldir=$ac_optarg ;;
1011 -includedir | --includedir | --includedi | --included | --include \
1012 | --includ | --inclu | --incl | --inc)
1013 ac_prev=includedir ;;
1014 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1015 | --includ=* | --inclu=* | --incl=* | --inc=*)
1016 includedir=$ac_optarg ;;
1018 -infodir | --infodir | --infodi | --infod | --info | --inf)
1020 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1021 infodir=$ac_optarg ;;
1023 -libdir | --libdir | --libdi | --libd)
1025 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1026 libdir=$ac_optarg ;;
1028 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1029 | --libexe | --libex | --libe)
1030 ac_prev=libexecdir ;;
1031 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1032 | --libexe=* | --libex=* | --libe=*)
1033 libexecdir=$ac_optarg ;;
1035 -localedir | --localedir | --localedi | --localed | --locale)
1036 ac_prev=localedir ;;
1037 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1038 localedir=$ac_optarg ;;
1040 -localstatedir | --localstatedir | --localstatedi | --localstated \
1041 | --localstate | --localstat | --localsta | --localst | --locals)
1042 ac_prev=localstatedir ;;
1043 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1044 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1045 localstatedir=$ac_optarg ;;
1047 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1049 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1050 mandir=$ac_optarg ;;
1052 -nfp | --nfp | --nf)
1053 # Obsolete; use --without-fp.
1056 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1057 | --no-cr | --no-c | -n)
1060 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1061 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1064 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1065 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1066 | --oldin | --oldi | --old | --ol | --o)
1067 ac_prev=oldincludedir ;;
1068 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1069 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1070 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1071 oldincludedir=$ac_optarg ;;
1073 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1075 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1076 prefix=$ac_optarg ;;
1078 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1079 | --program-pre | --program-pr | --program-p)
1080 ac_prev=program_prefix ;;
1081 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1082 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1083 program_prefix=$ac_optarg ;;
1085 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1086 | --program-suf | --program-su | --program-s)
1087 ac_prev=program_suffix ;;
1088 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1089 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1090 program_suffix=$ac_optarg ;;
1092 -program-transform-name | --program-transform-name \
1093 | --program-transform-nam | --program-transform-na \
1094 | --program-transform-n | --program-transform- \
1095 | --program-transform | --program-transfor \
1096 | --program-transfo | --program-transf \
1097 | --program-trans | --program-tran \
1098 | --progr-tra | --program-tr | --program-t)
1099 ac_prev=program_transform_name ;;
1100 -program-transform-name=* | --program-transform-name=* \
1101 | --program-transform-nam=* | --program-transform-na=* \
1102 | --program-transform-n=* | --program-transform-=* \
1103 | --program-transform=* | --program-transfor=* \
1104 | --program-transfo=* | --program-transf=* \
1105 | --program-trans=* | --program-tran=* \
1106 | --progr-tra=* | --program-tr=* | --program-t=*)
1107 program_transform_name=$ac_optarg ;;
1109 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1111 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1112 pdfdir=$ac_optarg ;;
1114 -psdir | --psdir | --psdi | --psd | --ps)
1116 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1119 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1120 | -silent | --silent | --silen | --sile | --sil)
1123 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1125 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1127 sbindir=$ac_optarg ;;
1129 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1130 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1131 | --sharedst | --shareds | --shared | --share | --shar \
1133 ac_prev=sharedstatedir ;;
1134 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1135 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1136 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1138 sharedstatedir=$ac_optarg ;;
1140 -site | --site | --sit)
1142 -site=* | --site=* | --sit=*)
1145 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1147 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1148 srcdir=$ac_optarg ;;
1150 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1151 | --syscon | --sysco | --sysc | --sys | --sy)
1152 ac_prev=sysconfdir ;;
1153 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1154 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1155 sysconfdir=$ac_optarg ;;
1157 -target | --target | --targe | --targ | --tar | --ta | --t)
1158 ac_prev=target_alias ;;
1159 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1160 target_alias=$ac_optarg ;;
1162 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1165 -version | --version | --versio | --versi | --vers | -V)
1166 ac_init_version=: ;;
1169 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1170 # Reject names that are not valid shell variable names.
1171 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1172 as_fn_error $? "invalid package name: $ac_useropt"
1173 ac_useropt_orig=$ac_useropt
1174 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1175 case $ac_user_opts in
1179 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1180 ac_unrecognized_sep=', ';;
1182 eval with_$ac_useropt=\$ac_optarg ;;
1184 -without-* | --without-*)
1185 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1186 # Reject names that are not valid shell variable names.
1187 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1188 as_fn_error $? "invalid package name: $ac_useropt"
1189 ac_useropt_orig=$ac_useropt
1190 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1191 case $ac_user_opts in
1195 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1196 ac_unrecognized_sep=', ';;
1198 eval with_$ac_useropt=no ;;
1201 # Obsolete; use --with-x.
1204 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1205 | --x-incl | --x-inc | --x-in | --x-i)
1206 ac_prev=x_includes ;;
1207 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1208 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1209 x_includes=$ac_optarg ;;
1211 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1212 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1213 ac_prev=x_libraries ;;
1214 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1215 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1216 x_libraries=$ac_optarg ;;
1218 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1219 Try \`$0 --help' for more information"
1223 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1224 # Reject names that are not valid shell variable names.
1225 case $ac_envvar in #(
1226 '' | [0-9]* | *[!_$as_cr_alnum]* )
1227 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1229 eval $ac_envvar=\$ac_optarg
1230 export $ac_envvar ;;
1233 # FIXME: should be removed in autoconf 3.0.
1234 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1235 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1236 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1237 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1243 if test -n "$ac_prev"; then
1244 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1245 as_fn_error $? "missing argument to $ac_option"
1248 if test -n "$ac_unrecognized_opts"; then
1249 case $enable_option_checking in
1251 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1252 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1256 # Check all directory arguments for consistency.
1257 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1258 datadir sysconfdir sharedstatedir localstatedir includedir \
1259 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1260 libdir localedir mandir
1262 eval ac_val=\$$ac_var
1263 # Remove trailing slashes.
1266 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1267 eval $ac_var=\$ac_val;;
1269 # Be sure to have absolute directory names.
1271 [\\/$]* | ?:[\\/]* ) continue;;
1272 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1274 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1277 # There might be people who depend on the old broken behavior: `$host'
1278 # used to hold the argument of --host etc.
1279 # FIXME: To remove some day.
1282 target=$target_alias
1284 # FIXME: To remove some day.
1285 if test "x$host_alias" != x; then
1286 if test "x$build_alias" = x; then
1287 cross_compiling=maybe
1288 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1289 If a cross compiler is detected then cross compile mode will be used" >&2
1290 elif test "x$build_alias" != "x$host_alias"; then
1296 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1298 test "$silent" = yes && exec 6>/dev/null
1301 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1302 ac_ls_di=`ls -di .` &&
1303 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1304 as_fn_error $? "working directory cannot be determined"
1305 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1306 as_fn_error $? "pwd does not report name of working directory"
1309 # Find the source files, if location was not specified.
1310 if test -z "$srcdir"; then
1311 ac_srcdir_defaulted=yes
1312 # Try the directory containing this script, then the parent directory.
1313 ac_confdir=`$as_dirname -- "$as_myself" ||
1314 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1315 X"$as_myself" : 'X\(//\)[^/]' \| \
1316 X"$as_myself" : 'X\(//\)$' \| \
1317 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1318 $as_echo X"$as_myself" |
1319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1337 if test ! -r "$srcdir/$ac_unique_file"; then
1341 ac_srcdir_defaulted=no
1343 if test ! -r "$srcdir/$ac_unique_file"; then
1344 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1345 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1347 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1349 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1351 # When building in place, set srcdir=.
1352 if test "$ac_abs_confdir" = "$ac_pwd"; then
1355 # Remove unnecessary trailing slashes from srcdir.
1356 # Double slashes in file names in object file debugging info
1357 # mess up M-x gdb in Emacs.
1359 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1361 for ac_var in $ac_precious_vars; do
1362 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1363 eval ac_env_${ac_var}_value=\$${ac_var}
1364 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1365 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1369 # Report the --help message.
1371 if test "$ac_init_help" = "long"; then
1372 # Omit some internal or obsolete options to make the list less imposing.
1373 # This message is too long to be a string in the A/UX 3.1 sh.
1375 \`configure' configures psensor 0.7.0.x to adapt to many kinds of systems.
1377 Usage: $0 [OPTION]... [VAR=VALUE]...
1379 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1380 VAR=VALUE. See below for descriptions of some of the useful variables.
1382 Defaults for the options are specified in brackets.
1385 -h, --help display this help and exit
1386 --help=short display options specific to this package
1387 --help=recursive display the short help of all the included packages
1388 -V, --version display version information and exit
1389 -q, --quiet, --silent do not print \`checking ...' messages
1390 --cache-file=FILE cache test results in FILE [disabled]
1391 -C, --config-cache alias for \`--cache-file=config.cache'
1392 -n, --no-create do not create output files
1393 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1395 Installation directories:
1396 --prefix=PREFIX install architecture-independent files in PREFIX
1397 [$ac_default_prefix]
1398 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1401 By default, \`make install' will install all the files in
1402 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1403 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1404 for instance \`--prefix=\$HOME'.
1406 For better control, use the options below.
1408 Fine tuning of the installation directories:
1409 --bindir=DIR user executables [EPREFIX/bin]
1410 --sbindir=DIR system admin executables [EPREFIX/sbin]
1411 --libexecdir=DIR program executables [EPREFIX/libexec]
1412 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1413 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1414 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1415 --libdir=DIR object code libraries [EPREFIX/lib]
1416 --includedir=DIR C header files [PREFIX/include]
1417 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1418 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1419 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1420 --infodir=DIR info documentation [DATAROOTDIR/info]
1421 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1422 --mandir=DIR man documentation [DATAROOTDIR/man]
1423 --docdir=DIR documentation root [DATAROOTDIR/doc/psensor]
1424 --htmldir=DIR html documentation [DOCDIR]
1425 --dvidir=DIR dvi documentation [DOCDIR]
1426 --pdfdir=DIR pdf documentation [DOCDIR]
1427 --psdir=DIR ps documentation [DOCDIR]
1433 --program-prefix=PREFIX prepend PREFIX to installed program names
1434 --program-suffix=SUFFIX append SUFFIX to installed program names
1435 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1438 --x-includes=DIR X include files are in DIR
1439 --x-libraries=DIR X library files are in DIR
1442 --build=BUILD configure for building on BUILD [guessed]
1443 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1447 if test -n "$ac_init_help"; then
1448 case $ac_init_help in
1449 short | recursive ) echo "Configuration of psensor 0.7.0.x:";;
1454 --disable-option-checking ignore unrecognized --enable/--with options
1455 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1456 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1457 --disable-dependency-tracking speeds up one-time build
1458 --enable-dependency-tracking do not reject slow dependency extractors
1459 --disable-nls do not use Native Language Support
1460 --disable-rpath do not hardcode runtime library paths
1461 --disable-schemas-install
1462 Disable the schemas installation
1465 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1466 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1467 --with-x use the X Window System
1468 --with-gnu-ld assume the C compiler uses GNU ld default=no
1469 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1470 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1471 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1472 --without-libintl-prefix don't search for libintl in includedir and libdir
1473 --with-gconf-source=sourceaddress
1474 Config database for installing schema files.
1475 --with-gconf-schema-file-dir=dir
1476 Directory for installing schema files.
1477 --with-libatiadl=DIR use libatiadlxx in DIR
1478 --with-gtop=yes|no use gtop
1480 Some influential environment variables:
1481 CC C compiler command
1482 CFLAGS C compiler flags
1483 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1484 nonstandard directory <lib dir>
1485 LIBS libraries to pass to the linker, e.g. -l<library>
1486 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1487 you have headers in a nonstandard directory <include dir>
1488 XMKMF Path to xmkmf, Makefile generator for X Window System
1490 PKG_CONFIG path to pkg-config utility
1492 directories to add to pkg-config's search path
1494 path overriding pkg-config's built-in search path
1495 X11_CFLAGS C compiler flags for X11, overriding pkg-config
1496 X11_LIBS linker flags for X11, overriding pkg-config
1497 XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
1498 XEXT_LIBS linker flags for XEXT, overriding pkg-config
1499 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config
1500 GTK_LIBS linker flags for GTK, overriding pkg-config
1502 C compiler flags for GCONF, overriding pkg-config
1503 GCONF_LIBS linker flags for GCONF, overriding pkg-config
1505 C compiler flags for ATASMART, overriding pkg-config
1507 linker flags for ATASMART, overriding pkg-config
1509 C compiler flags for LIBNOTIFY, overriding pkg-config
1511 linker flags for LIBNOTIFY, overriding pkg-config
1513 C compiler flags for APPINDICATOR, overriding pkg-config
1515 linker flags for APPINDICATOR, overriding pkg-config
1516 CURL_CFLAGS C compiler flags for CURL, overriding pkg-config
1517 CURL_LIBS linker flags for CURL, overriding pkg-config
1518 JSON_CFLAGS C compiler flags for JSON, overriding pkg-config
1519 JSON_LIBS linker flags for JSON, overriding pkg-config
1521 C compiler flags for UNITY, overriding pkg-config
1522 UNITY_LIBS linker flags for UNITY, overriding pkg-config
1523 LIBMICROHTTPD_CFLAGS
1524 C compiler flags for LIBMICROHTTPD, overriding pkg-config
1526 linker flags for LIBMICROHTTPD, overriding pkg-config
1527 GTOP_CFLAGS C compiler flags for GTOP, overriding pkg-config
1528 GTOP_LIBS linker flags for GTOP, overriding pkg-config
1530 Use these variables to override the choices made by `configure' or to help
1531 it to find libraries and programs with nonstandard names/locations.
1533 Report bugs to <jeanfi@gmail.com>.
1534 psensor home page: <http://wpitchoune.net/psensor>.
1539 if test "$ac_init_help" = "recursive"; then
1540 # If there are subdirs, report their specific --help.
1541 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1542 test -d "$ac_dir" ||
1543 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1548 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1550 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1551 # A ".." for each directory in $ac_dir_suffix.
1552 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1553 case $ac_top_builddir_sub in
1554 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1555 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1558 ac_abs_top_builddir=$ac_pwd
1559 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1560 # for backward compatibility:
1561 ac_top_builddir=$ac_top_build_prefix
1564 .) # We are building in place.
1566 ac_top_srcdir=$ac_top_builddir_sub
1567 ac_abs_top_srcdir=$ac_pwd ;;
1568 [\\/]* | ?:[\\/]* ) # Absolute name.
1569 ac_srcdir=$srcdir$ac_dir_suffix;
1570 ac_top_srcdir=$srcdir
1571 ac_abs_top_srcdir=$srcdir ;;
1573 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1574 ac_top_srcdir=$ac_top_build_prefix$srcdir
1575 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1577 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1579 cd "$ac_dir" || { ac_status=$?; continue; }
1580 # Check for guested configure.
1581 if test -f "$ac_srcdir/configure.gnu"; then
1583 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1584 elif test -f "$ac_srcdir/configure"; then
1586 $SHELL "$ac_srcdir/configure" --help=recursive
1588 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1590 cd "$ac_pwd" || { ac_status=$?; break; }
1594 test -n "$ac_init_help" && exit $ac_status
1595 if $ac_init_version; then
1597 psensor configure 0.7.0.x
1598 generated by GNU Autoconf 2.68
1600 Copyright (C) 2010 Free Software Foundation, Inc.
1601 This configure script is free software; the Free Software Foundation
1602 gives unlimited permission to copy, distribute and modify it.
1607 ## ------------------------ ##
1608 ## Autoconf initialization. ##
1609 ## ------------------------ ##
1611 # ac_fn_c_try_compile LINENO
1612 # --------------------------
1613 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1614 ac_fn_c_try_compile ()
1616 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1617 rm -f conftest.$ac_objext
1618 if { { ac_try="$ac_compile"
1620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1621 *) ac_try_echo=$ac_try;;
1623 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1624 $as_echo "$ac_try_echo"; } >&5
1625 (eval "$ac_compile") 2>conftest.err
1627 if test -s conftest.err; then
1628 grep -v '^ *+' conftest.err >conftest.er1
1629 cat conftest.er1 >&5
1630 mv -f conftest.er1 conftest.err
1632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1633 test $ac_status = 0; } && {
1634 test -z "$ac_c_werror_flag" ||
1635 test ! -s conftest.err
1636 } && test -s conftest.$ac_objext; then :
1639 $as_echo "$as_me: failed program was:" >&5
1640 sed 's/^/| /' conftest.$ac_ext >&5
1644 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1645 as_fn_set_status $ac_retval
1647 } # ac_fn_c_try_compile
1649 # ac_fn_c_try_cpp LINENO
1650 # ----------------------
1651 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1654 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1655 if { { ac_try="$ac_cpp conftest.$ac_ext"
1657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1658 *) ac_try_echo=$ac_try;;
1660 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1661 $as_echo "$ac_try_echo"; } >&5
1662 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1664 if test -s conftest.err; then
1665 grep -v '^ *+' conftest.err >conftest.er1
1666 cat conftest.er1 >&5
1667 mv -f conftest.er1 conftest.err
1669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1670 test $ac_status = 0; } > conftest.i && {
1671 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1672 test ! -s conftest.err
1676 $as_echo "$as_me: failed program was:" >&5
1677 sed 's/^/| /' conftest.$ac_ext >&5
1681 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1682 as_fn_set_status $ac_retval
1686 # ac_fn_c_try_link LINENO
1687 # -----------------------
1688 # Try to link conftest.$ac_ext, and return whether this succeeded.
1691 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1692 rm -f conftest.$ac_objext conftest$ac_exeext
1693 if { { ac_try="$ac_link"
1695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1696 *) ac_try_echo=$ac_try;;
1698 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1699 $as_echo "$ac_try_echo"; } >&5
1700 (eval "$ac_link") 2>conftest.err
1702 if test -s conftest.err; then
1703 grep -v '^ *+' conftest.err >conftest.er1
1704 cat conftest.er1 >&5
1705 mv -f conftest.er1 conftest.err
1707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1708 test $ac_status = 0; } && {
1709 test -z "$ac_c_werror_flag" ||
1710 test ! -s conftest.err
1711 } && test -s conftest$ac_exeext && {
1712 test "$cross_compiling" = yes ||
1713 $as_test_x conftest$ac_exeext
1717 $as_echo "$as_me: failed program was:" >&5
1718 sed 's/^/| /' conftest.$ac_ext >&5
1722 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1723 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1724 # interfere with the next link command; also delete a directory that is
1725 # left behind by Apple's compiler. We do this before executing the actions.
1726 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1727 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1728 as_fn_set_status $ac_retval
1730 } # ac_fn_c_try_link
1732 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1733 # -------------------------------------------------------
1734 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1735 # the include files in INCLUDES and setting the cache variable VAR
1737 ac_fn_c_check_header_mongrel ()
1739 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1740 if eval \${$3+:} false; then :
1741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1742 $as_echo_n "checking for $2... " >&6; }
1743 if eval \${$3+:} false; then :
1744 $as_echo_n "(cached) " >&6
1747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1748 $as_echo "$ac_res" >&6; }
1750 # Is the header compilable?
1751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1752 $as_echo_n "checking $2 usability... " >&6; }
1753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1754 /* end confdefs.h. */
1758 if ac_fn_c_try_compile "$LINENO"; then :
1759 ac_header_compiler=yes
1761 ac_header_compiler=no
1763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1765 $as_echo "$ac_header_compiler" >&6; }
1767 # Is the header present?
1768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1769 $as_echo_n "checking $2 presence... " >&6; }
1770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1771 /* end confdefs.h. */
1774 if ac_fn_c_try_cpp "$LINENO"; then :
1775 ac_header_preproc=yes
1777 ac_header_preproc=no
1779 rm -f conftest.err conftest.i conftest.$ac_ext
1780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1781 $as_echo "$ac_header_preproc" >&6; }
1783 # So? What about this header?
1784 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1787 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1789 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1793 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1795 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1797 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1799 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1801 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1802 ( $as_echo "## ------------------------------- ##
1803 ## Report this to jeanfi@gmail.com ##
1804 ## ------------------------------- ##"
1805 ) | sed "s/^/$as_me: WARNING: /" >&2
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1809 $as_echo_n "checking for $2... " >&6; }
1810 if eval \${$3+:} false; then :
1811 $as_echo_n "(cached) " >&6
1813 eval "$3=\$ac_header_compiler"
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1817 $as_echo "$ac_res" >&6; }
1819 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1821 } # ac_fn_c_check_header_mongrel
1823 # ac_fn_c_try_run LINENO
1824 # ----------------------
1825 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1826 # that executables *can* be run.
1829 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1830 if { { ac_try="$ac_link"
1832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1833 *) ac_try_echo=$ac_try;;
1835 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1836 $as_echo "$ac_try_echo"; } >&5
1837 (eval "$ac_link") 2>&5
1839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1840 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1841 { { case "(($ac_try" in
1842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1843 *) ac_try_echo=$ac_try;;
1845 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1846 $as_echo "$ac_try_echo"; } >&5
1847 (eval "$ac_try") 2>&5
1849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1850 test $ac_status = 0; }; }; then :
1853 $as_echo "$as_me: program exited with status $ac_status" >&5
1854 $as_echo "$as_me: failed program was:" >&5
1855 sed 's/^/| /' conftest.$ac_ext >&5
1857 ac_retval=$ac_status
1859 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1860 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1861 as_fn_set_status $ac_retval
1865 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1866 # -------------------------------------------------------
1867 # Tests whether HEADER exists and can be compiled using the include files in
1868 # INCLUDES, setting the cache variable VAR accordingly.
1869 ac_fn_c_check_header_compile ()
1871 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1873 $as_echo_n "checking for $2... " >&6; }
1874 if eval \${$3+:} false; then :
1875 $as_echo_n "(cached) " >&6
1877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1878 /* end confdefs.h. */
1882 if ac_fn_c_try_compile "$LINENO"; then :
1887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1891 $as_echo "$ac_res" >&6; }
1892 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1894 } # ac_fn_c_check_header_compile
1896 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1897 # -------------------------------------------
1898 # Tests whether TYPE exists after having included INCLUDES, setting cache
1899 # variable VAR accordingly.
1900 ac_fn_c_check_type ()
1902 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1904 $as_echo_n "checking for $2... " >&6; }
1905 if eval \${$3+:} false; then :
1906 $as_echo_n "(cached) " >&6
1909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1910 /* end confdefs.h. */
1921 if ac_fn_c_try_compile "$LINENO"; then :
1922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1923 /* end confdefs.h. */
1934 if ac_fn_c_try_compile "$LINENO"; then :
1939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1945 $as_echo "$ac_res" >&6; }
1946 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1948 } # ac_fn_c_check_type
1950 # ac_fn_c_check_func LINENO FUNC VAR
1951 # ----------------------------------
1952 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1953 ac_fn_c_check_func ()
1955 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1957 $as_echo_n "checking for $2... " >&6; }
1958 if eval \${$3+:} false; then :
1959 $as_echo_n "(cached) " >&6
1961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1962 /* end confdefs.h. */
1963 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1964 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1965 #define $2 innocuous_$2
1967 /* System header to define __stub macros and hopefully few prototypes,
1968 which can conflict with char $2 (); below.
1969 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1970 <limits.h> exists even on freestanding compilers. */
1973 # include <limits.h>
1975 # include <assert.h>
1980 /* Override any GCC internal prototype to avoid an error.
1981 Use char because int might match the return type of a GCC
1982 builtin and then its argument prototype would still apply. */
1987 /* The GNU C library defines this for functions which it implements
1988 to always fail with ENOSYS. Some functions are actually named
1989 something starting with __ and the normal name is an alias. */
1990 #if defined __stub_$2 || defined __stub___$2
2002 if ac_fn_c_try_link "$LINENO"; then :
2007 rm -f core conftest.err conftest.$ac_objext \
2008 conftest$ac_exeext conftest.$ac_ext
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2012 $as_echo "$ac_res" >&6; }
2013 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2015 } # ac_fn_c_check_func
2016 cat >config.log <<_ACEOF
2017 This file contains any messages produced by compilers while
2018 running configure, to aid debugging if configure makes a mistake.
2020 It was created by psensor $as_me 0.7.0.x, which was
2021 generated by GNU Autoconf 2.68. Invocation command line was
2033 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2034 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2035 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2036 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2037 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2039 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2040 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2042 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2043 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2044 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2045 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2046 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2047 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2048 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2056 test -z "$as_dir" && as_dir=.
2057 $as_echo "PATH: $as_dir"
2073 # Keep a trace of the command line.
2074 # Strip out --no-create and --no-recursion so they do not pile up.
2075 # Strip out --silent because we don't want to record it for future runs.
2076 # Also quote any args containing shell meta-characters.
2077 # Make two passes to allow for proper duplicate-argument suppression.
2081 ac_must_keep_next=false
2087 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2088 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2089 | -silent | --silent | --silen | --sile | --sil)
2092 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2095 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2097 as_fn_append ac_configure_args1 " '$ac_arg'"
2098 if test $ac_must_keep_next = true; then
2099 ac_must_keep_next=false # Got value, back to normal.
2102 *=* | --config-cache | -C | -disable-* | --disable-* \
2103 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2104 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2105 | -with-* | --with-* | -without-* | --without-* | --x)
2106 case "$ac_configure_args0 " in
2107 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2110 -* ) ac_must_keep_next=true ;;
2113 as_fn_append ac_configure_args " '$ac_arg'"
2118 { ac_configure_args0=; unset ac_configure_args0;}
2119 { ac_configure_args1=; unset ac_configure_args1;}
2121 # When interrupted or exit'd, cleanup temporary files, and complete
2122 # config.log. We remove comments because anyway the quotes in there
2123 # would cause problems or look ugly.
2124 # WARNING: Use '\'' to represent an apostrophe within the trap.
2125 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2126 trap 'exit_status=$?
2127 # Save into config.log some information that might help in debugging.
2131 $as_echo "## ---------------- ##
2132 ## Cache variables. ##
2133 ## ---------------- ##"
2135 # The following way of writing the cache mishandles newlines in values,
2137 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2138 eval ac_val=\$$ac_var
2142 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2143 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2146 _ | IFS | as_nl) ;; #(
2147 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2148 *) { eval $ac_var=; unset $ac_var;} ;;
2153 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2154 *${as_nl}ac_space=\ *)
2156 "s/'\''/'\''\\\\'\'''\''/g;
2157 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2160 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2167 $as_echo "## ----------------- ##
2168 ## Output variables. ##
2169 ## ----------------- ##"
2171 for ac_var in $ac_subst_vars
2173 eval ac_val=\$$ac_var
2175 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2177 $as_echo "$ac_var='\''$ac_val'\''"
2181 if test -n "$ac_subst_files"; then
2182 $as_echo "## ------------------- ##
2183 ## File substitutions. ##
2184 ## ------------------- ##"
2186 for ac_var in $ac_subst_files
2188 eval ac_val=\$$ac_var
2190 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2192 $as_echo "$ac_var='\''$ac_val'\''"
2197 if test -s confdefs.h; then
2198 $as_echo "## ----------- ##
2205 test "$ac_signal" != 0 &&
2206 $as_echo "$as_me: caught signal $ac_signal"
2207 $as_echo "$as_me: exit $exit_status"
2209 rm -f core *.core core.conftest.* &&
2210 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2213 for ac_signal in 1 2 13 15; do
2214 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2218 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2219 rm -f -r conftest* confdefs.h
2221 $as_echo "/* confdefs.h */" > confdefs.h
2223 # Predefined preprocessor variables.
2225 cat >>confdefs.h <<_ACEOF
2226 #define PACKAGE_NAME "$PACKAGE_NAME"
2229 cat >>confdefs.h <<_ACEOF
2230 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2233 cat >>confdefs.h <<_ACEOF
2234 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2237 cat >>confdefs.h <<_ACEOF
2238 #define PACKAGE_STRING "$PACKAGE_STRING"
2241 cat >>confdefs.h <<_ACEOF
2242 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2245 cat >>confdefs.h <<_ACEOF
2246 #define PACKAGE_URL "$PACKAGE_URL"
2250 # Let the site file select an alternate cache file if it wants to.
2251 # Prefer an explicitly selected file to automatically selected ones.
2254 if test -n "$CONFIG_SITE"; then
2255 # We do not want a PATH search for config.site.
2256 case $CONFIG_SITE in #((
2257 -*) ac_site_file1=./$CONFIG_SITE;;
2258 */*) ac_site_file1=$CONFIG_SITE;;
2259 *) ac_site_file1=./$CONFIG_SITE;;
2261 elif test "x$prefix" != xNONE; then
2262 ac_site_file1=$prefix/share/config.site
2263 ac_site_file2=$prefix/etc/config.site
2265 ac_site_file1=$ac_default_prefix/share/config.site
2266 ac_site_file2=$ac_default_prefix/etc/config.site
2268 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2270 test "x$ac_site_file" = xNONE && continue
2271 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2273 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2274 sed 's/^/| /' "$ac_site_file" >&5
2276 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2277 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2278 as_fn_error $? "failed to load site script $ac_site_file
2279 See \`config.log' for more details" "$LINENO" 5; }
2283 if test -r "$cache_file"; then
2284 # Some versions of bash will fail to source /dev/null (special files
2285 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2286 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2288 $as_echo "$as_me: loading cache $cache_file" >&6;}
2290 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2291 *) . "./$cache_file";;
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2296 $as_echo "$as_me: creating cache $cache_file" >&6;}
2300 gt_needs="$gt_needs "
2301 # Check that the precious variables saved in the cache have kept the same
2303 ac_cache_corrupted=false
2304 for ac_var in $ac_precious_vars; do
2305 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2306 eval ac_new_set=\$ac_env_${ac_var}_set
2307 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2308 eval ac_new_val=\$ac_env_${ac_var}_value
2309 case $ac_old_set,$ac_new_set in
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2312 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2313 ac_cache_corrupted=: ;;
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2316 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2317 ac_cache_corrupted=: ;;
2320 if test "x$ac_old_val" != "x$ac_new_val"; then
2321 # differences in whitespace do not lead to failure.
2322 ac_old_val_w=`echo x $ac_old_val`
2323 ac_new_val_w=`echo x $ac_new_val`
2324 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2326 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2327 ac_cache_corrupted=:
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2330 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2331 eval $ac_var=\$ac_old_val
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2334 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2336 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2339 # Pass precious variables to config.status.
2340 if test "$ac_new_set" = set; then
2342 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2343 *) ac_arg=$ac_var=$ac_new_val ;;
2345 case " $ac_configure_args " in
2346 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2347 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2351 if $ac_cache_corrupted; then
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2353 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2354 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2355 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2356 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2358 ## -------------------- ##
2359 ## Main body of script. ##
2360 ## -------------------- ##
2363 ac_cpp='$CPP $CPPFLAGS'
2364 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2365 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2366 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2370 am__api_version='1.11'
2373 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2374 if test -f "$ac_dir/install-sh"; then
2376 ac_install_sh="$ac_aux_dir/install-sh -c"
2378 elif test -f "$ac_dir/install.sh"; then
2380 ac_install_sh="$ac_aux_dir/install.sh -c"
2382 elif test -f "$ac_dir/shtool"; then
2384 ac_install_sh="$ac_aux_dir/shtool install -c"
2388 if test -z "$ac_aux_dir"; then
2389 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2392 # These three variables are undocumented and unsupported,
2393 # and are intended to be withdrawn in a future Autoconf release.
2394 # They can cause serious problems if a builder's source tree is in a directory
2395 # whose full name contains unusual characters.
2396 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2397 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2398 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2401 # Find a good install program. We prefer a C program (faster),
2402 # so one script is as good as another. But avoid the broken or
2403 # incompatible versions:
2404 # SysV /etc/install, /usr/sbin/install
2405 # SunOS /usr/etc/install
2406 # IRIX /sbin/install
2408 # AmigaOS /C/install, which installs bootblocks on floppy discs
2409 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2410 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2411 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2412 # OS/2's system install, which has a completely different semantic
2413 # ./install, which can be erroneously created by make from ./install.sh.
2414 # Reject install programs that cannot install multiple files.
2415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2416 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2417 if test -z "$INSTALL"; then
2418 if ${ac_cv_path_install+:} false; then :
2419 $as_echo_n "(cached) " >&6
2421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2425 test -z "$as_dir" && as_dir=.
2426 # Account for people who put trailing slashes in PATH elements.
2427 case $as_dir/ in #((
2428 ./ | .// | /[cC]/* | \
2429 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2430 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2433 # OSF1 and SCO ODT 3.0 have their own names for install.
2434 # Don't use installbsd from OSF since it installs stuff as root
2436 for ac_prog in ginstall scoinst install; do
2437 for ac_exec_ext in '' $ac_executable_extensions; do
2438 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2439 if test $ac_prog = install &&
2440 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2441 # AIX install. It has an incompatible calling convention.
2443 elif test $ac_prog = install &&
2444 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2445 # program-specific install script used by HP pwplus--don't use.
2448 rm -rf conftest.one conftest.two conftest.dir
2449 echo one > conftest.one
2450 echo two > conftest.two
2452 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2453 test -s conftest.one && test -s conftest.two &&
2454 test -s conftest.dir/conftest.one &&
2455 test -s conftest.dir/conftest.two
2457 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2470 rm -rf conftest.one conftest.two conftest.dir
2473 if test "${ac_cv_path_install+set}" = set; then
2474 INSTALL=$ac_cv_path_install
2476 # As a last resort, use the slow shell script. Don't cache a
2477 # value for INSTALL within a source directory, because that will
2478 # break other packages using the cache if that directory is
2479 # removed, or if the value is a relative name.
2480 INSTALL=$ac_install_sh
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2484 $as_echo "$INSTALL" >&6; }
2486 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2487 # It thinks the first close brace ends the variable substitution.
2488 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2490 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2492 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2495 $as_echo_n "checking whether build environment is sane... " >&6; }
2498 echo timestamp > conftest.file
2499 # Reject unsafe characters in $srcdir or the absolute working directory
2500 # name. Accept space and tab only in the latter.
2504 *[\\\"\#\$\&\'\`$am_lf]*)
2505 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2508 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2509 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2512 # Do `set' in a subshell so we don't clobber the current shell's
2513 # arguments. Must try -L first in case configure is actually a
2514 # symlink; some systems play weird games with the mod time of symlinks
2515 # (eg FreeBSD returns the mod time of the symlink's containing
2518 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2519 if test "$*" = "X"; then
2521 set X `ls -t "$srcdir/configure" conftest.file`
2524 if test "$*" != "X $srcdir/configure conftest.file" \
2525 && test "$*" != "X conftest.file $srcdir/configure"; then
2527 # If neither matched, then we have a broken ls. This can happen
2528 # if, for instance, CONFIG_SHELL is bash and it inherits a
2529 # broken ls alias from the environment. This has actually
2530 # happened. Such a system could not be considered "sane".
2531 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2532 alias in your environment" "$LINENO" 5
2535 test "$2" = conftest.file
2541 as_fn_error $? "newly created file is older than distributed files!
2542 Check your system clock" "$LINENO" 5
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2545 $as_echo "yes" >&6; }
2546 test "$program_prefix" != NONE &&
2547 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2548 # Use a double $ so make ignores it.
2549 test "$program_suffix" != NONE &&
2550 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2551 # Double any \ or $.
2552 # By default was `s,x,x', remove it if useless.
2553 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2554 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2556 # expand $ac_aux_dir to an absolute path
2557 am_aux_dir=`cd $ac_aux_dir && pwd`
2559 if test x"${MISSING+set}" != xset; then
2562 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2564 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2567 # Use eval to expand $SHELL
2568 if eval "$MISSING --run true"; then
2569 am_missing_run="$MISSING --run "
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2573 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2576 if test x"${install_sh}" != xset; then
2579 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2581 install_sh="\${SHELL} $am_aux_dir/install-sh"
2585 # Installed binaries are usually stripped using `strip' when the user
2586 # run `make install-strip'. However `strip' might not be the right
2587 # tool to use in cross-compilation environments, therefore Automake
2588 # will honor the `STRIP' environment variable to overrule this program.
2589 if test "$cross_compiling" != no; then
2590 if test -n "$ac_tool_prefix"; then
2591 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2592 set dummy ${ac_tool_prefix}strip; ac_word=$2
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2594 $as_echo_n "checking for $ac_word... " >&6; }
2595 if ${ac_cv_prog_STRIP+:} false; then :
2596 $as_echo_n "(cached) " >&6
2598 if test -n "$STRIP"; then
2599 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2605 test -z "$as_dir" && as_dir=.
2606 for ac_exec_ext in '' $ac_executable_extensions; do
2607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2608 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2618 STRIP=$ac_cv_prog_STRIP
2619 if test -n "$STRIP"; then
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2621 $as_echo "$STRIP" >&6; }
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2624 $as_echo "no" >&6; }
2629 if test -z "$ac_cv_prog_STRIP"; then
2631 # Extract the first word of "strip", so it can be a program name with args.
2632 set dummy strip; ac_word=$2
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2634 $as_echo_n "checking for $ac_word... " >&6; }
2635 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2636 $as_echo_n "(cached) " >&6
2638 if test -n "$ac_ct_STRIP"; then
2639 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2645 test -z "$as_dir" && as_dir=.
2646 for ac_exec_ext in '' $ac_executable_extensions; do
2647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2648 ac_cv_prog_ac_ct_STRIP="strip"
2649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2658 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2659 if test -n "$ac_ct_STRIP"; then
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2661 $as_echo "$ac_ct_STRIP" >&6; }
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2664 $as_echo "no" >&6; }
2667 if test "x$ac_ct_STRIP" = x; then
2670 case $cross_compiling:$ac_tool_warned in
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2673 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2674 ac_tool_warned=yes ;;
2679 STRIP="$ac_cv_prog_STRIP"
2683 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2686 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2687 if test -z "$MKDIR_P"; then
2688 if ${ac_cv_path_mkdir+:} false; then :
2689 $as_echo_n "(cached) " >&6
2691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2692 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2695 test -z "$as_dir" && as_dir=.
2696 for ac_prog in mkdir gmkdir; do
2697 for ac_exec_ext in '' $ac_executable_extensions; do
2698 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2699 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2700 'mkdir (GNU coreutils) '* | \
2701 'mkdir (coreutils) '* | \
2702 'mkdir (fileutils) '4.1*)
2703 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2713 test -d ./--version && rmdir ./--version
2714 if test "${ac_cv_path_mkdir+set}" = set; then
2715 MKDIR_P="$ac_cv_path_mkdir -p"
2717 # As a last resort, use the slow shell script. Don't cache a
2718 # value for MKDIR_P within a source directory, because that will
2719 # break other packages using the cache if that directory is
2720 # removed, or if the value is a relative name.
2721 MKDIR_P="$ac_install_sh -d"
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2725 $as_echo "$MKDIR_P" >&6; }
2729 [\\/$]* | ?:[\\/]*) ;;
2730 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2733 for ac_prog in gawk mawk nawk awk
2735 # Extract the first word of "$ac_prog", so it can be a program name with args.
2736 set dummy $ac_prog; ac_word=$2
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2738 $as_echo_n "checking for $ac_word... " >&6; }
2739 if ${ac_cv_prog_AWK+:} false; then :
2740 $as_echo_n "(cached) " >&6
2742 if test -n "$AWK"; then
2743 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2749 test -z "$as_dir" && as_dir=.
2750 for ac_exec_ext in '' $ac_executable_extensions; do
2751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2752 ac_cv_prog_AWK="$ac_prog"
2753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2763 if test -n "$AWK"; then
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2765 $as_echo "$AWK" >&6; }
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2768 $as_echo "no" >&6; }
2772 test -n "$AWK" && break
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2776 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2778 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2779 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2780 $as_echo_n "(cached) " >&6
2782 cat >conftest.make <<\_ACEOF
2785 @echo '@@@%%%=$(MAKE)=@@@%%%'
2787 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2788 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2790 eval ac_cv_prog_make_${ac_make}_set=yes;;
2792 eval ac_cv_prog_make_${ac_make}_set=no;;
2796 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2798 $as_echo "yes" >&6; }
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2802 $as_echo "no" >&6; }
2803 SET_MAKE="MAKE=${MAKE-make}"
2806 rm -rf .tst 2>/dev/null
2807 mkdir .tst 2>/dev/null
2808 if test -d .tst; then
2813 rmdir .tst 2>/dev/null
2815 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2816 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2817 # is not polluted with repeated "-I."
2818 am__isrc=' -I$(srcdir)'
2819 # test to see if srcdir already configured
2820 if test -f $srcdir/config.status; then
2821 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2825 # test whether we have cygpath
2826 if test -z "$CYGPATH_W"; then
2827 if (cygpath --version) >/dev/null 2>/dev/null; then
2828 CYGPATH_W='cygpath -w'
2835 # Define the identity of the package.
2840 cat >>confdefs.h <<_ACEOF
2841 #define PACKAGE "$PACKAGE"
2845 cat >>confdefs.h <<_ACEOF
2846 #define VERSION "$VERSION"
2849 # Some tools Automake needs.
2851 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2854 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2857 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2860 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2863 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2865 # We need awk for the "check" target. The system "awk" is bad on
2867 # Always define AMTAR for backward compatibility. Yes, it's still used
2868 # in the wild :-( We should find a proper way to deprecate it ...
2871 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2879 ac_config_headers="$ac_config_headers config.h"
2882 # Checks for programs.
2884 ac_cpp='$CPP $CPPFLAGS'
2885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2888 if test -n "$ac_tool_prefix"; then
2889 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2890 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2892 $as_echo_n "checking for $ac_word... " >&6; }
2893 if ${ac_cv_prog_CC+:} false; then :
2894 $as_echo_n "(cached) " >&6
2896 if test -n "$CC"; then
2897 ac_cv_prog_CC="$CC" # Let the user override the test.
2899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2903 test -z "$as_dir" && as_dir=.
2904 for ac_exec_ext in '' $ac_executable_extensions; do
2905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2906 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2917 if test -n "$CC"; then
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2919 $as_echo "$CC" >&6; }
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2922 $as_echo "no" >&6; }
2927 if test -z "$ac_cv_prog_CC"; then
2929 # Extract the first word of "gcc", so it can be a program name with args.
2930 set dummy gcc; ac_word=$2
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2932 $as_echo_n "checking for $ac_word... " >&6; }
2933 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2934 $as_echo_n "(cached) " >&6
2936 if test -n "$ac_ct_CC"; then
2937 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2943 test -z "$as_dir" && as_dir=.
2944 for ac_exec_ext in '' $ac_executable_extensions; do
2945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2946 ac_cv_prog_ac_ct_CC="gcc"
2947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2956 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2957 if test -n "$ac_ct_CC"; then
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2959 $as_echo "$ac_ct_CC" >&6; }
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2962 $as_echo "no" >&6; }
2965 if test "x$ac_ct_CC" = x; then
2968 case $cross_compiling:$ac_tool_warned in
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2971 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2972 ac_tool_warned=yes ;;
2980 if test -z "$CC"; then
2981 if test -n "$ac_tool_prefix"; then
2982 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2983 set dummy ${ac_tool_prefix}cc; ac_word=$2
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2985 $as_echo_n "checking for $ac_word... " >&6; }
2986 if ${ac_cv_prog_CC+:} false; then :
2987 $as_echo_n "(cached) " >&6
2989 if test -n "$CC"; then
2990 ac_cv_prog_CC="$CC" # Let the user override the test.
2992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2996 test -z "$as_dir" && as_dir=.
2997 for ac_exec_ext in '' $ac_executable_extensions; do
2998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2999 ac_cv_prog_CC="${ac_tool_prefix}cc"
3000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3010 if test -n "$CC"; then
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3012 $as_echo "$CC" >&6; }
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3015 $as_echo "no" >&6; }
3021 if test -z "$CC"; then
3022 # Extract the first word of "cc", so it can be a program name with args.
3023 set dummy cc; ac_word=$2
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3025 $as_echo_n "checking for $ac_word... " >&6; }
3026 if ${ac_cv_prog_CC+:} false; then :
3027 $as_echo_n "(cached) " >&6
3029 if test -n "$CC"; then
3030 ac_cv_prog_CC="$CC" # Let the user override the test.
3033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3037 test -z "$as_dir" && as_dir=.
3038 for ac_exec_ext in '' $ac_executable_extensions; do
3039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3040 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3041 ac_prog_rejected=yes
3045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3052 if test $ac_prog_rejected = yes; then
3053 # We found a bogon in the path, so make sure we never use it.
3054 set dummy $ac_cv_prog_CC
3056 if test $# != 0; then
3057 # We chose a different compiler from the bogus one.
3058 # However, it has the same basename, so the bogon will be chosen
3059 # first if we set CC to just the basename; use the full file name.
3061 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3067 if test -n "$CC"; then
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3069 $as_echo "$CC" >&6; }
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3072 $as_echo "no" >&6; }
3077 if test -z "$CC"; then
3078 if test -n "$ac_tool_prefix"; then
3079 for ac_prog in cl.exe
3081 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3082 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3084 $as_echo_n "checking for $ac_word... " >&6; }
3085 if ${ac_cv_prog_CC+:} false; then :
3086 $as_echo_n "(cached) " >&6
3088 if test -n "$CC"; then
3089 ac_cv_prog_CC="$CC" # Let the user override the test.
3091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3095 test -z "$as_dir" && as_dir=.
3096 for ac_exec_ext in '' $ac_executable_extensions; do
3097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3098 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3109 if test -n "$CC"; then
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3111 $as_echo "$CC" >&6; }
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3114 $as_echo "no" >&6; }
3118 test -n "$CC" && break
3121 if test -z "$CC"; then
3123 for ac_prog in cl.exe
3125 # Extract the first word of "$ac_prog", so it can be a program name with args.
3126 set dummy $ac_prog; ac_word=$2
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3128 $as_echo_n "checking for $ac_word... " >&6; }
3129 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3130 $as_echo_n "(cached) " >&6
3132 if test -n "$ac_ct_CC"; then
3133 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3139 test -z "$as_dir" && as_dir=.
3140 for ac_exec_ext in '' $ac_executable_extensions; do
3141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3142 ac_cv_prog_ac_ct_CC="$ac_prog"
3143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3152 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3153 if test -n "$ac_ct_CC"; then
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3155 $as_echo "$ac_ct_CC" >&6; }
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3158 $as_echo "no" >&6; }
3162 test -n "$ac_ct_CC" && break
3165 if test "x$ac_ct_CC" = x; then
3168 case $cross_compiling:$ac_tool_warned in
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3171 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3172 ac_tool_warned=yes ;;
3181 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3182 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3183 as_fn_error $? "no acceptable C compiler found in \$PATH
3184 See \`config.log' for more details" "$LINENO" 5; }
3186 # Provide some information about the compiler.
3187 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3190 for ac_option in --version -v -V -qversion; do
3191 { { ac_try="$ac_compiler $ac_option >&5"
3193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3194 *) ac_try_echo=$ac_try;;
3196 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3197 $as_echo "$ac_try_echo"; } >&5
3198 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3200 if test -s conftest.err; then
3202 ... rest of stderr output deleted ...
3203 10q' conftest.err >conftest.er1
3204 cat conftest.er1 >&5
3206 rm -f conftest.er1 conftest.err
3207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3208 test $ac_status = 0; }
3211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3212 /* end confdefs.h. */
3222 ac_clean_files_save=$ac_clean_files
3223 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3224 # Try to create an executable without -o first, disregard a.out.
3225 # It will help us diagnose broken compilers, and finding out an intuition
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3228 $as_echo_n "checking whether the C compiler works... " >&6; }
3229 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3231 # The possible output files:
3232 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3235 for ac_file in $ac_files
3238 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3239 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3244 if { { ac_try="$ac_link_default"
3246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3247 *) ac_try_echo=$ac_try;;
3249 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3250 $as_echo "$ac_try_echo"; } >&5
3251 (eval "$ac_link_default") 2>&5
3253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3254 test $ac_status = 0; }; then :
3255 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3256 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3257 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3258 # so that the user can short-circuit this test for compilers unknown to
3260 for ac_file in $ac_files ''
3262 test -f "$ac_file" || continue
3264 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3267 # We found the default executable, but exeext='' is most
3271 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3273 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3275 # We set ac_cv_exeext here because the later test for it is not
3276 # safe: cross compilers may not add the suffix if given an `-o'
3277 # argument, so we may need to know it at that point already.
3278 # Even if this section looks crufty: it has the advantage of
3285 test "$ac_cv_exeext" = no && ac_cv_exeext=
3290 if test -z "$ac_file"; then :
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3292 $as_echo "no" >&6; }
3293 $as_echo "$as_me: failed program was:" >&5
3294 sed 's/^/| /' conftest.$ac_ext >&5
3296 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3297 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3298 as_fn_error 77 "C compiler cannot create executables
3299 See \`config.log' for more details" "$LINENO" 5; }
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3302 $as_echo "yes" >&6; }
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3305 $as_echo_n "checking for C compiler default output file name... " >&6; }
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3307 $as_echo "$ac_file" >&6; }
3308 ac_exeext=$ac_cv_exeext
3310 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3311 ac_clean_files=$ac_clean_files_save
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3313 $as_echo_n "checking for suffix of executables... " >&6; }
3314 if { { ac_try="$ac_link"
3316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3317 *) ac_try_echo=$ac_try;;
3319 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3320 $as_echo "$ac_try_echo"; } >&5
3321 (eval "$ac_link") 2>&5
3323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3324 test $ac_status = 0; }; then :
3325 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3326 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3327 # work properly (i.e., refer to `conftest.exe'), while it won't with
3329 for ac_file in conftest.exe conftest conftest.*; do
3330 test -f "$ac_file" || continue
3332 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3333 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3339 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3340 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3341 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3342 See \`config.log' for more details" "$LINENO" 5; }
3344 rm -f conftest conftest$ac_cv_exeext
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3346 $as_echo "$ac_cv_exeext" >&6; }
3348 rm -f conftest.$ac_ext
3349 EXEEXT=$ac_cv_exeext
3351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3352 /* end confdefs.h. */
3357 FILE *f = fopen ("conftest.out", "w");
3358 return ferror (f) || fclose (f) != 0;
3364 ac_clean_files="$ac_clean_files conftest.out"
3365 # Check that the compiler produces executables we can run. If not, either
3366 # the compiler is broken, or we cross compile.
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3368 $as_echo_n "checking whether we are cross compiling... " >&6; }
3369 if test "$cross_compiling" != yes; then
3370 { { ac_try="$ac_link"
3372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3373 *) ac_try_echo=$ac_try;;
3375 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3376 $as_echo "$ac_try_echo"; } >&5
3377 (eval "$ac_link") 2>&5
3379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3380 test $ac_status = 0; }
3381 if { ac_try='./conftest$ac_cv_exeext'
3382 { { case "(($ac_try" in
3383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3384 *) ac_try_echo=$ac_try;;
3386 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3387 $as_echo "$ac_try_echo"; } >&5
3388 (eval "$ac_try") 2>&5
3390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3391 test $ac_status = 0; }; }; then
3394 if test "$cross_compiling" = maybe; then
3397 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3398 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3399 as_fn_error $? "cannot run C compiled programs.
3400 If you meant to cross compile, use \`--host'.
3401 See \`config.log' for more details" "$LINENO" 5; }
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3406 $as_echo "$cross_compiling" >&6; }
3408 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3409 ac_clean_files=$ac_clean_files_save
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3411 $as_echo_n "checking for suffix of object files... " >&6; }
3412 if ${ac_cv_objext+:} false; then :
3413 $as_echo_n "(cached) " >&6
3415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3416 /* end confdefs.h. */
3426 rm -f conftest.o conftest.obj
3427 if { { ac_try="$ac_compile"
3429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3430 *) ac_try_echo=$ac_try;;
3432 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3433 $as_echo "$ac_try_echo"; } >&5
3434 (eval "$ac_compile") 2>&5
3436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3437 test $ac_status = 0; }; then :
3438 for ac_file in conftest.o conftest.obj conftest.*; do
3439 test -f "$ac_file" || continue;
3441 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3442 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3447 $as_echo "$as_me: failed program was:" >&5
3448 sed 's/^/| /' conftest.$ac_ext >&5
3450 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3451 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3452 as_fn_error $? "cannot compute suffix of object files: cannot compile
3453 See \`config.log' for more details" "$LINENO" 5; }
3455 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3458 $as_echo "$ac_cv_objext" >&6; }
3459 OBJEXT=$ac_cv_objext
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3462 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3463 if ${ac_cv_c_compiler_gnu+:} false; then :
3464 $as_echo_n "(cached) " >&6
3466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3467 /* end confdefs.h. */
3480 if ac_fn_c_try_compile "$LINENO"; then :
3485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3486 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3490 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3491 if test $ac_compiler_gnu = yes; then
3496 ac_test_CFLAGS=${CFLAGS+set}
3497 ac_save_CFLAGS=$CFLAGS
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3499 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3500 if ${ac_cv_prog_cc_g+:} false; then :
3501 $as_echo_n "(cached) " >&6
3503 ac_save_c_werror_flag=$ac_c_werror_flag
3504 ac_c_werror_flag=yes
3507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3508 /* end confdefs.h. */
3518 if ac_fn_c_try_compile "$LINENO"; then :
3522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3523 /* end confdefs.h. */
3533 if ac_fn_c_try_compile "$LINENO"; then :
3536 ac_c_werror_flag=$ac_save_c_werror_flag
3538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3539 /* end confdefs.h. */
3549 if ac_fn_c_try_compile "$LINENO"; then :
3552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3557 ac_c_werror_flag=$ac_save_c_werror_flag
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3560 $as_echo "$ac_cv_prog_cc_g" >&6; }
3561 if test "$ac_test_CFLAGS" = set; then
3562 CFLAGS=$ac_save_CFLAGS
3563 elif test $ac_cv_prog_cc_g = yes; then
3564 if test "$GCC" = yes; then
3570 if test "$GCC" = yes; then
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3577 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3578 if ${ac_cv_prog_cc_c89+:} false; then :
3579 $as_echo_n "(cached) " >&6
3581 ac_cv_prog_cc_c89=no
3583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3584 /* end confdefs.h. */
3587 #include <sys/types.h>
3588 #include <sys/stat.h>
3589 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3590 struct buf { int x; };
3591 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3592 static char *e (p, i)
3598 static char *f (char * (*g) (char **, int), char **p, ...)
3603 s = g (p, va_arg (v,int));
3608 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3609 function prototypes and stuff, but not '\xHH' hex character constants.
3610 These don't provoke an error unfortunately, instead are silently treated
3611 as 'x'. The following induces an error, until -std is added to get
3612 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3613 array size at least. It's necessary to write '\x00'==0 to get something
3614 that's true only with -std. */
3615 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3617 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3618 inside strings and character constants. */
3620 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3622 int test (int i, double x);
3623 struct s1 {int (*f) (int a);};
3624 struct s2 {int (*f) (double a);};
3625 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3631 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3636 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3637 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3639 CC="$ac_save_CC $ac_arg"
3640 if ac_fn_c_try_compile "$LINENO"; then :
3641 ac_cv_prog_cc_c89=$ac_arg
3643 rm -f core conftest.err conftest.$ac_objext
3644 test "x$ac_cv_prog_cc_c89" != "xno" && break
3646 rm -f conftest.$ac_ext
3651 case "x$ac_cv_prog_cc_c89" in
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3654 $as_echo "none needed" >&6; } ;;
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3657 $as_echo "unsupported" >&6; } ;;
3659 CC="$CC $ac_cv_prog_cc_c89"
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3661 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3663 if test "x$ac_cv_prog_cc_c89" != xno; then :
3668 ac_cpp='$CPP $CPPFLAGS'
3669 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3670 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3671 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3672 DEPDIR="${am__leading_dot}deps"
3674 ac_config_commands="$ac_config_commands depfiles"
3677 am_make=${MAKE-make}
3678 cat > confinc << 'END'
3680 @echo this is the am__doit target
3683 # If we don't find an include directive, just comment out the code.
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3685 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3689 # First try GNU make style include.
3690 echo "include confinc" > confmf
3691 # Ignore all kinds of additional output from `make'.
3692 case `$am_make -s -f confmf 2> /dev/null` in #(
3693 *the\ am__doit\ target*)
3699 # Now try BSD make style include.
3700 if test "$am__include" = "#"; then
3701 echo '.include "confinc"' > confmf
3702 case `$am_make -s -f confmf 2> /dev/null` in #(
3703 *the\ am__doit\ target*)
3704 am__include=.include
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3713 $as_echo "$_am_result" >&6; }
3714 rm -f confinc confmf
3716 # Check whether --enable-dependency-tracking was given.
3717 if test "${enable_dependency_tracking+set}" = set; then :
3718 enableval=$enable_dependency_tracking;
3721 if test "x$enable_dependency_tracking" != xno; then
3722 am_depcomp="$ac_aux_dir/depcomp"
3726 if test "x$enable_dependency_tracking" != xno; then
3736 depcc="$CC" am_compiler_list=
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3739 $as_echo_n "checking dependency style of $depcc... " >&6; }
3740 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3741 $as_echo_n "(cached) " >&6
3743 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3744 # We make a subdir and do the tests there. Otherwise we can end up
3745 # making bogus files that we don't know about and never remove. For
3746 # instance it was reported that on HP-UX the gcc test will end up
3747 # making a dummy file named `D' -- because `-MD' means `put the output
3751 # Copy depcomp to subdir because otherwise we won't find it if we're
3752 # using a relative directory.
3753 cp "$am_depcomp" conftest.dir
3755 # We will build objects and dependencies in a subdirectory because
3756 # it helps to detect inapplicable dependency modes. For instance
3757 # both Tru64's cc and ICC support -MD to output dependencies as a
3758 # side effect of compilation, but ICC will put the dependencies in
3759 # the current directory while Tru64 will put them in the object
3763 am_cv_CC_dependencies_compiler_type=none
3764 if test "$am_compiler_list" = ""; then
3765 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3768 case " $depcc " in #(
3769 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3772 for depmode in $am_compiler_list; do
3773 # Setup a source with many dependencies, because some compilers
3774 # like to wrap large dependency lists on column 80 (with \), and
3775 # we should not choose a depcomp mode which is confused by this.
3777 # We need to recreate these files for each test, as the compiler may
3778 # overwrite some of them when testing with obscure command lines.
3779 # This happens at least with the AIX C compiler.
3781 for i in 1 2 3 4 5 6; do
3782 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3783 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3784 # Solaris 8's {/usr,}/bin/sh.
3785 touch sub/conftst$i.h
3787 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3789 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3790 # mode. It turns out that the SunPro C++ compiler does not properly
3791 # handle `-M -o', and we need to detect this. Also, some Intel
3792 # versions had trouble with output in subdirs
3793 am__obj=sub/conftest.${OBJEXT-o}
3794 am__minus_obj="-o $am__obj"
3797 # This depmode causes a compiler race in universal mode.
3798 test "$am__universal" = false || continue
3801 # after this tag, mechanisms are not by side-effect, so they'll
3802 # only be used when explicitly requested
3803 if test "x$enable_dependency_tracking" = xyes; then
3809 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3810 # This compiler won't grok `-c -o', but also, the minuso test has
3811 # not run yet. These depmodes are late enough in the game, and
3812 # so weak that their functioning should not be impacted.
3813 am__obj=conftest.${OBJEXT-o}
3818 if depmode=$depmode \
3819 source=sub/conftest.c object=$am__obj \
3820 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3821 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3822 >/dev/null 2>conftest.err &&
3823 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3824 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3825 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3826 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3827 # icc doesn't choke on unknown options, it will just issue warnings
3828 # or remarks (even with -Werror). So we grep stderr for any message
3829 # that says an option was ignored or not supported.
3830 # When given -MP, icc 7.0 and 7.1 complain thusly:
3831 # icc: Command line warning: ignoring option '-M'; no argument required
3832 # The diagnosis changed in icc 8.0:
3833 # icc: Command line remark: option '-MP' not supported
3834 if (grep 'ignoring option' conftest.err ||
3835 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3836 am_cv_CC_dependencies_compiler_type=$depmode
3845 am_cv_CC_dependencies_compiler_type=none
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3850 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3851 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3854 test "x$enable_dependency_tracking" != xno \
3855 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3857 am__fastdepCC_FALSE='#'
3859 am__fastdepCC_TRUE='#'
3860 am__fastdepCC_FALSE=
3864 if test "x$CC" != xcc; then
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
3866 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
3869 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
3871 set dummy $CC; ac_cc=`$as_echo "$2" |
3872 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3873 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
3874 $as_echo_n "(cached) " >&6
3876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3877 /* end confdefs.h. */
3887 # Make sure it works both with $CC and with simple cc.
3888 # We do the test twice because some compilers refuse to overwrite an
3889 # existing .o file with -o, though they will create one.
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; };
3913 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3914 if test "x$CC" != xcc; then
3915 # Test first that cc exists at all.
3916 if { ac_try='cc -c conftest.$ac_ext >&5'
3917 { { case "(($ac_try" in
3918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3919 *) ac_try_echo=$ac_try;;
3921 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3922 $as_echo "$ac_try_echo"; } >&5
3923 (eval "$ac_try") 2>&5
3925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3926 test $ac_status = 0; }; }; then
3927 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3929 if { { case "(($ac_try" in
3930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3931 *) ac_try_echo=$ac_try;;
3933 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3934 $as_echo "$ac_try_echo"; } >&5
3935 (eval "$ac_try") 2>&5
3937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3938 test $ac_status = 0; } &&
3939 test -f conftest2.$ac_objext && { { case "(($ac_try" in
3940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3941 *) ac_try_echo=$ac_try;;
3943 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3944 $as_echo "$ac_try_echo"; } >&5
3945 (eval "$ac_try") 2>&5
3947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3948 test $ac_status = 0; };
3953 # cc exists but doesn't like -o.
3954 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3959 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3961 rm -f core conftest*
3964 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3966 $as_echo "yes" >&6; }
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3969 $as_echo "no" >&6; }
3971 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
3975 # FIXME: we rely on the cache variable name because
3976 # there is no other way.
3978 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3979 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
3980 if test "$am_t" != yes; then
3981 # Losing compiler, so override with the script.
3982 # FIXME: It is wrong to rewrite CC.
3983 # But if we don't then we get into trouble of one sort or another.
3984 # A longer-term fix would be to have automake use am__CC in this case,
3985 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3986 CC="$am_aux_dir/compile $CC"
3992 if test -n "$ac_tool_prefix"; then
3993 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3994 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3996 $as_echo_n "checking for $ac_word... " >&6; }
3997 if ${ac_cv_prog_RANLIB+:} false; then :
3998 $as_echo_n "(cached) " >&6
4000 if test -n "$RANLIB"; then
4001 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4007 test -z "$as_dir" && as_dir=.
4008 for ac_exec_ext in '' $ac_executable_extensions; do
4009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4010 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4020 RANLIB=$ac_cv_prog_RANLIB
4021 if test -n "$RANLIB"; then
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4023 $as_echo "$RANLIB" >&6; }
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4026 $as_echo "no" >&6; }
4031 if test -z "$ac_cv_prog_RANLIB"; then
4032 ac_ct_RANLIB=$RANLIB
4033 # Extract the first word of "ranlib", so it can be a program name with args.
4034 set dummy ranlib; ac_word=$2
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4036 $as_echo_n "checking for $ac_word... " >&6; }
4037 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4038 $as_echo_n "(cached) " >&6
4040 if test -n "$ac_ct_RANLIB"; then
4041 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4047 test -z "$as_dir" && as_dir=.
4048 for ac_exec_ext in '' $ac_executable_extensions; do
4049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4050 ac_cv_prog_ac_ct_RANLIB="ranlib"
4051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4060 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4061 if test -n "$ac_ct_RANLIB"; then
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4063 $as_echo "$ac_ct_RANLIB" >&6; }
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4066 $as_echo "no" >&6; }
4069 if test "x$ac_ct_RANLIB" = x; then
4072 case $cross_compiling:$ac_tool_warned in
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4075 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4076 ac_tool_warned=yes ;;
4078 RANLIB=$ac_ct_RANLIB
4081 RANLIB="$ac_cv_prog_RANLIB"
4085 # Checks for header files.
4088 ac_cpp='$CPP $CPPFLAGS'
4089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4093 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4094 # On Suns, sometimes $CPP names a directory.
4095 if test -n "$CPP" && test -d "$CPP"; then
4098 if test -z "$CPP"; then
4099 if ${ac_cv_prog_CPP+:} false; then :
4100 $as_echo_n "(cached) " >&6
4102 # Double quotes because CPP needs to be expanded
4103 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4106 for ac_c_preproc_warn_flag in '' yes
4108 # Use a header file that comes with gcc, so configuring glibc
4109 # with a fresh cross-compiler works.
4110 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4111 # <limits.h> exists even on freestanding compilers.
4112 # On the NeXT, cc -E runs the code through the compiler's parser,
4113 # not just through cpp. "Syntax error" is here to catch this case.
4114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4115 /* end confdefs.h. */
4117 # include <limits.h>
4119 # include <assert.h>
4123 if ac_fn_c_try_cpp "$LINENO"; then :
4126 # Broken: fails on valid input.
4129 rm -f conftest.err conftest.i conftest.$ac_ext
4131 # OK, works on sane cases. Now check whether nonexistent headers
4132 # can be detected and how.
4133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4134 /* end confdefs.h. */
4135 #include <ac_nonexistent.h>
4137 if ac_fn_c_try_cpp "$LINENO"; then :
4138 # Broken: success on invalid input.
4141 # Passes both tests.
4145 rm -f conftest.err conftest.i conftest.$ac_ext
4148 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4149 rm -f conftest.i conftest.err conftest.$ac_ext
4150 if $ac_preproc_ok; then :
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4163 $as_echo "$CPP" >&6; }
4165 for ac_c_preproc_warn_flag in '' yes
4167 # Use a header file that comes with gcc, so configuring glibc
4168 # with a fresh cross-compiler works.
4169 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4170 # <limits.h> exists even on freestanding compilers.
4171 # On the NeXT, cc -E runs the code through the compiler's parser,
4172 # not just through cpp. "Syntax error" is here to catch this case.
4173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4174 /* end confdefs.h. */
4176 # include <limits.h>
4178 # include <assert.h>
4182 if ac_fn_c_try_cpp "$LINENO"; then :
4185 # Broken: fails on valid input.
4188 rm -f conftest.err conftest.i conftest.$ac_ext
4190 # OK, works on sane cases. Now check whether nonexistent headers
4191 # can be detected and how.
4192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4193 /* end confdefs.h. */
4194 #include <ac_nonexistent.h>
4196 if ac_fn_c_try_cpp "$LINENO"; then :
4197 # Broken: success on invalid input.
4200 # Passes both tests.
4204 rm -f conftest.err conftest.i conftest.$ac_ext
4207 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4208 rm -f conftest.i conftest.err conftest.$ac_ext
4209 if $ac_preproc_ok; then :
4212 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4213 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4214 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4215 See \`config.log' for more details" "$LINENO" 5; }
4219 ac_cpp='$CPP $CPPFLAGS'
4220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
4226 $as_echo_n "checking for X... " >&6; }
4229 # Check whether --with-x was given.
4230 if test "${with_x+set}" = set; then :
4234 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4235 if test "x$with_x" = xno; then
4236 # The user explicitly disabled X.
4239 case $x_includes,$x_libraries in #(
4240 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
4241 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
4242 $as_echo_n "(cached) " >&6
4244 # One or both of the vars are not set, and there is no cached value.
4245 ac_x_includes=no ac_x_libraries=no
4246 rm -f -r conftest.dir
4247 if mkdir conftest.dir; then
4249 cat >Imakefile <<'_ACEOF'
4251 @echo incroot='${INCROOT}'
4253 @echo usrlibdir='${USRLIBDIR}'
4255 @echo libdir='${LIBDIR}'
4257 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
4258 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4259 for ac_var in incroot usrlibdir libdir; do
4260 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
4262 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4263 for ac_extension in a so sl dylib la dll; do
4264 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
4265 test -f "$ac_im_libdir/libX11.$ac_extension"; then
4266 ac_im_usrlibdir=$ac_im_libdir; break
4269 # Screen out bogus values from the imake configuration. They are
4270 # bogus both because they are the default anyway, and because
4271 # using them would break gcc on systems where it needs fixed includes.
4272 case $ac_im_incroot in
4273 /usr/include) ac_x_includes= ;;
4274 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4276 case $ac_im_usrlibdir in
4277 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
4278 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4282 rm -f -r conftest.dir
4285 # Standard set of common directories for X headers.
4286 # Check X11 before X11Rn because it is often a symlink to the current release.
4300 /usr/local/X11/include
4301 /usr/local/X11R7/include
4302 /usr/local/X11R6/include
4303 /usr/local/X11R5/include
4304 /usr/local/X11R4/include
4306 /usr/local/include/X11
4307 /usr/local/include/X11R7
4308 /usr/local/include/X11R6
4309 /usr/local/include/X11R5
4310 /usr/local/include/X11R4
4314 /usr/XFree86/include/X11
4318 /usr/unsupported/include
4320 /usr/local/x11r5/include
4321 /usr/lpp/Xamples/include
4323 /usr/openwin/include
4324 /usr/openwin/share/include'
4326 if test "$ac_x_includes" = no; then
4327 # Guess where to find include files, by looking for Xlib.h.
4328 # First, try using that file with no special directory specified.
4329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4330 /* end confdefs.h. */
4331 #include <X11/Xlib.h>
4333 if ac_fn_c_try_cpp "$LINENO"; then :
4334 # We can compile using X headers with no special include directory.
4337 for ac_dir in $ac_x_header_dirs; do
4338 if test -r "$ac_dir/X11/Xlib.h"; then
4339 ac_x_includes=$ac_dir
4344 rm -f conftest.err conftest.i conftest.$ac_ext
4345 fi # $ac_x_includes = no
4347 if test "$ac_x_libraries" = no; then
4348 # Check for the libraries.
4349 # See if we find them without any special options.
4350 # Don't add to $LIBS permanently.
4353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4354 /* end confdefs.h. */
4355 #include <X11/Xlib.h>
4364 if ac_fn_c_try_link "$LINENO"; then :
4366 # We can link X programs with no special library path.
4370 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4372 # Don't even attempt the hair of trying to link an X program!
4373 for ac_extension in a so sl dylib la dll; do
4374 if test -r "$ac_dir/libX11.$ac_extension"; then
4375 ac_x_libraries=$ac_dir
4381 rm -f core conftest.err conftest.$ac_objext \
4382 conftest$ac_exeext conftest.$ac_ext
4383 fi # $ac_x_libraries = no
4385 case $ac_x_includes,$ac_x_libraries in #(
4387 # Didn't find X, or a directory has "'" in its name.
4388 ac_cv_have_x="have_x=no";; #(
4390 # Record where we found X for the cache.
4391 ac_cv_have_x="have_x=yes\
4392 ac_x_includes='$ac_x_includes'\
4393 ac_x_libraries='$ac_x_libraries'"
4399 eval "$ac_cv_have_x"
4402 if test "$have_x" != yes; then
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
4404 $as_echo "$have_x" >&6; }
4407 # If each of the values was on the command line, it overrides each guess.
4408 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4409 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4410 # Update the cache value to reflect the command line values.
4411 ac_cv_have_x="have_x=yes\
4412 ac_x_includes='$x_includes'\
4413 ac_x_libraries='$x_libraries'"
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
4415 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4419 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4420 if ${ac_cv_path_GREP+:} false; then :
4421 $as_echo_n "(cached) " >&6
4423 if test -z "$GREP"; then
4424 ac_path_GREP_found=false
4425 # Loop through the user's path and test for each of PROGNAME-LIST
4426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4427 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4430 test -z "$as_dir" && as_dir=.
4431 for ac_prog in grep ggrep; do
4432 for ac_exec_ext in '' $ac_executable_extensions; do
4433 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4434 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4435 # Check for GNU ac_path_GREP and select it if it is found.
4436 # Check for GNU $ac_path_GREP
4437 case `"$ac_path_GREP" --version 2>&1` in
4439 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4442 $as_echo_n 0123456789 >"conftest.in"
4445 cat "conftest.in" "conftest.in" >"conftest.tmp"
4446 mv "conftest.tmp" "conftest.in"
4447 cp "conftest.in" "conftest.nl"
4448 $as_echo 'GREP' >> "conftest.nl"
4449 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4450 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4451 as_fn_arith $ac_count + 1 && ac_count=$as_val
4452 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4453 # Best one so far, save it but keep looking for a better one
4454 ac_cv_path_GREP="$ac_path_GREP"
4455 ac_path_GREP_max=$ac_count
4457 # 10*(2^10) chars as input seems more than enough
4458 test $ac_count -gt 10 && break
4460 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4463 $ac_path_GREP_found && break 3
4468 if test -z "$ac_cv_path_GREP"; then
4469 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4472 ac_cv_path_GREP=$GREP
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4477 $as_echo "$ac_cv_path_GREP" >&6; }
4478 GREP="$ac_cv_path_GREP"
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4482 $as_echo_n "checking for egrep... " >&6; }
4483 if ${ac_cv_path_EGREP+:} false; then :
4484 $as_echo_n "(cached) " >&6
4486 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4487 then ac_cv_path_EGREP="$GREP -E"
4489 if test -z "$EGREP"; then
4490 ac_path_EGREP_found=false
4491 # Loop through the user's path and test for each of PROGNAME-LIST
4492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4493 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4496 test -z "$as_dir" && as_dir=.
4497 for ac_prog in egrep; do
4498 for ac_exec_ext in '' $ac_executable_extensions; do
4499 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4500 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4501 # Check for GNU ac_path_EGREP and select it if it is found.
4502 # Check for GNU $ac_path_EGREP
4503 case `"$ac_path_EGREP" --version 2>&1` in
4505 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4508 $as_echo_n 0123456789 >"conftest.in"
4511 cat "conftest.in" "conftest.in" >"conftest.tmp"
4512 mv "conftest.tmp" "conftest.in"
4513 cp "conftest.in" "conftest.nl"
4514 $as_echo 'EGREP' >> "conftest.nl"
4515 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4516 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4517 as_fn_arith $ac_count + 1 && ac_count=$as_val
4518 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4519 # Best one so far, save it but keep looking for a better one
4520 ac_cv_path_EGREP="$ac_path_EGREP"
4521 ac_path_EGREP_max=$ac_count
4523 # 10*(2^10) chars as input seems more than enough
4524 test $ac_count -gt 10 && break
4526 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4529 $ac_path_EGREP_found && break 3
4534 if test -z "$ac_cv_path_EGREP"; then
4535 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4538 ac_cv_path_EGREP=$EGREP
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4544 $as_echo "$ac_cv_path_EGREP" >&6; }
4545 EGREP="$ac_cv_path_EGREP"
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4549 $as_echo_n "checking for ANSI C header files... " >&6; }
4550 if ${ac_cv_header_stdc+:} false; then :
4551 $as_echo_n "(cached) " >&6
4553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4554 /* end confdefs.h. */
4568 if ac_fn_c_try_compile "$LINENO"; then :
4569 ac_cv_header_stdc=yes
4571 ac_cv_header_stdc=no
4573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4575 if test $ac_cv_header_stdc = yes; then
4576 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4578 /* end confdefs.h. */
4582 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4583 $EGREP "memchr" >/dev/null 2>&1; then :
4586 ac_cv_header_stdc=no
4592 if test $ac_cv_header_stdc = yes; then
4593 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4595 /* end confdefs.h. */
4599 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4600 $EGREP "free" >/dev/null 2>&1; then :
4603 ac_cv_header_stdc=no
4609 if test $ac_cv_header_stdc = yes; then
4610 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4611 if test "$cross_compiling" = yes; then :
4614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4615 /* end confdefs.h. */
4618 #if ((' ' & 0x0FF) == 0x020)
4619 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4620 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4622 # define ISLOWER(c) \
4623 (('a' <= (c) && (c) <= 'i') \
4624 || ('j' <= (c) && (c) <= 'r') \
4625 || ('s' <= (c) && (c) <= 'z'))
4626 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4629 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4634 for (i = 0; i < 256; i++)
4635 if (XOR (islower (i), ISLOWER (i))
4636 || toupper (i) != TOUPPER (i))
4641 if ac_fn_c_try_run "$LINENO"; then :
4644 ac_cv_header_stdc=no
4646 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4647 conftest.$ac_objext conftest.beam conftest.$ac_ext
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4653 $as_echo "$ac_cv_header_stdc" >&6; }
4654 if test $ac_cv_header_stdc = yes; then
4656 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4660 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4661 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4662 inttypes.h stdint.h unistd.h
4664 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4665 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4667 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4668 cat >>confdefs.h <<_ACEOF
4669 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4677 for ac_header in stdbool.h
4679 ac_fn_c_check_header_mongrel "$LINENO" "stdbool.h" "ac_cv_header_stdbool_h" "$ac_includes_default"
4680 if test "x$ac_cv_header_stdbool_h" = xyes; then :
4681 cat >>confdefs.h <<_ACEOF
4682 #define HAVE_STDBOOL_H 1
4690 # Checks for typedefs, structures, and compiler characteristics.
4691 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
4692 if test "x$ac_cv_type_size_t" = xyes; then :
4696 cat >>confdefs.h <<_ACEOF
4697 #define size_t unsigned int
4702 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
4703 if test "x$ac_cv_type_ssize_t" = xyes; then :
4707 cat >>confdefs.h <<_ACEOF
4714 # Checks for library functions.
4715 for ac_header in stdlib.h
4717 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
4718 if test "x$ac_cv_header_stdlib_h" = xyes; then :
4719 cat >>confdefs.h <<_ACEOF
4720 #define HAVE_STDLIB_H 1
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
4728 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
4729 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
4730 $as_echo_n "(cached) " >&6
4732 if test "$cross_compiling" = yes; then :
4733 ac_cv_func_malloc_0_nonnull=no
4735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4736 /* end confdefs.h. */
4737 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
4738 # include <stdlib.h>
4746 return ! malloc (0);
4751 if ac_fn_c_try_run "$LINENO"; then :
4752 ac_cv_func_malloc_0_nonnull=yes
4754 ac_cv_func_malloc_0_nonnull=no
4756 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4757 conftest.$ac_objext conftest.beam conftest.$ac_ext
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
4762 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
4763 if test $ac_cv_func_malloc_0_nonnull = yes; then :
4765 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
4768 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
4770 case " $LIBOBJS " in
4771 *" malloc.$ac_objext "* ) ;;
4772 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
4777 $as_echo "#define malloc rpl_malloc" >>confdefs.h
4782 for ac_header in stdlib.h
4784 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
4785 if test "x$ac_cv_header_stdlib_h" = xyes; then :
4786 cat >>confdefs.h <<_ACEOF
4787 #define HAVE_STDLIB_H 1
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
4795 $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
4796 if ${ac_cv_func_realloc_0_nonnull+:} false; then :
4797 $as_echo_n "(cached) " >&6
4799 if test "$cross_compiling" = yes; then :
4800 ac_cv_func_realloc_0_nonnull=no
4802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4803 /* end confdefs.h. */
4804 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
4805 # include <stdlib.h>
4813 return ! realloc (0, 0);
4818 if ac_fn_c_try_run "$LINENO"; then :
4819 ac_cv_func_realloc_0_nonnull=yes
4821 ac_cv_func_realloc_0_nonnull=no
4823 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4824 conftest.$ac_objext conftest.beam conftest.$ac_ext
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
4829 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
4830 if test $ac_cv_func_realloc_0_nonnull = yes; then :
4832 $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
4835 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
4837 case " $LIBOBJS " in
4838 *" realloc.$ac_objext "* ) ;;
4839 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
4844 $as_echo "#define realloc rpl_realloc" >>confdefs.h
4849 for ac_func in gettimeofday memmove socket strdup strtol
4851 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4852 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4853 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
4854 cat >>confdefs.h <<_ACEOF
4855 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
4865 $as_echo_n "checking whether NLS is requested... " >&6; }
4866 # Check whether --enable-nls was given.
4867 if test "${enable_nls+set}" = set; then :
4868 enableval=$enable_nls; USE_NLS=$enableval
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
4874 $as_echo "$USE_NLS" >&6; }
4879 GETTEXT_MACRO_VERSION=0.18
4884 # Prepare PATH_SEPARATOR.
4885 # The user is always right.
4886 if test "${PATH_SEPARATOR+set}" != set; then
4887 echo "#! /bin/sh" >conf$$.sh
4888 echo "exit 0" >>conf$$.sh
4890 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4898 # Find out how to test for executable files. Don't use a zero-byte file,
4899 # as systems may use methods other than mode bits to determine executability.
4900 cat >conf$$.file <<_ASEOF
4904 chmod +x conf$$.file
4905 if test -x conf$$.file >/dev/null 2>&1; then
4906 ac_executable_p="test -x"
4908 ac_executable_p="test -f"
4912 # Extract the first word of "msgfmt", so it can be a program name with args.
4913 set dummy msgfmt; ac_word=$2
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4915 $as_echo_n "checking for $ac_word... " >&6; }
4916 if ${ac_cv_path_MSGFMT+:} false; then :
4917 $as_echo_n "(cached) " >&6
4921 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4924 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4925 for ac_dir in $PATH; do
4927 test -z "$ac_dir" && ac_dir=.
4928 for ac_exec_ext in '' $ac_executable_extensions; do
4929 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4930 echo "$as_me: trying $ac_dir/$ac_word..." >&5
4931 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
4932 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4933 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4940 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4944 MSGFMT="$ac_cv_path_MSGFMT"
4945 if test "$MSGFMT" != ":"; then
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
4947 $as_echo "$MSGFMT" >&6; }
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4950 $as_echo "no" >&6; }
4953 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4954 set dummy gmsgfmt; ac_word=$2
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4956 $as_echo_n "checking for $ac_word... " >&6; }
4957 if ${ac_cv_path_GMSGFMT+:} false; then :
4958 $as_echo_n "(cached) " >&6
4962 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4969 test -z "$as_dir" && as_dir=.
4970 for ac_exec_ext in '' $ac_executable_extensions; do
4971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4972 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4980 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4984 GMSGFMT=$ac_cv_path_GMSGFMT
4985 if test -n "$GMSGFMT"; then
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
4987 $as_echo "$GMSGFMT" >&6; }
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4990 $as_echo "no" >&6; }
4995 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
4996 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
4997 *) MSGFMT_015=$MSGFMT ;;
5000 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5001 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
5002 *) GMSGFMT_015=$GMSGFMT ;;
5007 # Prepare PATH_SEPARATOR.
5008 # The user is always right.
5009 if test "${PATH_SEPARATOR+set}" != set; then
5010 echo "#! /bin/sh" >conf$$.sh
5011 echo "exit 0" >>conf$$.sh
5013 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5021 # Find out how to test for executable files. Don't use a zero-byte file,
5022 # as systems may use methods other than mode bits to determine executability.
5023 cat >conf$$.file <<_ASEOF
5027 chmod +x conf$$.file
5028 if test -x conf$$.file >/dev/null 2>&1; then
5029 ac_executable_p="test -x"
5031 ac_executable_p="test -f"
5035 # Extract the first word of "xgettext", so it can be a program name with args.
5036 set dummy xgettext; ac_word=$2
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5038 $as_echo_n "checking for $ac_word... " >&6; }
5039 if ${ac_cv_path_XGETTEXT+:} false; then :
5040 $as_echo_n "(cached) " >&6
5044 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5047 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5048 for ac_dir in $PATH; do
5050 test -z "$ac_dir" && ac_dir=.
5051 for ac_exec_ext in '' $ac_executable_extensions; do
5052 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5053 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5054 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
5055 (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
5056 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5063 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5067 XGETTEXT="$ac_cv_path_XGETTEXT"
5068 if test "$XGETTEXT" != ":"; then
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
5070 $as_echo "$XGETTEXT" >&6; }
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5073 $as_echo "no" >&6; }
5078 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5079 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
5080 *) XGETTEXT_015=$XGETTEXT ;;
5085 # Prepare PATH_SEPARATOR.
5086 # The user is always right.
5087 if test "${PATH_SEPARATOR+set}" != set; then
5088 echo "#! /bin/sh" >conf$$.sh
5089 echo "exit 0" >>conf$$.sh
5091 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5099 # Find out how to test for executable files. Don't use a zero-byte file,
5100 # as systems may use methods other than mode bits to determine executability.
5101 cat >conf$$.file <<_ASEOF
5105 chmod +x conf$$.file
5106 if test -x conf$$.file >/dev/null 2>&1; then
5107 ac_executable_p="test -x"
5109 ac_executable_p="test -f"
5113 # Extract the first word of "msgmerge", so it can be a program name with args.
5114 set dummy msgmerge; ac_word=$2
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5116 $as_echo_n "checking for $ac_word... " >&6; }
5117 if ${ac_cv_path_MSGMERGE+:} false; then :
5118 $as_echo_n "(cached) " >&6
5122 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5125 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5126 for ac_dir in $PATH; do
5128 test -z "$ac_dir" && ac_dir=.
5129 for ac_exec_ext in '' $ac_executable_extensions; do
5130 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5131 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5132 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
5133 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5140 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5144 MSGMERGE="$ac_cv_path_MSGMERGE"
5145 if test "$MSGMERGE" != ":"; then
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
5147 $as_echo "$MSGMERGE" >&6; }
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5150 $as_echo "no" >&6; }
5154 test -n "$localedir" || localedir='${datadir}/locale'
5157 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
5160 ac_config_commands="$ac_config_commands po-directories"
5164 if test "X$prefix" = "XNONE"; then
5165 acl_final_prefix="$ac_default_prefix"
5167 acl_final_prefix="$prefix"
5169 if test "X$exec_prefix" = "XNONE"; then
5170 acl_final_exec_prefix='${prefix}'
5172 acl_final_exec_prefix="$exec_prefix"
5174 acl_save_prefix="$prefix"
5175 prefix="$acl_final_prefix"
5176 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5177 prefix="$acl_save_prefix"
5179 # Make sure we can run config.sub.
5180 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5181 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5184 $as_echo_n "checking build system type... " >&6; }
5185 if ${ac_cv_build+:} false; then :
5186 $as_echo_n "(cached) " >&6
5188 ac_build_alias=$build_alias
5189 test "x$ac_build_alias" = x &&
5190 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5191 test "x$ac_build_alias" = x &&
5192 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5193 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5194 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5198 $as_echo "$ac_cv_build" >&6; }
5199 case $ac_cv_build in
5201 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5204 ac_save_IFS=$IFS; IFS='-'
5210 # Remember, the first character of IFS is used to create $*,
5211 # except with old shells:
5214 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5218 $as_echo_n "checking host system type... " >&6; }
5219 if ${ac_cv_host+:} false; then :
5220 $as_echo_n "(cached) " >&6
5222 if test "x$host_alias" = x; then
5223 ac_cv_host=$ac_cv_build
5225 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5226 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5231 $as_echo "$ac_cv_host" >&6; }
5234 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5237 ac_save_IFS=$IFS; IFS='-'
5243 # Remember, the first character of IFS is used to create $*,
5244 # except with old shells:
5247 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5251 # Check whether --with-gnu-ld was given.
5252 if test "${with_gnu_ld+set}" = set; then :
5253 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5258 # Prepare PATH_SEPARATOR.
5259 # The user is always right.
5260 if test "${PATH_SEPARATOR+set}" != set; then
5261 echo "#! /bin/sh" >conf$$.sh
5262 echo "exit 0" >>conf$$.sh
5264 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5272 if test "$GCC" = yes; then
5273 # Check if gcc -print-prog-name=ld gives a path.
5274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
5275 $as_echo_n "checking for ld used by GCC... " >&6; }
5278 # gcc leaves a trailing carriage return which upsets mingw
5279 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5281 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5284 # Accept absolute paths.
5285 [\\/]* | [A-Za-z]:[\\/]*)
5286 re_direlt='/[^/][^/]*/\.\./'
5287 # Canonicalize the path of ld
5288 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5289 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5290 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5292 test -z "$LD" && LD="$ac_prog"
5295 # If it fails, then pretend we aren't using GCC.
5299 # If it is relative, then search for the first ld in PATH.
5303 elif test "$with_gnu_ld" = yes; then
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5305 $as_echo_n "checking for GNU ld... " >&6; }
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5308 $as_echo_n "checking for non-GNU ld... " >&6; }
5310 if ${acl_cv_path_LD+:} false; then :
5311 $as_echo_n "(cached) " >&6
5313 if test -z "$LD"; then
5314 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5315 for ac_dir in $PATH; do
5316 test -z "$ac_dir" && ac_dir=.
5317 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5318 acl_cv_path_LD="$ac_dir/$ac_prog"
5319 # Check to see if the program is GNU ld. I'd rather use --version,
5320 # but apparently some GNU ld's only accept -v.
5321 # Break only if it was the GNU/non-GNU ld that we prefer.
5322 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
5323 *GNU* | *'with BFD'*)
5324 test "$with_gnu_ld" != no && break ;;
5326 test "$with_gnu_ld" != yes && break ;;
5332 acl_cv_path_LD="$LD" # Let the user override the test with a path.
5336 LD="$acl_cv_path_LD"
5337 if test -n "$LD"; then
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5339 $as_echo "$LD" >&6; }
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5342 $as_echo "no" >&6; }
5344 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5346 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5347 if ${acl_cv_prog_gnu_ld+:} false; then :
5348 $as_echo_n "(cached) " >&6
5350 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5351 case `$LD -v 2>&1 </dev/null` in
5352 *GNU* | *'with BFD'*)
5353 acl_cv_prog_gnu_ld=yes ;;
5355 acl_cv_prog_gnu_ld=no ;;
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
5359 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
5360 with_gnu_ld=$acl_cv_prog_gnu_ld
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
5366 $as_echo_n "checking for shared library run path origin... " >&6; }
5367 if ${acl_cv_rpath+:} false; then :
5368 $as_echo_n "(cached) " >&6
5371 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5372 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
5379 $as_echo "$acl_cv_rpath" >&6; }
5381 acl_libext="$acl_cv_libext"
5382 acl_shlibext="$acl_cv_shlibext"
5383 acl_libname_spec="$acl_cv_libname_spec"
5384 acl_library_names_spec="$acl_cv_library_names_spec"
5385 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5386 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5387 acl_hardcode_direct="$acl_cv_hardcode_direct"
5388 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
5389 # Check whether --enable-rpath was given.
5390 if test "${enable_rpath+set}" = set; then :
5391 enableval=$enable_rpath; :
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
5404 $as_echo_n "checking for 64-bit host... " >&6; }
5405 if ${gl_cv_solaris_64bit+:} false; then :
5406 $as_echo_n "(cached) " >&6
5408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5409 /* end confdefs.h. */
5416 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5417 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
5418 gl_cv_solaris_64bit=yes
5420 gl_cv_solaris_64bit=no
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
5427 $as_echo "$gl_cv_solaris_64bit" >&6; }
5428 if test $gl_cv_solaris_64bit = yes; then
5429 acl_libdirstem=lib/64
5431 sparc*) acl_libdirstem2=lib/sparcv9 ;;
5432 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
5437 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
5438 if test -n "$searchpath"; then
5439 acl_save_IFS="${IFS= }"; IFS=":"
5440 for searchdir in $searchpath; do
5441 if test -d "$searchdir"; then
5442 case "$searchdir" in
5443 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
5445 # Better ignore directories of this form. They are misleading.
5447 *) searchdir=`cd "$searchdir" && pwd`
5448 case "$searchdir" in
5449 */lib64 ) acl_libdirstem=lib64 ;;
5458 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
5473 acl_save_prefix="$prefix"
5474 prefix="$acl_final_prefix"
5475 acl_save_exec_prefix="$exec_prefix"
5476 exec_prefix="$acl_final_exec_prefix"
5478 eval additional_includedir=\"$includedir\"
5479 eval additional_libdir=\"$libdir\"
5481 exec_prefix="$acl_save_exec_prefix"
5482 prefix="$acl_save_prefix"
5485 # Check whether --with-libiconv-prefix was given.
5486 if test "${with_libiconv_prefix+set}" = set; then :
5487 withval=$with_libiconv_prefix;
5488 if test "X$withval" = "Xno"; then
5491 if test "X$withval" = "X"; then
5493 acl_save_prefix="$prefix"
5494 prefix="$acl_final_prefix"
5495 acl_save_exec_prefix="$exec_prefix"
5496 exec_prefix="$acl_final_exec_prefix"
5498 eval additional_includedir=\"$includedir\"
5499 eval additional_libdir=\"$libdir\"
5501 exec_prefix="$acl_save_exec_prefix"
5502 prefix="$acl_save_prefix"
5505 additional_includedir="$withval/include"
5506 additional_libdir="$withval/$acl_libdirstem"
5507 if test "$acl_libdirstem2" != "$acl_libdirstem" \
5508 && ! test -d "$withval/$acl_libdirstem"; then
5509 additional_libdir="$withval/$acl_libdirstem2"
5523 names_already_handled=
5524 names_next_round='iconv '
5525 while test -n "$names_next_round"; do
5526 names_this_round="$names_next_round"
5528 for name in $names_this_round; do
5530 for n in $names_already_handled; do
5531 if test "$n" = "$name"; then
5536 if test -z "$already_handled"; then
5537 names_already_handled="$names_already_handled $name"
5538 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5539 eval value=\"\$HAVE_LIB$uppername\"
5540 if test -n "$value"; then
5541 if test "$value" = yes; then
5542 eval value=\"\$LIB$uppername\"
5543 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
5544 eval value=\"\$LTLIB$uppername\"
5545 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
5554 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
5555 if test -n "$acl_shlibext"; then
5556 shrext=".$acl_shlibext" # typically: shrext=.so
5560 if test $use_additional = yes; then
5561 dir="$additional_libdir"
5562 if test -n "$acl_shlibext"; then
5563 if test -f "$dir/$libname$shrext"; then
5565 found_so="$dir/$libname$shrext"
5567 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5568 ver=`(cd "$dir" && \
5569 for f in "$libname$shrext".*; do echo "$f"; done \
5570 | sed -e "s,^$libname$shrext\\\\.,," \
5571 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5572 | sed 1q ) 2>/dev/null`
5573 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5575 found_so="$dir/$libname$shrext.$ver"
5578 eval library_names=\"$acl_library_names_spec\"
5579 for f in $library_names; do
5580 if test -f "$dir/$f"; then
5589 if test "X$found_dir" = "X"; then
5590 if test -f "$dir/$libname.$acl_libext"; then
5592 found_a="$dir/$libname.$acl_libext"
5595 if test "X$found_dir" != "X"; then
5596 if test -f "$dir/$libname.la"; then
5597 found_la="$dir/$libname.la"
5601 if test "X$found_dir" = "X"; then
5602 for x in $LDFLAGS $LTLIBICONV; do
5604 acl_save_prefix="$prefix"
5605 prefix="$acl_final_prefix"
5606 acl_save_exec_prefix="$exec_prefix"
5607 exec_prefix="$acl_final_exec_prefix"
5609 exec_prefix="$acl_save_exec_prefix"
5610 prefix="$acl_save_prefix"
5614 dir=`echo "X$x" | sed -e 's/^X-L//'`
5615 if test -n "$acl_shlibext"; then
5616 if test -f "$dir/$libname$shrext"; then
5618 found_so="$dir/$libname$shrext"
5620 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5621 ver=`(cd "$dir" && \
5622 for f in "$libname$shrext".*; do echo "$f"; done \
5623 | sed -e "s,^$libname$shrext\\\\.,," \
5624 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5625 | sed 1q ) 2>/dev/null`
5626 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5628 found_so="$dir/$libname$shrext.$ver"
5631 eval library_names=\"$acl_library_names_spec\"
5632 for f in $library_names; do
5633 if test -f "$dir/$f"; then
5642 if test "X$found_dir" = "X"; then
5643 if test -f "$dir/$libname.$acl_libext"; then
5645 found_a="$dir/$libname.$acl_libext"
5648 if test "X$found_dir" != "X"; then
5649 if test -f "$dir/$libname.la"; then
5650 found_la="$dir/$libname.la"
5655 if test "X$found_dir" != "X"; then
5660 if test "X$found_dir" != "X"; then
5661 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
5662 if test "X$found_so" != "X"; then
5663 if test "$enable_rpath" = no \
5664 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
5665 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
5666 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5669 for x in $ltrpathdirs; do
5670 if test "X$x" = "X$found_dir"; then
5675 if test -z "$haveit"; then
5676 ltrpathdirs="$ltrpathdirs $found_dir"
5678 if test "$acl_hardcode_direct" = yes; then
5679 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5681 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
5682 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5684 for x in $rpathdirs; do
5685 if test "X$x" = "X$found_dir"; then
5690 if test -z "$haveit"; then
5691 rpathdirs="$rpathdirs $found_dir"
5695 for x in $LDFLAGS $LIBICONV; do
5697 acl_save_prefix="$prefix"
5698 prefix="$acl_final_prefix"
5699 acl_save_exec_prefix="$exec_prefix"
5700 exec_prefix="$acl_final_exec_prefix"
5702 exec_prefix="$acl_save_exec_prefix"
5703 prefix="$acl_save_prefix"
5705 if test "X$x" = "X-L$found_dir"; then
5710 if test -z "$haveit"; then
5711 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
5713 if test "$acl_hardcode_minus_L" != no; then
5714 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5716 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5722 if test "X$found_a" != "X"; then
5723 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
5725 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
5728 additional_includedir=
5729 case "$found_dir" in
5730 */$acl_libdirstem | */$acl_libdirstem/)
5731 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
5732 if test "$name" = 'iconv'; then
5733 LIBICONV_PREFIX="$basedir"
5735 additional_includedir="$basedir/include"
5737 */$acl_libdirstem2 | */$acl_libdirstem2/)
5738 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
5739 if test "$name" = 'iconv'; then
5740 LIBICONV_PREFIX="$basedir"
5742 additional_includedir="$basedir/include"
5745 if test "X$additional_includedir" != "X"; then
5746 if test "X$additional_includedir" != "X/usr/include"; then
5748 if test "X$additional_includedir" = "X/usr/local/include"; then
5749 if test -n "$GCC"; then
5751 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5755 if test -z "$haveit"; then
5756 for x in $CPPFLAGS $INCICONV; do
5758 acl_save_prefix="$prefix"
5759 prefix="$acl_final_prefix"
5760 acl_save_exec_prefix="$exec_prefix"
5761 exec_prefix="$acl_final_exec_prefix"
5763 exec_prefix="$acl_save_exec_prefix"
5764 prefix="$acl_save_prefix"
5766 if test "X$x" = "X-I$additional_includedir"; then
5771 if test -z "$haveit"; then
5772 if test -d "$additional_includedir"; then
5773 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
5779 if test -n "$found_la"; then
5780 save_libdir="$libdir"
5782 */* | *\\*) . "$found_la" ;;
5783 *) . "./$found_la" ;;
5785 libdir="$save_libdir"
5786 for dep in $dependency_libs; do
5789 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5790 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
5791 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
5793 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
5794 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
5795 if test -n "$GCC"; then
5797 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5801 if test -z "$haveit"; then
5803 for x in $LDFLAGS $LIBICONV; do
5805 acl_save_prefix="$prefix"
5806 prefix="$acl_final_prefix"
5807 acl_save_exec_prefix="$exec_prefix"
5808 exec_prefix="$acl_final_exec_prefix"
5810 exec_prefix="$acl_save_exec_prefix"
5811 prefix="$acl_save_prefix"
5813 if test "X$x" = "X-L$additional_libdir"; then
5818 if test -z "$haveit"; then
5819 if test -d "$additional_libdir"; then
5820 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
5824 for x in $LDFLAGS $LTLIBICONV; do
5826 acl_save_prefix="$prefix"
5827 prefix="$acl_final_prefix"
5828 acl_save_exec_prefix="$exec_prefix"
5829 exec_prefix="$acl_final_exec_prefix"
5831 exec_prefix="$acl_save_exec_prefix"
5832 prefix="$acl_save_prefix"
5834 if test "X$x" = "X-L$additional_libdir"; then
5839 if test -z "$haveit"; then
5840 if test -d "$additional_libdir"; then
5841 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
5848 dir=`echo "X$dep" | sed -e 's/^X-R//'`
5849 if test "$enable_rpath" != no; then
5851 for x in $rpathdirs; do
5852 if test "X$x" = "X$dir"; then
5857 if test -z "$haveit"; then
5858 rpathdirs="$rpathdirs $dir"
5861 for x in $ltrpathdirs; do
5862 if test "X$x" = "X$dir"; then
5867 if test -z "$haveit"; then
5868 ltrpathdirs="$ltrpathdirs $dir"
5873 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5876 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5879 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
5880 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
5886 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5887 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
5893 if test "X$rpathdirs" != "X"; then
5894 if test -n "$acl_hardcode_libdir_separator"; then
5896 for found_dir in $rpathdirs; do
5897 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
5899 acl_save_libdir="$libdir"
5901 eval flag=\"$acl_hardcode_libdir_flag_spec\"
5902 libdir="$acl_save_libdir"
5903 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5905 for found_dir in $rpathdirs; do
5906 acl_save_libdir="$libdir"
5908 eval flag=\"$acl_hardcode_libdir_flag_spec\"
5909 libdir="$acl_save_libdir"
5910 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5914 if test "X$ltrpathdirs" != "X"; then
5915 for found_dir in $ltrpathdirs; do
5916 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
5951 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
5952 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
5953 $as_echo_n "(cached) " >&6
5955 gt_save_LIBS="$LIBS"
5956 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
5957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5958 /* end confdefs.h. */
5959 #include <CoreFoundation/CFPreferences.h>
5963 CFPreferencesCopyAppValue(NULL, NULL)
5968 if ac_fn_c_try_link "$LINENO"; then :
5969 gt_cv_func_CFPreferencesCopyAppValue=yes
5971 gt_cv_func_CFPreferencesCopyAppValue=no
5973 rm -f core conftest.err conftest.$ac_objext \
5974 conftest$ac_exeext conftest.$ac_ext
5975 LIBS="$gt_save_LIBS"
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
5978 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
5979 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
5981 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
5985 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
5986 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
5987 $as_echo_n "(cached) " >&6
5989 gt_save_LIBS="$LIBS"
5990 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
5991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5992 /* end confdefs.h. */
5993 #include <CoreFoundation/CFLocale.h>
5997 CFLocaleCopyCurrent();
6002 if ac_fn_c_try_link "$LINENO"; then :
6003 gt_cv_func_CFLocaleCopyCurrent=yes
6005 gt_cv_func_CFLocaleCopyCurrent=no
6007 rm -f core conftest.err conftest.$ac_objext \
6008 conftest$ac_exeext conftest.$ac_ext
6009 LIBS="$gt_save_LIBS"
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
6012 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
6013 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6015 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
6019 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6020 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
6032 case " $gt_needs " in
6033 *" need-formatstring-macros "*) gt_api_version=3 ;;
6034 *" need-ngettext "*) gt_api_version=2 ;;
6035 *) gt_api_version=1 ;;
6037 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
6038 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
6040 if test "$USE_NLS" = "yes"; then
6041 gt_use_preinstalled_gnugettext=no
6044 if test $gt_api_version -ge 3; then
6045 gt_revision_test_code='
6046 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
6047 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
6049 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
6052 gt_revision_test_code=
6054 if test $gt_api_version -ge 2; then
6055 gt_expression_test_code=' + * ngettext ("", "", 0)'
6057 gt_expression_test_code=
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
6061 $as_echo_n "checking for GNU gettext in libc... " >&6; }
6062 if eval \${$gt_func_gnugettext_libc+:} false; then :
6063 $as_echo_n "(cached) " >&6
6065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6066 /* end confdefs.h. */
6067 #include <libintl.h>
6068 $gt_revision_test_code
6069 extern int _nl_msg_cat_cntr;
6070 extern int *_nl_domain_bindings;
6074 bindtextdomain ("", "");
6075 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
6080 if ac_fn_c_try_link "$LINENO"; then :
6081 eval "$gt_func_gnugettext_libc=yes"
6083 eval "$gt_func_gnugettext_libc=no"
6085 rm -f core conftest.err conftest.$ac_objext \
6086 conftest$ac_exeext conftest.$ac_ext
6088 eval ac_res=\$$gt_func_gnugettext_libc
6089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6090 $as_echo "$ac_res" >&6; }
6092 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
6098 am_save_CPPFLAGS="$CPPFLAGS"
6100 for element in $INCICONV; do
6102 for x in $CPPFLAGS; do
6104 acl_save_prefix="$prefix"
6105 prefix="$acl_final_prefix"
6106 acl_save_exec_prefix="$exec_prefix"
6107 exec_prefix="$acl_final_exec_prefix"
6109 exec_prefix="$acl_save_exec_prefix"
6110 prefix="$acl_save_prefix"
6112 if test "X$x" = "X$element"; then
6117 if test -z "$haveit"; then
6118 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
6124 $as_echo_n "checking for iconv... " >&6; }
6125 if ${am_cv_func_iconv+:} false; then :
6126 $as_echo_n "(cached) " >&6
6129 am_cv_func_iconv="no, consider installing GNU libiconv"
6131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6132 /* end confdefs.h. */
6138 iconv_t cd = iconv_open("","");
6139 iconv(cd,NULL,NULL,NULL,NULL);
6145 if ac_fn_c_try_link "$LINENO"; then :
6146 am_cv_func_iconv=yes
6148 rm -f core conftest.err conftest.$ac_objext \
6149 conftest$ac_exeext conftest.$ac_ext
6150 if test "$am_cv_func_iconv" != yes; then
6151 am_save_LIBS="$LIBS"
6152 LIBS="$LIBS $LIBICONV"
6153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6154 /* end confdefs.h. */
6160 iconv_t cd = iconv_open("","");
6161 iconv(cd,NULL,NULL,NULL,NULL);
6167 if ac_fn_c_try_link "$LINENO"; then :
6169 am_cv_func_iconv=yes
6171 rm -f core conftest.err conftest.$ac_objext \
6172 conftest$ac_exeext conftest.$ac_ext
6173 LIBS="$am_save_LIBS"
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
6178 $as_echo "$am_cv_func_iconv" >&6; }
6179 if test "$am_cv_func_iconv" = yes; then
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
6181 $as_echo_n "checking for working iconv... " >&6; }
6182 if ${am_cv_func_iconv_works+:} false; then :
6183 $as_echo_n "(cached) " >&6
6186 am_save_LIBS="$LIBS"
6187 if test $am_cv_lib_iconv = yes; then
6188 LIBS="$LIBS $LIBICONV"
6190 if test "$cross_compiling" = yes; then :
6192 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
6193 *) am_cv_func_iconv_works="guessing yes" ;;
6196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6197 /* end confdefs.h. */
6203 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
6206 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
6207 if (cd_utf8_to_88591 != (iconv_t)(-1))
6209 static const char input[] = "\342\202\254"; /* EURO SIGN */
6211 const char *inptr = input;
6212 size_t inbytesleft = strlen (input);
6214 size_t outbytesleft = sizeof (buf);
6215 size_t res = iconv (cd_utf8_to_88591,
6216 (char **) &inptr, &inbytesleft,
6217 &outptr, &outbytesleft);
6222 /* Test against Solaris 10 bug: Failures are not distinguishable from
6223 successful returns. */
6225 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
6226 if (cd_ascii_to_88591 != (iconv_t)(-1))
6228 static const char input[] = "\263";
6230 const char *inptr = input;
6231 size_t inbytesleft = strlen (input);
6233 size_t outbytesleft = sizeof (buf);
6234 size_t res = iconv (cd_ascii_to_88591,
6235 (char **) &inptr, &inbytesleft,
6236 &outptr, &outbytesleft);
6241 #if 0 /* This bug could be worked around by the caller. */
6242 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
6244 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
6245 if (cd_88591_to_utf8 != (iconv_t)(-1))
6247 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
6249 const char *inptr = input;
6250 size_t inbytesleft = strlen (input);
6252 size_t outbytesleft = sizeof (buf);
6253 size_t res = iconv (cd_88591_to_utf8,
6254 (char **) &inptr, &inbytesleft,
6255 &outptr, &outbytesleft);
6261 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
6263 if (/* Try standardized names. */
6264 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
6265 /* Try IRIX, OSF/1 names. */
6266 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
6267 /* Try AIX names. */
6268 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
6269 /* Try HP-UX names. */
6270 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
6275 if ac_fn_c_try_run "$LINENO"; then :
6276 am_cv_func_iconv_works=yes
6278 am_cv_func_iconv_works=no
6280 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6281 conftest.$ac_objext conftest.beam conftest.$ac_ext
6284 LIBS="$am_save_LIBS"
6287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
6288 $as_echo "$am_cv_func_iconv_works" >&6; }
6289 case "$am_cv_func_iconv_works" in
6290 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
6291 *) am_func_iconv=yes ;;
6294 am_func_iconv=no am_cv_lib_iconv=no
6296 if test "$am_func_iconv" = yes; then
6298 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
6301 if test "$am_cv_lib_iconv" = yes; then
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
6303 $as_echo_n "checking how to link with libiconv... " >&6; }
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
6305 $as_echo "$LIBICONV" >&6; }
6307 CPPFLAGS="$am_save_CPPFLAGS"
6324 acl_save_prefix="$prefix"
6325 prefix="$acl_final_prefix"
6326 acl_save_exec_prefix="$exec_prefix"
6327 exec_prefix="$acl_final_exec_prefix"
6329 eval additional_includedir=\"$includedir\"
6330 eval additional_libdir=\"$libdir\"
6332 exec_prefix="$acl_save_exec_prefix"
6333 prefix="$acl_save_prefix"
6336 # Check whether --with-libintl-prefix was given.
6337 if test "${with_libintl_prefix+set}" = set; then :
6338 withval=$with_libintl_prefix;
6339 if test "X$withval" = "Xno"; then
6342 if test "X$withval" = "X"; then
6344 acl_save_prefix="$prefix"
6345 prefix="$acl_final_prefix"
6346 acl_save_exec_prefix="$exec_prefix"
6347 exec_prefix="$acl_final_exec_prefix"
6349 eval additional_includedir=\"$includedir\"
6350 eval additional_libdir=\"$libdir\"
6352 exec_prefix="$acl_save_exec_prefix"
6353 prefix="$acl_save_prefix"
6356 additional_includedir="$withval/include"
6357 additional_libdir="$withval/$acl_libdirstem"
6358 if test "$acl_libdirstem2" != "$acl_libdirstem" \
6359 && ! test -d "$withval/$acl_libdirstem"; then
6360 additional_libdir="$withval/$acl_libdirstem2"
6374 names_already_handled=
6375 names_next_round='intl '
6376 while test -n "$names_next_round"; do
6377 names_this_round="$names_next_round"
6379 for name in $names_this_round; do
6381 for n in $names_already_handled; do
6382 if test "$n" = "$name"; then
6387 if test -z "$already_handled"; then
6388 names_already_handled="$names_already_handled $name"
6389 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6390 eval value=\"\$HAVE_LIB$uppername\"
6391 if test -n "$value"; then
6392 if test "$value" = yes; then
6393 eval value=\"\$LIB$uppername\"
6394 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
6395 eval value=\"\$LTLIB$uppername\"
6396 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
6405 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
6406 if test -n "$acl_shlibext"; then
6407 shrext=".$acl_shlibext" # typically: shrext=.so
6411 if test $use_additional = yes; then
6412 dir="$additional_libdir"
6413 if test -n "$acl_shlibext"; then
6414 if test -f "$dir/$libname$shrext"; then
6416 found_so="$dir/$libname$shrext"
6418 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6419 ver=`(cd "$dir" && \
6420 for f in "$libname$shrext".*; do echo "$f"; done \
6421 | sed -e "s,^$libname$shrext\\\\.,," \
6422 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6423 | sed 1q ) 2>/dev/null`
6424 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6426 found_so="$dir/$libname$shrext.$ver"
6429 eval library_names=\"$acl_library_names_spec\"
6430 for f in $library_names; do
6431 if test -f "$dir/$f"; then
6440 if test "X$found_dir" = "X"; then
6441 if test -f "$dir/$libname.$acl_libext"; then
6443 found_a="$dir/$libname.$acl_libext"
6446 if test "X$found_dir" != "X"; then
6447 if test -f "$dir/$libname.la"; then
6448 found_la="$dir/$libname.la"
6452 if test "X$found_dir" = "X"; then
6453 for x in $LDFLAGS $LTLIBINTL; do
6455 acl_save_prefix="$prefix"
6456 prefix="$acl_final_prefix"
6457 acl_save_exec_prefix="$exec_prefix"
6458 exec_prefix="$acl_final_exec_prefix"
6460 exec_prefix="$acl_save_exec_prefix"
6461 prefix="$acl_save_prefix"
6465 dir=`echo "X$x" | sed -e 's/^X-L//'`
6466 if test -n "$acl_shlibext"; then
6467 if test -f "$dir/$libname$shrext"; then
6469 found_so="$dir/$libname$shrext"
6471 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6472 ver=`(cd "$dir" && \
6473 for f in "$libname$shrext".*; do echo "$f"; done \
6474 | sed -e "s,^$libname$shrext\\\\.,," \
6475 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6476 | sed 1q ) 2>/dev/null`
6477 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6479 found_so="$dir/$libname$shrext.$ver"
6482 eval library_names=\"$acl_library_names_spec\"
6483 for f in $library_names; do
6484 if test -f "$dir/$f"; then
6493 if test "X$found_dir" = "X"; then
6494 if test -f "$dir/$libname.$acl_libext"; then
6496 found_a="$dir/$libname.$acl_libext"
6499 if test "X$found_dir" != "X"; then
6500 if test -f "$dir/$libname.la"; then
6501 found_la="$dir/$libname.la"
6506 if test "X$found_dir" != "X"; then
6511 if test "X$found_dir" != "X"; then
6512 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
6513 if test "X$found_so" != "X"; then
6514 if test "$enable_rpath" = no \
6515 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
6516 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
6517 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6520 for x in $ltrpathdirs; do
6521 if test "X$x" = "X$found_dir"; then
6526 if test -z "$haveit"; then
6527 ltrpathdirs="$ltrpathdirs $found_dir"
6529 if test "$acl_hardcode_direct" = yes; then
6530 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6532 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
6533 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6535 for x in $rpathdirs; do
6536 if test "X$x" = "X$found_dir"; then
6541 if test -z "$haveit"; then
6542 rpathdirs="$rpathdirs $found_dir"
6546 for x in $LDFLAGS $LIBINTL; do
6548 acl_save_prefix="$prefix"
6549 prefix="$acl_final_prefix"
6550 acl_save_exec_prefix="$exec_prefix"
6551 exec_prefix="$acl_final_exec_prefix"
6553 exec_prefix="$acl_save_exec_prefix"
6554 prefix="$acl_save_prefix"
6556 if test "X$x" = "X-L$found_dir"; then
6561 if test -z "$haveit"; then
6562 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
6564 if test "$acl_hardcode_minus_L" != no; then
6565 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6567 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6573 if test "X$found_a" != "X"; then
6574 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
6576 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
6579 additional_includedir=
6580 case "$found_dir" in
6581 */$acl_libdirstem | */$acl_libdirstem/)
6582 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
6583 if test "$name" = 'intl'; then
6584 LIBINTL_PREFIX="$basedir"
6586 additional_includedir="$basedir/include"
6588 */$acl_libdirstem2 | */$acl_libdirstem2/)
6589 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
6590 if test "$name" = 'intl'; then
6591 LIBINTL_PREFIX="$basedir"
6593 additional_includedir="$basedir/include"
6596 if test "X$additional_includedir" != "X"; then
6597 if test "X$additional_includedir" != "X/usr/include"; then
6599 if test "X$additional_includedir" = "X/usr/local/include"; then
6600 if test -n "$GCC"; then
6602 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6606 if test -z "$haveit"; then
6607 for x in $CPPFLAGS $INCINTL; do
6609 acl_save_prefix="$prefix"
6610 prefix="$acl_final_prefix"
6611 acl_save_exec_prefix="$exec_prefix"
6612 exec_prefix="$acl_final_exec_prefix"
6614 exec_prefix="$acl_save_exec_prefix"
6615 prefix="$acl_save_prefix"
6617 if test "X$x" = "X-I$additional_includedir"; then
6622 if test -z "$haveit"; then
6623 if test -d "$additional_includedir"; then
6624 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
6630 if test -n "$found_la"; then
6631 save_libdir="$libdir"
6633 */* | *\\*) . "$found_la" ;;
6634 *) . "./$found_la" ;;
6636 libdir="$save_libdir"
6637 for dep in $dependency_libs; do
6640 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6641 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
6642 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
6644 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
6645 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
6646 if test -n "$GCC"; then
6648 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6652 if test -z "$haveit"; then
6654 for x in $LDFLAGS $LIBINTL; do
6656 acl_save_prefix="$prefix"
6657 prefix="$acl_final_prefix"
6658 acl_save_exec_prefix="$exec_prefix"
6659 exec_prefix="$acl_final_exec_prefix"
6661 exec_prefix="$acl_save_exec_prefix"
6662 prefix="$acl_save_prefix"
6664 if test "X$x" = "X-L$additional_libdir"; then
6669 if test -z "$haveit"; then
6670 if test -d "$additional_libdir"; then
6671 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
6675 for x in $LDFLAGS $LTLIBINTL; do
6677 acl_save_prefix="$prefix"
6678 prefix="$acl_final_prefix"
6679 acl_save_exec_prefix="$exec_prefix"
6680 exec_prefix="$acl_final_exec_prefix"
6682 exec_prefix="$acl_save_exec_prefix"
6683 prefix="$acl_save_prefix"
6685 if test "X$x" = "X-L$additional_libdir"; then
6690 if test -z "$haveit"; then
6691 if test -d "$additional_libdir"; then
6692 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
6699 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6700 if test "$enable_rpath" != no; then
6702 for x in $rpathdirs; do
6703 if test "X$x" = "X$dir"; then
6708 if test -z "$haveit"; then
6709 rpathdirs="$rpathdirs $dir"
6712 for x in $ltrpathdirs; do
6713 if test "X$x" = "X$dir"; then
6718 if test -z "$haveit"; then
6719 ltrpathdirs="$ltrpathdirs $dir"
6724 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6727 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6730 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
6731 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
6737 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6738 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
6744 if test "X$rpathdirs" != "X"; then
6745 if test -n "$acl_hardcode_libdir_separator"; then
6747 for found_dir in $rpathdirs; do
6748 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
6750 acl_save_libdir="$libdir"
6752 eval flag=\"$acl_hardcode_libdir_flag_spec\"
6753 libdir="$acl_save_libdir"
6754 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6756 for found_dir in $rpathdirs; do
6757 acl_save_libdir="$libdir"
6759 eval flag=\"$acl_hardcode_libdir_flag_spec\"
6760 libdir="$acl_save_libdir"
6761 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6765 if test "X$ltrpathdirs" != "X"; then
6766 for found_dir in $ltrpathdirs; do
6767 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
6777 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
6778 if eval \${$gt_func_gnugettext_libintl+:} false; then :
6779 $as_echo_n "(cached) " >&6
6781 gt_save_CPPFLAGS="$CPPFLAGS"
6782 CPPFLAGS="$CPPFLAGS $INCINTL"
6783 gt_save_LIBS="$LIBS"
6784 LIBS="$LIBS $LIBINTL"
6785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6786 /* end confdefs.h. */
6787 #include <libintl.h>
6788 $gt_revision_test_code
6789 extern int _nl_msg_cat_cntr;
6794 const char *_nl_expand_alias (const char *);
6798 bindtextdomain ("", "");
6799 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6804 if ac_fn_c_try_link "$LINENO"; then :
6805 eval "$gt_func_gnugettext_libintl=yes"
6807 eval "$gt_func_gnugettext_libintl=no"
6809 rm -f core conftest.err conftest.$ac_objext \
6810 conftest$ac_exeext conftest.$ac_ext
6811 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
6812 LIBS="$LIBS $LIBICONV"
6813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6814 /* end confdefs.h. */
6815 #include <libintl.h>
6816 $gt_revision_test_code
6817 extern int _nl_msg_cat_cntr;
6822 const char *_nl_expand_alias (const char *);
6826 bindtextdomain ("", "");
6827 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6832 if ac_fn_c_try_link "$LINENO"; then :
6833 LIBINTL="$LIBINTL $LIBICONV"
6834 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
6835 eval "$gt_func_gnugettext_libintl=yes"
6838 rm -f core conftest.err conftest.$ac_objext \
6839 conftest$ac_exeext conftest.$ac_ext
6841 CPPFLAGS="$gt_save_CPPFLAGS"
6842 LIBS="$gt_save_LIBS"
6844 eval ac_res=\$$gt_func_gnugettext_libintl
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6846 $as_echo "$ac_res" >&6; }
6849 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
6850 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
6851 && test "$PACKAGE" != gettext-runtime \
6852 && test "$PACKAGE" != gettext-tools; }; then
6853 gt_use_preinstalled_gnugettext=yes
6862 if test -n "$INTL_MACOSX_LIBS"; then
6863 if test "$gt_use_preinstalled_gnugettext" = "yes" \
6864 || test "$nls_cv_use_gnu_gettext" = "yes"; then
6865 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
6866 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
6870 if test "$gt_use_preinstalled_gnugettext" = "yes" \
6871 || test "$nls_cv_use_gnu_gettext" = "yes"; then
6873 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
6881 $as_echo_n "checking whether to use NLS... " >&6; }
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6883 $as_echo "$USE_NLS" >&6; }
6884 if test "$USE_NLS" = "yes"; then
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
6886 $as_echo_n "checking where the gettext function comes from... " >&6; }
6887 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6888 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
6889 gt_source="external libintl"
6894 gt_source="included intl directory"
6896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
6897 $as_echo "$gt_source" >&6; }
6900 if test "$USE_NLS" = "yes"; then
6902 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6903 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
6905 $as_echo_n "checking how to link with libintl... " >&6; }
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
6907 $as_echo "$LIBINTL" >&6; }
6909 for element in $INCINTL; do
6911 for x in $CPPFLAGS; do
6913 acl_save_prefix="$prefix"
6914 prefix="$acl_final_prefix"
6915 acl_save_exec_prefix="$exec_prefix"
6916 exec_prefix="$acl_final_exec_prefix"
6918 exec_prefix="$acl_save_exec_prefix"
6919 prefix="$acl_save_prefix"
6921 if test "X$x" = "X$element"; then
6926 if test -z "$haveit"; then
6927 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6934 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
6937 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
6955 # Extract the first word of "gconftool-2", so it can be a program name with args.
6956 set dummy gconftool-2; ac_word=$2
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6958 $as_echo_n "checking for $ac_word... " >&6; }
6959 if ${ac_cv_path_GCONFTOOL+:} false; then :
6960 $as_echo_n "(cached) " >&6
6964 ac_cv_path_GCONFTOOL="$GCONFTOOL" # Let the user override the test with a path.
6967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6971 test -z "$as_dir" && as_dir=.
6972 for ac_exec_ext in '' $ac_executable_extensions; do
6973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6974 ac_cv_path_GCONFTOOL="$as_dir/$ac_word$ac_exec_ext"
6975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6982 test -z "$ac_cv_path_GCONFTOOL" && ac_cv_path_GCONFTOOL="no"
6986 GCONFTOOL=$ac_cv_path_GCONFTOOL
6987 if test -n "$GCONFTOOL"; then
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONFTOOL" >&5
6989 $as_echo "$GCONFTOOL" >&6; }
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6992 $as_echo "no" >&6; }
6997 if test x"$GCONFTOOL" = xno; then
6998 as_fn_error $? "gconftool-2 executable not found in your path - should be installed with GConf" "$LINENO" 5
7002 if test "x$GCONF_SCHEMA_INSTALL_SOURCE" = "x"; then
7003 GCONF_SCHEMA_CONFIG_SOURCE=`gconftool-2 --get-default-source`
7005 GCONF_SCHEMA_CONFIG_SOURCE=$GCONF_SCHEMA_INSTALL_SOURCE
7009 # Check whether --with-gconf-source was given.
7010 if test "${with_gconf_source+set}" = set; then :
7011 withval=$with_gconf_source; GCONF_SCHEMA_CONFIG_SOURCE="$withval"
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using config source $GCONF_SCHEMA_CONFIG_SOURCE for schema installation" >&5
7017 $as_echo "Using config source $GCONF_SCHEMA_CONFIG_SOURCE for schema installation" >&6; }
7019 if test "x$GCONF_SCHEMA_FILE_DIR" = "x"; then
7020 GCONF_SCHEMA_FILE_DIR='$(sysconfdir)/gconf/schemas'
7024 # Check whether --with-gconf-schema-file-dir was given.
7025 if test "${with_gconf_schema_file_dir+set}" = set; then :
7026 withval=$with_gconf_schema_file_dir; GCONF_SCHEMA_FILE_DIR="$withval"
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using $GCONF_SCHEMA_FILE_DIR as install directory for schema files" >&5
7032 $as_echo "Using $GCONF_SCHEMA_FILE_DIR as install directory for schema files" >&6; }
7034 # Check whether --enable-schemas-install was given.
7035 if test "${enable_schemas_install+set}" = set; then :
7036 enableval=$enable_schemas_install; case ${enableval} in
7038 *) as_fn_error $? "bad value ${enableval} for --enable-schemas-install" "$LINENO" 5 ;;
7042 if test "$enable_schemas_install" != no; then
7043 GCONF_SCHEMAS_INSTALL_TRUE=
7044 GCONF_SCHEMAS_INSTALL_FALSE='#'
7046 GCONF_SCHEMAS_INSTALL_TRUE='#'
7047 GCONF_SCHEMAS_INSTALL_FALSE=
7052 ############### common
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
7056 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
7057 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
7058 $as_echo_n "(cached) " >&6
7060 ac_check_lib_save_LIBS=$LIBS
7061 LIBS="-lpthread $LIBS"
7062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7063 /* end confdefs.h. */
7065 /* Override any GCC internal prototype to avoid an error.
7066 Use char because int might match the return type of a GCC
7067 builtin and then its argument prototype would still apply. */
7071 char pthread_create ();
7075 return pthread_create ();
7080 if ac_fn_c_try_link "$LINENO"; then :
7081 ac_cv_lib_pthread_pthread_create=yes
7083 ac_cv_lib_pthread_pthread_create=no
7085 rm -f core conftest.err conftest.$ac_objext \
7086 conftest$ac_exeext conftest.$ac_ext
7087 LIBS=$ac_check_lib_save_LIBS
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
7090 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
7091 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
7092 cat >>confdefs.h <<_ACEOF
7093 #define HAVE_LIBPTHREAD 1
7096 LIBS="-lpthread $LIBS"
7100 PTHREAD_LIBS=-pthread
7103 # Checks sensors, required by psensor and psensor-server
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sensors_init in -lsensors" >&5
7105 $as_echo_n "checking for sensors_init in -lsensors... " >&6; }
7106 if ${ac_cv_lib_sensors_sensors_init+:} false; then :
7107 $as_echo_n "(cached) " >&6
7109 ac_check_lib_save_LIBS=$LIBS
7110 LIBS="-lsensors $LIBS"
7111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7112 /* end confdefs.h. */
7114 /* Override any GCC internal prototype to avoid an error.
7115 Use char because int might match the return type of a GCC
7116 builtin and then its argument prototype would still apply. */
7120 char sensors_init ();
7124 return sensors_init ();
7129 if ac_fn_c_try_link "$LINENO"; then :
7130 ac_cv_lib_sensors_sensors_init=yes
7132 ac_cv_lib_sensors_sensors_init=no
7134 rm -f core conftest.err conftest.$ac_objext \
7135 conftest$ac_exeext conftest.$ac_ext
7136 LIBS=$ac_check_lib_save_LIBS
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sensors_sensors_init" >&5
7139 $as_echo "$ac_cv_lib_sensors_sensors_init" >&6; }
7140 if test "x$ac_cv_lib_sensors_sensors_init" = xyes; then :
7141 cat >>confdefs.h <<_ACEOF
7142 #define HAVE_LIBSENSORS 1
7145 LIBS="-lsensors $LIBS"
7149 for ac_header in sensors/sensors.h sensors/errors.h
7151 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7152 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7153 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7154 cat >>confdefs.h <<_ACEOF
7155 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7162 SENSORS_LIBS=-lsensors
7165 ############### psensor
7176 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7177 if test -n "$ac_tool_prefix"; then
7178 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7179 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7181 $as_echo_n "checking for $ac_word... " >&6; }
7182 if ${ac_cv_path_PKG_CONFIG+:} false; then :
7183 $as_echo_n "(cached) " >&6
7187 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7194 test -z "$as_dir" && as_dir=.
7195 for ac_exec_ext in '' $ac_executable_extensions; do
7196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7197 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7208 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7209 if test -n "$PKG_CONFIG"; then
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7211 $as_echo "$PKG_CONFIG" >&6; }
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7214 $as_echo "no" >&6; }
7219 if test -z "$ac_cv_path_PKG_CONFIG"; then
7220 ac_pt_PKG_CONFIG=$PKG_CONFIG
7221 # Extract the first word of "pkg-config", so it can be a program name with args.
7222 set dummy pkg-config; ac_word=$2
7223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7224 $as_echo_n "checking for $ac_word... " >&6; }
7225 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
7226 $as_echo_n "(cached) " >&6
7228 case $ac_pt_PKG_CONFIG in
7230 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7237 test -z "$as_dir" && as_dir=.
7238 for ac_exec_ext in '' $ac_executable_extensions; do
7239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7240 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7251 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7252 if test -n "$ac_pt_PKG_CONFIG"; then
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7254 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
7256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7257 $as_echo "no" >&6; }
7260 if test "x$ac_pt_PKG_CONFIG" = x; then
7263 case $cross_compiling:$ac_tool_warned in
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7266 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7267 ac_tool_warned=yes ;;
7269 PKG_CONFIG=$ac_pt_PKG_CONFIG
7272 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7276 if test -n "$PKG_CONFIG"; then
7277 _pkg_min_version=0.9.0
7278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7279 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7280 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7282 $as_echo "yes" >&6; }
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7285 $as_echo "no" >&6; }
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
7292 $as_echo_n "checking for X11... " >&6; }
7294 if test -n "$X11_CFLAGS"; then
7295 pkg_cv_X11_CFLAGS="$X11_CFLAGS"
7296 elif test -n "$PKG_CONFIG"; then
7297 if test -n "$PKG_CONFIG" && \
7298 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
7299 ($PKG_CONFIG --exists --print-errors "x11") 2>&5
7301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7302 test $ac_status = 0; }; then
7303 pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
7304 test "x$?" != "x0" && pkg_failed=yes
7311 if test -n "$X11_LIBS"; then
7312 pkg_cv_X11_LIBS="$X11_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 \"x11\""; } >&5
7316 ($PKG_CONFIG --exists --print-errors "x11") 2>&5
7318 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7319 test $ac_status = 0; }; then
7320 pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
7321 test "x$?" != "x0" && pkg_failed=yes
7331 if test $pkg_failed = yes; then
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7333 $as_echo "no" >&6; }
7335 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7336 _pkg_short_errors_supported=yes
7338 _pkg_short_errors_supported=no
7340 if test $_pkg_short_errors_supported = yes; then
7341 X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11" 2>&1`
7343 X11_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11" 2>&1`
7345 # Put the nasty error message in config.log where it belongs
7346 echo "$X11_PKG_ERRORS" >&5
7348 as_fn_error $? "Package requirements (x11) were not met:
7352 Consider adjusting the PKG_CONFIG_PATH environment variable if you
7353 installed software in a non-standard prefix.
7355 Alternatively, you may set the environment variables X11_CFLAGS
7356 and X11_LIBS to avoid the need to call pkg-config.
7357 See the pkg-config man page for more details." "$LINENO" 5
7358 elif test $pkg_failed = untried; then
7359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7360 $as_echo "no" >&6; }
7361 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7362 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7363 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
7364 is in your PATH or set the PKG_CONFIG environment variable to the full
7367 Alternatively, you may set the environment variables X11_CFLAGS
7368 and X11_LIBS to avoid the need to call pkg-config.
7369 See the pkg-config man page for more details.
7371 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7372 See \`config.log' for more details" "$LINENO" 5; }
7374 X11_CFLAGS=$pkg_cv_X11_CFLAGS
7375 X11_LIBS=$pkg_cv_X11_LIBS
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7377 $as_echo "yes" >&6; }
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5
7386 $as_echo_n "checking for XEXT... " >&6; }
7388 if test -n "$XEXT_CFLAGS"; then
7389 pkg_cv_XEXT_CFLAGS="$XEXT_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 \"xext\""; } >&5
7393 ($PKG_CONFIG --exists --print-errors "xext") 2>&5
7395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7396 test $ac_status = 0; }; then
7397 pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xext" 2>/dev/null`
7398 test "x$?" != "x0" && pkg_failed=yes
7405 if test -n "$XEXT_LIBS"; then
7406 pkg_cv_XEXT_LIBS="$XEXT_LIBS"
7407 elif test -n "$PKG_CONFIG"; then
7408 if test -n "$PKG_CONFIG" && \
7409 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5
7410 ($PKG_CONFIG --exists --print-errors "xext") 2>&5
7412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7413 test $ac_status = 0; }; then
7414 pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xext" 2>/dev/null`
7415 test "x$?" != "x0" && pkg_failed=yes
7425 if test $pkg_failed = yes; then
7426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7427 $as_echo "no" >&6; }
7429 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7430 _pkg_short_errors_supported=yes
7432 _pkg_short_errors_supported=no
7434 if test $_pkg_short_errors_supported = yes; then
7435 XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xext" 2>&1`
7437 XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xext" 2>&1`
7439 # Put the nasty error message in config.log where it belongs
7440 echo "$XEXT_PKG_ERRORS" >&5
7442 as_fn_error $? "Package requirements (xext) were not met:
7446 Consider adjusting the PKG_CONFIG_PATH environment variable if you
7447 installed software in a non-standard prefix.
7449 Alternatively, you may set the environment variables XEXT_CFLAGS
7450 and XEXT_LIBS to avoid the need to call pkg-config.
7451 See the pkg-config man page for more details." "$LINENO" 5
7452 elif test $pkg_failed = untried; then
7453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7454 $as_echo "no" >&6; }
7455 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7456 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7457 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
7458 is in your PATH or set the PKG_CONFIG environment variable to the full
7461 Alternatively, you may set the environment variables XEXT_CFLAGS
7462 and XEXT_LIBS to avoid the need to call pkg-config.
7463 See the pkg-config man page for more details.
7465 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7466 See \`config.log' for more details" "$LINENO" 5; }
7468 XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
7469 XEXT_LIBS=$pkg_cv_XEXT_LIBS
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7471 $as_echo "yes" >&6; }
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5
7481 $as_echo_n "checking for GTK... " >&6; }
7483 if test -n "$GTK_CFLAGS"; then
7484 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
7485 elif test -n "$PKG_CONFIG"; then
7486 if test -n "$PKG_CONFIG" && \
7487 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0\""; } >&5
7488 ($PKG_CONFIG --exists --print-errors "gtk+-3.0") 2>&5
7490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7491 test $ac_status = 0; }; then
7492 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-3.0" 2>/dev/null`
7493 test "x$?" != "x0" && pkg_failed=yes
7500 if test -n "$GTK_LIBS"; then
7501 pkg_cv_GTK_LIBS="$GTK_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 \"gtk+-3.0\""; } >&5
7505 ($PKG_CONFIG --exists --print-errors "gtk+-3.0") 2>&5
7507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7508 test $ac_status = 0; }; then
7509 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-3.0" 2>/dev/null`
7510 test "x$?" != "x0" && pkg_failed=yes
7520 if test $pkg_failed = yes; then
7521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7522 $as_echo "no" >&6; }
7524 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7525 _pkg_short_errors_supported=yes
7527 _pkg_short_errors_supported=no
7529 if test $_pkg_short_errors_supported = yes; then
7530 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-3.0" 2>&1`
7532 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-3.0" 2>&1`
7534 # Put the nasty error message in config.log where it belongs
7535 echo "$GTK_PKG_ERRORS" >&5
7537 as_fn_error $? "Package requirements (gtk+-3.0) were not met:
7541 Consider adjusting the PKG_CONFIG_PATH environment variable if you
7542 installed software in a non-standard prefix.
7544 Alternatively, you may set the environment variables GTK_CFLAGS
7545 and GTK_LIBS to avoid the need to call pkg-config.
7546 See the pkg-config man page for more details." "$LINENO" 5
7547 elif test $pkg_failed = untried; then
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7549 $as_echo "no" >&6; }
7550 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7551 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7552 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
7553 is in your PATH or set the PKG_CONFIG environment variable to the full
7556 Alternatively, you may set the environment variables GTK_CFLAGS
7557 and GTK_LIBS to avoid the need to call pkg-config.
7558 See the pkg-config man page for more details.
7560 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7561 See \`config.log' for more details" "$LINENO" 5; }
7563 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
7564 GTK_LIBS=$pkg_cv_GTK_LIBS
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7566 $as_echo "yes" >&6; }
7569 # ensure that only allowed headers are included
7570 GTK_CFLAGS+=" -DGTK_DISABLE_SINGLE_INCLUDES "
7571 # ensure that no gtk deprecated symbols are used
7572 GTK_CFLAGS+=" -DGDK_DISABLE_DEPRECATED "
7573 GTK_CFLAGS+=" -DGTK_DISABLE_DEPRECATED "
7574 # ensure use of accessors
7575 GTK_CFLAGS+=" -DGSEAL_ENABLE "
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCONF" >&5
7583 $as_echo_n "checking for GCONF... " >&6; }
7585 if test -n "$GCONF_CFLAGS"; then
7586 pkg_cv_GCONF_CFLAGS="$GCONF_CFLAGS"
7587 elif test -n "$PKG_CONFIG"; then
7588 if test -n "$PKG_CONFIG" && \
7589 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gconf-2.0\""; } >&5
7590 ($PKG_CONFIG --exists --print-errors "gconf-2.0") 2>&5
7592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7593 test $ac_status = 0; }; then
7594 pkg_cv_GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0" 2>/dev/null`
7595 test "x$?" != "x0" && pkg_failed=yes
7602 if test -n "$GCONF_LIBS"; then
7603 pkg_cv_GCONF_LIBS="$GCONF_LIBS"
7604 elif test -n "$PKG_CONFIG"; then
7605 if test -n "$PKG_CONFIG" && \
7606 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gconf-2.0\""; } >&5
7607 ($PKG_CONFIG --exists --print-errors "gconf-2.0") 2>&5
7609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7610 test $ac_status = 0; }; then
7611 pkg_cv_GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0" 2>/dev/null`
7612 test "x$?" != "x0" && pkg_failed=yes
7622 if test $pkg_failed = yes; then
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7624 $as_echo "no" >&6; }
7626 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7627 _pkg_short_errors_supported=yes
7629 _pkg_short_errors_supported=no
7631 if test $_pkg_short_errors_supported = yes; then
7632 GCONF_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gconf-2.0" 2>&1`
7634 GCONF_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gconf-2.0" 2>&1`
7636 # Put the nasty error message in config.log where it belongs
7637 echo "$GCONF_PKG_ERRORS" >&5
7639 as_fn_error $? "Package requirements (gconf-2.0) were not met:
7643 Consider adjusting the PKG_CONFIG_PATH environment variable if you
7644 installed software in a non-standard prefix.
7646 Alternatively, you may set the environment variables GCONF_CFLAGS
7647 and GCONF_LIBS to avoid the need to call pkg-config.
7648 See the pkg-config man page for more details." "$LINENO" 5
7649 elif test $pkg_failed = untried; then
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7651 $as_echo "no" >&6; }
7652 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7653 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7654 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
7655 is in your PATH or set the PKG_CONFIG environment variable to the full
7658 Alternatively, you may set the environment variables GCONF_CFLAGS
7659 and GCONF_LIBS to avoid the need to call pkg-config.
7660 See the pkg-config man page for more details.
7662 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7663 See \`config.log' for more details" "$LINENO" 5; }
7665 GCONF_CFLAGS=$pkg_cv_GCONF_CFLAGS
7666 GCONF_LIBS=$pkg_cv_GCONF_LIBS
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7668 $as_echo "yes" >&6; }
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ATASMART" >&5
7680 $as_echo_n "checking for ATASMART... " >&6; }
7682 if test -n "$ATASMART_CFLAGS"; then
7683 pkg_cv_ATASMART_CFLAGS="$ATASMART_CFLAGS"
7684 elif test -n "$PKG_CONFIG"; then
7685 if test -n "$PKG_CONFIG" && \
7686 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libatasmart\""; } >&5
7687 ($PKG_CONFIG --exists --print-errors "libatasmart") 2>&5
7689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7690 test $ac_status = 0; }; then
7691 pkg_cv_ATASMART_CFLAGS=`$PKG_CONFIG --cflags "libatasmart" 2>/dev/null`
7692 test "x$?" != "x0" && pkg_failed=yes
7699 if test -n "$ATASMART_LIBS"; then
7700 pkg_cv_ATASMART_LIBS="$ATASMART_LIBS"
7701 elif test -n "$PKG_CONFIG"; then
7702 if test -n "$PKG_CONFIG" && \
7703 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libatasmart\""; } >&5
7704 ($PKG_CONFIG --exists --print-errors "libatasmart") 2>&5
7706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7707 test $ac_status = 0; }; then
7708 pkg_cv_ATASMART_LIBS=`$PKG_CONFIG --libs "libatasmart" 2>/dev/null`
7709 test "x$?" != "x0" && pkg_failed=yes
7719 if test $pkg_failed = yes; then
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7721 $as_echo "no" >&6; }
7723 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7724 _pkg_short_errors_supported=yes
7726 _pkg_short_errors_supported=no
7728 if test $_pkg_short_errors_supported = yes; then
7729 ATASMART_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libatasmart" 2>&1`
7731 ATASMART_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libatasmart" 2>&1`
7733 # Put the nasty error message in config.log where it belongs
7734 echo "$ATASMART_PKG_ERRORS" >&5
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Library atasmart not present\"" >&5
7737 $as_echo "$as_me: WARNING: \"Library atasmart not present\"" >&2;}
7738 elif test $pkg_failed = untried; then
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7740 $as_echo "no" >&6; }
7741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Library atasmart not present\"" >&5
7742 $as_echo "$as_me: WARNING: \"Library atasmart not present\"" >&2;}
7744 ATASMART_CFLAGS=$pkg_cv_ATASMART_CFLAGS
7745 ATASMART_LIBS=$pkg_cv_ATASMART_LIBS
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7747 $as_echo "yes" >&6; }
7749 $as_echo "#define HAVE_ATASMART 1" >>confdefs.h
7753 if test -n "$ATASMART_LIBS"; then
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBNOTIFY" >&5
7769 $as_echo_n "checking for LIBNOTIFY... " >&6; }
7771 if test -n "$LIBNOTIFY_CFLAGS"; then
7772 pkg_cv_LIBNOTIFY_CFLAGS="$LIBNOTIFY_CFLAGS"
7773 elif test -n "$PKG_CONFIG"; then
7774 if test -n "$PKG_CONFIG" && \
7775 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnotify\""; } >&5
7776 ($PKG_CONFIG --exists --print-errors "libnotify") 2>&5
7778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7779 test $ac_status = 0; }; then
7780 pkg_cv_LIBNOTIFY_CFLAGS=`$PKG_CONFIG --cflags "libnotify" 2>/dev/null`
7781 test "x$?" != "x0" && pkg_failed=yes
7788 if test -n "$LIBNOTIFY_LIBS"; then
7789 pkg_cv_LIBNOTIFY_LIBS="$LIBNOTIFY_LIBS"
7790 elif test -n "$PKG_CONFIG"; then
7791 if test -n "$PKG_CONFIG" && \
7792 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnotify\""; } >&5
7793 ($PKG_CONFIG --exists --print-errors "libnotify") 2>&5
7795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7796 test $ac_status = 0; }; then
7797 pkg_cv_LIBNOTIFY_LIBS=`$PKG_CONFIG --libs "libnotify" 2>/dev/null`
7798 test "x$?" != "x0" && pkg_failed=yes
7808 if test $pkg_failed = yes; then
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7810 $as_echo "no" >&6; }
7812 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7813 _pkg_short_errors_supported=yes
7815 _pkg_short_errors_supported=no
7817 if test $_pkg_short_errors_supported = yes; then
7818 LIBNOTIFY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libnotify" 2>&1`
7820 LIBNOTIFY_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libnotify" 2>&1`
7822 # Put the nasty error message in config.log where it belongs
7823 echo "$LIBNOTIFY_PKG_ERRORS" >&5
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Desktop notification disabled\"" >&5
7826 $as_echo "$as_me: WARNING: \"Desktop notification disabled\"" >&2;}
7827 elif test $pkg_failed = untried; then
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7829 $as_echo "no" >&6; }
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Desktop notification disabled\"" >&5
7831 $as_echo "$as_me: WARNING: \"Desktop notification disabled\"" >&2;}
7833 LIBNOTIFY_CFLAGS=$pkg_cv_LIBNOTIFY_CFLAGS
7834 LIBNOTIFY_LIBS=$pkg_cv_LIBNOTIFY_LIBS
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7836 $as_echo "yes" >&6; }
7838 $as_echo "#define HAVE_LIBNOTIFY 1" >>confdefs.h
7841 if test -n "$LIBNOTIFY_LIBS"; then
7852 # Checks AppIndicator
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APPINDICATOR" >&5
7858 $as_echo_n "checking for APPINDICATOR... " >&6; }
7860 if test -n "$APPINDICATOR_CFLAGS"; then
7861 pkg_cv_APPINDICATOR_CFLAGS="$APPINDICATOR_CFLAGS"
7862 elif test -n "$PKG_CONFIG"; then
7863 if test -n "$PKG_CONFIG" && \
7864 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"appindicator3-0.1\""; } >&5
7865 ($PKG_CONFIG --exists --print-errors "appindicator3-0.1") 2>&5
7867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7868 test $ac_status = 0; }; then
7869 pkg_cv_APPINDICATOR_CFLAGS=`$PKG_CONFIG --cflags "appindicator3-0.1" 2>/dev/null`
7870 test "x$?" != "x0" && pkg_failed=yes
7877 if test -n "$APPINDICATOR_LIBS"; then
7878 pkg_cv_APPINDICATOR_LIBS="$APPINDICATOR_LIBS"
7879 elif test -n "$PKG_CONFIG"; then
7880 if test -n "$PKG_CONFIG" && \
7881 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"appindicator3-0.1\""; } >&5
7882 ($PKG_CONFIG --exists --print-errors "appindicator3-0.1") 2>&5
7884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7885 test $ac_status = 0; }; then
7886 pkg_cv_APPINDICATOR_LIBS=`$PKG_CONFIG --libs "appindicator3-0.1" 2>/dev/null`
7887 test "x$?" != "x0" && pkg_failed=yes
7897 if test $pkg_failed = yes; then
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7899 $as_echo "no" >&6; }
7901 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7902 _pkg_short_errors_supported=yes
7904 _pkg_short_errors_supported=no
7906 if test $_pkg_short_errors_supported = yes; then
7907 APPINDICATOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "appindicator3-0.1" 2>&1`
7909 APPINDICATOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "appindicator3-0.1" 2>&1`
7911 # Put the nasty error message in config.log where it belongs
7912 echo "$APPINDICATOR_PKG_ERRORS" >&5
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: AppIndicator 3-0.1 not present\"" >&5
7915 $as_echo "$as_me: WARNING: AppIndicator 3-0.1 not present\"" >&2;}
7916 elif test $pkg_failed = untried; then
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7918 $as_echo "no" >&6; }
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: AppIndicator 3-0.1 not present\"" >&5
7920 $as_echo "$as_me: WARNING: AppIndicator 3-0.1 not present\"" >&2;}
7922 APPINDICATOR_CFLAGS=$pkg_cv_APPINDICATOR_CFLAGS
7923 APPINDICATOR_LIBS=$pkg_cv_APPINDICATOR_LIBS
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7925 $as_echo "yes" >&6; }
7927 $as_echo "#define HAVE_APPINDICATOR 1" >>confdefs.h
7931 if test "$APPINDICATOR_LIBS" == ""; then
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APPINDICATOR" >&5
7935 $as_echo_n "checking for APPINDICATOR... " >&6; }
7937 if test -n "$APPINDICATOR_CFLAGS"; then
7938 pkg_cv_APPINDICATOR_CFLAGS="$APPINDICATOR_CFLAGS"
7939 elif test -n "$PKG_CONFIG"; then
7940 if test -n "$PKG_CONFIG" && \
7941 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"appindicator-0.1 <= 0.2.9 \""; } >&5
7942 ($PKG_CONFIG --exists --print-errors "appindicator-0.1 <= 0.2.9 ") 2>&5
7944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7945 test $ac_status = 0; }; then
7946 pkg_cv_APPINDICATOR_CFLAGS=`$PKG_CONFIG --cflags "appindicator-0.1 <= 0.2.9 " 2>/dev/null`
7947 test "x$?" != "x0" && pkg_failed=yes
7954 if test -n "$APPINDICATOR_LIBS"; then
7955 pkg_cv_APPINDICATOR_LIBS="$APPINDICATOR_LIBS"
7956 elif test -n "$PKG_CONFIG"; then
7957 if test -n "$PKG_CONFIG" && \
7958 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"appindicator-0.1 <= 0.2.9 \""; } >&5
7959 ($PKG_CONFIG --exists --print-errors "appindicator-0.1 <= 0.2.9 ") 2>&5
7961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7962 test $ac_status = 0; }; then
7963 pkg_cv_APPINDICATOR_LIBS=`$PKG_CONFIG --libs "appindicator-0.1 <= 0.2.9 " 2>/dev/null`
7964 test "x$?" != "x0" && pkg_failed=yes
7974 if test $pkg_failed = yes; then
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7976 $as_echo "no" >&6; }
7978 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7979 _pkg_short_errors_supported=yes
7981 _pkg_short_errors_supported=no
7983 if test $_pkg_short_errors_supported = yes; then
7984 APPINDICATOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "appindicator-0.1 <= 0.2.9 " 2>&1`
7986 APPINDICATOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "appindicator-0.1 <= 0.2.9 " 2>&1`
7988 # Put the nasty error message in config.log where it belongs
7989 echo "$APPINDICATOR_PKG_ERRORS" >&5
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: AppIndicator 0.2.9 not present\"" >&5
7992 $as_echo "$as_me: WARNING: AppIndicator 0.2.9 not present\"" >&2;}
7993 elif test $pkg_failed = untried; then
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7995 $as_echo "no" >&6; }
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: AppIndicator 0.2.9 not present\"" >&5
7997 $as_echo "$as_me: WARNING: AppIndicator 0.2.9 not present\"" >&2;}
7999 APPINDICATOR_CFLAGS=$pkg_cv_APPINDICATOR_CFLAGS
8000 APPINDICATOR_LIBS=$pkg_cv_APPINDICATOR_LIBS
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8002 $as_echo "yes" >&6; }
8004 $as_echo "#define HAVE_APPINDICATOR 1" >>confdefs.h
8007 $as_echo "#define HAVE_APPINDICATOR_029 1" >>confdefs.h
8013 if test "$APPINDICATOR_LIBS" == ""; then
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APPINDICATOR" >&5
8017 $as_echo_n "checking for APPINDICATOR... " >&6; }
8019 if test -n "$APPINDICATOR_CFLAGS"; then
8020 pkg_cv_APPINDICATOR_CFLAGS="$APPINDICATOR_CFLAGS"
8021 elif test -n "$PKG_CONFIG"; then
8022 if test -n "$PKG_CONFIG" && \
8023 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"appindicator-0.1 > 0.2.9\""; } >&5
8024 ($PKG_CONFIG --exists --print-errors "appindicator-0.1 > 0.2.9") 2>&5
8026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8027 test $ac_status = 0; }; then
8028 pkg_cv_APPINDICATOR_CFLAGS=`$PKG_CONFIG --cflags "appindicator-0.1 > 0.2.9" 2>/dev/null`
8029 test "x$?" != "x0" && pkg_failed=yes
8036 if test -n "$APPINDICATOR_LIBS"; then
8037 pkg_cv_APPINDICATOR_LIBS="$APPINDICATOR_LIBS"
8038 elif test -n "$PKG_CONFIG"; then
8039 if test -n "$PKG_CONFIG" && \
8040 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"appindicator-0.1 > 0.2.9\""; } >&5
8041 ($PKG_CONFIG --exists --print-errors "appindicator-0.1 > 0.2.9") 2>&5
8043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8044 test $ac_status = 0; }; then
8045 pkg_cv_APPINDICATOR_LIBS=`$PKG_CONFIG --libs "appindicator-0.1 > 0.2.9" 2>/dev/null`
8046 test "x$?" != "x0" && pkg_failed=yes
8056 if test $pkg_failed = yes; then
8057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8058 $as_echo "no" >&6; }
8060 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8061 _pkg_short_errors_supported=yes
8063 _pkg_short_errors_supported=no
8065 if test $_pkg_short_errors_supported = yes; then
8066 APPINDICATOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "appindicator-0.1 > 0.2.9" 2>&1`
8068 APPINDICATOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "appindicator-0.1 > 0.2.9" 2>&1`
8070 # Put the nasty error message in config.log where it belongs
8071 echo "$APPINDICATOR_PKG_ERRORS" >&5
8073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"AppIndicator > 0.2.9 not present\"" >&5
8074 $as_echo "$as_me: WARNING: \"AppIndicator > 0.2.9 not present\"" >&2;}
8075 elif test $pkg_failed = untried; then
8076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8077 $as_echo "no" >&6; }
8078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"AppIndicator > 0.2.9 not present\"" >&5
8079 $as_echo "$as_me: WARNING: \"AppIndicator > 0.2.9 not present\"" >&2;}
8081 APPINDICATOR_CFLAGS=$pkg_cv_APPINDICATOR_CFLAGS
8082 APPINDICATOR_LIBS=$pkg_cv_APPINDICATOR_LIBS
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8084 $as_echo "yes" >&6; }
8086 $as_echo "#define HAVE_APPINDICATOR 1" >>confdefs.h
8090 if test -n "$APPINDICATOR_LIBS"; then
8092 APPINDICATOR_FALSE='#'
8094 APPINDICATOR_TRUE='#'
8101 # Check CURL, needed for remote monitoring
8105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CURL" >&5
8106 $as_echo_n "checking for CURL... " >&6; }
8108 if test -n "$CURL_CFLAGS"; then
8109 pkg_cv_CURL_CFLAGS="$CURL_CFLAGS"
8110 elif test -n "$PKG_CONFIG"; then
8111 if test -n "$PKG_CONFIG" && \
8112 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl\""; } >&5
8113 ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5
8115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8116 test $ac_status = 0; }; then
8117 pkg_cv_CURL_CFLAGS=`$PKG_CONFIG --cflags "libcurl" 2>/dev/null`
8118 test "x$?" != "x0" && pkg_failed=yes
8125 if test -n "$CURL_LIBS"; then
8126 pkg_cv_CURL_LIBS="$CURL_LIBS"
8127 elif test -n "$PKG_CONFIG"; then
8128 if test -n "$PKG_CONFIG" && \
8129 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl\""; } >&5
8130 ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5
8132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8133 test $ac_status = 0; }; then
8134 pkg_cv_CURL_LIBS=`$PKG_CONFIG --libs "libcurl" 2>/dev/null`
8135 test "x$?" != "x0" && pkg_failed=yes
8145 if test $pkg_failed = yes; then
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8147 $as_echo "no" >&6; }
8149 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8150 _pkg_short_errors_supported=yes
8152 _pkg_short_errors_supported=no
8154 if test $_pkg_short_errors_supported = yes; then
8155 CURL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcurl" 2>&1`
8157 CURL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcurl" 2>&1`
8159 # Put the nasty error message in config.log where it belongs
8160 echo "$CURL_PKG_ERRORS" >&5
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Remote monitoring disabled" >&5
8163 $as_echo "$as_me: WARNING: \"Remote monitoring disabled" >&2;}
8164 elif test $pkg_failed = untried; then
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8166 $as_echo "no" >&6; }
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Remote monitoring disabled" >&5
8168 $as_echo "$as_me: WARNING: \"Remote monitoring disabled" >&2;}
8170 CURL_CFLAGS=$pkg_cv_CURL_CFLAGS
8171 CURL_LIBS=$pkg_cv_CURL_LIBS
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8173 $as_echo "yes" >&6; }
8175 $as_echo "#define HAVE_CURL 1" >>confdefs.h
8178 if test -n "$CURL_LIBS"; then
8189 # Check JSON, needed for remote monitoring
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JSON" >&5
8194 $as_echo_n "checking for JSON... " >&6; }
8196 if test -n "$JSON_CFLAGS"; then
8197 pkg_cv_JSON_CFLAGS="$JSON_CFLAGS"
8198 elif test -n "$PKG_CONFIG"; then
8199 if test -n "$PKG_CONFIG" && \
8200 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json\""; } >&5
8201 ($PKG_CONFIG --exists --print-errors "json") 2>&5
8203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8204 test $ac_status = 0; }; then
8205 pkg_cv_JSON_CFLAGS=`$PKG_CONFIG --cflags "json" 2>/dev/null`
8206 test "x$?" != "x0" && pkg_failed=yes
8213 if test -n "$JSON_LIBS"; then
8214 pkg_cv_JSON_LIBS="$JSON_LIBS"
8215 elif test -n "$PKG_CONFIG"; then
8216 if test -n "$PKG_CONFIG" && \
8217 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json\""; } >&5
8218 ($PKG_CONFIG --exists --print-errors "json") 2>&5
8220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8221 test $ac_status = 0; }; then
8222 pkg_cv_JSON_LIBS=`$PKG_CONFIG --libs "json" 2>/dev/null`
8223 test "x$?" != "x0" && pkg_failed=yes
8233 if test $pkg_failed = yes; then
8234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8235 $as_echo "no" >&6; }
8237 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8238 _pkg_short_errors_supported=yes
8240 _pkg_short_errors_supported=no
8242 if test $_pkg_short_errors_supported = yes; then
8243 JSON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "json" 2>&1`
8245 JSON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "json" 2>&1`
8247 # Put the nasty error message in config.log where it belongs
8248 echo "$JSON_PKG_ERRORS" >&5
8250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Remote monitoring disabled" >&5
8251 $as_echo "$as_me: WARNING: \"Remote monitoring disabled" >&2;}
8252 elif test $pkg_failed = untried; then
8253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8254 $as_echo "no" >&6; }
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Remote monitoring disabled" >&5
8256 $as_echo "$as_me: WARNING: \"Remote monitoring disabled" >&2;}
8258 JSON_CFLAGS=$pkg_cv_JSON_CFLAGS
8259 JSON_LIBS=$pkg_cv_JSON_LIBS
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8261 $as_echo "yes" >&6; }
8263 $as_echo "#define HAVE_JSON 1" >>confdefs.h
8266 if test -n "$JSON_LIBS"; then
8277 # Enables remote monitoring if JSON and CURL is present
8278 if test -n "$JSON_LIBS"; then
8279 if test -n "$CURL_LIBS"; then
8281 $as_echo "#define HAVE_REMOTE_SUPPORT 1" >>confdefs.h
8287 # following code from sensors-applet
8288 # sensors-applet.sourceforge.net/
8289 for ac_header in NVCtrl/NVCtrl.h NVCtrl/NVCtrlLib.h
8291 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8292 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
8293 #include <X11/Xlib.h>
8296 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8297 cat >>confdefs.h <<_ACEOF
8298 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8305 if test -n "${X11_LIBS}"; then
8306 LIBS="${LIBS} -lX11 -lXext"
8308 if test "${HAVE_NVIDIA}" = "true"; then
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XNVCTRLQueryExtension in -lXNVCtrl" >&5
8310 $as_echo_n "checking for XNVCTRLQueryExtension in -lXNVCtrl... " >&6; }
8311 if ${ac_cv_lib_XNVCtrl_XNVCTRLQueryExtension+:} false; then :
8312 $as_echo_n "(cached) " >&6
8314 ac_check_lib_save_LIBS=$LIBS
8315 LIBS="-lXNVCtrl $LIBS"
8316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8317 /* end confdefs.h. */
8319 /* Override any GCC internal prototype to avoid an error.
8320 Use char because int might match the return type of a GCC
8321 builtin and then its argument prototype would still apply. */
8325 char XNVCTRLQueryExtension ();
8329 return XNVCTRLQueryExtension ();
8334 if ac_fn_c_try_link "$LINENO"; then :
8335 ac_cv_lib_XNVCtrl_XNVCTRLQueryExtension=yes
8337 ac_cv_lib_XNVCtrl_XNVCTRLQueryExtension=no
8339 rm -f core conftest.err conftest.$ac_objext \
8340 conftest$ac_exeext conftest.$ac_ext
8341 LIBS=$ac_check_lib_save_LIBS
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_XNVCtrl_XNVCTRLQueryExtension" >&5
8344 $as_echo "$ac_cv_lib_XNVCtrl_XNVCTRLQueryExtension" >&6; }
8345 if test "x$ac_cv_lib_XNVCtrl_XNVCTRLQueryExtension" = xyes; then :
8346 NVIDIA_LIBS="-lXNVCtrl -lX11 -lXext"
8348 $as_echo "#define HAVE_NVIDIA 1" >>confdefs.h
8355 if test -n "$NVIDIA_LIBS"; then
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNITY" >&5
8370 $as_echo_n "checking for UNITY... " >&6; }
8372 if test -n "$UNITY_CFLAGS"; then
8373 pkg_cv_UNITY_CFLAGS="$UNITY_CFLAGS"
8374 elif test -n "$PKG_CONFIG"; then
8375 if test -n "$PKG_CONFIG" && \
8376 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"unity >= 3.4.2\""; } >&5
8377 ($PKG_CONFIG --exists --print-errors "unity >= 3.4.2") 2>&5
8379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8380 test $ac_status = 0; }; then
8381 pkg_cv_UNITY_CFLAGS=`$PKG_CONFIG --cflags "unity >= 3.4.2" 2>/dev/null`
8382 test "x$?" != "x0" && pkg_failed=yes
8389 if test -n "$UNITY_LIBS"; then
8390 pkg_cv_UNITY_LIBS="$UNITY_LIBS"
8391 elif test -n "$PKG_CONFIG"; then
8392 if test -n "$PKG_CONFIG" && \
8393 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"unity >= 3.4.2\""; } >&5
8394 ($PKG_CONFIG --exists --print-errors "unity >= 3.4.2") 2>&5
8396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8397 test $ac_status = 0; }; then
8398 pkg_cv_UNITY_LIBS=`$PKG_CONFIG --libs "unity >= 3.4.2" 2>/dev/null`
8399 test "x$?" != "x0" && pkg_failed=yes
8409 if test $pkg_failed = yes; then
8410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8411 $as_echo "no" >&6; }
8413 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8414 _pkg_short_errors_supported=yes
8416 _pkg_short_errors_supported=no
8418 if test $_pkg_short_errors_supported = yes; then
8419 UNITY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "unity >= 3.4.2" 2>&1`
8421 UNITY_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "unity >= 3.4.2" 2>&1`
8423 # Put the nasty error message in config.log where it belongs
8424 echo "$UNITY_PKG_ERRORS" >&5
8426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unity not present" >&5
8427 $as_echo "$as_me: WARNING: Unity not present" >&2;}
8428 elif test $pkg_failed = untried; then
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8430 $as_echo "no" >&6; }
8431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unity not present" >&5
8432 $as_echo "$as_me: WARNING: Unity not present" >&2;}
8434 UNITY_CFLAGS=$pkg_cv_UNITY_CFLAGS
8435 UNITY_LIBS=$pkg_cv_UNITY_LIBS
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8437 $as_echo "yes" >&6; }
8439 $as_echo "#define HAVE_UNITY 1" >>confdefs.h
8444 if test -n "$UNITY_LIBS"; then
8455 # Check whether --with-libatiadl was given.
8456 if test "${with_libatiadl+set}" = set; then :
8457 withval=$with_libatiadl;
8458 ATIADL_DIR=${withval}
8459 CPPFLAGS="${CPPFLAGS} -I${ATIADL_DIR}/include"
8460 LIBS="$LIBS -L/usr/lib/fglrx -L/usr/lib64/fglrx -L/usr/lib/catalyst -L/usr/lib64/catalyst"
8466 for ac_header in adl_defines.h
8468 ac_fn_c_check_header_mongrel "$LINENO" "adl_defines.h" "ac_cv_header_adl_defines_h" "$ac_includes_default"
8469 if test "x$ac_cv_header_adl_defines_h" = xyes; then :
8470 cat >>confdefs.h <<_ACEOF
8471 #define HAVE_ADL_DEFINES_H 1
8473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ADL_Main_Control_Refresh in -latiadlxx" >&5
8474 $as_echo_n "checking for ADL_Main_Control_Refresh in -latiadlxx... " >&6; }
8475 if ${ac_cv_lib_atiadlxx_ADL_Main_Control_Refresh+:} false; then :
8476 $as_echo_n "(cached) " >&6
8478 ac_check_lib_save_LIBS=$LIBS
8479 LIBS="-latiadlxx $LIBS"
8480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8481 /* end confdefs.h. */
8483 /* Override any GCC internal prototype to avoid an error.
8484 Use char because int might match the return type of a GCC
8485 builtin and then its argument prototype would still apply. */
8489 char ADL_Main_Control_Refresh ();
8493 return ADL_Main_Control_Refresh ();
8498 if ac_fn_c_try_link "$LINENO"; then :
8499 ac_cv_lib_atiadlxx_ADL_Main_Control_Refresh=yes
8501 ac_cv_lib_atiadlxx_ADL_Main_Control_Refresh=no
8503 rm -f core conftest.err conftest.$ac_objext \
8504 conftest$ac_exeext conftest.$ac_ext
8505 LIBS=$ac_check_lib_save_LIBS
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_atiadlxx_ADL_Main_Control_Refresh" >&5
8508 $as_echo "$ac_cv_lib_atiadlxx_ADL_Main_Control_Refresh" >&6; }
8509 if test "x$ac_cv_lib_atiadlxx_ADL_Main_Control_Refresh" = xyes; then :
8512 $as_echo "#define HAVE_LIBATIADL 1" >>confdefs.h
8514 LIBATIADL_CFLAGS="-I${ATIADL_DIR}/include"
8515 LIBATIADL_LIBS="-L/usr/lib/fglrx -L/usr/lib64/fglrx -L/usr/lib/catalyst -L/usr/lib64/catalyst -latiadlxx -ldl"
8524 if test -n "$LIBATIADL_LIBS"; then
8535 ############### psensor-server
8537 # libmicrohttpd, mandatory for psensor-server
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBMICROHTTPD" >&5
8542 $as_echo_n "checking for LIBMICROHTTPD... " >&6; }
8544 if test -n "$LIBMICROHTTPD_CFLAGS"; then
8545 pkg_cv_LIBMICROHTTPD_CFLAGS="$LIBMICROHTTPD_CFLAGS"
8546 elif test -n "$PKG_CONFIG"; then
8547 if test -n "$PKG_CONFIG" && \
8548 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmicrohttpd\""; } >&5
8549 ($PKG_CONFIG --exists --print-errors "libmicrohttpd") 2>&5
8551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8552 test $ac_status = 0; }; then
8553 pkg_cv_LIBMICROHTTPD_CFLAGS=`$PKG_CONFIG --cflags "libmicrohttpd" 2>/dev/null`
8554 test "x$?" != "x0" && pkg_failed=yes
8561 if test -n "$LIBMICROHTTPD_LIBS"; then
8562 pkg_cv_LIBMICROHTTPD_LIBS="$LIBMICROHTTPD_LIBS"
8563 elif test -n "$PKG_CONFIG"; then
8564 if test -n "$PKG_CONFIG" && \
8565 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmicrohttpd\""; } >&5
8566 ($PKG_CONFIG --exists --print-errors "libmicrohttpd") 2>&5
8568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8569 test $ac_status = 0; }; then
8570 pkg_cv_LIBMICROHTTPD_LIBS=`$PKG_CONFIG --libs "libmicrohttpd" 2>/dev/null`
8571 test "x$?" != "x0" && pkg_failed=yes
8581 if test $pkg_failed = yes; then
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8583 $as_echo "no" >&6; }
8585 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8586 _pkg_short_errors_supported=yes
8588 _pkg_short_errors_supported=no
8590 if test $_pkg_short_errors_supported = yes; then
8591 LIBMICROHTTPD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libmicrohttpd" 2>&1`
8593 LIBMICROHTTPD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libmicrohttpd" 2>&1`
8595 # Put the nasty error message in config.log where it belongs
8596 echo "$LIBMICROHTTPD_PKG_ERRORS" >&5
8598 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"libmicrohttpd not present" >&5
8599 $as_echo "$as_me: WARNING: \"libmicrohttpd not present" >&2;}
8600 elif test $pkg_failed = untried; then
8601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8602 $as_echo "no" >&6; }
8603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"libmicrohttpd not present" >&5
8604 $as_echo "$as_me: WARNING: \"libmicrohttpd not present" >&2;}
8606 LIBMICROHTTPD_CFLAGS=$pkg_cv_LIBMICROHTTPD_CFLAGS
8607 LIBMICROHTTPD_LIBS=$pkg_cv_LIBMICROHTTPD_LIBS
8608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8609 $as_echo "yes" >&6; }
8611 $as_echo "#define HAVE_LIBMICROHTTPD 1" >>confdefs.h
8614 if test -n "$LIBMICROHTTPD_LIBS"; then
8616 LIBMICROHTTPD_FALSE='#'
8618 LIBMICROHTTPD_TRUE='#'
8619 LIBMICROHTTPD_FALSE=
8628 # Check whether --with-gtop was given.
8629 if test "${with_gtop+set}" = set; then :
8640 if test "$with_gtop" = "yes"; then
8643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTOP" >&5
8644 $as_echo_n "checking for GTOP... " >&6; }
8646 if test -n "$GTOP_CFLAGS"; then
8647 pkg_cv_GTOP_CFLAGS="$GTOP_CFLAGS"
8648 elif test -n "$PKG_CONFIG"; then
8649 if test -n "$PKG_CONFIG" && \
8650 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgtop-2.0\""; } >&5
8651 ($PKG_CONFIG --exists --print-errors "libgtop-2.0") 2>&5
8653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8654 test $ac_status = 0; }; then
8655 pkg_cv_GTOP_CFLAGS=`$PKG_CONFIG --cflags "libgtop-2.0" 2>/dev/null`
8656 test "x$?" != "x0" && pkg_failed=yes
8663 if test -n "$GTOP_LIBS"; then
8664 pkg_cv_GTOP_LIBS="$GTOP_LIBS"
8665 elif test -n "$PKG_CONFIG"; then
8666 if test -n "$PKG_CONFIG" && \
8667 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgtop-2.0\""; } >&5
8668 ($PKG_CONFIG --exists --print-errors "libgtop-2.0") 2>&5
8670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8671 test $ac_status = 0; }; then
8672 pkg_cv_GTOP_LIBS=`$PKG_CONFIG --libs "libgtop-2.0" 2>/dev/null`
8673 test "x$?" != "x0" && pkg_failed=yes
8683 if test $pkg_failed = yes; then
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8685 $as_echo "no" >&6; }
8687 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8688 _pkg_short_errors_supported=yes
8690 _pkg_short_errors_supported=no
8692 if test $_pkg_short_errors_supported = yes; then
8693 GTOP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libgtop-2.0" 2>&1`
8695 GTOP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libgtop-2.0" 2>&1`
8697 # Put the nasty error message in config.log where it belongs
8698 echo "$GTOP_PKG_ERRORS" >&5
8700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"gtop not present" >&5
8701 $as_echo "$as_me: WARNING: \"gtop not present" >&2;}
8702 elif test $pkg_failed = untried; then
8703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8704 $as_echo "no" >&6; }
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"gtop not present" >&5
8706 $as_echo "$as_me: WARNING: \"gtop not present" >&2;}
8708 GTOP_CFLAGS=$pkg_cv_GTOP_CFLAGS
8709 GTOP_LIBS=$pkg_cv_GTOP_LIBS
8710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8711 $as_echo "yes" >&6; }
8713 $as_echo "#define HAVE_GTOP 1" >>confdefs.h
8717 if test -n "$GTOP_LIBS"; then
8728 ac_config_files="$ac_config_files Makefile src/Makefile src/glade/Makefile src/lib/Makefile src/server/Makefile icons/hicolor/scalable/Makefile icons/hicolor/14x14/Makefile icons/hicolor/16x16/Makefile icons/hicolor/22x22/Makefile icons/hicolor/24x24/Makefile icons/hicolor/32x32/Makefile icons/hicolor/48x48/Makefile icons/hicolor/64x64/Makefile icons/ubuntu-mono-dark/status/22/Makefile icons/ubuntu-mono-light/status/22/Makefile icons/ubuntu-mono-dark/apps/22/Makefile www/Makefile po/Makefile.in tests/Makefile"
8731 for ac_prog in help2man
8733 # Extract the first word of "$ac_prog", so it can be a program name with args.
8734 set dummy $ac_prog; ac_word=$2
8735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8736 $as_echo_n "checking for $ac_word... " >&6; }
8737 if ${ac_cv_prog_HELP2MAN+:} false; then :
8738 $as_echo_n "(cached) " >&6
8740 if test -n "$HELP2MAN"; then
8741 ac_cv_prog_HELP2MAN="$HELP2MAN" # Let the user override the test.
8743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8747 test -z "$as_dir" && as_dir=.
8748 for ac_exec_ext in '' $ac_executable_extensions; do
8749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8750 ac_cv_prog_HELP2MAN="$ac_prog"
8751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8760 HELP2MAN=$ac_cv_prog_HELP2MAN
8761 if test -n "$HELP2MAN"; then
8762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HELP2MAN" >&5
8763 $as_echo "$HELP2MAN" >&6; }
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8766 $as_echo "no" >&6; }
8770 test -n "$HELP2MAN" && break
8774 # Extract the first word of "cppcheck", so it can be a program name with args.
8775 set dummy cppcheck; ac_word=$2
8776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8777 $as_echo_n "checking for $ac_word... " >&6; }
8778 if ${ac_cv_prog_HAVE_CPPCHECK+:} false; then :
8779 $as_echo_n "(cached) " >&6
8781 if test -n "$HAVE_CPPCHECK"; then
8782 ac_cv_prog_HAVE_CPPCHECK="$HAVE_CPPCHECK" # Let the user override the test.
8784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8788 test -z "$as_dir" && as_dir=.
8789 for ac_exec_ext in '' $ac_executable_extensions; do
8790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8791 ac_cv_prog_HAVE_CPPCHECK="yes"
8792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8801 HAVE_CPPCHECK=$ac_cv_prog_HAVE_CPPCHECK
8802 if test -n "$HAVE_CPPCHECK"; then
8803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_CPPCHECK" >&5
8804 $as_echo "$HAVE_CPPCHECK" >&6; }
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8807 $as_echo "no" >&6; }
8811 if test -n "$HAVE_CPPCHECK"; then
8820 cat >confcache <<\_ACEOF
8821 # This file is a shell script that caches the results of configure
8822 # tests run on this system so they can be shared between configure
8823 # scripts and configure runs, see configure's option --config-cache.
8824 # It is not useful on other systems. If it contains results you don't
8825 # want to keep, you may remove or edit it.
8827 # config.status only pays attention to the cache file if you give it
8828 # the --recheck option to rerun configure.
8830 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8831 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8836 # The following way of writing the cache mishandles newlines in values,
8837 # but we know of no workaround that is simple, portable, and efficient.
8838 # So, we kill variables containing newlines.
8839 # Ultrix sh set writes to stderr and can't be redirected directly,
8840 # and sets the high bit in the cache file unless we assign to the vars.
8842 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8843 eval ac_val=\$$ac_var
8847 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8848 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8851 _ | IFS | as_nl) ;; #(
8852 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8853 *) { eval $ac_var=; unset $ac_var;} ;;
8859 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8860 *${as_nl}ac_space=\ *)
8861 # `set' does not quote correctly, so add quotes: double-quote
8862 # substitution turns \\\\ into \\, and sed turns \\ into \.
8865 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8868 # `set' quotes correctly as required by POSIX, so do not add quotes.
8869 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8878 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8880 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8882 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8883 if test -w "$cache_file"; then
8884 if test "x$cache_file" != "x/dev/null"; then
8885 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8886 $as_echo "$as_me: updating cache $cache_file" >&6;}
8887 if test ! -f "$cache_file" || test -h "$cache_file"; then
8888 cat confcache >"$cache_file"
8890 case $cache_file in #(
8892 mv -f confcache "$cache_file"$$ &&
8893 mv -f "$cache_file"$$ "$cache_file" ;; #(
8895 mv -f confcache "$cache_file" ;;
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8901 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8906 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8907 # Let make expand exec_prefix.
8908 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8910 DEFS=-DHAVE_CONFIG_H
8915 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8916 # 1. Remove the extension, and $U if already installed.
8917 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8918 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
8919 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8920 # will be set to the directory where LIBOBJS objects are built.
8921 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8922 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
8926 LTLIBOBJS=$ac_ltlibobjs
8929 if test -n "$EXEEXT"; then
8931 am__EXEEXT_FALSE='#'
8937 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
8938 as_fn_error $? "conditional \"AMDEP\" was never defined.
8939 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8941 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8942 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
8943 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8945 if test -z "${GCONF_SCHEMAS_INSTALL_TRUE}" && test -z "${GCONF_SCHEMAS_INSTALL_FALSE}"; then
8946 as_fn_error $? "conditional \"GCONF_SCHEMAS_INSTALL\" was never defined.
8947 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8949 if test -z "${ATASMART_TRUE}" && test -z "${ATASMART_FALSE}"; then
8950 as_fn_error $? "conditional \"ATASMART\" was never defined.
8951 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8953 if test -z "${LIBNOTIFY_TRUE}" && test -z "${LIBNOTIFY_FALSE}"; then
8954 as_fn_error $? "conditional \"LIBNOTIFY\" was never defined.
8955 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8957 if test -z "${APPINDICATOR_TRUE}" && test -z "${APPINDICATOR_FALSE}"; then
8958 as_fn_error $? "conditional \"APPINDICATOR\" was never defined.
8959 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8961 if test -z "${CURL_TRUE}" && test -z "${CURL_FALSE}"; then
8962 as_fn_error $? "conditional \"CURL\" was never defined.
8963 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8965 if test -z "${JSON_TRUE}" && test -z "${JSON_FALSE}"; then
8966 as_fn_error $? "conditional \"JSON\" was never defined.
8967 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8969 if test -z "${NVIDIA_TRUE}" && test -z "${NVIDIA_FALSE}"; then
8970 as_fn_error $? "conditional \"NVIDIA\" was never defined.
8971 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8973 if test -z "${UNITY_TRUE}" && test -z "${UNITY_FALSE}"; then
8974 as_fn_error $? "conditional \"UNITY\" was never defined.
8975 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8977 if test -z "${LIBATIADL_TRUE}" && test -z "${LIBATIADL_FALSE}"; then
8978 as_fn_error $? "conditional \"LIBATIADL\" was never defined.
8979 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8981 if test -z "${LIBMICROHTTPD_TRUE}" && test -z "${LIBMICROHTTPD_FALSE}"; then
8982 as_fn_error $? "conditional \"LIBMICROHTTPD\" was never defined.
8983 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8985 if test -z "${GTOP_TRUE}" && test -z "${GTOP_FALSE}"; then
8986 as_fn_error $? "conditional \"GTOP\" was never defined.
8987 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8989 if test -z "${CPPCHECK_TRUE}" && test -z "${CPPCHECK_FALSE}"; then
8990 as_fn_error $? "conditional \"CPPCHECK\" was never defined.
8991 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8994 : "${CONFIG_STATUS=./config.status}"
8996 ac_clean_files_save=$ac_clean_files
8997 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8998 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8999 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
9001 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
9003 # Generated by $as_me.
9004 # Run this file to recreate the current configuration.
9005 # Compiler output produced by configure, useful for debugging
9006 # configure, is in config.log if it exists.
9012 SHELL=\${CONFIG_SHELL-$SHELL}
9015 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
9016 ## -------------------- ##
9017 ## M4sh Initialization. ##
9018 ## -------------------- ##
9020 # Be more Bourne compatible
9021 DUALCASE=1; export DUALCASE # for MKS sh
9022 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
9025 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9026 # is contrary to our usage. Disable this feature.
9027 alias -g '${1+"$@"}'='"$@"'
9028 setopt NO_GLOB_SUBST
9030 case `(set -o) 2>/dev/null` in #(
9042 # Printing a long string crashes Solaris 7 /usr/bin/printf.
9043 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9044 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
9045 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
9046 # Prefer a ksh shell builtin over an external printf program on Solaris,
9047 # but without wasting forks for bash or zsh.
9048 if test -z "$BASH_VERSION$ZSH_VERSION" \
9049 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
9050 as_echo='print -r --'
9051 as_echo_n='print -rn --'
9052 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
9053 as_echo='printf %s\n'
9054 as_echo_n='printf %s'
9056 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9057 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
9058 as_echo_n='/usr/ucb/echo -n'
9060 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9061 as_echo_n_body='eval
9065 expr "X$arg" : "X\\(.*\\)$as_nl";
9066 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9068 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
9070 export as_echo_n_body
9071 as_echo_n='sh -c $as_echo_n_body as_echo'
9074 as_echo='sh -c $as_echo_body as_echo'
9077 # The user is always right.
9078 if test "${PATH_SEPARATOR+set}" != set; then
9080 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9081 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9088 # We need space, tab and new line, in precisely that order. Quoting is
9089 # there to prevent editors from complaining about space-tab.
9090 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9091 # splitting by setting IFS to empty value.)
9094 # Find who we are. Look in the path if we contain no directory separator.
9097 *[\\/]* ) as_myself=$0 ;;
9098 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9102 test -z "$as_dir" && as_dir=.
9103 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9109 # We did not find ourselves, most probably we were run as `sh COMMAND'
9110 # in which case we are not to be found in the path.
9111 if test "x$as_myself" = x; then
9114 if test ! -f "$as_myself"; then
9115 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9119 # Unset variables that we do not need and which cause bugs (e.g. in
9120 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
9121 # suppresses any "Segmentation fault" message there. '((' could
9122 # trigger a bug in pdksh 5.2.14.
9123 for as_var in BASH_ENV ENV MAIL MAILPATH
9124 do eval test x\${$as_var+set} = xset \
9125 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
9138 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9141 # as_fn_error STATUS ERROR [LINENO LOG_FD]
9142 # ----------------------------------------
9143 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9144 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
9145 # script with STATUS, using 1 if that was 0.
9148 as_status=$1; test $as_status -eq 0 && as_status=1
9150 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9151 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
9153 $as_echo "$as_me: error: $2" >&2
9154 as_fn_exit $as_status
9158 # as_fn_set_status STATUS
9159 # -----------------------
9160 # Set $? to STATUS, without forking.
9164 } # as_fn_set_status
9168 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
9178 # Portably unset VAR.
9181 { eval $1=; unset $1;}
9183 as_unset=as_fn_unset
9184 # as_fn_append VAR VALUE
9185 # ----------------------
9186 # Append the text in VALUE to the end of the definition contained in VAR. Take
9187 # advantage of any shell optimizations that allow amortized linear growth over
9188 # repeated appends, instead of the typical quadratic growth present in naive
9190 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
9191 eval 'as_fn_append ()
9202 # as_fn_arith ARG...
9203 # ------------------
9204 # Perform arithmetic evaluation on the ARGs, and store the result in the
9205 # global $as_val. Take advantage of shells that can avoid forks. The arguments
9206 # must be portable across $(()) and expr.
9207 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
9208 eval 'as_fn_arith ()
9215 as_val=`expr "$@" || test $? -eq 1`
9220 if expr a : '\(a\)' >/dev/null 2>&1 &&
9221 test "X`expr 00001 : '.*\(...\)'`" = X001; then
9227 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9228 as_basename=basename
9233 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9239 as_me=`$as_basename -- "$0" ||
9240 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9241 X"$0" : 'X\(//\)$' \| \
9242 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9244 sed '/^.*\/\([^/][^/]*\)\/*$/{
9258 # Avoid depending upon Character Ranges.
9259 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9260 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9261 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9262 as_cr_digits='0123456789'
9263 as_cr_alnum=$as_cr_Letters$as_cr_digits
9265 ECHO_C= ECHO_N= ECHO_T=
9266 case `echo -n x` in #(((((
9268 case `echo 'xy\c'` in
9269 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
9271 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
9278 rm -f conf$$ conf$$.exe conf$$.file
9279 if test -d conf$$.dir; then
9280 rm -f conf$$.dir/conf$$.file
9283 mkdir conf$$.dir 2>/dev/null
9285 if (echo >conf$$.file) 2>/dev/null; then
9286 if ln -s conf$$.file conf$$ 2>/dev/null; then
9288 # ... but there are two gotchas:
9289 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9290 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9291 # In both cases, we have to default to `cp -p'.
9292 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9294 elif ln conf$$.file conf$$ 2>/dev/null; then
9302 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9303 rmdir conf$$.dir 2>/dev/null
9308 # Create "$as_dir" as a directory, including parents if necessary.
9313 -*) as_dir=./$as_dir;;
9315 test -d "$as_dir" || eval $as_mkdir_p || {
9319 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9320 *) as_qdir=$as_dir;;
9322 as_dirs="'$as_qdir' $as_dirs"
9323 as_dir=`$as_dirname -- "$as_dir" ||
9324 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9325 X"$as_dir" : 'X\(//\)[^/]' \| \
9326 X"$as_dir" : 'X\(//\)$' \| \
9327 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9328 $as_echo X"$as_dir" |
9329 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9346 test -d "$as_dir" && break
9348 test -z "$as_dirs" || eval "mkdir $as_dirs"
9349 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
9353 if mkdir -p . 2>/dev/null; then
9354 as_mkdir_p='mkdir -p "$as_dir"'
9356 test -d ./-p && rmdir ./-p
9360 if test -x / >/dev/null 2>&1; then
9363 if ls -dL / >/dev/null 2>&1; then
9370 if test -d "$1"; then
9376 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
9377 ???[sx]*):;;*)false;;esac;fi
9381 as_executable_p=$as_test_x
9383 # Sed expression to map a string onto a valid CPP name.
9384 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9386 # Sed expression to map a string onto a valid variable name.
9387 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9391 ## ----------------------------------- ##
9392 ## Main body of $CONFIG_STATUS script. ##
9393 ## ----------------------------------- ##
9395 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
9397 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9398 # Save the log message, to keep $0 and so on meaningful, and to
9399 # report actual input values of CONFIG_FILES etc. instead of their
9400 # values after options handling.
9402 This file was extended by psensor $as_me 0.7.0.x, which was
9403 generated by GNU Autoconf 2.68. Invocation command line was
9405 CONFIG_FILES = $CONFIG_FILES
9406 CONFIG_HEADERS = $CONFIG_HEADERS
9407 CONFIG_LINKS = $CONFIG_LINKS
9408 CONFIG_COMMANDS = $CONFIG_COMMANDS
9411 on `(hostname || uname -n) 2>/dev/null | sed 1q`
9416 case $ac_config_files in *"
9417 "*) set x $ac_config_files; shift; ac_config_files=$*;;
9420 case $ac_config_headers in *"
9421 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
9425 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9426 # Files that config.status was made for.
9427 config_files="$ac_config_files"
9428 config_headers="$ac_config_headers"
9429 config_commands="$ac_config_commands"
9433 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9435 \`$as_me' instantiates files and other configuration actions
9436 from templates according to the current configuration. Unless the files
9437 and actions are specified as TAGs, all are instantiated by default.
9439 Usage: $0 [OPTION]... [TAG]...
9441 -h, --help print this help, then exit
9442 -V, --version print version number and configuration settings, then exit
9443 --config print configuration, then exit
9444 -q, --quiet, --silent
9445 do not print progress messages
9446 -d, --debug don't remove temporary files
9447 --recheck update $as_me by reconfiguring in the same conditions
9448 --file=FILE[:TEMPLATE]
9449 instantiate the configuration file FILE
9450 --header=FILE[:TEMPLATE]
9451 instantiate the configuration header FILE
9453 Configuration files:
9456 Configuration headers:
9459 Configuration commands:
9462 Report bugs to <jeanfi@gmail.com>.
9463 psensor home page: <http://wpitchoune.net/psensor>."
9466 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9467 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
9469 psensor config.status 0.7.0.x
9470 configured by $0, generated by GNU Autoconf 2.68,
9471 with options \\"\$ac_cs_config\\"
9473 Copyright (C) 2010 Free Software Foundation, Inc.
9474 This config.status script is free software; the Free Software Foundation
9475 gives unlimited permission to copy, distribute and modify it."
9482 test -n "\$AWK" || AWK=awk
9485 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9486 # The default lists apply if the user does not specify any file.
9492 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9493 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9497 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9509 # Handling of the options.
9510 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9512 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9513 $as_echo "$ac_cs_version"; exit ;;
9514 --config | --confi | --conf | --con | --co | --c )
9515 $as_echo "$ac_cs_config"; exit ;;
9516 --debug | --debu | --deb | --de | --d | -d )
9518 --file | --fil | --fi | --f )
9521 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9522 '') as_fn_error $? "missing file argument" ;;
9524 as_fn_append CONFIG_FILES " '$ac_optarg'"
9525 ac_need_defaults=false;;
9526 --header | --heade | --head | --hea )
9529 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9531 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
9532 ac_need_defaults=false;;
9534 # Conflict between --help and --header
9535 as_fn_error $? "ambiguous option: \`$1'
9536 Try \`$0 --help' for more information.";;
9537 --help | --hel | -h )
9538 $as_echo "$ac_cs_usage"; exit ;;
9539 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9540 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9544 -*) as_fn_error $? "unrecognized option: \`$1'
9545 Try \`$0 --help' for more information." ;;
9547 *) as_fn_append ac_config_targets " $1"
9548 ac_need_defaults=false ;;
9554 ac_configure_extra_args=
9556 if $ac_cs_silent; then
9558 ac_configure_extra_args="$ac_configure_extra_args --silent"
9562 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9563 if \$ac_cs_recheck; then
9564 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9566 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
9567 CONFIG_SHELL='$SHELL'
9573 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9577 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9578 ## Running $as_me. ##
9584 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9588 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9589 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
9590 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
9591 # from automake < 1.5.
9592 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
9593 # Capture the value of LINGUAS because we need it to compute CATALOGS.
9594 LINGUAS="${LINGUAS-%UNSET%}"
9599 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9601 # Handling of arguments.
9602 for ac_config_target in $ac_config_targets
9604 case $ac_config_target in
9605 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
9606 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9607 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
9608 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9609 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
9610 "src/glade/Makefile") CONFIG_FILES="$CONFIG_FILES src/glade/Makefile" ;;
9611 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
9612 "src/server/Makefile") CONFIG_FILES="$CONFIG_FILES src/server/Makefile" ;;
9613 "icons/hicolor/scalable/Makefile") CONFIG_FILES="$CONFIG_FILES icons/hicolor/scalable/Makefile" ;;
9614 "icons/hicolor/14x14/Makefile") CONFIG_FILES="$CONFIG_FILES icons/hicolor/14x14/Makefile" ;;
9615 "icons/hicolor/16x16/Makefile") CONFIG_FILES="$CONFIG_FILES icons/hicolor/16x16/Makefile" ;;
9616 "icons/hicolor/22x22/Makefile") CONFIG_FILES="$CONFIG_FILES icons/hicolor/22x22/Makefile" ;;
9617 "icons/hicolor/24x24/Makefile") CONFIG_FILES="$CONFIG_FILES icons/hicolor/24x24/Makefile" ;;
9618 "icons/hicolor/32x32/Makefile") CONFIG_FILES="$CONFIG_FILES icons/hicolor/32x32/Makefile" ;;
9619 "icons/hicolor/48x48/Makefile") CONFIG_FILES="$CONFIG_FILES icons/hicolor/48x48/Makefile" ;;
9620 "icons/hicolor/64x64/Makefile") CONFIG_FILES="$CONFIG_FILES icons/hicolor/64x64/Makefile" ;;
9621 "icons/ubuntu-mono-dark/status/22/Makefile") CONFIG_FILES="$CONFIG_FILES icons/ubuntu-mono-dark/status/22/Makefile" ;;
9622 "icons/ubuntu-mono-light/status/22/Makefile") CONFIG_FILES="$CONFIG_FILES icons/ubuntu-mono-light/status/22/Makefile" ;;
9623 "icons/ubuntu-mono-dark/apps/22/Makefile") CONFIG_FILES="$CONFIG_FILES icons/ubuntu-mono-dark/apps/22/Makefile" ;;
9624 "www/Makefile") CONFIG_FILES="$CONFIG_FILES www/Makefile" ;;
9625 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
9626 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
9628 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
9633 # If the user did not use the arguments to specify the items to instantiate,
9634 # then the envvar interface is used. Set only those that are not.
9635 # We use the long form for the default assignment because of an extremely
9636 # bizarre bug on SunOS 4.1.3.
9637 if $ac_need_defaults; then
9638 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9639 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9640 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9643 # Have a temporary directory for convenience. Make it in the build tree
9644 # simply because there is no reason against having it here, and in addition,
9645 # creating and moving files from /tmp can sometimes cause problems.
9646 # Hook for its removal unless debugging.
9647 # Note that there is a small window in which the directory will not be cleaned:
9648 # after its creation but before its name has been assigned to `$tmp'.
9652 trap 'exit_status=$?
9654 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
9656 trap 'as_fn_exit 1' 1 2 13 15
9658 # Create a (secure) tmp directory for tmp files.
9661 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9665 tmp=./conf$$-$RANDOM
9666 (umask 077 && mkdir "$tmp")
9667 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
9670 # Set up the scripts for CONFIG_FILES section.
9671 # No need to generate them if there are no CONFIG_FILES.
9672 # This happens for instance with `./config.status config.h'.
9673 if test -n "$CONFIG_FILES"; then
9676 ac_cr=`echo X | tr X '\015'`
9677 # On cygwin, bash can eat \r inside `` if the user requested igncr.
9678 # But we know of no other shell where ac_cr would be empty at this
9679 # point, so we can use a bashism as a fallback.
9680 if test "x$ac_cr" = x; then
9681 eval ac_cr=\$\'\\r\'
9683 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
9684 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
9690 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
9695 echo "cat >conf$$subs.awk <<_ACEOF" &&
9696 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
9699 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9700 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
9702 for ac_last_try in false false false false false :; do
9703 . ./conf$$subs.sh ||
9704 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9706 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
9707 if test $ac_delim_n = $ac_delim_num; then
9709 elif $ac_last_try; then
9710 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9712 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9717 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9718 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
9722 s/^/S["/; s/!.*/"]=/
9732 s/\(.\{148\}\)..*/\1/
9734 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
9739 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9746 s/\(.\{148\}\)..*/\1/
9748 s/["\\]/\\&/g; s/^/"/; s/$/"/
9752 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9757 ' <conf$$subs.awk | sed '
9762 ' >>$CONFIG_STATUS || ac_write_fail=1
9763 rm -f conf$$subs.awk
9764 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9766 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
9767 for (key in S) S_is_set[key] = 1
9773 nfields = split(line, field, "@")
9775 len = length(field[1])
9776 for (i = 2; i < nfields; i++) {
9778 keylen = length(key)
9779 if (S_is_set[key]) {
9781 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
9782 len += length(value) + length(field[++i])
9793 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9794 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9795 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
9798 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
9799 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
9802 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
9803 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
9804 # trailing colons and then remove the whole line if VPATH becomes empty
9805 # (actually we leave an empty line to preserve line numbers).
9806 if test "x$srcdir" = x.; then
9807 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
9825 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9826 fi # test -n "$CONFIG_FILES"
9828 # Set up the scripts for CONFIG_HEADERS section.
9829 # No need to generate them if there are no CONFIG_HEADERS.
9830 # This happens for instance with `./config.status Makefile'.
9831 if test -n "$CONFIG_HEADERS"; then
9832 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
9836 # Transform confdefs.h into an awk script `defines.awk', embedded as
9837 # here-document in config.status, that substitutes the proper values into
9838 # config.h.in to produce config.h.
9840 # Create a delimiter string that does not exist in confdefs.h, to ease
9841 # handling of long lines.
9843 for ac_last_try in false false :; do
9844 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
9845 if test -z "$ac_tt"; then
9847 elif $ac_last_try; then
9848 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
9850 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9854 # For the awk script, D is an array of macro values keyed by name,
9855 # likewise P contains macro parameters if any. Preserve backslash
9856 # newline sequences.
9858 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9860 s/.\{148\}/&'"$ac_delim"'/g
9863 s/^[ ]*#[ ]*define[ ][ ]*/ /
9870 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9872 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
9876 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9877 D["\1"]=" \3\\\\\\n"\\/p
9879 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
9884 s/.\{148\}/&'"$ac_delim"'/g
9889 s/["\\]/\\&/g; s/^/"/; s/$/"/p
9892 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
9894 ' <confdefs.h | sed '
9895 s/'"$ac_delim"'/"\\\
9896 "/g' >>$CONFIG_STATUS || ac_write_fail=1
9898 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9899 for (key in D) D_is_set[key] = 1
9902 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
9904 split(line, arg, " ")
9905 if (arg[1] == "#") {
9909 defundef = substr(arg[1], 2)
9912 split(mac1, mac2, "(") #)
9914 prefix = substr(line, 1, index(line, defundef) - 1)
9915 if (D_is_set[macro]) {
9916 # Preserve the white space surrounding the "#".
9917 print prefix "define", macro P[macro] D[macro]
9920 # Replace #undef with comments. This is necessary, for example,
9921 # in the case of _POSIX_SOURCE, which is predefined and required
9922 # on some systems where configure will not decide to define it.
9923 if (defundef == "undef") {
9924 print "/*", prefix defundef, macro, "*/"
9932 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9933 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
9934 fi # test -n "$CONFIG_HEADERS"
9937 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
9942 :[FHLC]) ac_mode=$ac_tag; continue;;
9944 case $ac_mode$ac_tag in
9946 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
9947 :[FH]-) ac_tag=-:-;;
9948 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9965 -) ac_f="$ac_tmp/stdin";;
9966 *) # Look for the file first in the build tree, then in the source tree
9967 # (if the path is not absolute). The absolute path cannot be DOS-style,
9968 # because $ac_f cannot contain `:'.
9972 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9974 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
9976 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9977 as_fn_append ac_file_inputs " '$ac_f'"
9980 # Let's still pretend it is `configure' which instantiates (i.e., don't
9981 # use $as_me), people would be surprised to read:
9982 # /* config.h. Generated by config.status. */
9983 configure_input='Generated from '`
9984 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9986 if test x"$ac_file" != x-; then
9987 configure_input="$ac_file. $configure_input"
9988 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
9989 $as_echo "$as_me: creating $ac_file" >&6;}
9991 # Neutralize special characters interpreted by sed in replacement strings.
9992 case $configure_input in #(
9993 *\&* | *\|* | *\\* )
9994 ac_sed_conf_input=`$as_echo "$configure_input" |
9995 sed 's/[\\\\&|]/\\\\&/g'`;; #(
9996 *) ac_sed_conf_input=$configure_input;;
10000 *:-:* | *:-) cat >"$ac_tmp/stdin" \
10001 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
10006 ac_dir=`$as_dirname -- "$ac_file" ||
10007 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10008 X"$ac_file" : 'X\(//\)[^/]' \| \
10009 X"$ac_file" : 'X\(//\)$' \| \
10010 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10011 $as_echo X"$ac_file" |
10012 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10016 /^X\(\/\/\)[^/].*/{
10029 as_dir="$ac_dir"; as_fn_mkdir_p
10033 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10035 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10036 # A ".." for each directory in $ac_dir_suffix.
10037 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10038 case $ac_top_builddir_sub in
10039 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10040 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10043 ac_abs_top_builddir=$ac_pwd
10044 ac_abs_builddir=$ac_pwd$ac_dir_suffix
10045 # for backward compatibility:
10046 ac_top_builddir=$ac_top_build_prefix
10049 .) # We are building in place.
10051 ac_top_srcdir=$ac_top_builddir_sub
10052 ac_abs_top_srcdir=$ac_pwd ;;
10053 [\\/]* | ?:[\\/]* ) # Absolute name.
10054 ac_srcdir=$srcdir$ac_dir_suffix;
10055 ac_top_srcdir=$srcdir
10056 ac_abs_top_srcdir=$srcdir ;;
10057 *) # Relative name.
10058 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10059 ac_top_srcdir=$ac_top_build_prefix$srcdir
10060 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10062 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10072 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10073 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
10075 ac_MKDIR_P=$MKDIR_P
10077 [\\/$]* | ?:[\\/]* ) ;;
10078 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
10082 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10083 # If the template does not know about datarootdir, expand it.
10084 # FIXME: This hack should be removed a few years after 2.60.
10085 ac_datarootdir_hack=; ac_datarootdir_seen=
10096 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
10097 *datarootdir*) ac_datarootdir_seen=yes;;
10098 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10100 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10102 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10103 ac_datarootdir_hack='
10104 s&@datadir@&$datadir&g
10105 s&@docdir@&$docdir&g
10106 s&@infodir@&$infodir&g
10107 s&@localedir@&$localedir&g
10108 s&@mandir@&$mandir&g
10109 s&\\\${datarootdir}&$datarootdir&g' ;;
10113 # Neutralize VPATH when `$srcdir' = `.'.
10114 # Shell code in configure.ac might set extrasub.
10115 # FIXME: do we really want to maintain this feature?
10116 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10117 ac_sed_extra="$ac_vpsub
10120 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10122 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10123 s|@configure_input@|$ac_sed_conf_input|;t t
10124 s&@top_builddir@&$ac_top_builddir_sub&;t t
10125 s&@top_build_prefix@&$ac_top_build_prefix&;t t
10126 s&@srcdir@&$ac_srcdir&;t t
10127 s&@abs_srcdir@&$ac_abs_srcdir&;t t
10128 s&@top_srcdir@&$ac_top_srcdir&;t t
10129 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10130 s&@builddir@&$ac_builddir&;t t
10131 s&@abs_builddir@&$ac_abs_builddir&;t t
10132 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10133 s&@INSTALL@&$ac_INSTALL&;t t
10134 s&@MKDIR_P@&$ac_MKDIR_P&;t t
10135 $ac_datarootdir_hack
10137 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
10138 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10140 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10141 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
10142 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
10143 "$ac_tmp/out"`; test -z "$ac_out"; } &&
10144 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10145 which seems to be undefined. Please make sure it is defined" >&5
10146 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10147 which seems to be undefined. Please make sure it is defined" >&2;}
10149 rm -f "$ac_tmp/stdin"
10151 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
10152 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
10154 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10160 if test x"$ac_file" != x-; then
10162 $as_echo "/* $configure_input */" \
10163 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
10164 } >"$ac_tmp/config.h" \
10165 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10166 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
10167 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
10168 $as_echo "$as_me: $ac_file is unchanged" >&6;}
10171 mv "$ac_tmp/config.h" "$ac_file" \
10172 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10175 $as_echo "/* $configure_input */" \
10176 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
10177 || as_fn_error $? "could not create -" "$LINENO" 5
10179 # Compute "$ac_file"'s index in $config_headers.
10182 for _am_header in $config_headers :; do
10183 case $_am_header in
10184 $_am_arg | $_am_arg:* )
10187 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10190 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
10191 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10192 X"$_am_arg" : 'X\(//\)[^/]' \| \
10193 X"$_am_arg" : 'X\(//\)$' \| \
10194 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
10195 $as_echo X"$_am_arg" |
10196 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10200 /^X\(\/\/\)[^/].*/{
10212 s/.*/./; q'`/stamp-h$_am_stamp_count
10215 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
10216 $as_echo "$as_me: executing $ac_file commands" >&6;}
10221 case $ac_file$ac_mode in
10222 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
10223 # Autoconf 2.62 quotes --file arguments for eval, but not when files
10224 # are listed without --file. Let's play safe and only enable the eval
10225 # if we detect the quoting.
10226 case $CONFIG_FILES in
10227 *\'*) eval set x "$CONFIG_FILES" ;;
10228 *) set x $CONFIG_FILES ;;
10233 # Strip MF so we end up with the name of the file.
10234 mf=`echo "$mf" | sed -e 's/:.*$//'`
10235 # Check whether this is an Automake generated Makefile or not.
10236 # We used to match only the files named `Makefile.in', but
10237 # some people rename them; so instead we look at the file content.
10238 # Grep'ing the first line is not enough: some people post-process
10239 # each Makefile.in and add a new line on top of each file to say so.
10240 # Grep'ing the whole file is not good either: AIX grep has a line
10241 # limit of 2048, but all sed's we know have understand at least 4000.
10242 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
10243 dirpart=`$as_dirname -- "$mf" ||
10244 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10245 X"$mf" : 'X\(//\)[^/]' \| \
10246 X"$mf" : 'X\(//\)$' \| \
10247 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
10249 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10253 /^X\(\/\/\)[^/].*/{
10269 # Extract the definition of DEPDIR, am__include, and am__quote
10270 # from the Makefile without running `make'.
10271 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
10272 test -z "$DEPDIR" && continue
10273 am__include=`sed -n 's/^am__include = //p' < "$mf"`
10274 test -z "am__include" && continue
10275 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
10276 # When using ansi2knr, U may be empty or an underscore; expand it
10277 U=`sed -n 's/^U = //p' < "$mf"`
10278 # Find all dependency output files, they are included files with
10279 # $(DEPDIR) in their names. We invoke sed twice because it is the
10280 # simplest approach to changing $(DEPDIR) to its actual value in the
10282 for file in `sed -n "
10283 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
10284 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10285 # Make sure the directory exists.
10286 test -f "$dirpart/$file" && continue
10287 fdir=`$as_dirname -- "$file" ||
10288 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10289 X"$file" : 'X\(//\)[^/]' \| \
10290 X"$file" : 'X\(//\)$' \| \
10291 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
10292 $as_echo X"$file" |
10293 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10297 /^X\(\/\/\)[^/].*/{
10310 as_dir=$dirpart/$fdir; as_fn_mkdir_p
10311 # echo "creating $dirpart/$file"
10312 echo '# dummy' > "$dirpart/$file"
10317 "po-directories":C)
10318 for ac_file in $CONFIG_FILES; do
10319 # Support "outfile[:infile[:infile...]]"
10321 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10323 # PO directories have a Makefile.in generated from Makefile.in.in.
10324 case "$ac_file" in */Makefile.in)
10325 # Adjust a relative srcdir.
10326 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
10327 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
10328 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
10329 # In autoconf-2.13 it is called $ac_given_srcdir.
10330 # In autoconf-2.50 it is called $srcdir.
10331 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
10332 case "$ac_given_srcdir" in
10333 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
10334 /*) top_srcdir="$ac_given_srcdir" ;;
10335 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
10337 # Treat a directory as a PO directory if and only if it has a
10338 # POTFILES.in file. This allows packages to have multiple PO
10339 # directories under different names or in different locations.
10340 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
10341 rm -f "$ac_dir/POTFILES"
10342 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
10343 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
10344 POMAKEFILEDEPS="POTFILES.in"
10345 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
10346 # on $ac_dir but don't depend on user-specified configuration
10348 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
10349 # The LINGUAS file contains the set of available languages.
10350 if test -n "$OBSOLETE_ALL_LINGUAS"; then
10351 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
10353 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
10354 # Hide the ALL_LINGUAS assigment from automake < 1.5.
10355 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
10356 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
10358 # The set of available languages was given in configure.in.
10359 # Hide the ALL_LINGUAS assigment from automake < 1.5.
10360 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
10363 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
10364 # Compute UPDATEPOFILES
10365 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
10366 # Compute DUMMYPOFILES
10367 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
10369 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
10370 case "$ac_given_srcdir" in
10372 *) srcdirpre='$(srcdir)/' ;;
10378 for lang in $ALL_LINGUAS; do
10379 POFILES="$POFILES $srcdirpre$lang.po"
10380 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
10381 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
10382 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
10384 # CATALOGS depends on both $ac_dir and the user's LINGUAS
10385 # environment variable.
10387 if test -n "$ALL_LINGUAS"; then
10388 for presentlang in $ALL_LINGUAS; do
10390 if test "%UNSET%" != "$LINGUAS"; then
10391 desiredlanguages="$LINGUAS"
10393 desiredlanguages="$ALL_LINGUAS"
10395 for desiredlang in $desiredlanguages; do
10396 # Use the presentlang catalog if desiredlang is
10397 # a. equal to presentlang, or
10398 # b. a variant of presentlang (because in this case,
10399 # presentlang can be used as a fallback for messages
10400 # which are not translated in the desiredlang catalog).
10401 case "$desiredlang" in
10402 "$presentlang"*) useit=yes;;
10405 if test $useit = yes; then
10406 INST_LINGUAS="$INST_LINGUAS $presentlang"
10411 if test -n "$INST_LINGUAS"; then
10412 for lang in $INST_LINGUAS; do
10413 CATALOGS="$CATALOGS $lang.gmo"
10416 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
10417 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"
10418 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
10419 if test -f "$f"; then
10421 *.orig | *.bak | *~) ;;
10422 *) cat "$f" >> "$ac_dir/Makefile" ;;
10437 ac_clean_files=$ac_clean_files_save
10439 test $ac_write_fail = 0 ||
10440 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
10443 # configure is writing to config.log, and then calls config.status.
10444 # config.status does its own redirection, appending to config.log.
10445 # Unfortunately, on DOS this fails, as config.log is still kept open
10446 # by configure, so config.status won't be able to write to it; its
10447 # output is simply discarded. So we exec the FD to /dev/null,
10448 # effectively closing config.log, so it can be properly (re)opened and
10449 # appended to by config.status. When coming back to configure, we
10450 # need to make the FD available again.
10451 if test "$no_create" != yes; then
10453 ac_config_status_args=
10454 test "$silent" = yes &&
10455 ac_config_status_args="$ac_config_status_args --quiet"
10457 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10459 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10460 # would make configure fail if this is the last instruction.
10461 $ac_cs_success || as_fn_exit 1
10463 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
10464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10465 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}