2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for psensor 0.6.2.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.6.2.x'
564 PACKAGE_STRING='psensor 0.6.2.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
675 XGETTEXT_EXTRA_OPTIONS
683 GETTEXT_MACRO_VERSION
716 INSTALL_STRIP_PROGRAM
758 program_transform_name
771 enable_option_checking
772 enable_dependency_tracking
782 ac_precious_vars='build_alias
819 # Initialize some variables set by options.
821 ac_init_version=false
822 ac_unrecognized_opts=
824 # The variables have the same names as the options, with
825 # dashes changed to underlines.
833 program_transform_name=s,x,x,
841 # Installation directory options.
842 # These are left unexpanded so users can "make install exec_prefix=/foo"
843 # and all the variables that are supposed to be based on exec_prefix
844 # by default will actually change.
845 # Use braces instead of parens because sh, perl, etc. also accept them.
846 # (The list follows the same order as the GNU Coding Standards.)
847 bindir='${exec_prefix}/bin'
848 sbindir='${exec_prefix}/sbin'
849 libexecdir='${exec_prefix}/libexec'
850 datarootdir='${prefix}/share'
851 datadir='${datarootdir}'
852 sysconfdir='${prefix}/etc'
853 sharedstatedir='${prefix}/com'
854 localstatedir='${prefix}/var'
855 includedir='${prefix}/include'
856 oldincludedir='/usr/include'
857 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
858 infodir='${datarootdir}/info'
863 libdir='${exec_prefix}/lib'
864 localedir='${datarootdir}/locale'
865 mandir='${datarootdir}/man'
871 # If the previous option needs an argument, assign it.
872 if test -n "$ac_prev"; then
873 eval $ac_prev=\$ac_option
879 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
884 # Accept the important Cygnus configure options, so we can diagnose typos.
886 case $ac_dashdash$ac_option in
890 -bindir | --bindir | --bindi | --bind | --bin | --bi)
892 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
895 -build | --build | --buil | --bui | --bu)
896 ac_prev=build_alias ;;
897 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
898 build_alias=$ac_optarg ;;
900 -cache-file | --cache-file | --cache-fil | --cache-fi \
901 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
902 ac_prev=cache_file ;;
903 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
904 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
905 cache_file=$ac_optarg ;;
908 cache_file=config.cache ;;
910 -datadir | --datadir | --datadi | --datad)
912 -datadir=* | --datadir=* | --datadi=* | --datad=*)
913 datadir=$ac_optarg ;;
915 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
916 | --dataroo | --dataro | --datar)
917 ac_prev=datarootdir ;;
918 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
919 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
920 datarootdir=$ac_optarg ;;
922 -disable-* | --disable-*)
923 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
924 # Reject names that are not valid shell variable names.
925 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
926 as_fn_error $? "invalid feature name: $ac_useropt"
927 ac_useropt_orig=$ac_useropt
928 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
929 case $ac_user_opts in
933 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
934 ac_unrecognized_sep=', ';;
936 eval enable_$ac_useropt=no ;;
938 -docdir | --docdir | --docdi | --doc | --do)
940 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
943 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
945 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
948 -enable-* | --enable-*)
949 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
950 # Reject names that are not valid shell variable names.
951 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
952 as_fn_error $? "invalid feature name: $ac_useropt"
953 ac_useropt_orig=$ac_useropt
954 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
955 case $ac_user_opts in
959 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
960 ac_unrecognized_sep=', ';;
962 eval enable_$ac_useropt=\$ac_optarg ;;
964 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
965 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
966 | --exec | --exe | --ex)
967 ac_prev=exec_prefix ;;
968 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
969 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
970 | --exec=* | --exe=* | --ex=*)
971 exec_prefix=$ac_optarg ;;
973 -gas | --gas | --ga | --g)
974 # Obsolete; use --with-gas.
977 -help | --help | --hel | --he | -h)
979 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
980 ac_init_help=recursive ;;
981 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
982 ac_init_help=short ;;
984 -host | --host | --hos | --ho)
985 ac_prev=host_alias ;;
986 -host=* | --host=* | --hos=* | --ho=*)
987 host_alias=$ac_optarg ;;
989 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
991 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
993 htmldir=$ac_optarg ;;
995 -includedir | --includedir | --includedi | --included | --include \
996 | --includ | --inclu | --incl | --inc)
997 ac_prev=includedir ;;
998 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
999 | --includ=* | --inclu=* | --incl=* | --inc=*)
1000 includedir=$ac_optarg ;;
1002 -infodir | --infodir | --infodi | --infod | --info | --inf)
1004 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1005 infodir=$ac_optarg ;;
1007 -libdir | --libdir | --libdi | --libd)
1009 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1010 libdir=$ac_optarg ;;
1012 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1013 | --libexe | --libex | --libe)
1014 ac_prev=libexecdir ;;
1015 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1016 | --libexe=* | --libex=* | --libe=*)
1017 libexecdir=$ac_optarg ;;
1019 -localedir | --localedir | --localedi | --localed | --locale)
1020 ac_prev=localedir ;;
1021 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1022 localedir=$ac_optarg ;;
1024 -localstatedir | --localstatedir | --localstatedi | --localstated \
1025 | --localstate | --localstat | --localsta | --localst | --locals)
1026 ac_prev=localstatedir ;;
1027 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1028 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1029 localstatedir=$ac_optarg ;;
1031 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1033 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1034 mandir=$ac_optarg ;;
1036 -nfp | --nfp | --nf)
1037 # Obsolete; use --without-fp.
1040 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1041 | --no-cr | --no-c | -n)
1044 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1045 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1048 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1049 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1050 | --oldin | --oldi | --old | --ol | --o)
1051 ac_prev=oldincludedir ;;
1052 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1053 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1054 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1055 oldincludedir=$ac_optarg ;;
1057 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1059 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1060 prefix=$ac_optarg ;;
1062 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1063 | --program-pre | --program-pr | --program-p)
1064 ac_prev=program_prefix ;;
1065 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1066 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1067 program_prefix=$ac_optarg ;;
1069 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1070 | --program-suf | --program-su | --program-s)
1071 ac_prev=program_suffix ;;
1072 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1073 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1074 program_suffix=$ac_optarg ;;
1076 -program-transform-name | --program-transform-name \
1077 | --program-transform-nam | --program-transform-na \
1078 | --program-transform-n | --program-transform- \
1079 | --program-transform | --program-transfor \
1080 | --program-transfo | --program-transf \
1081 | --program-trans | --program-tran \
1082 | --progr-tra | --program-tr | --program-t)
1083 ac_prev=program_transform_name ;;
1084 -program-transform-name=* | --program-transform-name=* \
1085 | --program-transform-nam=* | --program-transform-na=* \
1086 | --program-transform-n=* | --program-transform-=* \
1087 | --program-transform=* | --program-transfor=* \
1088 | --program-transfo=* | --program-transf=* \
1089 | --program-trans=* | --program-tran=* \
1090 | --progr-tra=* | --program-tr=* | --program-t=*)
1091 program_transform_name=$ac_optarg ;;
1093 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1095 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1096 pdfdir=$ac_optarg ;;
1098 -psdir | --psdir | --psdi | --psd | --ps)
1100 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1103 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1104 | -silent | --silent | --silen | --sile | --sil)
1107 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1109 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1111 sbindir=$ac_optarg ;;
1113 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1114 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1115 | --sharedst | --shareds | --shared | --share | --shar \
1117 ac_prev=sharedstatedir ;;
1118 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1119 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1120 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1122 sharedstatedir=$ac_optarg ;;
1124 -site | --site | --sit)
1126 -site=* | --site=* | --sit=*)
1129 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1131 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1132 srcdir=$ac_optarg ;;
1134 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1135 | --syscon | --sysco | --sysc | --sys | --sy)
1136 ac_prev=sysconfdir ;;
1137 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1138 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1139 sysconfdir=$ac_optarg ;;
1141 -target | --target | --targe | --targ | --tar | --ta | --t)
1142 ac_prev=target_alias ;;
1143 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1144 target_alias=$ac_optarg ;;
1146 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1149 -version | --version | --versio | --versi | --vers | -V)
1150 ac_init_version=: ;;
1153 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1154 # Reject names that are not valid shell variable names.
1155 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1156 as_fn_error $? "invalid package name: $ac_useropt"
1157 ac_useropt_orig=$ac_useropt
1158 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1159 case $ac_user_opts in
1163 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1164 ac_unrecognized_sep=', ';;
1166 eval with_$ac_useropt=\$ac_optarg ;;
1168 -without-* | --without-*)
1169 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
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--without-$ac_useropt_orig"
1180 ac_unrecognized_sep=', ';;
1182 eval with_$ac_useropt=no ;;
1185 # Obsolete; use --with-x.
1188 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1189 | --x-incl | --x-inc | --x-in | --x-i)
1190 ac_prev=x_includes ;;
1191 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1192 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1193 x_includes=$ac_optarg ;;
1195 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1196 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1197 ac_prev=x_libraries ;;
1198 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1199 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1200 x_libraries=$ac_optarg ;;
1202 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1203 Try \`$0 --help' for more information"
1207 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1208 # Reject names that are not valid shell variable names.
1209 case $ac_envvar in #(
1210 '' | [0-9]* | *[!_$as_cr_alnum]* )
1211 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1213 eval $ac_envvar=\$ac_optarg
1214 export $ac_envvar ;;
1217 # FIXME: should be removed in autoconf 3.0.
1218 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1219 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1220 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1221 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1227 if test -n "$ac_prev"; then
1228 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1229 as_fn_error $? "missing argument to $ac_option"
1232 if test -n "$ac_unrecognized_opts"; then
1233 case $enable_option_checking in
1235 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1236 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1240 # Check all directory arguments for consistency.
1241 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1242 datadir sysconfdir sharedstatedir localstatedir includedir \
1243 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1244 libdir localedir mandir
1246 eval ac_val=\$$ac_var
1247 # Remove trailing slashes.
1250 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1251 eval $ac_var=\$ac_val;;
1253 # Be sure to have absolute directory names.
1255 [\\/$]* | ?:[\\/]* ) continue;;
1256 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1258 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1261 # There might be people who depend on the old broken behavior: `$host'
1262 # used to hold the argument of --host etc.
1263 # FIXME: To remove some day.
1266 target=$target_alias
1268 # FIXME: To remove some day.
1269 if test "x$host_alias" != x; then
1270 if test "x$build_alias" = x; then
1271 cross_compiling=maybe
1272 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1273 If a cross compiler is detected then cross compile mode will be used" >&2
1274 elif test "x$build_alias" != "x$host_alias"; then
1280 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1282 test "$silent" = yes && exec 6>/dev/null
1285 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1286 ac_ls_di=`ls -di .` &&
1287 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1288 as_fn_error $? "working directory cannot be determined"
1289 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1290 as_fn_error $? "pwd does not report name of working directory"
1293 # Find the source files, if location was not specified.
1294 if test -z "$srcdir"; then
1295 ac_srcdir_defaulted=yes
1296 # Try the directory containing this script, then the parent directory.
1297 ac_confdir=`$as_dirname -- "$as_myself" ||
1298 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1299 X"$as_myself" : 'X\(//\)[^/]' \| \
1300 X"$as_myself" : 'X\(//\)$' \| \
1301 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1302 $as_echo X"$as_myself" |
1303 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1321 if test ! -r "$srcdir/$ac_unique_file"; then
1325 ac_srcdir_defaulted=no
1327 if test ! -r "$srcdir/$ac_unique_file"; then
1328 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1329 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1331 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1333 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1335 # When building in place, set srcdir=.
1336 if test "$ac_abs_confdir" = "$ac_pwd"; then
1339 # Remove unnecessary trailing slashes from srcdir.
1340 # Double slashes in file names in object file debugging info
1341 # mess up M-x gdb in Emacs.
1343 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1345 for ac_var in $ac_precious_vars; do
1346 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1347 eval ac_env_${ac_var}_value=\$${ac_var}
1348 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1349 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1353 # Report the --help message.
1355 if test "$ac_init_help" = "long"; then
1356 # Omit some internal or obsolete options to make the list less imposing.
1357 # This message is too long to be a string in the A/UX 3.1 sh.
1359 \`configure' configures psensor 0.6.2.x to adapt to many kinds of systems.
1361 Usage: $0 [OPTION]... [VAR=VALUE]...
1363 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1364 VAR=VALUE. See below for descriptions of some of the useful variables.
1366 Defaults for the options are specified in brackets.
1369 -h, --help display this help and exit
1370 --help=short display options specific to this package
1371 --help=recursive display the short help of all the included packages
1372 -V, --version display version information and exit
1373 -q, --quiet, --silent do not print \`checking ...' messages
1374 --cache-file=FILE cache test results in FILE [disabled]
1375 -C, --config-cache alias for \`--cache-file=config.cache'
1376 -n, --no-create do not create output files
1377 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1379 Installation directories:
1380 --prefix=PREFIX install architecture-independent files in PREFIX
1381 [$ac_default_prefix]
1382 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1385 By default, \`make install' will install all the files in
1386 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1387 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1388 for instance \`--prefix=\$HOME'.
1390 For better control, use the options below.
1392 Fine tuning of the installation directories:
1393 --bindir=DIR user executables [EPREFIX/bin]
1394 --sbindir=DIR system admin executables [EPREFIX/sbin]
1395 --libexecdir=DIR program executables [EPREFIX/libexec]
1396 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1397 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1398 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1399 --libdir=DIR object code libraries [EPREFIX/lib]
1400 --includedir=DIR C header files [PREFIX/include]
1401 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1402 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1403 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1404 --infodir=DIR info documentation [DATAROOTDIR/info]
1405 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1406 --mandir=DIR man documentation [DATAROOTDIR/man]
1407 --docdir=DIR documentation root [DATAROOTDIR/doc/psensor]
1408 --htmldir=DIR html documentation [DOCDIR]
1409 --dvidir=DIR dvi documentation [DOCDIR]
1410 --pdfdir=DIR pdf documentation [DOCDIR]
1411 --psdir=DIR ps documentation [DOCDIR]
1417 --program-prefix=PREFIX prepend PREFIX to installed program names
1418 --program-suffix=SUFFIX append SUFFIX to installed program names
1419 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1422 --x-includes=DIR X include files are in DIR
1423 --x-libraries=DIR X library files are in DIR
1426 --build=BUILD configure for building on BUILD [guessed]
1427 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1431 if test -n "$ac_init_help"; then
1432 case $ac_init_help in
1433 short | recursive ) echo "Configuration of psensor 0.6.2.x:";;
1438 --disable-option-checking ignore unrecognized --enable/--with options
1439 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1440 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1441 --disable-dependency-tracking speeds up one-time build
1442 --enable-dependency-tracking do not reject slow dependency extractors
1443 --disable-nls do not use Native Language Support
1444 --disable-rpath do not hardcode runtime library paths
1447 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1448 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1449 --with-x use the X Window System
1450 --with-gnu-ld assume the C compiler uses GNU ld default=no
1451 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1452 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1453 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1454 --without-libintl-prefix don't search for libintl in includedir and libdir
1455 --with-libatiadl=DIR use libatiadlxx in DIR
1456 --with-gtop=yes|no use gtop
1458 Some influential environment variables:
1459 CC C compiler command
1460 CFLAGS C compiler flags
1461 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1462 nonstandard directory <lib dir>
1463 LIBS libraries to pass to the linker, e.g. -l<library>
1464 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1465 you have headers in a nonstandard directory <include dir>
1466 XMKMF Path to xmkmf, Makefile generator for X Window System
1468 PKG_CONFIG path to pkg-config utility
1470 directories to add to pkg-config's search path
1472 path overriding pkg-config's built-in search path
1473 X11_CFLAGS C compiler flags for X11, overriding pkg-config
1474 X11_LIBS linker flags for X11, overriding pkg-config
1475 XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
1476 XEXT_LIBS linker flags for XEXT, overriding pkg-config
1477 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config
1478 GTK_LIBS linker flags for GTK, overriding pkg-config
1480 C compiler flags for GCONF, overriding pkg-config
1481 GCONF_LIBS linker flags for GCONF, overriding pkg-config
1483 C compiler flags for LIBNOTIFY, overriding pkg-config
1485 linker flags for LIBNOTIFY, overriding pkg-config
1487 C compiler flags for APPINDICATOR, overriding pkg-config
1489 linker flags for APPINDICATOR, overriding pkg-config
1490 CURL_CFLAGS C compiler flags for CURL, overriding pkg-config
1491 CURL_LIBS linker flags for CURL, overriding pkg-config
1492 JSON_CFLAGS C compiler flags for JSON, overriding pkg-config
1493 JSON_LIBS linker flags for JSON, overriding pkg-config
1495 C compiler flags for UNITY, overriding pkg-config
1496 UNITY_LIBS linker flags for UNITY, overriding pkg-config
1497 LIBMICROHTTPD_CFLAGS
1498 C compiler flags for LIBMICROHTTPD, overriding pkg-config
1500 linker flags for LIBMICROHTTPD, overriding pkg-config
1501 GTOP_CFLAGS C compiler flags for GTOP, overriding pkg-config
1502 GTOP_LIBS linker flags for GTOP, overriding pkg-config
1504 Use these variables to override the choices made by `configure' or to help
1505 it to find libraries and programs with nonstandard names/locations.
1507 Report bugs to <jeanfi@gmail.com>.
1508 psensor home page: <http://wpitchoune.net/psensor>.
1513 if test "$ac_init_help" = "recursive"; then
1514 # If there are subdirs, report their specific --help.
1515 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1516 test -d "$ac_dir" ||
1517 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1522 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1524 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1525 # A ".." for each directory in $ac_dir_suffix.
1526 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1527 case $ac_top_builddir_sub in
1528 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1529 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1532 ac_abs_top_builddir=$ac_pwd
1533 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1534 # for backward compatibility:
1535 ac_top_builddir=$ac_top_build_prefix
1538 .) # We are building in place.
1540 ac_top_srcdir=$ac_top_builddir_sub
1541 ac_abs_top_srcdir=$ac_pwd ;;
1542 [\\/]* | ?:[\\/]* ) # Absolute name.
1543 ac_srcdir=$srcdir$ac_dir_suffix;
1544 ac_top_srcdir=$srcdir
1545 ac_abs_top_srcdir=$srcdir ;;
1547 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1548 ac_top_srcdir=$ac_top_build_prefix$srcdir
1549 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1551 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1553 cd "$ac_dir" || { ac_status=$?; continue; }
1554 # Check for guested configure.
1555 if test -f "$ac_srcdir/configure.gnu"; then
1557 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1558 elif test -f "$ac_srcdir/configure"; then
1560 $SHELL "$ac_srcdir/configure" --help=recursive
1562 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1564 cd "$ac_pwd" || { ac_status=$?; break; }
1568 test -n "$ac_init_help" && exit $ac_status
1569 if $ac_init_version; then
1571 psensor configure 0.6.2.x
1572 generated by GNU Autoconf 2.68
1574 Copyright (C) 2010 Free Software Foundation, Inc.
1575 This configure script is free software; the Free Software Foundation
1576 gives unlimited permission to copy, distribute and modify it.
1581 ## ------------------------ ##
1582 ## Autoconf initialization. ##
1583 ## ------------------------ ##
1585 # ac_fn_c_try_compile LINENO
1586 # --------------------------
1587 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1588 ac_fn_c_try_compile ()
1590 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1591 rm -f conftest.$ac_objext
1592 if { { ac_try="$ac_compile"
1594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1595 *) ac_try_echo=$ac_try;;
1597 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1598 $as_echo "$ac_try_echo"; } >&5
1599 (eval "$ac_compile") 2>conftest.err
1601 if test -s conftest.err; then
1602 grep -v '^ *+' conftest.err >conftest.er1
1603 cat conftest.er1 >&5
1604 mv -f conftest.er1 conftest.err
1606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1607 test $ac_status = 0; } && {
1608 test -z "$ac_c_werror_flag" ||
1609 test ! -s conftest.err
1610 } && test -s conftest.$ac_objext; then :
1613 $as_echo "$as_me: failed program was:" >&5
1614 sed 's/^/| /' conftest.$ac_ext >&5
1618 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1619 as_fn_set_status $ac_retval
1621 } # ac_fn_c_try_compile
1623 # ac_fn_c_try_cpp LINENO
1624 # ----------------------
1625 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1628 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1629 if { { ac_try="$ac_cpp conftest.$ac_ext"
1631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1632 *) ac_try_echo=$ac_try;;
1634 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1635 $as_echo "$ac_try_echo"; } >&5
1636 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1638 if test -s conftest.err; then
1639 grep -v '^ *+' conftest.err >conftest.er1
1640 cat conftest.er1 >&5
1641 mv -f conftest.er1 conftest.err
1643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1644 test $ac_status = 0; } > conftest.i && {
1645 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1646 test ! -s conftest.err
1650 $as_echo "$as_me: failed program was:" >&5
1651 sed 's/^/| /' conftest.$ac_ext >&5
1655 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1656 as_fn_set_status $ac_retval
1660 # ac_fn_c_try_link LINENO
1661 # -----------------------
1662 # Try to link conftest.$ac_ext, and return whether this succeeded.
1665 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1666 rm -f conftest.$ac_objext conftest$ac_exeext
1667 if { { ac_try="$ac_link"
1669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1670 *) ac_try_echo=$ac_try;;
1672 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1673 $as_echo "$ac_try_echo"; } >&5
1674 (eval "$ac_link") 2>conftest.err
1676 if test -s conftest.err; then
1677 grep -v '^ *+' conftest.err >conftest.er1
1678 cat conftest.er1 >&5
1679 mv -f conftest.er1 conftest.err
1681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1682 test $ac_status = 0; } && {
1683 test -z "$ac_c_werror_flag" ||
1684 test ! -s conftest.err
1685 } && test -s conftest$ac_exeext && {
1686 test "$cross_compiling" = yes ||
1687 $as_test_x conftest$ac_exeext
1691 $as_echo "$as_me: failed program was:" >&5
1692 sed 's/^/| /' conftest.$ac_ext >&5
1696 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1697 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1698 # interfere with the next link command; also delete a directory that is
1699 # left behind by Apple's compiler. We do this before executing the actions.
1700 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1701 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1702 as_fn_set_status $ac_retval
1704 } # ac_fn_c_try_link
1706 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1707 # -------------------------------------------------------
1708 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1709 # the include files in INCLUDES and setting the cache variable VAR
1711 ac_fn_c_check_header_mongrel ()
1713 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1714 if eval \${$3+:} false; then :
1715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1716 $as_echo_n "checking for $2... " >&6; }
1717 if eval \${$3+:} false; then :
1718 $as_echo_n "(cached) " >&6
1721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1722 $as_echo "$ac_res" >&6; }
1724 # Is the header compilable?
1725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1726 $as_echo_n "checking $2 usability... " >&6; }
1727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1728 /* end confdefs.h. */
1732 if ac_fn_c_try_compile "$LINENO"; then :
1733 ac_header_compiler=yes
1735 ac_header_compiler=no
1737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1739 $as_echo "$ac_header_compiler" >&6; }
1741 # Is the header present?
1742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1743 $as_echo_n "checking $2 presence... " >&6; }
1744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1745 /* end confdefs.h. */
1748 if ac_fn_c_try_cpp "$LINENO"; then :
1749 ac_header_preproc=yes
1751 ac_header_preproc=no
1753 rm -f conftest.err conftest.i conftest.$ac_ext
1754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1755 $as_echo "$ac_header_preproc" >&6; }
1757 # So? What about this header?
1758 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1761 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1763 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1767 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1769 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1771 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1773 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1775 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1776 ( $as_echo "## ------------------------------- ##
1777 ## Report this to jeanfi@gmail.com ##
1778 ## ------------------------------- ##"
1779 ) | sed "s/^/$as_me: WARNING: /" >&2
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1783 $as_echo_n "checking for $2... " >&6; }
1784 if eval \${$3+:} false; then :
1785 $as_echo_n "(cached) " >&6
1787 eval "$3=\$ac_header_compiler"
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1791 $as_echo "$ac_res" >&6; }
1793 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1795 } # ac_fn_c_check_header_mongrel
1797 # ac_fn_c_try_run LINENO
1798 # ----------------------
1799 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1800 # that executables *can* be run.
1803 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1804 if { { ac_try="$ac_link"
1806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1807 *) ac_try_echo=$ac_try;;
1809 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1810 $as_echo "$ac_try_echo"; } >&5
1811 (eval "$ac_link") 2>&5
1813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1814 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1815 { { case "(($ac_try" in
1816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1817 *) ac_try_echo=$ac_try;;
1819 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1820 $as_echo "$ac_try_echo"; } >&5
1821 (eval "$ac_try") 2>&5
1823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1824 test $ac_status = 0; }; }; then :
1827 $as_echo "$as_me: program exited with status $ac_status" >&5
1828 $as_echo "$as_me: failed program was:" >&5
1829 sed 's/^/| /' conftest.$ac_ext >&5
1831 ac_retval=$ac_status
1833 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1834 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1835 as_fn_set_status $ac_retval
1839 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1840 # -------------------------------------------------------
1841 # Tests whether HEADER exists and can be compiled using the include files in
1842 # INCLUDES, setting the cache variable VAR accordingly.
1843 ac_fn_c_check_header_compile ()
1845 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1847 $as_echo_n "checking for $2... " >&6; }
1848 if eval \${$3+:} false; then :
1849 $as_echo_n "(cached) " >&6
1851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1852 /* end confdefs.h. */
1856 if ac_fn_c_try_compile "$LINENO"; then :
1861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1865 $as_echo "$ac_res" >&6; }
1866 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1868 } # ac_fn_c_check_header_compile
1870 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1871 # -------------------------------------------
1872 # Tests whether TYPE exists after having included INCLUDES, setting cache
1873 # variable VAR accordingly.
1874 ac_fn_c_check_type ()
1876 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1878 $as_echo_n "checking for $2... " >&6; }
1879 if eval \${$3+:} false; then :
1880 $as_echo_n "(cached) " >&6
1883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1884 /* end confdefs.h. */
1895 if ac_fn_c_try_compile "$LINENO"; then :
1896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1897 /* end confdefs.h. */
1908 if ac_fn_c_try_compile "$LINENO"; then :
1913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1919 $as_echo "$ac_res" >&6; }
1920 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1922 } # ac_fn_c_check_type
1924 # ac_fn_c_check_func LINENO FUNC VAR
1925 # ----------------------------------
1926 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1927 ac_fn_c_check_func ()
1929 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1931 $as_echo_n "checking for $2... " >&6; }
1932 if eval \${$3+:} false; then :
1933 $as_echo_n "(cached) " >&6
1935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1936 /* end confdefs.h. */
1937 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1938 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1939 #define $2 innocuous_$2
1941 /* System header to define __stub macros and hopefully few prototypes,
1942 which can conflict with char $2 (); below.
1943 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1944 <limits.h> exists even on freestanding compilers. */
1947 # include <limits.h>
1949 # include <assert.h>
1954 /* Override any GCC internal prototype to avoid an error.
1955 Use char because int might match the return type of a GCC
1956 builtin and then its argument prototype would still apply. */
1961 /* The GNU C library defines this for functions which it implements
1962 to always fail with ENOSYS. Some functions are actually named
1963 something starting with __ and the normal name is an alias. */
1964 #if defined __stub_$2 || defined __stub___$2
1976 if ac_fn_c_try_link "$LINENO"; then :
1981 rm -f core conftest.err conftest.$ac_objext \
1982 conftest$ac_exeext conftest.$ac_ext
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1986 $as_echo "$ac_res" >&6; }
1987 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1989 } # ac_fn_c_check_func
1990 cat >config.log <<_ACEOF
1991 This file contains any messages produced by compilers while
1992 running configure, to aid debugging if configure makes a mistake.
1994 It was created by psensor $as_me 0.6.2.x, which was
1995 generated by GNU Autoconf 2.68. Invocation command line was
2007 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2008 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2009 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2010 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2011 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2013 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2014 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2016 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2017 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2018 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2019 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2020 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2021 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2022 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2030 test -z "$as_dir" && as_dir=.
2031 $as_echo "PATH: $as_dir"
2047 # Keep a trace of the command line.
2048 # Strip out --no-create and --no-recursion so they do not pile up.
2049 # Strip out --silent because we don't want to record it for future runs.
2050 # Also quote any args containing shell meta-characters.
2051 # Make two passes to allow for proper duplicate-argument suppression.
2055 ac_must_keep_next=false
2061 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2062 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2063 | -silent | --silent | --silen | --sile | --sil)
2066 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2069 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2071 as_fn_append ac_configure_args1 " '$ac_arg'"
2072 if test $ac_must_keep_next = true; then
2073 ac_must_keep_next=false # Got value, back to normal.
2076 *=* | --config-cache | -C | -disable-* | --disable-* \
2077 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2078 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2079 | -with-* | --with-* | -without-* | --without-* | --x)
2080 case "$ac_configure_args0 " in
2081 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2084 -* ) ac_must_keep_next=true ;;
2087 as_fn_append ac_configure_args " '$ac_arg'"
2092 { ac_configure_args0=; unset ac_configure_args0;}
2093 { ac_configure_args1=; unset ac_configure_args1;}
2095 # When interrupted or exit'd, cleanup temporary files, and complete
2096 # config.log. We remove comments because anyway the quotes in there
2097 # would cause problems or look ugly.
2098 # WARNING: Use '\'' to represent an apostrophe within the trap.
2099 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2100 trap 'exit_status=$?
2101 # Save into config.log some information that might help in debugging.
2105 $as_echo "## ---------------- ##
2106 ## Cache variables. ##
2107 ## ---------------- ##"
2109 # The following way of writing the cache mishandles newlines in values,
2111 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2112 eval ac_val=\$$ac_var
2116 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2117 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2120 _ | IFS | as_nl) ;; #(
2121 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2122 *) { eval $ac_var=; unset $ac_var;} ;;
2127 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2128 *${as_nl}ac_space=\ *)
2130 "s/'\''/'\''\\\\'\'''\''/g;
2131 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2134 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2141 $as_echo "## ----------------- ##
2142 ## Output variables. ##
2143 ## ----------------- ##"
2145 for ac_var in $ac_subst_vars
2147 eval ac_val=\$$ac_var
2149 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2151 $as_echo "$ac_var='\''$ac_val'\''"
2155 if test -n "$ac_subst_files"; then
2156 $as_echo "## ------------------- ##
2157 ## File substitutions. ##
2158 ## ------------------- ##"
2160 for ac_var in $ac_subst_files
2162 eval ac_val=\$$ac_var
2164 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2166 $as_echo "$ac_var='\''$ac_val'\''"
2171 if test -s confdefs.h; then
2172 $as_echo "## ----------- ##
2179 test "$ac_signal" != 0 &&
2180 $as_echo "$as_me: caught signal $ac_signal"
2181 $as_echo "$as_me: exit $exit_status"
2183 rm -f core *.core core.conftest.* &&
2184 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2187 for ac_signal in 1 2 13 15; do
2188 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2192 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2193 rm -f -r conftest* confdefs.h
2195 $as_echo "/* confdefs.h */" > confdefs.h
2197 # Predefined preprocessor variables.
2199 cat >>confdefs.h <<_ACEOF
2200 #define PACKAGE_NAME "$PACKAGE_NAME"
2203 cat >>confdefs.h <<_ACEOF
2204 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2207 cat >>confdefs.h <<_ACEOF
2208 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2211 cat >>confdefs.h <<_ACEOF
2212 #define PACKAGE_STRING "$PACKAGE_STRING"
2215 cat >>confdefs.h <<_ACEOF
2216 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2219 cat >>confdefs.h <<_ACEOF
2220 #define PACKAGE_URL "$PACKAGE_URL"
2224 # Let the site file select an alternate cache file if it wants to.
2225 # Prefer an explicitly selected file to automatically selected ones.
2228 if test -n "$CONFIG_SITE"; then
2229 # We do not want a PATH search for config.site.
2230 case $CONFIG_SITE in #((
2231 -*) ac_site_file1=./$CONFIG_SITE;;
2232 */*) ac_site_file1=$CONFIG_SITE;;
2233 *) ac_site_file1=./$CONFIG_SITE;;
2235 elif test "x$prefix" != xNONE; then
2236 ac_site_file1=$prefix/share/config.site
2237 ac_site_file2=$prefix/etc/config.site
2239 ac_site_file1=$ac_default_prefix/share/config.site
2240 ac_site_file2=$ac_default_prefix/etc/config.site
2242 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2244 test "x$ac_site_file" = xNONE && continue
2245 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2247 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2248 sed 's/^/| /' "$ac_site_file" >&5
2250 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2251 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2252 as_fn_error $? "failed to load site script $ac_site_file
2253 See \`config.log' for more details" "$LINENO" 5; }
2257 if test -r "$cache_file"; then
2258 # Some versions of bash will fail to source /dev/null (special files
2259 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2260 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2262 $as_echo "$as_me: loading cache $cache_file" >&6;}
2264 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2265 *) . "./$cache_file";;
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2270 $as_echo "$as_me: creating cache $cache_file" >&6;}
2274 gt_needs="$gt_needs "
2275 # Check that the precious variables saved in the cache have kept the same
2277 ac_cache_corrupted=false
2278 for ac_var in $ac_precious_vars; do
2279 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2280 eval ac_new_set=\$ac_env_${ac_var}_set
2281 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2282 eval ac_new_val=\$ac_env_${ac_var}_value
2283 case $ac_old_set,$ac_new_set in
2285 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2286 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2287 ac_cache_corrupted=: ;;
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2290 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2291 ac_cache_corrupted=: ;;
2294 if test "x$ac_old_val" != "x$ac_new_val"; then
2295 # differences in whitespace do not lead to failure.
2296 ac_old_val_w=`echo x $ac_old_val`
2297 ac_new_val_w=`echo x $ac_new_val`
2298 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2299 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2300 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2301 ac_cache_corrupted=:
2303 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2304 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2305 eval $ac_var=\$ac_old_val
2307 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2308 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2310 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2313 # Pass precious variables to config.status.
2314 if test "$ac_new_set" = set; then
2316 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2317 *) ac_arg=$ac_var=$ac_new_val ;;
2319 case " $ac_configure_args " in
2320 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2321 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2325 if $ac_cache_corrupted; then
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2327 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2329 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2330 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2332 ## -------------------- ##
2333 ## Main body of script. ##
2334 ## -------------------- ##
2337 ac_cpp='$CPP $CPPFLAGS'
2338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2344 am__api_version='1.11'
2347 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2348 if test -f "$ac_dir/install-sh"; then
2350 ac_install_sh="$ac_aux_dir/install-sh -c"
2352 elif test -f "$ac_dir/install.sh"; then
2354 ac_install_sh="$ac_aux_dir/install.sh -c"
2356 elif test -f "$ac_dir/shtool"; then
2358 ac_install_sh="$ac_aux_dir/shtool install -c"
2362 if test -z "$ac_aux_dir"; then
2363 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2366 # These three variables are undocumented and unsupported,
2367 # and are intended to be withdrawn in a future Autoconf release.
2368 # They can cause serious problems if a builder's source tree is in a directory
2369 # whose full name contains unusual characters.
2370 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2371 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2372 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2375 # Find a good install program. We prefer a C program (faster),
2376 # so one script is as good as another. But avoid the broken or
2377 # incompatible versions:
2378 # SysV /etc/install, /usr/sbin/install
2379 # SunOS /usr/etc/install
2380 # IRIX /sbin/install
2382 # AmigaOS /C/install, which installs bootblocks on floppy discs
2383 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2384 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2385 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2386 # OS/2's system install, which has a completely different semantic
2387 # ./install, which can be erroneously created by make from ./install.sh.
2388 # Reject install programs that cannot install multiple files.
2389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2390 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2391 if test -z "$INSTALL"; then
2392 if ${ac_cv_path_install+:} false; then :
2393 $as_echo_n "(cached) " >&6
2395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2399 test -z "$as_dir" && as_dir=.
2400 # Account for people who put trailing slashes in PATH elements.
2401 case $as_dir/ in #((
2402 ./ | .// | /[cC]/* | \
2403 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2404 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2407 # OSF1 and SCO ODT 3.0 have their own names for install.
2408 # Don't use installbsd from OSF since it installs stuff as root
2410 for ac_prog in ginstall scoinst install; do
2411 for ac_exec_ext in '' $ac_executable_extensions; do
2412 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2413 if test $ac_prog = install &&
2414 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2415 # AIX install. It has an incompatible calling convention.
2417 elif test $ac_prog = install &&
2418 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2419 # program-specific install script used by HP pwplus--don't use.
2422 rm -rf conftest.one conftest.two conftest.dir
2423 echo one > conftest.one
2424 echo two > conftest.two
2426 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2427 test -s conftest.one && test -s conftest.two &&
2428 test -s conftest.dir/conftest.one &&
2429 test -s conftest.dir/conftest.two
2431 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2444 rm -rf conftest.one conftest.two conftest.dir
2447 if test "${ac_cv_path_install+set}" = set; then
2448 INSTALL=$ac_cv_path_install
2450 # As a last resort, use the slow shell script. Don't cache a
2451 # value for INSTALL within a source directory, because that will
2452 # break other packages using the cache if that directory is
2453 # removed, or if the value is a relative name.
2454 INSTALL=$ac_install_sh
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2458 $as_echo "$INSTALL" >&6; }
2460 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2461 # It thinks the first close brace ends the variable substitution.
2462 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2464 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2466 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2469 $as_echo_n "checking whether build environment is sane... " >&6; }
2472 echo timestamp > conftest.file
2473 # Reject unsafe characters in $srcdir or the absolute working directory
2474 # name. Accept space and tab only in the latter.
2478 *[\\\"\#\$\&\'\`$am_lf]*)
2479 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2482 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2483 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2486 # Do `set' in a subshell so we don't clobber the current shell's
2487 # arguments. Must try -L first in case configure is actually a
2488 # symlink; some systems play weird games with the mod time of symlinks
2489 # (eg FreeBSD returns the mod time of the symlink's containing
2492 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2493 if test "$*" = "X"; then
2495 set X `ls -t "$srcdir/configure" conftest.file`
2498 if test "$*" != "X $srcdir/configure conftest.file" \
2499 && test "$*" != "X conftest.file $srcdir/configure"; then
2501 # If neither matched, then we have a broken ls. This can happen
2502 # if, for instance, CONFIG_SHELL is bash and it inherits a
2503 # broken ls alias from the environment. This has actually
2504 # happened. Such a system could not be considered "sane".
2505 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2506 alias in your environment" "$LINENO" 5
2509 test "$2" = conftest.file
2515 as_fn_error $? "newly created file is older than distributed files!
2516 Check your system clock" "$LINENO" 5
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2519 $as_echo "yes" >&6; }
2520 test "$program_prefix" != NONE &&
2521 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2522 # Use a double $ so make ignores it.
2523 test "$program_suffix" != NONE &&
2524 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2525 # Double any \ or $.
2526 # By default was `s,x,x', remove it if useless.
2527 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2528 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2530 # expand $ac_aux_dir to an absolute path
2531 am_aux_dir=`cd $ac_aux_dir && pwd`
2533 if test x"${MISSING+set}" != xset; then
2536 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2538 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2541 # Use eval to expand $SHELL
2542 if eval "$MISSING --run true"; then
2543 am_missing_run="$MISSING --run "
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2547 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2550 if test x"${install_sh}" != xset; then
2553 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2555 install_sh="\${SHELL} $am_aux_dir/install-sh"
2559 # Installed binaries are usually stripped using `strip' when the user
2560 # run `make install-strip'. However `strip' might not be the right
2561 # tool to use in cross-compilation environments, therefore Automake
2562 # will honor the `STRIP' environment variable to overrule this program.
2563 if test "$cross_compiling" != no; then
2564 if test -n "$ac_tool_prefix"; then
2565 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2566 set dummy ${ac_tool_prefix}strip; ac_word=$2
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2568 $as_echo_n "checking for $ac_word... " >&6; }
2569 if ${ac_cv_prog_STRIP+:} false; then :
2570 $as_echo_n "(cached) " >&6
2572 if test -n "$STRIP"; then
2573 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2579 test -z "$as_dir" && as_dir=.
2580 for ac_exec_ext in '' $ac_executable_extensions; do
2581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2582 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2592 STRIP=$ac_cv_prog_STRIP
2593 if test -n "$STRIP"; then
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2595 $as_echo "$STRIP" >&6; }
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2598 $as_echo "no" >&6; }
2603 if test -z "$ac_cv_prog_STRIP"; then
2605 # Extract the first word of "strip", so it can be a program name with args.
2606 set dummy strip; ac_word=$2
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2608 $as_echo_n "checking for $ac_word... " >&6; }
2609 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2610 $as_echo_n "(cached) " >&6
2612 if test -n "$ac_ct_STRIP"; then
2613 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2619 test -z "$as_dir" && as_dir=.
2620 for ac_exec_ext in '' $ac_executable_extensions; do
2621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2622 ac_cv_prog_ac_ct_STRIP="strip"
2623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2632 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2633 if test -n "$ac_ct_STRIP"; then
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2635 $as_echo "$ac_ct_STRIP" >&6; }
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2638 $as_echo "no" >&6; }
2641 if test "x$ac_ct_STRIP" = x; then
2644 case $cross_compiling:$ac_tool_warned in
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2647 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2648 ac_tool_warned=yes ;;
2653 STRIP="$ac_cv_prog_STRIP"
2657 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2660 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2661 if test -z "$MKDIR_P"; then
2662 if ${ac_cv_path_mkdir+:} false; then :
2663 $as_echo_n "(cached) " >&6
2665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2666 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2669 test -z "$as_dir" && as_dir=.
2670 for ac_prog in mkdir gmkdir; do
2671 for ac_exec_ext in '' $ac_executable_extensions; do
2672 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2673 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2674 'mkdir (GNU coreutils) '* | \
2675 'mkdir (coreutils) '* | \
2676 'mkdir (fileutils) '4.1*)
2677 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2687 test -d ./--version && rmdir ./--version
2688 if test "${ac_cv_path_mkdir+set}" = set; then
2689 MKDIR_P="$ac_cv_path_mkdir -p"
2691 # As a last resort, use the slow shell script. Don't cache a
2692 # value for MKDIR_P within a source directory, because that will
2693 # break other packages using the cache if that directory is
2694 # removed, or if the value is a relative name.
2695 MKDIR_P="$ac_install_sh -d"
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2699 $as_echo "$MKDIR_P" >&6; }
2703 [\\/$]* | ?:[\\/]*) ;;
2704 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2707 for ac_prog in gawk mawk nawk awk
2709 # Extract the first word of "$ac_prog", so it can be a program name with args.
2710 set dummy $ac_prog; ac_word=$2
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2712 $as_echo_n "checking for $ac_word... " >&6; }
2713 if ${ac_cv_prog_AWK+:} false; then :
2714 $as_echo_n "(cached) " >&6
2716 if test -n "$AWK"; then
2717 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2723 test -z "$as_dir" && as_dir=.
2724 for ac_exec_ext in '' $ac_executable_extensions; do
2725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2726 ac_cv_prog_AWK="$ac_prog"
2727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2737 if test -n "$AWK"; then
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2739 $as_echo "$AWK" >&6; }
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2742 $as_echo "no" >&6; }
2746 test -n "$AWK" && break
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2750 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2752 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2753 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2754 $as_echo_n "(cached) " >&6
2756 cat >conftest.make <<\_ACEOF
2759 @echo '@@@%%%=$(MAKE)=@@@%%%'
2761 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2762 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2764 eval ac_cv_prog_make_${ac_make}_set=yes;;
2766 eval ac_cv_prog_make_${ac_make}_set=no;;
2770 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2772 $as_echo "yes" >&6; }
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2776 $as_echo "no" >&6; }
2777 SET_MAKE="MAKE=${MAKE-make}"
2780 rm -rf .tst 2>/dev/null
2781 mkdir .tst 2>/dev/null
2782 if test -d .tst; then
2787 rmdir .tst 2>/dev/null
2789 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2790 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2791 # is not polluted with repeated "-I."
2792 am__isrc=' -I$(srcdir)'
2793 # test to see if srcdir already configured
2794 if test -f $srcdir/config.status; then
2795 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2799 # test whether we have cygpath
2800 if test -z "$CYGPATH_W"; then
2801 if (cygpath --version) >/dev/null 2>/dev/null; then
2802 CYGPATH_W='cygpath -w'
2809 # Define the identity of the package.
2814 cat >>confdefs.h <<_ACEOF
2815 #define PACKAGE "$PACKAGE"
2819 cat >>confdefs.h <<_ACEOF
2820 #define VERSION "$VERSION"
2823 # Some tools Automake needs.
2825 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2828 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2831 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2834 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2837 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2839 # We need awk for the "check" target. The system "awk" is bad on
2841 # Always define AMTAR for backward compatibility. Yes, it's still used
2842 # in the wild :-( We should find a proper way to deprecate it ...
2845 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2853 ac_config_headers="$ac_config_headers config.h"
2856 # Checks for programs.
2858 ac_cpp='$CPP $CPPFLAGS'
2859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2862 if test -n "$ac_tool_prefix"; then
2863 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2864 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2866 $as_echo_n "checking for $ac_word... " >&6; }
2867 if ${ac_cv_prog_CC+:} false; then :
2868 $as_echo_n "(cached) " >&6
2870 if test -n "$CC"; then
2871 ac_cv_prog_CC="$CC" # Let the user override the test.
2873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2877 test -z "$as_dir" && as_dir=.
2878 for ac_exec_ext in '' $ac_executable_extensions; do
2879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2880 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2891 if test -n "$CC"; then
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2893 $as_echo "$CC" >&6; }
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2896 $as_echo "no" >&6; }
2901 if test -z "$ac_cv_prog_CC"; then
2903 # Extract the first word of "gcc", so it can be a program name with args.
2904 set dummy gcc; ac_word=$2
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2906 $as_echo_n "checking for $ac_word... " >&6; }
2907 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2908 $as_echo_n "(cached) " >&6
2910 if test -n "$ac_ct_CC"; then
2911 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2917 test -z "$as_dir" && as_dir=.
2918 for ac_exec_ext in '' $ac_executable_extensions; do
2919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2920 ac_cv_prog_ac_ct_CC="gcc"
2921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2930 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2931 if test -n "$ac_ct_CC"; then
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2933 $as_echo "$ac_ct_CC" >&6; }
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2936 $as_echo "no" >&6; }
2939 if test "x$ac_ct_CC" = x; then
2942 case $cross_compiling:$ac_tool_warned in
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2945 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2946 ac_tool_warned=yes ;;
2954 if test -z "$CC"; then
2955 if test -n "$ac_tool_prefix"; then
2956 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2957 set dummy ${ac_tool_prefix}cc; ac_word=$2
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2959 $as_echo_n "checking for $ac_word... " >&6; }
2960 if ${ac_cv_prog_CC+:} false; then :
2961 $as_echo_n "(cached) " >&6
2963 if test -n "$CC"; then
2964 ac_cv_prog_CC="$CC" # Let the user override the test.
2966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2970 test -z "$as_dir" && as_dir=.
2971 for ac_exec_ext in '' $ac_executable_extensions; do
2972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2973 ac_cv_prog_CC="${ac_tool_prefix}cc"
2974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2984 if test -n "$CC"; then
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2986 $as_echo "$CC" >&6; }
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2989 $as_echo "no" >&6; }
2995 if test -z "$CC"; then
2996 # Extract the first word of "cc", so it can be a program name with args.
2997 set dummy cc; ac_word=$2
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2999 $as_echo_n "checking for $ac_word... " >&6; }
3000 if ${ac_cv_prog_CC+:} false; then :
3001 $as_echo_n "(cached) " >&6
3003 if test -n "$CC"; then
3004 ac_cv_prog_CC="$CC" # Let the user override the test.
3007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3011 test -z "$as_dir" && as_dir=.
3012 for ac_exec_ext in '' $ac_executable_extensions; do
3013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3014 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3015 ac_prog_rejected=yes
3019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3026 if test $ac_prog_rejected = yes; then
3027 # We found a bogon in the path, so make sure we never use it.
3028 set dummy $ac_cv_prog_CC
3030 if test $# != 0; then
3031 # We chose a different compiler from the bogus one.
3032 # However, it has the same basename, so the bogon will be chosen
3033 # first if we set CC to just the basename; use the full file name.
3035 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3041 if test -n "$CC"; then
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3043 $as_echo "$CC" >&6; }
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3046 $as_echo "no" >&6; }
3051 if test -z "$CC"; then
3052 if test -n "$ac_tool_prefix"; then
3053 for ac_prog in cl.exe
3055 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3056 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3058 $as_echo_n "checking for $ac_word... " >&6; }
3059 if ${ac_cv_prog_CC+:} false; then :
3060 $as_echo_n "(cached) " >&6
3062 if test -n "$CC"; then
3063 ac_cv_prog_CC="$CC" # Let the user override the test.
3065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3069 test -z "$as_dir" && as_dir=.
3070 for ac_exec_ext in '' $ac_executable_extensions; do
3071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3072 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3083 if test -n "$CC"; then
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3085 $as_echo "$CC" >&6; }
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3088 $as_echo "no" >&6; }
3092 test -n "$CC" && break
3095 if test -z "$CC"; then
3097 for ac_prog in cl.exe
3099 # Extract the first word of "$ac_prog", so it can be a program name with args.
3100 set dummy $ac_prog; ac_word=$2
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3102 $as_echo_n "checking for $ac_word... " >&6; }
3103 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3104 $as_echo_n "(cached) " >&6
3106 if test -n "$ac_ct_CC"; then
3107 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3113 test -z "$as_dir" && as_dir=.
3114 for ac_exec_ext in '' $ac_executable_extensions; do
3115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3116 ac_cv_prog_ac_ct_CC="$ac_prog"
3117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3126 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3127 if test -n "$ac_ct_CC"; then
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3129 $as_echo "$ac_ct_CC" >&6; }
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3132 $as_echo "no" >&6; }
3136 test -n "$ac_ct_CC" && break
3139 if test "x$ac_ct_CC" = x; then
3142 case $cross_compiling:$ac_tool_warned in
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3145 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3146 ac_tool_warned=yes ;;
3155 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3156 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3157 as_fn_error $? "no acceptable C compiler found in \$PATH
3158 See \`config.log' for more details" "$LINENO" 5; }
3160 # Provide some information about the compiler.
3161 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3164 for ac_option in --version -v -V -qversion; do
3165 { { ac_try="$ac_compiler $ac_option >&5"
3167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3168 *) ac_try_echo=$ac_try;;
3170 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3171 $as_echo "$ac_try_echo"; } >&5
3172 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3174 if test -s conftest.err; then
3176 ... rest of stderr output deleted ...
3177 10q' conftest.err >conftest.er1
3178 cat conftest.er1 >&5
3180 rm -f conftest.er1 conftest.err
3181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3182 test $ac_status = 0; }
3185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3186 /* end confdefs.h. */
3196 ac_clean_files_save=$ac_clean_files
3197 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3198 # Try to create an executable without -o first, disregard a.out.
3199 # It will help us diagnose broken compilers, and finding out an intuition
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3202 $as_echo_n "checking whether the C compiler works... " >&6; }
3203 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3205 # The possible output files:
3206 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3209 for ac_file in $ac_files
3212 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3213 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3218 if { { ac_try="$ac_link_default"
3220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3221 *) ac_try_echo=$ac_try;;
3223 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3224 $as_echo "$ac_try_echo"; } >&5
3225 (eval "$ac_link_default") 2>&5
3227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3228 test $ac_status = 0; }; then :
3229 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3230 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3231 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3232 # so that the user can short-circuit this test for compilers unknown to
3234 for ac_file in $ac_files ''
3236 test -f "$ac_file" || continue
3238 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3241 # We found the default executable, but exeext='' is most
3245 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3247 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3249 # We set ac_cv_exeext here because the later test for it is not
3250 # safe: cross compilers may not add the suffix if given an `-o'
3251 # argument, so we may need to know it at that point already.
3252 # Even if this section looks crufty: it has the advantage of
3259 test "$ac_cv_exeext" = no && ac_cv_exeext=
3264 if test -z "$ac_file"; then :
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3266 $as_echo "no" >&6; }
3267 $as_echo "$as_me: failed program was:" >&5
3268 sed 's/^/| /' conftest.$ac_ext >&5
3270 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3271 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3272 as_fn_error 77 "C compiler cannot create executables
3273 See \`config.log' for more details" "$LINENO" 5; }
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3276 $as_echo "yes" >&6; }
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3279 $as_echo_n "checking for C compiler default output file name... " >&6; }
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3281 $as_echo "$ac_file" >&6; }
3282 ac_exeext=$ac_cv_exeext
3284 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3285 ac_clean_files=$ac_clean_files_save
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3287 $as_echo_n "checking for suffix of executables... " >&6; }
3288 if { { ac_try="$ac_link"
3290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3291 *) ac_try_echo=$ac_try;;
3293 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3294 $as_echo "$ac_try_echo"; } >&5
3295 (eval "$ac_link") 2>&5
3297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3298 test $ac_status = 0; }; then :
3299 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3300 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3301 # work properly (i.e., refer to `conftest.exe'), while it won't with
3303 for ac_file in conftest.exe conftest conftest.*; do
3304 test -f "$ac_file" || continue
3306 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3307 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3313 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3314 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3315 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3316 See \`config.log' for more details" "$LINENO" 5; }
3318 rm -f conftest conftest$ac_cv_exeext
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3320 $as_echo "$ac_cv_exeext" >&6; }
3322 rm -f conftest.$ac_ext
3323 EXEEXT=$ac_cv_exeext
3325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3326 /* end confdefs.h. */
3331 FILE *f = fopen ("conftest.out", "w");
3332 return ferror (f) || fclose (f) != 0;
3338 ac_clean_files="$ac_clean_files conftest.out"
3339 # Check that the compiler produces executables we can run. If not, either
3340 # the compiler is broken, or we cross compile.
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3342 $as_echo_n "checking whether we are cross compiling... " >&6; }
3343 if test "$cross_compiling" != yes; then
3344 { { ac_try="$ac_link"
3346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3347 *) ac_try_echo=$ac_try;;
3349 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3350 $as_echo "$ac_try_echo"; } >&5
3351 (eval "$ac_link") 2>&5
3353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3354 test $ac_status = 0; }
3355 if { ac_try='./conftest$ac_cv_exeext'
3356 { { case "(($ac_try" in
3357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3358 *) ac_try_echo=$ac_try;;
3360 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3361 $as_echo "$ac_try_echo"; } >&5
3362 (eval "$ac_try") 2>&5
3364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3365 test $ac_status = 0; }; }; then
3368 if test "$cross_compiling" = maybe; then
3371 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3372 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3373 as_fn_error $? "cannot run C compiled programs.
3374 If you meant to cross compile, use \`--host'.
3375 See \`config.log' for more details" "$LINENO" 5; }
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3380 $as_echo "$cross_compiling" >&6; }
3382 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3383 ac_clean_files=$ac_clean_files_save
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3385 $as_echo_n "checking for suffix of object files... " >&6; }
3386 if ${ac_cv_objext+:} false; then :
3387 $as_echo_n "(cached) " >&6
3389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3390 /* end confdefs.h. */
3400 rm -f conftest.o conftest.obj
3401 if { { ac_try="$ac_compile"
3403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3404 *) ac_try_echo=$ac_try;;
3406 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3407 $as_echo "$ac_try_echo"; } >&5
3408 (eval "$ac_compile") 2>&5
3410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3411 test $ac_status = 0; }; then :
3412 for ac_file in conftest.o conftest.obj conftest.*; do
3413 test -f "$ac_file" || continue;
3415 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3416 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3421 $as_echo "$as_me: failed program was:" >&5
3422 sed 's/^/| /' conftest.$ac_ext >&5
3424 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3425 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3426 as_fn_error $? "cannot compute suffix of object files: cannot compile
3427 See \`config.log' for more details" "$LINENO" 5; }
3429 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3432 $as_echo "$ac_cv_objext" >&6; }
3433 OBJEXT=$ac_cv_objext
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3436 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3437 if ${ac_cv_c_compiler_gnu+:} false; then :
3438 $as_echo_n "(cached) " >&6
3440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3441 /* end confdefs.h. */
3454 if ac_fn_c_try_compile "$LINENO"; then :
3459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3460 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3464 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3465 if test $ac_compiler_gnu = yes; then
3470 ac_test_CFLAGS=${CFLAGS+set}
3471 ac_save_CFLAGS=$CFLAGS
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3473 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3474 if ${ac_cv_prog_cc_g+:} false; then :
3475 $as_echo_n "(cached) " >&6
3477 ac_save_c_werror_flag=$ac_c_werror_flag
3478 ac_c_werror_flag=yes
3481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3482 /* end confdefs.h. */
3492 if ac_fn_c_try_compile "$LINENO"; then :
3496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3497 /* end confdefs.h. */
3507 if ac_fn_c_try_compile "$LINENO"; then :
3510 ac_c_werror_flag=$ac_save_c_werror_flag
3512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3513 /* end confdefs.h. */
3523 if ac_fn_c_try_compile "$LINENO"; then :
3526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3531 ac_c_werror_flag=$ac_save_c_werror_flag
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3534 $as_echo "$ac_cv_prog_cc_g" >&6; }
3535 if test "$ac_test_CFLAGS" = set; then
3536 CFLAGS=$ac_save_CFLAGS
3537 elif test $ac_cv_prog_cc_g = yes; then
3538 if test "$GCC" = yes; then
3544 if test "$GCC" = yes; then
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3551 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3552 if ${ac_cv_prog_cc_c89+:} false; then :
3553 $as_echo_n "(cached) " >&6
3555 ac_cv_prog_cc_c89=no
3557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3558 /* end confdefs.h. */
3561 #include <sys/types.h>
3562 #include <sys/stat.h>
3563 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3564 struct buf { int x; };
3565 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3566 static char *e (p, i)
3572 static char *f (char * (*g) (char **, int), char **p, ...)
3577 s = g (p, va_arg (v,int));
3582 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3583 function prototypes and stuff, but not '\xHH' hex character constants.
3584 These don't provoke an error unfortunately, instead are silently treated
3585 as 'x'. The following induces an error, until -std is added to get
3586 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3587 array size at least. It's necessary to write '\x00'==0 to get something
3588 that's true only with -std. */
3589 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3591 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3592 inside strings and character constants. */
3594 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3596 int test (int i, double x);
3597 struct s1 {int (*f) (int a);};
3598 struct s2 {int (*f) (double a);};
3599 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3605 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3610 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3611 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3613 CC="$ac_save_CC $ac_arg"
3614 if ac_fn_c_try_compile "$LINENO"; then :
3615 ac_cv_prog_cc_c89=$ac_arg
3617 rm -f core conftest.err conftest.$ac_objext
3618 test "x$ac_cv_prog_cc_c89" != "xno" && break
3620 rm -f conftest.$ac_ext
3625 case "x$ac_cv_prog_cc_c89" in
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3628 $as_echo "none needed" >&6; } ;;
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3631 $as_echo "unsupported" >&6; } ;;
3633 CC="$CC $ac_cv_prog_cc_c89"
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3635 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3637 if test "x$ac_cv_prog_cc_c89" != xno; then :
3642 ac_cpp='$CPP $CPPFLAGS'
3643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3644 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3645 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3646 DEPDIR="${am__leading_dot}deps"
3648 ac_config_commands="$ac_config_commands depfiles"
3651 am_make=${MAKE-make}
3652 cat > confinc << 'END'
3654 @echo this is the am__doit target
3657 # If we don't find an include directive, just comment out the code.
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3659 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3663 # First try GNU make style include.
3664 echo "include confinc" > confmf
3665 # Ignore all kinds of additional output from `make'.
3666 case `$am_make -s -f confmf 2> /dev/null` in #(
3667 *the\ am__doit\ target*)
3673 # Now try BSD make style include.
3674 if test "$am__include" = "#"; then
3675 echo '.include "confinc"' > confmf
3676 case `$am_make -s -f confmf 2> /dev/null` in #(
3677 *the\ am__doit\ target*)
3678 am__include=.include
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3687 $as_echo "$_am_result" >&6; }
3688 rm -f confinc confmf
3690 # Check whether --enable-dependency-tracking was given.
3691 if test "${enable_dependency_tracking+set}" = set; then :
3692 enableval=$enable_dependency_tracking;
3695 if test "x$enable_dependency_tracking" != xno; then
3696 am_depcomp="$ac_aux_dir/depcomp"
3700 if test "x$enable_dependency_tracking" != xno; then
3710 depcc="$CC" am_compiler_list=
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3713 $as_echo_n "checking dependency style of $depcc... " >&6; }
3714 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3715 $as_echo_n "(cached) " >&6
3717 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3718 # We make a subdir and do the tests there. Otherwise we can end up
3719 # making bogus files that we don't know about and never remove. For
3720 # instance it was reported that on HP-UX the gcc test will end up
3721 # making a dummy file named `D' -- because `-MD' means `put the output
3725 # Copy depcomp to subdir because otherwise we won't find it if we're
3726 # using a relative directory.
3727 cp "$am_depcomp" conftest.dir
3729 # We will build objects and dependencies in a subdirectory because
3730 # it helps to detect inapplicable dependency modes. For instance
3731 # both Tru64's cc and ICC support -MD to output dependencies as a
3732 # side effect of compilation, but ICC will put the dependencies in
3733 # the current directory while Tru64 will put them in the object
3737 am_cv_CC_dependencies_compiler_type=none
3738 if test "$am_compiler_list" = ""; then
3739 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3742 case " $depcc " in #(
3743 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3746 for depmode in $am_compiler_list; do
3747 # Setup a source with many dependencies, because some compilers
3748 # like to wrap large dependency lists on column 80 (with \), and
3749 # we should not choose a depcomp mode which is confused by this.
3751 # We need to recreate these files for each test, as the compiler may
3752 # overwrite some of them when testing with obscure command lines.
3753 # This happens at least with the AIX C compiler.
3755 for i in 1 2 3 4 5 6; do
3756 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3757 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3758 # Solaris 8's {/usr,}/bin/sh.
3759 touch sub/conftst$i.h
3761 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3763 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3764 # mode. It turns out that the SunPro C++ compiler does not properly
3765 # handle `-M -o', and we need to detect this. Also, some Intel
3766 # versions had trouble with output in subdirs
3767 am__obj=sub/conftest.${OBJEXT-o}
3768 am__minus_obj="-o $am__obj"
3771 # This depmode causes a compiler race in universal mode.
3772 test "$am__universal" = false || continue
3775 # after this tag, mechanisms are not by side-effect, so they'll
3776 # only be used when explicitly requested
3777 if test "x$enable_dependency_tracking" = xyes; then
3783 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3784 # This compiler won't grok `-c -o', but also, the minuso test has
3785 # not run yet. These depmodes are late enough in the game, and
3786 # so weak that their functioning should not be impacted.
3787 am__obj=conftest.${OBJEXT-o}
3792 if depmode=$depmode \
3793 source=sub/conftest.c object=$am__obj \
3794 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3795 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3796 >/dev/null 2>conftest.err &&
3797 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3798 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3799 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3800 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3801 # icc doesn't choke on unknown options, it will just issue warnings
3802 # or remarks (even with -Werror). So we grep stderr for any message
3803 # that says an option was ignored or not supported.
3804 # When given -MP, icc 7.0 and 7.1 complain thusly:
3805 # icc: Command line warning: ignoring option '-M'; no argument required
3806 # The diagnosis changed in icc 8.0:
3807 # icc: Command line remark: option '-MP' not supported
3808 if (grep 'ignoring option' conftest.err ||
3809 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3810 am_cv_CC_dependencies_compiler_type=$depmode
3819 am_cv_CC_dependencies_compiler_type=none
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3824 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3825 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3828 test "x$enable_dependency_tracking" != xno \
3829 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3831 am__fastdepCC_FALSE='#'
3833 am__fastdepCC_TRUE='#'
3834 am__fastdepCC_FALSE=
3838 if test "x$CC" != xcc; then
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
3840 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
3843 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
3845 set dummy $CC; ac_cc=`$as_echo "$2" |
3846 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3847 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
3848 $as_echo_n "(cached) " >&6
3850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3851 /* end confdefs.h. */
3861 # Make sure it works both with $CC and with simple cc.
3862 # We do the test twice because some compilers refuse to overwrite an
3863 # existing .o file with -o, though they will create one.
3864 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3866 if { { case "(($ac_try" in
3867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3868 *) ac_try_echo=$ac_try;;
3870 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3871 $as_echo "$ac_try_echo"; } >&5
3872 (eval "$ac_try") 2>&5
3874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3875 test $ac_status = 0; } &&
3876 test -f conftest2.$ac_objext && { { case "(($ac_try" in
3877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3878 *) ac_try_echo=$ac_try;;
3880 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3881 $as_echo "$ac_try_echo"; } >&5
3882 (eval "$ac_try") 2>&5
3884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3885 test $ac_status = 0; };
3887 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3888 if test "x$CC" != xcc; then
3889 # Test first that cc exists at all.
3890 if { ac_try='cc -c conftest.$ac_ext >&5'
3891 { { case "(($ac_try" in
3892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3893 *) ac_try_echo=$ac_try;;
3895 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3896 $as_echo "$ac_try_echo"; } >&5
3897 (eval "$ac_try") 2>&5
3899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3900 test $ac_status = 0; }; }; then
3901 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3903 if { { case "(($ac_try" in
3904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3905 *) ac_try_echo=$ac_try;;
3907 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3908 $as_echo "$ac_try_echo"; } >&5
3909 (eval "$ac_try") 2>&5
3911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3912 test $ac_status = 0; } &&
3913 test -f conftest2.$ac_objext && { { case "(($ac_try" in
3914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3915 *) ac_try_echo=$ac_try;;
3917 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3918 $as_echo "$ac_try_echo"; } >&5
3919 (eval "$ac_try") 2>&5
3921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3922 test $ac_status = 0; };
3927 # cc exists but doesn't like -o.
3928 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3933 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3935 rm -f core conftest*
3938 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3940 $as_echo "yes" >&6; }
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3943 $as_echo "no" >&6; }
3945 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
3949 # FIXME: we rely on the cache variable name because
3950 # there is no other way.
3952 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3953 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
3954 if test "$am_t" != yes; then
3955 # Losing compiler, so override with the script.
3956 # FIXME: It is wrong to rewrite CC.
3957 # But if we don't then we get into trouble of one sort or another.
3958 # A longer-term fix would be to have automake use am__CC in this case,
3959 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3960 CC="$am_aux_dir/compile $CC"
3966 if test -n "$ac_tool_prefix"; then
3967 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3968 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3970 $as_echo_n "checking for $ac_word... " >&6; }
3971 if ${ac_cv_prog_RANLIB+:} false; then :
3972 $as_echo_n "(cached) " >&6
3974 if test -n "$RANLIB"; then
3975 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3981 test -z "$as_dir" && as_dir=.
3982 for ac_exec_ext in '' $ac_executable_extensions; do
3983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3984 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3994 RANLIB=$ac_cv_prog_RANLIB
3995 if test -n "$RANLIB"; then
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3997 $as_echo "$RANLIB" >&6; }
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4000 $as_echo "no" >&6; }
4005 if test -z "$ac_cv_prog_RANLIB"; then
4006 ac_ct_RANLIB=$RANLIB
4007 # Extract the first word of "ranlib", so it can be a program name with args.
4008 set dummy ranlib; ac_word=$2
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4010 $as_echo_n "checking for $ac_word... " >&6; }
4011 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4012 $as_echo_n "(cached) " >&6
4014 if test -n "$ac_ct_RANLIB"; then
4015 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4021 test -z "$as_dir" && as_dir=.
4022 for ac_exec_ext in '' $ac_executable_extensions; do
4023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4024 ac_cv_prog_ac_ct_RANLIB="ranlib"
4025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4034 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4035 if test -n "$ac_ct_RANLIB"; then
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4037 $as_echo "$ac_ct_RANLIB" >&6; }
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4040 $as_echo "no" >&6; }
4043 if test "x$ac_ct_RANLIB" = x; then
4046 case $cross_compiling:$ac_tool_warned in
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4049 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4050 ac_tool_warned=yes ;;
4052 RANLIB=$ac_ct_RANLIB
4055 RANLIB="$ac_cv_prog_RANLIB"
4059 # Checks for header files.
4062 ac_cpp='$CPP $CPPFLAGS'
4063 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4064 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4065 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4067 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4068 # On Suns, sometimes $CPP names a directory.
4069 if test -n "$CPP" && test -d "$CPP"; then
4072 if test -z "$CPP"; then
4073 if ${ac_cv_prog_CPP+:} false; then :
4074 $as_echo_n "(cached) " >&6
4076 # Double quotes because CPP needs to be expanded
4077 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4080 for ac_c_preproc_warn_flag in '' yes
4082 # Use a header file that comes with gcc, so configuring glibc
4083 # with a fresh cross-compiler works.
4084 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4085 # <limits.h> exists even on freestanding compilers.
4086 # On the NeXT, cc -E runs the code through the compiler's parser,
4087 # not just through cpp. "Syntax error" is here to catch this case.
4088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4089 /* end confdefs.h. */
4091 # include <limits.h>
4093 # include <assert.h>
4097 if ac_fn_c_try_cpp "$LINENO"; then :
4100 # Broken: fails on valid input.
4103 rm -f conftest.err conftest.i conftest.$ac_ext
4105 # OK, works on sane cases. Now check whether nonexistent headers
4106 # can be detected and how.
4107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4108 /* end confdefs.h. */
4109 #include <ac_nonexistent.h>
4111 if ac_fn_c_try_cpp "$LINENO"; then :
4112 # Broken: success on invalid input.
4115 # Passes both tests.
4119 rm -f conftest.err conftest.i conftest.$ac_ext
4122 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4123 rm -f conftest.i conftest.err conftest.$ac_ext
4124 if $ac_preproc_ok; then :
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4137 $as_echo "$CPP" >&6; }
4139 for ac_c_preproc_warn_flag in '' yes
4141 # Use a header file that comes with gcc, so configuring glibc
4142 # with a fresh cross-compiler works.
4143 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4144 # <limits.h> exists even on freestanding compilers.
4145 # On the NeXT, cc -E runs the code through the compiler's parser,
4146 # not just through cpp. "Syntax error" is here to catch this case.
4147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4148 /* end confdefs.h. */
4150 # include <limits.h>
4152 # include <assert.h>
4156 if ac_fn_c_try_cpp "$LINENO"; then :
4159 # Broken: fails on valid input.
4162 rm -f conftest.err conftest.i conftest.$ac_ext
4164 # OK, works on sane cases. Now check whether nonexistent headers
4165 # can be detected and how.
4166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4167 /* end confdefs.h. */
4168 #include <ac_nonexistent.h>
4170 if ac_fn_c_try_cpp "$LINENO"; then :
4171 # Broken: success on invalid input.
4174 # Passes both tests.
4178 rm -f conftest.err conftest.i conftest.$ac_ext
4181 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4182 rm -f conftest.i conftest.err conftest.$ac_ext
4183 if $ac_preproc_ok; then :
4186 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4187 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4188 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4189 See \`config.log' for more details" "$LINENO" 5; }
4193 ac_cpp='$CPP $CPPFLAGS'
4194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
4200 $as_echo_n "checking for X... " >&6; }
4203 # Check whether --with-x was given.
4204 if test "${with_x+set}" = set; then :
4208 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4209 if test "x$with_x" = xno; then
4210 # The user explicitly disabled X.
4213 case $x_includes,$x_libraries in #(
4214 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
4215 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
4216 $as_echo_n "(cached) " >&6
4218 # One or both of the vars are not set, and there is no cached value.
4219 ac_x_includes=no ac_x_libraries=no
4220 rm -f -r conftest.dir
4221 if mkdir conftest.dir; then
4223 cat >Imakefile <<'_ACEOF'
4225 @echo incroot='${INCROOT}'
4227 @echo usrlibdir='${USRLIBDIR}'
4229 @echo libdir='${LIBDIR}'
4231 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
4232 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4233 for ac_var in incroot usrlibdir libdir; do
4234 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
4236 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4237 for ac_extension in a so sl dylib la dll; do
4238 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
4239 test -f "$ac_im_libdir/libX11.$ac_extension"; then
4240 ac_im_usrlibdir=$ac_im_libdir; break
4243 # Screen out bogus values from the imake configuration. They are
4244 # bogus both because they are the default anyway, and because
4245 # using them would break gcc on systems where it needs fixed includes.
4246 case $ac_im_incroot in
4247 /usr/include) ac_x_includes= ;;
4248 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4250 case $ac_im_usrlibdir in
4251 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
4252 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4256 rm -f -r conftest.dir
4259 # Standard set of common directories for X headers.
4260 # Check X11 before X11Rn because it is often a symlink to the current release.
4274 /usr/local/X11/include
4275 /usr/local/X11R7/include
4276 /usr/local/X11R6/include
4277 /usr/local/X11R5/include
4278 /usr/local/X11R4/include
4280 /usr/local/include/X11
4281 /usr/local/include/X11R7
4282 /usr/local/include/X11R6
4283 /usr/local/include/X11R5
4284 /usr/local/include/X11R4
4288 /usr/XFree86/include/X11
4292 /usr/unsupported/include
4294 /usr/local/x11r5/include
4295 /usr/lpp/Xamples/include
4297 /usr/openwin/include
4298 /usr/openwin/share/include'
4300 if test "$ac_x_includes" = no; then
4301 # Guess where to find include files, by looking for Xlib.h.
4302 # First, try using that file with no special directory specified.
4303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4304 /* end confdefs.h. */
4305 #include <X11/Xlib.h>
4307 if ac_fn_c_try_cpp "$LINENO"; then :
4308 # We can compile using X headers with no special include directory.
4311 for ac_dir in $ac_x_header_dirs; do
4312 if test -r "$ac_dir/X11/Xlib.h"; then
4313 ac_x_includes=$ac_dir
4318 rm -f conftest.err conftest.i conftest.$ac_ext
4319 fi # $ac_x_includes = no
4321 if test "$ac_x_libraries" = no; then
4322 # Check for the libraries.
4323 # See if we find them without any special options.
4324 # Don't add to $LIBS permanently.
4327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4328 /* end confdefs.h. */
4329 #include <X11/Xlib.h>
4338 if ac_fn_c_try_link "$LINENO"; then :
4340 # We can link X programs with no special library path.
4344 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4346 # Don't even attempt the hair of trying to link an X program!
4347 for ac_extension in a so sl dylib la dll; do
4348 if test -r "$ac_dir/libX11.$ac_extension"; then
4349 ac_x_libraries=$ac_dir
4355 rm -f core conftest.err conftest.$ac_objext \
4356 conftest$ac_exeext conftest.$ac_ext
4357 fi # $ac_x_libraries = no
4359 case $ac_x_includes,$ac_x_libraries in #(
4361 # Didn't find X, or a directory has "'" in its name.
4362 ac_cv_have_x="have_x=no";; #(
4364 # Record where we found X for the cache.
4365 ac_cv_have_x="have_x=yes\
4366 ac_x_includes='$ac_x_includes'\
4367 ac_x_libraries='$ac_x_libraries'"
4373 eval "$ac_cv_have_x"
4376 if test "$have_x" != yes; then
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
4378 $as_echo "$have_x" >&6; }
4381 # If each of the values was on the command line, it overrides each guess.
4382 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4383 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4384 # Update the cache value to reflect the command line values.
4385 ac_cv_have_x="have_x=yes\
4386 ac_x_includes='$x_includes'\
4387 ac_x_libraries='$x_libraries'"
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
4389 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
4392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4393 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4394 if ${ac_cv_path_GREP+:} false; then :
4395 $as_echo_n "(cached) " >&6
4397 if test -z "$GREP"; then
4398 ac_path_GREP_found=false
4399 # Loop through the user's path and test for each of PROGNAME-LIST
4400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4401 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4404 test -z "$as_dir" && as_dir=.
4405 for ac_prog in grep ggrep; do
4406 for ac_exec_ext in '' $ac_executable_extensions; do
4407 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4408 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4409 # Check for GNU ac_path_GREP and select it if it is found.
4410 # Check for GNU $ac_path_GREP
4411 case `"$ac_path_GREP" --version 2>&1` in
4413 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4416 $as_echo_n 0123456789 >"conftest.in"
4419 cat "conftest.in" "conftest.in" >"conftest.tmp"
4420 mv "conftest.tmp" "conftest.in"
4421 cp "conftest.in" "conftest.nl"
4422 $as_echo 'GREP' >> "conftest.nl"
4423 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4424 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4425 as_fn_arith $ac_count + 1 && ac_count=$as_val
4426 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4427 # Best one so far, save it but keep looking for a better one
4428 ac_cv_path_GREP="$ac_path_GREP"
4429 ac_path_GREP_max=$ac_count
4431 # 10*(2^10) chars as input seems more than enough
4432 test $ac_count -gt 10 && break
4434 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4437 $ac_path_GREP_found && break 3
4442 if test -z "$ac_cv_path_GREP"; then
4443 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4446 ac_cv_path_GREP=$GREP
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4451 $as_echo "$ac_cv_path_GREP" >&6; }
4452 GREP="$ac_cv_path_GREP"
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4456 $as_echo_n "checking for egrep... " >&6; }
4457 if ${ac_cv_path_EGREP+:} false; then :
4458 $as_echo_n "(cached) " >&6
4460 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4461 then ac_cv_path_EGREP="$GREP -E"
4463 if test -z "$EGREP"; then
4464 ac_path_EGREP_found=false
4465 # Loop through the user's path and test for each of PROGNAME-LIST
4466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4467 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4470 test -z "$as_dir" && as_dir=.
4471 for ac_prog in egrep; do
4472 for ac_exec_ext in '' $ac_executable_extensions; do
4473 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4474 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4475 # Check for GNU ac_path_EGREP and select it if it is found.
4476 # Check for GNU $ac_path_EGREP
4477 case `"$ac_path_EGREP" --version 2>&1` in
4479 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4482 $as_echo_n 0123456789 >"conftest.in"
4485 cat "conftest.in" "conftest.in" >"conftest.tmp"
4486 mv "conftest.tmp" "conftest.in"
4487 cp "conftest.in" "conftest.nl"
4488 $as_echo 'EGREP' >> "conftest.nl"
4489 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4490 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4491 as_fn_arith $ac_count + 1 && ac_count=$as_val
4492 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4493 # Best one so far, save it but keep looking for a better one
4494 ac_cv_path_EGREP="$ac_path_EGREP"
4495 ac_path_EGREP_max=$ac_count
4497 # 10*(2^10) chars as input seems more than enough
4498 test $ac_count -gt 10 && break
4500 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4503 $ac_path_EGREP_found && break 3
4508 if test -z "$ac_cv_path_EGREP"; then
4509 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4512 ac_cv_path_EGREP=$EGREP
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4518 $as_echo "$ac_cv_path_EGREP" >&6; }
4519 EGREP="$ac_cv_path_EGREP"
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4523 $as_echo_n "checking for ANSI C header files... " >&6; }
4524 if ${ac_cv_header_stdc+:} false; then :
4525 $as_echo_n "(cached) " >&6
4527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4528 /* end confdefs.h. */
4542 if ac_fn_c_try_compile "$LINENO"; then :
4543 ac_cv_header_stdc=yes
4545 ac_cv_header_stdc=no
4547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4549 if test $ac_cv_header_stdc = yes; then
4550 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4552 /* end confdefs.h. */
4556 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4557 $EGREP "memchr" >/dev/null 2>&1; then :
4560 ac_cv_header_stdc=no
4566 if test $ac_cv_header_stdc = yes; then
4567 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4569 /* end confdefs.h. */
4573 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4574 $EGREP "free" >/dev/null 2>&1; then :
4577 ac_cv_header_stdc=no
4583 if test $ac_cv_header_stdc = yes; then
4584 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4585 if test "$cross_compiling" = yes; then :
4588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4589 /* end confdefs.h. */
4592 #if ((' ' & 0x0FF) == 0x020)
4593 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4594 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4596 # define ISLOWER(c) \
4597 (('a' <= (c) && (c) <= 'i') \
4598 || ('j' <= (c) && (c) <= 'r') \
4599 || ('s' <= (c) && (c) <= 'z'))
4600 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4603 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4608 for (i = 0; i < 256; i++)
4609 if (XOR (islower (i), ISLOWER (i))
4610 || toupper (i) != TOUPPER (i))
4615 if ac_fn_c_try_run "$LINENO"; then :
4618 ac_cv_header_stdc=no
4620 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4621 conftest.$ac_objext conftest.beam conftest.$ac_ext
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4627 $as_echo "$ac_cv_header_stdc" >&6; }
4628 if test $ac_cv_header_stdc = yes; then
4630 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4634 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4635 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4636 inttypes.h stdint.h unistd.h
4638 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4639 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4641 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4642 cat >>confdefs.h <<_ACEOF
4643 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4651 for ac_header in arpa/inet.h netinet/in.h stdint.h stdlib.h string.h sys/socket.h sys/time.h unistd.h getopt.h
4653 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4654 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4655 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4656 cat >>confdefs.h <<_ACEOF
4657 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4665 # Checks for typedefs, structures, and compiler characteristics.
4666 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
4667 if test "x$ac_cv_type_size_t" = xyes; then :
4671 cat >>confdefs.h <<_ACEOF
4672 #define size_t unsigned int
4677 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
4678 if test "x$ac_cv_type_ssize_t" = xyes; then :
4682 cat >>confdefs.h <<_ACEOF
4689 # Checks for library functions.
4690 for ac_header in stdlib.h
4692 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
4693 if test "x$ac_cv_header_stdlib_h" = xyes; then :
4694 cat >>confdefs.h <<_ACEOF
4695 #define HAVE_STDLIB_H 1
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
4703 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
4704 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
4705 $as_echo_n "(cached) " >&6
4707 if test "$cross_compiling" = yes; then :
4708 ac_cv_func_malloc_0_nonnull=no
4710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4711 /* end confdefs.h. */
4712 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
4713 # include <stdlib.h>
4721 return ! malloc (0);
4726 if ac_fn_c_try_run "$LINENO"; then :
4727 ac_cv_func_malloc_0_nonnull=yes
4729 ac_cv_func_malloc_0_nonnull=no
4731 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4732 conftest.$ac_objext conftest.beam conftest.$ac_ext
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
4737 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
4738 if test $ac_cv_func_malloc_0_nonnull = yes; then :
4740 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
4743 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
4745 case " $LIBOBJS " in
4746 *" malloc.$ac_objext "* ) ;;
4747 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
4752 $as_echo "#define malloc rpl_malloc" >>confdefs.h
4757 for ac_header in stdlib.h
4759 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
4760 if test "x$ac_cv_header_stdlib_h" = xyes; then :
4761 cat >>confdefs.h <<_ACEOF
4762 #define HAVE_STDLIB_H 1
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
4770 $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
4771 if ${ac_cv_func_realloc_0_nonnull+:} false; then :
4772 $as_echo_n "(cached) " >&6
4774 if test "$cross_compiling" = yes; then :
4775 ac_cv_func_realloc_0_nonnull=no
4777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4778 /* end confdefs.h. */
4779 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
4780 # include <stdlib.h>
4788 return ! realloc (0, 0);
4793 if ac_fn_c_try_run "$LINENO"; then :
4794 ac_cv_func_realloc_0_nonnull=yes
4796 ac_cv_func_realloc_0_nonnull=no
4798 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4799 conftest.$ac_objext conftest.beam conftest.$ac_ext
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
4804 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
4805 if test $ac_cv_func_realloc_0_nonnull = yes; then :
4807 $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
4810 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
4812 case " $LIBOBJS " in
4813 *" realloc.$ac_objext "* ) ;;
4814 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
4819 $as_echo "#define realloc rpl_realloc" >>confdefs.h
4824 for ac_func in gettimeofday memmove socket strdup strtol
4826 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4827 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4828 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
4829 cat >>confdefs.h <<_ACEOF
4830 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
4840 $as_echo_n "checking whether NLS is requested... " >&6; }
4841 # Check whether --enable-nls was given.
4842 if test "${enable_nls+set}" = set; then :
4843 enableval=$enable_nls; USE_NLS=$enableval
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
4849 $as_echo "$USE_NLS" >&6; }
4854 GETTEXT_MACRO_VERSION=0.18
4859 # Prepare PATH_SEPARATOR.
4860 # The user is always right.
4861 if test "${PATH_SEPARATOR+set}" != set; then
4862 echo "#! /bin/sh" >conf$$.sh
4863 echo "exit 0" >>conf$$.sh
4865 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4873 # Find out how to test for executable files. Don't use a zero-byte file,
4874 # as systems may use methods other than mode bits to determine executability.
4875 cat >conf$$.file <<_ASEOF
4879 chmod +x conf$$.file
4880 if test -x conf$$.file >/dev/null 2>&1; then
4881 ac_executable_p="test -x"
4883 ac_executable_p="test -f"
4887 # Extract the first word of "msgfmt", so it can be a program name with args.
4888 set dummy msgfmt; ac_word=$2
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4890 $as_echo_n "checking for $ac_word... " >&6; }
4891 if ${ac_cv_path_MSGFMT+:} false; then :
4892 $as_echo_n "(cached) " >&6
4896 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4899 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4900 for ac_dir in $PATH; do
4902 test -z "$ac_dir" && ac_dir=.
4903 for ac_exec_ext in '' $ac_executable_extensions; do
4904 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4905 echo "$as_me: trying $ac_dir/$ac_word..." >&5
4906 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
4907 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4908 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4915 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4919 MSGFMT="$ac_cv_path_MSGFMT"
4920 if test "$MSGFMT" != ":"; then
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
4922 $as_echo "$MSGFMT" >&6; }
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4925 $as_echo "no" >&6; }
4928 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4929 set dummy gmsgfmt; ac_word=$2
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4931 $as_echo_n "checking for $ac_word... " >&6; }
4932 if ${ac_cv_path_GMSGFMT+:} false; then :
4933 $as_echo_n "(cached) " >&6
4937 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4944 test -z "$as_dir" && as_dir=.
4945 for ac_exec_ext in '' $ac_executable_extensions; do
4946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4947 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4955 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4959 GMSGFMT=$ac_cv_path_GMSGFMT
4960 if test -n "$GMSGFMT"; then
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
4962 $as_echo "$GMSGFMT" >&6; }
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4965 $as_echo "no" >&6; }
4970 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
4971 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
4972 *) MSGFMT_015=$MSGFMT ;;
4975 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
4976 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
4977 *) GMSGFMT_015=$GMSGFMT ;;
4982 # Prepare PATH_SEPARATOR.
4983 # The user is always right.
4984 if test "${PATH_SEPARATOR+set}" != set; then
4985 echo "#! /bin/sh" >conf$$.sh
4986 echo "exit 0" >>conf$$.sh
4988 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4996 # Find out how to test for executable files. Don't use a zero-byte file,
4997 # as systems may use methods other than mode bits to determine executability.
4998 cat >conf$$.file <<_ASEOF
5002 chmod +x conf$$.file
5003 if test -x conf$$.file >/dev/null 2>&1; then
5004 ac_executable_p="test -x"
5006 ac_executable_p="test -f"
5010 # Extract the first word of "xgettext", so it can be a program name with args.
5011 set dummy xgettext; ac_word=$2
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5013 $as_echo_n "checking for $ac_word... " >&6; }
5014 if ${ac_cv_path_XGETTEXT+:} false; then :
5015 $as_echo_n "(cached) " >&6
5019 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5022 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5023 for ac_dir in $PATH; do
5025 test -z "$ac_dir" && ac_dir=.
5026 for ac_exec_ext in '' $ac_executable_extensions; do
5027 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5028 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5029 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
5030 (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
5031 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5038 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5042 XGETTEXT="$ac_cv_path_XGETTEXT"
5043 if test "$XGETTEXT" != ":"; then
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
5045 $as_echo "$XGETTEXT" >&6; }
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5048 $as_echo "no" >&6; }
5053 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5054 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
5055 *) XGETTEXT_015=$XGETTEXT ;;
5060 # Prepare PATH_SEPARATOR.
5061 # The user is always right.
5062 if test "${PATH_SEPARATOR+set}" != set; then
5063 echo "#! /bin/sh" >conf$$.sh
5064 echo "exit 0" >>conf$$.sh
5066 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5074 # Find out how to test for executable files. Don't use a zero-byte file,
5075 # as systems may use methods other than mode bits to determine executability.
5076 cat >conf$$.file <<_ASEOF
5080 chmod +x conf$$.file
5081 if test -x conf$$.file >/dev/null 2>&1; then
5082 ac_executable_p="test -x"
5084 ac_executable_p="test -f"
5088 # Extract the first word of "msgmerge", so it can be a program name with args.
5089 set dummy msgmerge; ac_word=$2
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5091 $as_echo_n "checking for $ac_word... " >&6; }
5092 if ${ac_cv_path_MSGMERGE+:} false; then :
5093 $as_echo_n "(cached) " >&6
5097 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5100 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5101 for ac_dir in $PATH; do
5103 test -z "$ac_dir" && ac_dir=.
5104 for ac_exec_ext in '' $ac_executable_extensions; do
5105 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5106 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5107 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
5108 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5115 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5119 MSGMERGE="$ac_cv_path_MSGMERGE"
5120 if test "$MSGMERGE" != ":"; then
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
5122 $as_echo "$MSGMERGE" >&6; }
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5125 $as_echo "no" >&6; }
5129 test -n "$localedir" || localedir='${datadir}/locale'
5132 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
5135 ac_config_commands="$ac_config_commands po-directories"
5139 if test "X$prefix" = "XNONE"; then
5140 acl_final_prefix="$ac_default_prefix"
5142 acl_final_prefix="$prefix"
5144 if test "X$exec_prefix" = "XNONE"; then
5145 acl_final_exec_prefix='${prefix}'
5147 acl_final_exec_prefix="$exec_prefix"
5149 acl_save_prefix="$prefix"
5150 prefix="$acl_final_prefix"
5151 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5152 prefix="$acl_save_prefix"
5154 # Make sure we can run config.sub.
5155 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5156 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5159 $as_echo_n "checking build system type... " >&6; }
5160 if ${ac_cv_build+:} false; then :
5161 $as_echo_n "(cached) " >&6
5163 ac_build_alias=$build_alias
5164 test "x$ac_build_alias" = x &&
5165 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5166 test "x$ac_build_alias" = x &&
5167 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5168 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5169 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5173 $as_echo "$ac_cv_build" >&6; }
5174 case $ac_cv_build in
5176 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5179 ac_save_IFS=$IFS; IFS='-'
5185 # Remember, the first character of IFS is used to create $*,
5186 # except with old shells:
5189 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5193 $as_echo_n "checking host system type... " >&6; }
5194 if ${ac_cv_host+:} false; then :
5195 $as_echo_n "(cached) " >&6
5197 if test "x$host_alias" = x; then
5198 ac_cv_host=$ac_cv_build
5200 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5201 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5206 $as_echo "$ac_cv_host" >&6; }
5209 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5212 ac_save_IFS=$IFS; IFS='-'
5218 # Remember, the first character of IFS is used to create $*,
5219 # except with old shells:
5222 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5226 # Check whether --with-gnu-ld was given.
5227 if test "${with_gnu_ld+set}" = set; then :
5228 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5233 # Prepare PATH_SEPARATOR.
5234 # The user is always right.
5235 if test "${PATH_SEPARATOR+set}" != set; then
5236 echo "#! /bin/sh" >conf$$.sh
5237 echo "exit 0" >>conf$$.sh
5239 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5247 if test "$GCC" = yes; then
5248 # Check if gcc -print-prog-name=ld gives a path.
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
5250 $as_echo_n "checking for ld used by GCC... " >&6; }
5253 # gcc leaves a trailing carriage return which upsets mingw
5254 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5256 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5259 # Accept absolute paths.
5260 [\\/]* | [A-Za-z]:[\\/]*)
5261 re_direlt='/[^/][^/]*/\.\./'
5262 # Canonicalize the path of ld
5263 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5264 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5265 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5267 test -z "$LD" && LD="$ac_prog"
5270 # If it fails, then pretend we aren't using GCC.
5274 # If it is relative, then search for the first ld in PATH.
5278 elif test "$with_gnu_ld" = yes; then
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5280 $as_echo_n "checking for GNU ld... " >&6; }
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5283 $as_echo_n "checking for non-GNU ld... " >&6; }
5285 if ${acl_cv_path_LD+:} false; then :
5286 $as_echo_n "(cached) " >&6
5288 if test -z "$LD"; then
5289 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5290 for ac_dir in $PATH; do
5291 test -z "$ac_dir" && ac_dir=.
5292 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5293 acl_cv_path_LD="$ac_dir/$ac_prog"
5294 # Check to see if the program is GNU ld. I'd rather use --version,
5295 # but apparently some GNU ld's only accept -v.
5296 # Break only if it was the GNU/non-GNU ld that we prefer.
5297 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
5298 *GNU* | *'with BFD'*)
5299 test "$with_gnu_ld" != no && break ;;
5301 test "$with_gnu_ld" != yes && break ;;
5307 acl_cv_path_LD="$LD" # Let the user override the test with a path.
5311 LD="$acl_cv_path_LD"
5312 if test -n "$LD"; then
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5314 $as_echo "$LD" >&6; }
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5317 $as_echo "no" >&6; }
5319 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5321 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5322 if ${acl_cv_prog_gnu_ld+:} false; then :
5323 $as_echo_n "(cached) " >&6
5325 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5326 case `$LD -v 2>&1 </dev/null` in
5327 *GNU* | *'with BFD'*)
5328 acl_cv_prog_gnu_ld=yes ;;
5330 acl_cv_prog_gnu_ld=no ;;
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
5334 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
5335 with_gnu_ld=$acl_cv_prog_gnu_ld
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
5341 $as_echo_n "checking for shared library run path origin... " >&6; }
5342 if ${acl_cv_rpath+:} false; then :
5343 $as_echo_n "(cached) " >&6
5346 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5347 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
5354 $as_echo "$acl_cv_rpath" >&6; }
5356 acl_libext="$acl_cv_libext"
5357 acl_shlibext="$acl_cv_shlibext"
5358 acl_libname_spec="$acl_cv_libname_spec"
5359 acl_library_names_spec="$acl_cv_library_names_spec"
5360 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5361 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5362 acl_hardcode_direct="$acl_cv_hardcode_direct"
5363 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
5364 # Check whether --enable-rpath was given.
5365 if test "${enable_rpath+set}" = set; then :
5366 enableval=$enable_rpath; :
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
5379 $as_echo_n "checking for 64-bit host... " >&6; }
5380 if ${gl_cv_solaris_64bit+:} false; then :
5381 $as_echo_n "(cached) " >&6
5383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5384 /* end confdefs.h. */
5391 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5392 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
5393 gl_cv_solaris_64bit=yes
5395 gl_cv_solaris_64bit=no
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
5402 $as_echo "$gl_cv_solaris_64bit" >&6; }
5403 if test $gl_cv_solaris_64bit = yes; then
5404 acl_libdirstem=lib/64
5406 sparc*) acl_libdirstem2=lib/sparcv9 ;;
5407 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
5412 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
5413 if test -n "$searchpath"; then
5414 acl_save_IFS="${IFS= }"; IFS=":"
5415 for searchdir in $searchpath; do
5416 if test -d "$searchdir"; then
5417 case "$searchdir" in
5418 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
5420 # Better ignore directories of this form. They are misleading.
5422 *) searchdir=`cd "$searchdir" && pwd`
5423 case "$searchdir" in
5424 */lib64 ) acl_libdirstem=lib64 ;;
5433 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
5448 acl_save_prefix="$prefix"
5449 prefix="$acl_final_prefix"
5450 acl_save_exec_prefix="$exec_prefix"
5451 exec_prefix="$acl_final_exec_prefix"
5453 eval additional_includedir=\"$includedir\"
5454 eval additional_libdir=\"$libdir\"
5456 exec_prefix="$acl_save_exec_prefix"
5457 prefix="$acl_save_prefix"
5460 # Check whether --with-libiconv-prefix was given.
5461 if test "${with_libiconv_prefix+set}" = set; then :
5462 withval=$with_libiconv_prefix;
5463 if test "X$withval" = "Xno"; then
5466 if test "X$withval" = "X"; then
5468 acl_save_prefix="$prefix"
5469 prefix="$acl_final_prefix"
5470 acl_save_exec_prefix="$exec_prefix"
5471 exec_prefix="$acl_final_exec_prefix"
5473 eval additional_includedir=\"$includedir\"
5474 eval additional_libdir=\"$libdir\"
5476 exec_prefix="$acl_save_exec_prefix"
5477 prefix="$acl_save_prefix"
5480 additional_includedir="$withval/include"
5481 additional_libdir="$withval/$acl_libdirstem"
5482 if test "$acl_libdirstem2" != "$acl_libdirstem" \
5483 && ! test -d "$withval/$acl_libdirstem"; then
5484 additional_libdir="$withval/$acl_libdirstem2"
5498 names_already_handled=
5499 names_next_round='iconv '
5500 while test -n "$names_next_round"; do
5501 names_this_round="$names_next_round"
5503 for name in $names_this_round; do
5505 for n in $names_already_handled; do
5506 if test "$n" = "$name"; then
5511 if test -z "$already_handled"; then
5512 names_already_handled="$names_already_handled $name"
5513 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5514 eval value=\"\$HAVE_LIB$uppername\"
5515 if test -n "$value"; then
5516 if test "$value" = yes; then
5517 eval value=\"\$LIB$uppername\"
5518 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
5519 eval value=\"\$LTLIB$uppername\"
5520 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
5529 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
5530 if test -n "$acl_shlibext"; then
5531 shrext=".$acl_shlibext" # typically: shrext=.so
5535 if test $use_additional = yes; then
5536 dir="$additional_libdir"
5537 if test -n "$acl_shlibext"; then
5538 if test -f "$dir/$libname$shrext"; then
5540 found_so="$dir/$libname$shrext"
5542 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5543 ver=`(cd "$dir" && \
5544 for f in "$libname$shrext".*; do echo "$f"; done \
5545 | sed -e "s,^$libname$shrext\\\\.,," \
5546 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5547 | sed 1q ) 2>/dev/null`
5548 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5550 found_so="$dir/$libname$shrext.$ver"
5553 eval library_names=\"$acl_library_names_spec\"
5554 for f in $library_names; do
5555 if test -f "$dir/$f"; then
5564 if test "X$found_dir" = "X"; then
5565 if test -f "$dir/$libname.$acl_libext"; then
5567 found_a="$dir/$libname.$acl_libext"
5570 if test "X$found_dir" != "X"; then
5571 if test -f "$dir/$libname.la"; then
5572 found_la="$dir/$libname.la"
5576 if test "X$found_dir" = "X"; then
5577 for x in $LDFLAGS $LTLIBICONV; do
5579 acl_save_prefix="$prefix"
5580 prefix="$acl_final_prefix"
5581 acl_save_exec_prefix="$exec_prefix"
5582 exec_prefix="$acl_final_exec_prefix"
5584 exec_prefix="$acl_save_exec_prefix"
5585 prefix="$acl_save_prefix"
5589 dir=`echo "X$x" | sed -e 's/^X-L//'`
5590 if test -n "$acl_shlibext"; then
5591 if test -f "$dir/$libname$shrext"; then
5593 found_so="$dir/$libname$shrext"
5595 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5596 ver=`(cd "$dir" && \
5597 for f in "$libname$shrext".*; do echo "$f"; done \
5598 | sed -e "s,^$libname$shrext\\\\.,," \
5599 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5600 | sed 1q ) 2>/dev/null`
5601 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5603 found_so="$dir/$libname$shrext.$ver"
5606 eval library_names=\"$acl_library_names_spec\"
5607 for f in $library_names; do
5608 if test -f "$dir/$f"; then
5617 if test "X$found_dir" = "X"; then
5618 if test -f "$dir/$libname.$acl_libext"; then
5620 found_a="$dir/$libname.$acl_libext"
5623 if test "X$found_dir" != "X"; then
5624 if test -f "$dir/$libname.la"; then
5625 found_la="$dir/$libname.la"
5630 if test "X$found_dir" != "X"; then
5635 if test "X$found_dir" != "X"; then
5636 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
5637 if test "X$found_so" != "X"; then
5638 if test "$enable_rpath" = no \
5639 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
5640 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
5641 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5644 for x in $ltrpathdirs; do
5645 if test "X$x" = "X$found_dir"; then
5650 if test -z "$haveit"; then
5651 ltrpathdirs="$ltrpathdirs $found_dir"
5653 if test "$acl_hardcode_direct" = yes; then
5654 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5656 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
5657 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5659 for x in $rpathdirs; do
5660 if test "X$x" = "X$found_dir"; then
5665 if test -z "$haveit"; then
5666 rpathdirs="$rpathdirs $found_dir"
5670 for x in $LDFLAGS $LIBICONV; do
5672 acl_save_prefix="$prefix"
5673 prefix="$acl_final_prefix"
5674 acl_save_exec_prefix="$exec_prefix"
5675 exec_prefix="$acl_final_exec_prefix"
5677 exec_prefix="$acl_save_exec_prefix"
5678 prefix="$acl_save_prefix"
5680 if test "X$x" = "X-L$found_dir"; then
5685 if test -z "$haveit"; then
5686 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
5688 if test "$acl_hardcode_minus_L" != no; then
5689 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5691 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5697 if test "X$found_a" != "X"; then
5698 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
5700 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
5703 additional_includedir=
5704 case "$found_dir" in
5705 */$acl_libdirstem | */$acl_libdirstem/)
5706 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
5707 if test "$name" = 'iconv'; then
5708 LIBICONV_PREFIX="$basedir"
5710 additional_includedir="$basedir/include"
5712 */$acl_libdirstem2 | */$acl_libdirstem2/)
5713 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
5714 if test "$name" = 'iconv'; then
5715 LIBICONV_PREFIX="$basedir"
5717 additional_includedir="$basedir/include"
5720 if test "X$additional_includedir" != "X"; then
5721 if test "X$additional_includedir" != "X/usr/include"; then
5723 if test "X$additional_includedir" = "X/usr/local/include"; then
5724 if test -n "$GCC"; then
5726 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5730 if test -z "$haveit"; then
5731 for x in $CPPFLAGS $INCICONV; do
5733 acl_save_prefix="$prefix"
5734 prefix="$acl_final_prefix"
5735 acl_save_exec_prefix="$exec_prefix"
5736 exec_prefix="$acl_final_exec_prefix"
5738 exec_prefix="$acl_save_exec_prefix"
5739 prefix="$acl_save_prefix"
5741 if test "X$x" = "X-I$additional_includedir"; then
5746 if test -z "$haveit"; then
5747 if test -d "$additional_includedir"; then
5748 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
5754 if test -n "$found_la"; then
5755 save_libdir="$libdir"
5757 */* | *\\*) . "$found_la" ;;
5758 *) . "./$found_la" ;;
5760 libdir="$save_libdir"
5761 for dep in $dependency_libs; do
5764 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5765 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
5766 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
5768 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
5769 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
5770 if test -n "$GCC"; then
5772 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5776 if test -z "$haveit"; then
5778 for x in $LDFLAGS $LIBICONV; do
5780 acl_save_prefix="$prefix"
5781 prefix="$acl_final_prefix"
5782 acl_save_exec_prefix="$exec_prefix"
5783 exec_prefix="$acl_final_exec_prefix"
5785 exec_prefix="$acl_save_exec_prefix"
5786 prefix="$acl_save_prefix"
5788 if test "X$x" = "X-L$additional_libdir"; then
5793 if test -z "$haveit"; then
5794 if test -d "$additional_libdir"; then
5795 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
5799 for x in $LDFLAGS $LTLIBICONV; do
5801 acl_save_prefix="$prefix"
5802 prefix="$acl_final_prefix"
5803 acl_save_exec_prefix="$exec_prefix"
5804 exec_prefix="$acl_final_exec_prefix"
5806 exec_prefix="$acl_save_exec_prefix"
5807 prefix="$acl_save_prefix"
5809 if test "X$x" = "X-L$additional_libdir"; then
5814 if test -z "$haveit"; then
5815 if test -d "$additional_libdir"; then
5816 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
5823 dir=`echo "X$dep" | sed -e 's/^X-R//'`
5824 if test "$enable_rpath" != no; then
5826 for x in $rpathdirs; do
5827 if test "X$x" = "X$dir"; then
5832 if test -z "$haveit"; then
5833 rpathdirs="$rpathdirs $dir"
5836 for x in $ltrpathdirs; do
5837 if test "X$x" = "X$dir"; then
5842 if test -z "$haveit"; then
5843 ltrpathdirs="$ltrpathdirs $dir"
5848 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5851 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5854 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
5855 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
5861 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5862 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
5868 if test "X$rpathdirs" != "X"; then
5869 if test -n "$acl_hardcode_libdir_separator"; then
5871 for found_dir in $rpathdirs; do
5872 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
5874 acl_save_libdir="$libdir"
5876 eval flag=\"$acl_hardcode_libdir_flag_spec\"
5877 libdir="$acl_save_libdir"
5878 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5880 for found_dir in $rpathdirs; do
5881 acl_save_libdir="$libdir"
5883 eval flag=\"$acl_hardcode_libdir_flag_spec\"
5884 libdir="$acl_save_libdir"
5885 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5889 if test "X$ltrpathdirs" != "X"; then
5890 for found_dir in $ltrpathdirs; do
5891 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
5926 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
5927 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
5928 $as_echo_n "(cached) " >&6
5930 gt_save_LIBS="$LIBS"
5931 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
5932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5933 /* end confdefs.h. */
5934 #include <CoreFoundation/CFPreferences.h>
5938 CFPreferencesCopyAppValue(NULL, NULL)
5943 if ac_fn_c_try_link "$LINENO"; then :
5944 gt_cv_func_CFPreferencesCopyAppValue=yes
5946 gt_cv_func_CFPreferencesCopyAppValue=no
5948 rm -f core conftest.err conftest.$ac_objext \
5949 conftest$ac_exeext conftest.$ac_ext
5950 LIBS="$gt_save_LIBS"
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
5953 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
5954 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
5956 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
5960 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
5961 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
5962 $as_echo_n "(cached) " >&6
5964 gt_save_LIBS="$LIBS"
5965 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
5966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5967 /* end confdefs.h. */
5968 #include <CoreFoundation/CFLocale.h>
5972 CFLocaleCopyCurrent();
5977 if ac_fn_c_try_link "$LINENO"; then :
5978 gt_cv_func_CFLocaleCopyCurrent=yes
5980 gt_cv_func_CFLocaleCopyCurrent=no
5982 rm -f core conftest.err conftest.$ac_objext \
5983 conftest$ac_exeext conftest.$ac_ext
5984 LIBS="$gt_save_LIBS"
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
5987 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
5988 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5990 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
5994 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5995 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
6007 case " $gt_needs " in
6008 *" need-formatstring-macros "*) gt_api_version=3 ;;
6009 *" need-ngettext "*) gt_api_version=2 ;;
6010 *) gt_api_version=1 ;;
6012 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
6013 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
6015 if test "$USE_NLS" = "yes"; then
6016 gt_use_preinstalled_gnugettext=no
6019 if test $gt_api_version -ge 3; then
6020 gt_revision_test_code='
6021 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
6022 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
6024 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
6027 gt_revision_test_code=
6029 if test $gt_api_version -ge 2; then
6030 gt_expression_test_code=' + * ngettext ("", "", 0)'
6032 gt_expression_test_code=
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
6036 $as_echo_n "checking for GNU gettext in libc... " >&6; }
6037 if eval \${$gt_func_gnugettext_libc+:} false; then :
6038 $as_echo_n "(cached) " >&6
6040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6041 /* end confdefs.h. */
6042 #include <libintl.h>
6043 $gt_revision_test_code
6044 extern int _nl_msg_cat_cntr;
6045 extern int *_nl_domain_bindings;
6049 bindtextdomain ("", "");
6050 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
6055 if ac_fn_c_try_link "$LINENO"; then :
6056 eval "$gt_func_gnugettext_libc=yes"
6058 eval "$gt_func_gnugettext_libc=no"
6060 rm -f core conftest.err conftest.$ac_objext \
6061 conftest$ac_exeext conftest.$ac_ext
6063 eval ac_res=\$$gt_func_gnugettext_libc
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6065 $as_echo "$ac_res" >&6; }
6067 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
6073 am_save_CPPFLAGS="$CPPFLAGS"
6075 for element in $INCICONV; do
6077 for x in $CPPFLAGS; do
6079 acl_save_prefix="$prefix"
6080 prefix="$acl_final_prefix"
6081 acl_save_exec_prefix="$exec_prefix"
6082 exec_prefix="$acl_final_exec_prefix"
6084 exec_prefix="$acl_save_exec_prefix"
6085 prefix="$acl_save_prefix"
6087 if test "X$x" = "X$element"; then
6092 if test -z "$haveit"; then
6093 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
6099 $as_echo_n "checking for iconv... " >&6; }
6100 if ${am_cv_func_iconv+:} false; then :
6101 $as_echo_n "(cached) " >&6
6104 am_cv_func_iconv="no, consider installing GNU libiconv"
6106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6107 /* end confdefs.h. */
6113 iconv_t cd = iconv_open("","");
6114 iconv(cd,NULL,NULL,NULL,NULL);
6120 if ac_fn_c_try_link "$LINENO"; then :
6121 am_cv_func_iconv=yes
6123 rm -f core conftest.err conftest.$ac_objext \
6124 conftest$ac_exeext conftest.$ac_ext
6125 if test "$am_cv_func_iconv" != yes; then
6126 am_save_LIBS="$LIBS"
6127 LIBS="$LIBS $LIBICONV"
6128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6129 /* end confdefs.h. */
6135 iconv_t cd = iconv_open("","");
6136 iconv(cd,NULL,NULL,NULL,NULL);
6142 if ac_fn_c_try_link "$LINENO"; then :
6144 am_cv_func_iconv=yes
6146 rm -f core conftest.err conftest.$ac_objext \
6147 conftest$ac_exeext conftest.$ac_ext
6148 LIBS="$am_save_LIBS"
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
6153 $as_echo "$am_cv_func_iconv" >&6; }
6154 if test "$am_cv_func_iconv" = yes; then
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
6156 $as_echo_n "checking for working iconv... " >&6; }
6157 if ${am_cv_func_iconv_works+:} false; then :
6158 $as_echo_n "(cached) " >&6
6161 am_save_LIBS="$LIBS"
6162 if test $am_cv_lib_iconv = yes; then
6163 LIBS="$LIBS $LIBICONV"
6165 if test "$cross_compiling" = yes; then :
6167 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
6168 *) am_cv_func_iconv_works="guessing yes" ;;
6171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6172 /* end confdefs.h. */
6178 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
6181 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
6182 if (cd_utf8_to_88591 != (iconv_t)(-1))
6184 static const char input[] = "\342\202\254"; /* EURO SIGN */
6186 const char *inptr = input;
6187 size_t inbytesleft = strlen (input);
6189 size_t outbytesleft = sizeof (buf);
6190 size_t res = iconv (cd_utf8_to_88591,
6191 (char **) &inptr, &inbytesleft,
6192 &outptr, &outbytesleft);
6197 /* Test against Solaris 10 bug: Failures are not distinguishable from
6198 successful returns. */
6200 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
6201 if (cd_ascii_to_88591 != (iconv_t)(-1))
6203 static const char input[] = "\263";
6205 const char *inptr = input;
6206 size_t inbytesleft = strlen (input);
6208 size_t outbytesleft = sizeof (buf);
6209 size_t res = iconv (cd_ascii_to_88591,
6210 (char **) &inptr, &inbytesleft,
6211 &outptr, &outbytesleft);
6216 #if 0 /* This bug could be worked around by the caller. */
6217 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
6219 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
6220 if (cd_88591_to_utf8 != (iconv_t)(-1))
6222 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
6224 const char *inptr = input;
6225 size_t inbytesleft = strlen (input);
6227 size_t outbytesleft = sizeof (buf);
6228 size_t res = iconv (cd_88591_to_utf8,
6229 (char **) &inptr, &inbytesleft,
6230 &outptr, &outbytesleft);
6236 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
6238 if (/* Try standardized names. */
6239 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
6240 /* Try IRIX, OSF/1 names. */
6241 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
6242 /* Try AIX names. */
6243 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
6244 /* Try HP-UX names. */
6245 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
6250 if ac_fn_c_try_run "$LINENO"; then :
6251 am_cv_func_iconv_works=yes
6253 am_cv_func_iconv_works=no
6255 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6256 conftest.$ac_objext conftest.beam conftest.$ac_ext
6259 LIBS="$am_save_LIBS"
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
6263 $as_echo "$am_cv_func_iconv_works" >&6; }
6264 case "$am_cv_func_iconv_works" in
6265 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
6266 *) am_func_iconv=yes ;;
6269 am_func_iconv=no am_cv_lib_iconv=no
6271 if test "$am_func_iconv" = yes; then
6273 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
6276 if test "$am_cv_lib_iconv" = yes; then
6277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
6278 $as_echo_n "checking how to link with libiconv... " >&6; }
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
6280 $as_echo "$LIBICONV" >&6; }
6282 CPPFLAGS="$am_save_CPPFLAGS"
6299 acl_save_prefix="$prefix"
6300 prefix="$acl_final_prefix"
6301 acl_save_exec_prefix="$exec_prefix"
6302 exec_prefix="$acl_final_exec_prefix"
6304 eval additional_includedir=\"$includedir\"
6305 eval additional_libdir=\"$libdir\"
6307 exec_prefix="$acl_save_exec_prefix"
6308 prefix="$acl_save_prefix"
6311 # Check whether --with-libintl-prefix was given.
6312 if test "${with_libintl_prefix+set}" = set; then :
6313 withval=$with_libintl_prefix;
6314 if test "X$withval" = "Xno"; then
6317 if test "X$withval" = "X"; then
6319 acl_save_prefix="$prefix"
6320 prefix="$acl_final_prefix"
6321 acl_save_exec_prefix="$exec_prefix"
6322 exec_prefix="$acl_final_exec_prefix"
6324 eval additional_includedir=\"$includedir\"
6325 eval additional_libdir=\"$libdir\"
6327 exec_prefix="$acl_save_exec_prefix"
6328 prefix="$acl_save_prefix"
6331 additional_includedir="$withval/include"
6332 additional_libdir="$withval/$acl_libdirstem"
6333 if test "$acl_libdirstem2" != "$acl_libdirstem" \
6334 && ! test -d "$withval/$acl_libdirstem"; then
6335 additional_libdir="$withval/$acl_libdirstem2"
6349 names_already_handled=
6350 names_next_round='intl '
6351 while test -n "$names_next_round"; do
6352 names_this_round="$names_next_round"
6354 for name in $names_this_round; do
6356 for n in $names_already_handled; do
6357 if test "$n" = "$name"; then
6362 if test -z "$already_handled"; then
6363 names_already_handled="$names_already_handled $name"
6364 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6365 eval value=\"\$HAVE_LIB$uppername\"
6366 if test -n "$value"; then
6367 if test "$value" = yes; then
6368 eval value=\"\$LIB$uppername\"
6369 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
6370 eval value=\"\$LTLIB$uppername\"
6371 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
6380 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
6381 if test -n "$acl_shlibext"; then
6382 shrext=".$acl_shlibext" # typically: shrext=.so
6386 if test $use_additional = yes; then
6387 dir="$additional_libdir"
6388 if test -n "$acl_shlibext"; then
6389 if test -f "$dir/$libname$shrext"; then
6391 found_so="$dir/$libname$shrext"
6393 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6394 ver=`(cd "$dir" && \
6395 for f in "$libname$shrext".*; do echo "$f"; done \
6396 | sed -e "s,^$libname$shrext\\\\.,," \
6397 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6398 | sed 1q ) 2>/dev/null`
6399 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6401 found_so="$dir/$libname$shrext.$ver"
6404 eval library_names=\"$acl_library_names_spec\"
6405 for f in $library_names; do
6406 if test -f "$dir/$f"; then
6415 if test "X$found_dir" = "X"; then
6416 if test -f "$dir/$libname.$acl_libext"; then
6418 found_a="$dir/$libname.$acl_libext"
6421 if test "X$found_dir" != "X"; then
6422 if test -f "$dir/$libname.la"; then
6423 found_la="$dir/$libname.la"
6427 if test "X$found_dir" = "X"; then
6428 for x in $LDFLAGS $LTLIBINTL; do
6430 acl_save_prefix="$prefix"
6431 prefix="$acl_final_prefix"
6432 acl_save_exec_prefix="$exec_prefix"
6433 exec_prefix="$acl_final_exec_prefix"
6435 exec_prefix="$acl_save_exec_prefix"
6436 prefix="$acl_save_prefix"
6440 dir=`echo "X$x" | sed -e 's/^X-L//'`
6441 if test -n "$acl_shlibext"; then
6442 if test -f "$dir/$libname$shrext"; then
6444 found_so="$dir/$libname$shrext"
6446 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6447 ver=`(cd "$dir" && \
6448 for f in "$libname$shrext".*; do echo "$f"; done \
6449 | sed -e "s,^$libname$shrext\\\\.,," \
6450 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6451 | sed 1q ) 2>/dev/null`
6452 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6454 found_so="$dir/$libname$shrext.$ver"
6457 eval library_names=\"$acl_library_names_spec\"
6458 for f in $library_names; do
6459 if test -f "$dir/$f"; then
6468 if test "X$found_dir" = "X"; then
6469 if test -f "$dir/$libname.$acl_libext"; then
6471 found_a="$dir/$libname.$acl_libext"
6474 if test "X$found_dir" != "X"; then
6475 if test -f "$dir/$libname.la"; then
6476 found_la="$dir/$libname.la"
6481 if test "X$found_dir" != "X"; then
6486 if test "X$found_dir" != "X"; then
6487 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
6488 if test "X$found_so" != "X"; then
6489 if test "$enable_rpath" = no \
6490 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
6491 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
6492 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6495 for x in $ltrpathdirs; do
6496 if test "X$x" = "X$found_dir"; then
6501 if test -z "$haveit"; then
6502 ltrpathdirs="$ltrpathdirs $found_dir"
6504 if test "$acl_hardcode_direct" = yes; then
6505 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6507 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
6508 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6510 for x in $rpathdirs; do
6511 if test "X$x" = "X$found_dir"; then
6516 if test -z "$haveit"; then
6517 rpathdirs="$rpathdirs $found_dir"
6521 for x in $LDFLAGS $LIBINTL; do
6523 acl_save_prefix="$prefix"
6524 prefix="$acl_final_prefix"
6525 acl_save_exec_prefix="$exec_prefix"
6526 exec_prefix="$acl_final_exec_prefix"
6528 exec_prefix="$acl_save_exec_prefix"
6529 prefix="$acl_save_prefix"
6531 if test "X$x" = "X-L$found_dir"; then
6536 if test -z "$haveit"; then
6537 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
6539 if test "$acl_hardcode_minus_L" != no; then
6540 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6542 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6548 if test "X$found_a" != "X"; then
6549 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
6551 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
6554 additional_includedir=
6555 case "$found_dir" in
6556 */$acl_libdirstem | */$acl_libdirstem/)
6557 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
6558 if test "$name" = 'intl'; then
6559 LIBINTL_PREFIX="$basedir"
6561 additional_includedir="$basedir/include"
6563 */$acl_libdirstem2 | */$acl_libdirstem2/)
6564 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
6565 if test "$name" = 'intl'; then
6566 LIBINTL_PREFIX="$basedir"
6568 additional_includedir="$basedir/include"
6571 if test "X$additional_includedir" != "X"; then
6572 if test "X$additional_includedir" != "X/usr/include"; then
6574 if test "X$additional_includedir" = "X/usr/local/include"; then
6575 if test -n "$GCC"; then
6577 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6581 if test -z "$haveit"; then
6582 for x in $CPPFLAGS $INCINTL; do
6584 acl_save_prefix="$prefix"
6585 prefix="$acl_final_prefix"
6586 acl_save_exec_prefix="$exec_prefix"
6587 exec_prefix="$acl_final_exec_prefix"
6589 exec_prefix="$acl_save_exec_prefix"
6590 prefix="$acl_save_prefix"
6592 if test "X$x" = "X-I$additional_includedir"; then
6597 if test -z "$haveit"; then
6598 if test -d "$additional_includedir"; then
6599 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
6605 if test -n "$found_la"; then
6606 save_libdir="$libdir"
6608 */* | *\\*) . "$found_la" ;;
6609 *) . "./$found_la" ;;
6611 libdir="$save_libdir"
6612 for dep in $dependency_libs; do
6615 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6616 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
6617 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
6619 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
6620 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
6621 if test -n "$GCC"; then
6623 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6627 if test -z "$haveit"; then
6629 for x in $LDFLAGS $LIBINTL; do
6631 acl_save_prefix="$prefix"
6632 prefix="$acl_final_prefix"
6633 acl_save_exec_prefix="$exec_prefix"
6634 exec_prefix="$acl_final_exec_prefix"
6636 exec_prefix="$acl_save_exec_prefix"
6637 prefix="$acl_save_prefix"
6639 if test "X$x" = "X-L$additional_libdir"; then
6644 if test -z "$haveit"; then
6645 if test -d "$additional_libdir"; then
6646 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
6650 for x in $LDFLAGS $LTLIBINTL; do
6652 acl_save_prefix="$prefix"
6653 prefix="$acl_final_prefix"
6654 acl_save_exec_prefix="$exec_prefix"
6655 exec_prefix="$acl_final_exec_prefix"
6657 exec_prefix="$acl_save_exec_prefix"
6658 prefix="$acl_save_prefix"
6660 if test "X$x" = "X-L$additional_libdir"; then
6665 if test -z "$haveit"; then
6666 if test -d "$additional_libdir"; then
6667 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
6674 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6675 if test "$enable_rpath" != no; then
6677 for x in $rpathdirs; do
6678 if test "X$x" = "X$dir"; then
6683 if test -z "$haveit"; then
6684 rpathdirs="$rpathdirs $dir"
6687 for x in $ltrpathdirs; do
6688 if test "X$x" = "X$dir"; then
6693 if test -z "$haveit"; then
6694 ltrpathdirs="$ltrpathdirs $dir"
6699 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6702 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6705 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
6706 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
6712 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6713 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
6719 if test "X$rpathdirs" != "X"; then
6720 if test -n "$acl_hardcode_libdir_separator"; then
6722 for found_dir in $rpathdirs; do
6723 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
6725 acl_save_libdir="$libdir"
6727 eval flag=\"$acl_hardcode_libdir_flag_spec\"
6728 libdir="$acl_save_libdir"
6729 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6731 for found_dir in $rpathdirs; do
6732 acl_save_libdir="$libdir"
6734 eval flag=\"$acl_hardcode_libdir_flag_spec\"
6735 libdir="$acl_save_libdir"
6736 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6740 if test "X$ltrpathdirs" != "X"; then
6741 for found_dir in $ltrpathdirs; do
6742 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
6752 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
6753 if eval \${$gt_func_gnugettext_libintl+:} false; then :
6754 $as_echo_n "(cached) " >&6
6756 gt_save_CPPFLAGS="$CPPFLAGS"
6757 CPPFLAGS="$CPPFLAGS $INCINTL"
6758 gt_save_LIBS="$LIBS"
6759 LIBS="$LIBS $LIBINTL"
6760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6761 /* end confdefs.h. */
6762 #include <libintl.h>
6763 $gt_revision_test_code
6764 extern int _nl_msg_cat_cntr;
6769 const char *_nl_expand_alias (const char *);
6773 bindtextdomain ("", "");
6774 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6779 if ac_fn_c_try_link "$LINENO"; then :
6780 eval "$gt_func_gnugettext_libintl=yes"
6782 eval "$gt_func_gnugettext_libintl=no"
6784 rm -f core conftest.err conftest.$ac_objext \
6785 conftest$ac_exeext conftest.$ac_ext
6786 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
6787 LIBS="$LIBS $LIBICONV"
6788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6789 /* end confdefs.h. */
6790 #include <libintl.h>
6791 $gt_revision_test_code
6792 extern int _nl_msg_cat_cntr;
6797 const char *_nl_expand_alias (const char *);
6801 bindtextdomain ("", "");
6802 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6807 if ac_fn_c_try_link "$LINENO"; then :
6808 LIBINTL="$LIBINTL $LIBICONV"
6809 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
6810 eval "$gt_func_gnugettext_libintl=yes"
6813 rm -f core conftest.err conftest.$ac_objext \
6814 conftest$ac_exeext conftest.$ac_ext
6816 CPPFLAGS="$gt_save_CPPFLAGS"
6817 LIBS="$gt_save_LIBS"
6819 eval ac_res=\$$gt_func_gnugettext_libintl
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6821 $as_echo "$ac_res" >&6; }
6824 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
6825 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
6826 && test "$PACKAGE" != gettext-runtime \
6827 && test "$PACKAGE" != gettext-tools; }; then
6828 gt_use_preinstalled_gnugettext=yes
6837 if test -n "$INTL_MACOSX_LIBS"; then
6838 if test "$gt_use_preinstalled_gnugettext" = "yes" \
6839 || test "$nls_cv_use_gnu_gettext" = "yes"; then
6840 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
6841 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
6845 if test "$gt_use_preinstalled_gnugettext" = "yes" \
6846 || test "$nls_cv_use_gnu_gettext" = "yes"; then
6848 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
6856 $as_echo_n "checking whether to use NLS... " >&6; }
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6858 $as_echo "$USE_NLS" >&6; }
6859 if test "$USE_NLS" = "yes"; then
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
6861 $as_echo_n "checking where the gettext function comes from... " >&6; }
6862 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6863 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
6864 gt_source="external libintl"
6869 gt_source="included intl directory"
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
6872 $as_echo "$gt_source" >&6; }
6875 if test "$USE_NLS" = "yes"; then
6877 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6878 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
6880 $as_echo_n "checking how to link with libintl... " >&6; }
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
6882 $as_echo "$LIBINTL" >&6; }
6884 for element in $INCINTL; do
6886 for x in $CPPFLAGS; do
6888 acl_save_prefix="$prefix"
6889 prefix="$acl_final_prefix"
6890 acl_save_exec_prefix="$exec_prefix"
6891 exec_prefix="$acl_final_exec_prefix"
6893 exec_prefix="$acl_save_exec_prefix"
6894 prefix="$acl_save_prefix"
6896 if test "X$x" = "X$element"; then
6901 if test -z "$haveit"; then
6902 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6909 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
6912 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
6929 ############### common
6931 # Checks sensors, required by psensor and psensor-server
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sensors_init in -lsensors" >&5
6933 $as_echo_n "checking for sensors_init in -lsensors... " >&6; }
6934 if ${ac_cv_lib_sensors_sensors_init+:} false; then :
6935 $as_echo_n "(cached) " >&6
6937 ac_check_lib_save_LIBS=$LIBS
6938 LIBS="-lsensors $LIBS"
6939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6940 /* end confdefs.h. */
6942 /* Override any GCC internal prototype to avoid an error.
6943 Use char because int might match the return type of a GCC
6944 builtin and then its argument prototype would still apply. */
6948 char sensors_init ();
6952 return sensors_init ();
6957 if ac_fn_c_try_link "$LINENO"; then :
6958 ac_cv_lib_sensors_sensors_init=yes
6960 ac_cv_lib_sensors_sensors_init=no
6962 rm -f core conftest.err conftest.$ac_objext \
6963 conftest$ac_exeext conftest.$ac_ext
6964 LIBS=$ac_check_lib_save_LIBS
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sensors_sensors_init" >&5
6967 $as_echo "$ac_cv_lib_sensors_sensors_init" >&6; }
6968 if test "x$ac_cv_lib_sensors_sensors_init" = xyes; then :
6969 cat >>confdefs.h <<_ACEOF
6970 #define HAVE_LIBSENSORS 1
6973 LIBS="-lsensors $LIBS"
6977 for ac_header in sensors/sensors.h sensors/errors.h
6979 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6980 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6981 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6982 cat >>confdefs.h <<_ACEOF
6983 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6990 SENSORS_LIBS=-lsensors
6993 ############### psensor
7004 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7005 if test -n "$ac_tool_prefix"; then
7006 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7007 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7009 $as_echo_n "checking for $ac_word... " >&6; }
7010 if ${ac_cv_path_PKG_CONFIG+:} false; then :
7011 $as_echo_n "(cached) " >&6
7015 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7022 test -z "$as_dir" && as_dir=.
7023 for ac_exec_ext in '' $ac_executable_extensions; do
7024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7025 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7036 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7037 if test -n "$PKG_CONFIG"; then
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7039 $as_echo "$PKG_CONFIG" >&6; }
7041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7042 $as_echo "no" >&6; }
7047 if test -z "$ac_cv_path_PKG_CONFIG"; then
7048 ac_pt_PKG_CONFIG=$PKG_CONFIG
7049 # Extract the first word of "pkg-config", so it can be a program name with args.
7050 set dummy pkg-config; ac_word=$2
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7052 $as_echo_n "checking for $ac_word... " >&6; }
7053 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
7054 $as_echo_n "(cached) " >&6
7056 case $ac_pt_PKG_CONFIG in
7058 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7065 test -z "$as_dir" && as_dir=.
7066 for ac_exec_ext in '' $ac_executable_extensions; do
7067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7068 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7079 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7080 if test -n "$ac_pt_PKG_CONFIG"; then
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7082 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7085 $as_echo "no" >&6; }
7088 if test "x$ac_pt_PKG_CONFIG" = x; then
7091 case $cross_compiling:$ac_tool_warned in
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7094 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7095 ac_tool_warned=yes ;;
7097 PKG_CONFIG=$ac_pt_PKG_CONFIG
7100 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7104 if test -n "$PKG_CONFIG"; then
7105 _pkg_min_version=0.9.0
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7107 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7108 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7110 $as_echo "yes" >&6; }
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7113 $as_echo "no" >&6; }
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
7120 $as_echo_n "checking for X11... " >&6; }
7122 if test -n "$X11_CFLAGS"; then
7123 pkg_cv_X11_CFLAGS="$X11_CFLAGS"
7124 elif test -n "$PKG_CONFIG"; then
7125 if test -n "$PKG_CONFIG" && \
7126 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
7127 ($PKG_CONFIG --exists --print-errors "x11") 2>&5
7129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7130 test $ac_status = 0; }; then
7131 pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
7132 test "x$?" != "x0" && pkg_failed=yes
7139 if test -n "$X11_LIBS"; then
7140 pkg_cv_X11_LIBS="$X11_LIBS"
7141 elif test -n "$PKG_CONFIG"; then
7142 if test -n "$PKG_CONFIG" && \
7143 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
7144 ($PKG_CONFIG --exists --print-errors "x11") 2>&5
7146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7147 test $ac_status = 0; }; then
7148 pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
7149 test "x$?" != "x0" && pkg_failed=yes
7159 if test $pkg_failed = yes; then
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7161 $as_echo "no" >&6; }
7163 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7164 _pkg_short_errors_supported=yes
7166 _pkg_short_errors_supported=no
7168 if test $_pkg_short_errors_supported = yes; then
7169 X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11" 2>&1`
7171 X11_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11" 2>&1`
7173 # Put the nasty error message in config.log where it belongs
7174 echo "$X11_PKG_ERRORS" >&5
7176 as_fn_error $? "Package requirements (x11) were not met:
7180 Consider adjusting the PKG_CONFIG_PATH environment variable if you
7181 installed software in a non-standard prefix.
7183 Alternatively, you may set the environment variables X11_CFLAGS
7184 and X11_LIBS to avoid the need to call pkg-config.
7185 See the pkg-config man page for more details." "$LINENO" 5
7186 elif test $pkg_failed = untried; then
7187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7188 $as_echo "no" >&6; }
7189 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7190 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7191 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
7192 is in your PATH or set the PKG_CONFIG environment variable to the full
7195 Alternatively, you may set the environment variables X11_CFLAGS
7196 and X11_LIBS to avoid the need to call pkg-config.
7197 See the pkg-config man page for more details.
7199 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7200 See \`config.log' for more details" "$LINENO" 5; }
7202 X11_CFLAGS=$pkg_cv_X11_CFLAGS
7203 X11_LIBS=$pkg_cv_X11_LIBS
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7205 $as_echo "yes" >&6; }
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5
7214 $as_echo_n "checking for XEXT... " >&6; }
7216 if test -n "$XEXT_CFLAGS"; then
7217 pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
7218 elif test -n "$PKG_CONFIG"; then
7219 if test -n "$PKG_CONFIG" && \
7220 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5
7221 ($PKG_CONFIG --exists --print-errors "xext") 2>&5
7223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7224 test $ac_status = 0; }; then
7225 pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xext" 2>/dev/null`
7226 test "x$?" != "x0" && pkg_failed=yes
7233 if test -n "$XEXT_LIBS"; then
7234 pkg_cv_XEXT_LIBS="$XEXT_LIBS"
7235 elif test -n "$PKG_CONFIG"; then
7236 if test -n "$PKG_CONFIG" && \
7237 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5
7238 ($PKG_CONFIG --exists --print-errors "xext") 2>&5
7240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7241 test $ac_status = 0; }; then
7242 pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xext" 2>/dev/null`
7243 test "x$?" != "x0" && pkg_failed=yes
7253 if test $pkg_failed = yes; then
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7255 $as_echo "no" >&6; }
7257 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7258 _pkg_short_errors_supported=yes
7260 _pkg_short_errors_supported=no
7262 if test $_pkg_short_errors_supported = yes; then
7263 XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xext" 2>&1`
7265 XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xext" 2>&1`
7267 # Put the nasty error message in config.log where it belongs
7268 echo "$XEXT_PKG_ERRORS" >&5
7270 as_fn_error $? "Package requirements (xext) were not met:
7274 Consider adjusting the PKG_CONFIG_PATH environment variable if you
7275 installed software in a non-standard prefix.
7277 Alternatively, you may set the environment variables XEXT_CFLAGS
7278 and XEXT_LIBS to avoid the need to call pkg-config.
7279 See the pkg-config man page for more details." "$LINENO" 5
7280 elif test $pkg_failed = untried; then
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7282 $as_echo "no" >&6; }
7283 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7284 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7285 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
7286 is in your PATH or set the PKG_CONFIG environment variable to the full
7289 Alternatively, you may set the environment variables XEXT_CFLAGS
7290 and XEXT_LIBS to avoid the need to call pkg-config.
7291 See the pkg-config man page for more details.
7293 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7294 See \`config.log' for more details" "$LINENO" 5; }
7296 XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
7297 XEXT_LIBS=$pkg_cv_XEXT_LIBS
7298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7299 $as_echo "yes" >&6; }
7309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5
7310 $as_echo_n "checking for GTK... " >&6; }
7312 if test -n "$GTK_CFLAGS"; then
7313 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
7314 elif test -n "$PKG_CONFIG"; then
7315 if test -n "$PKG_CONFIG" && \
7316 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0\""; } >&5
7317 ($PKG_CONFIG --exists --print-errors "gtk+-3.0") 2>&5
7319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7320 test $ac_status = 0; }; then
7321 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-3.0" 2>/dev/null`
7322 test "x$?" != "x0" && pkg_failed=yes
7329 if test -n "$GTK_LIBS"; then
7330 pkg_cv_GTK_LIBS="$GTK_LIBS"
7331 elif test -n "$PKG_CONFIG"; then
7332 if test -n "$PKG_CONFIG" && \
7333 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0\""; } >&5
7334 ($PKG_CONFIG --exists --print-errors "gtk+-3.0") 2>&5
7336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7337 test $ac_status = 0; }; then
7338 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-3.0" 2>/dev/null`
7339 test "x$?" != "x0" && pkg_failed=yes
7349 if test $pkg_failed = yes; then
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7351 $as_echo "no" >&6; }
7353 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7354 _pkg_short_errors_supported=yes
7356 _pkg_short_errors_supported=no
7358 if test $_pkg_short_errors_supported = yes; then
7359 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-3.0" 2>&1`
7361 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-3.0" 2>&1`
7363 # Put the nasty error message in config.log where it belongs
7364 echo "$GTK_PKG_ERRORS" >&5
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"GTK+ 3 not present\"" >&5
7367 $as_echo "$as_me: WARNING: \"GTK+ 3 not present\"" >&2;}
7368 elif test $pkg_failed = untried; then
7369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7370 $as_echo "no" >&6; }
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"GTK+ 3 not present\"" >&5
7372 $as_echo "$as_me: WARNING: \"GTK+ 3 not present\"" >&2;}
7374 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
7375 GTK_LIBS=$pkg_cv_GTK_LIBS
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7377 $as_echo "yes" >&6; }
7379 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
7382 if test -n "$GTK_LIBS"; then
7393 if test "$GTK_LIBS" == ""; then
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5
7397 $as_echo_n "checking for GTK... " >&6; }
7399 if test -n "$GTK_CFLAGS"; then
7400 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
7401 elif test -n "$PKG_CONFIG"; then
7402 if test -n "$PKG_CONFIG" && \
7403 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.18\""; } >&5
7404 ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.18") 2>&5
7406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7407 test $ac_status = 0; }; then
7408 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.18" 2>/dev/null`
7409 test "x$?" != "x0" && pkg_failed=yes
7416 if test -n "$GTK_LIBS"; then
7417 pkg_cv_GTK_LIBS="$GTK_LIBS"
7418 elif test -n "$PKG_CONFIG"; then
7419 if test -n "$PKG_CONFIG" && \
7420 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.18\""; } >&5
7421 ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.18") 2>&5
7423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7424 test $ac_status = 0; }; then
7425 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.18" 2>/dev/null`
7426 test "x$?" != "x0" && pkg_failed=yes
7436 if test $pkg_failed = yes; then
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7438 $as_echo "no" >&6; }
7440 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7441 _pkg_short_errors_supported=yes
7443 _pkg_short_errors_supported=no
7445 if test $_pkg_short_errors_supported = yes; then
7446 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-2.0 >= 2.18" 2>&1`
7448 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-2.0 >= 2.18" 2>&1`
7450 # Put the nasty error message in config.log where it belongs
7451 echo "$GTK_PKG_ERRORS" >&5
7453 as_fn_error $? "Package requirements (gtk+-2.0 >= 2.18) were not met:
7457 Consider adjusting the PKG_CONFIG_PATH environment variable if you
7458 installed software in a non-standard prefix.
7460 Alternatively, you may set the environment variables GTK_CFLAGS
7461 and GTK_LIBS to avoid the need to call pkg-config.
7462 See the pkg-config man page for more details." "$LINENO" 5
7463 elif test $pkg_failed = untried; then
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7465 $as_echo "no" >&6; }
7466 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7467 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7468 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
7469 is in your PATH or set the PKG_CONFIG environment variable to the full
7472 Alternatively, you may set the environment variables GTK_CFLAGS
7473 and GTK_LIBS to avoid the need to call pkg-config.
7474 See the pkg-config man page for more details.
7476 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7477 See \`config.log' for more details" "$LINENO" 5; }
7479 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
7480 GTK_LIBS=$pkg_cv_GTK_LIBS
7481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7482 $as_echo "yes" >&6; }
7485 if test -n "$GTK_LIBS"; then
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCONF" >&5
7501 $as_echo_n "checking for GCONF... " >&6; }
7503 if test -n "$GCONF_CFLAGS"; then
7504 pkg_cv_GCONF_CFLAGS="$GCONF_CFLAGS"
7505 elif test -n "$PKG_CONFIG"; then
7506 if test -n "$PKG_CONFIG" && \
7507 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gconf-2.0\""; } >&5
7508 ($PKG_CONFIG --exists --print-errors "gconf-2.0") 2>&5
7510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7511 test $ac_status = 0; }; then
7512 pkg_cv_GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0" 2>/dev/null`
7513 test "x$?" != "x0" && pkg_failed=yes
7520 if test -n "$GCONF_LIBS"; then
7521 pkg_cv_GCONF_LIBS="$GCONF_LIBS"
7522 elif test -n "$PKG_CONFIG"; then
7523 if test -n "$PKG_CONFIG" && \
7524 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gconf-2.0\""; } >&5
7525 ($PKG_CONFIG --exists --print-errors "gconf-2.0") 2>&5
7527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7528 test $ac_status = 0; }; then
7529 pkg_cv_GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0" 2>/dev/null`
7530 test "x$?" != "x0" && pkg_failed=yes
7540 if test $pkg_failed = yes; then
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7542 $as_echo "no" >&6; }
7544 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7545 _pkg_short_errors_supported=yes
7547 _pkg_short_errors_supported=no
7549 if test $_pkg_short_errors_supported = yes; then
7550 GCONF_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gconf-2.0" 2>&1`
7552 GCONF_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gconf-2.0" 2>&1`
7554 # Put the nasty error message in config.log where it belongs
7555 echo "$GCONF_PKG_ERRORS" >&5
7557 as_fn_error $? "Package requirements (gconf-2.0) were not met:
7561 Consider adjusting the PKG_CONFIG_PATH environment variable if you
7562 installed software in a non-standard prefix.
7564 Alternatively, you may set the environment variables GCONF_CFLAGS
7565 and GCONF_LIBS to avoid the need to call pkg-config.
7566 See the pkg-config man page for more details." "$LINENO" 5
7567 elif test $pkg_failed = untried; then
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7569 $as_echo "no" >&6; }
7570 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7571 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7572 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
7573 is in your PATH or set the PKG_CONFIG environment variable to the full
7576 Alternatively, you may set the environment variables GCONF_CFLAGS
7577 and GCONF_LIBS to avoid the need to call pkg-config.
7578 See the pkg-config man page for more details.
7580 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7581 See \`config.log' for more details" "$LINENO" 5; }
7583 GCONF_CFLAGS=$pkg_cv_GCONF_CFLAGS
7584 GCONF_LIBS=$pkg_cv_GCONF_LIBS
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7586 $as_echo "yes" >&6; }
7598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBNOTIFY" >&5
7599 $as_echo_n "checking for LIBNOTIFY... " >&6; }
7601 if test -n "$LIBNOTIFY_CFLAGS"; then
7602 pkg_cv_LIBNOTIFY_CFLAGS="$LIBNOTIFY_CFLAGS"
7603 elif test -n "$PKG_CONFIG"; then
7604 if test -n "$PKG_CONFIG" && \
7605 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnotify\""; } >&5
7606 ($PKG_CONFIG --exists --print-errors "libnotify") 2>&5
7608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7609 test $ac_status = 0; }; then
7610 pkg_cv_LIBNOTIFY_CFLAGS=`$PKG_CONFIG --cflags "libnotify" 2>/dev/null`
7611 test "x$?" != "x0" && pkg_failed=yes
7618 if test -n "$LIBNOTIFY_LIBS"; then
7619 pkg_cv_LIBNOTIFY_LIBS="$LIBNOTIFY_LIBS"
7620 elif test -n "$PKG_CONFIG"; then
7621 if test -n "$PKG_CONFIG" && \
7622 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnotify\""; } >&5
7623 ($PKG_CONFIG --exists --print-errors "libnotify") 2>&5
7625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7626 test $ac_status = 0; }; then
7627 pkg_cv_LIBNOTIFY_LIBS=`$PKG_CONFIG --libs "libnotify" 2>/dev/null`
7628 test "x$?" != "x0" && pkg_failed=yes
7638 if test $pkg_failed = yes; then
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7640 $as_echo "no" >&6; }
7642 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7643 _pkg_short_errors_supported=yes
7645 _pkg_short_errors_supported=no
7647 if test $_pkg_short_errors_supported = yes; then
7648 LIBNOTIFY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libnotify" 2>&1`
7650 LIBNOTIFY_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libnotify" 2>&1`
7652 # Put the nasty error message in config.log where it belongs
7653 echo "$LIBNOTIFY_PKG_ERRORS" >&5
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Desktop notification disabled\"" >&5
7656 $as_echo "$as_me: WARNING: \"Desktop notification disabled\"" >&2;}
7657 elif test $pkg_failed = untried; then
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7659 $as_echo "no" >&6; }
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Desktop notification disabled\"" >&5
7661 $as_echo "$as_me: WARNING: \"Desktop notification disabled\"" >&2;}
7663 LIBNOTIFY_CFLAGS=$pkg_cv_LIBNOTIFY_CFLAGS
7664 LIBNOTIFY_LIBS=$pkg_cv_LIBNOTIFY_LIBS
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7666 $as_echo "yes" >&6; }
7668 $as_echo "#define HAVE_LIBNOTIFY 1" >>confdefs.h
7671 if test -n "$LIBNOTIFY_LIBS"; then
7682 # Checks AppIndicator
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APPINDICATOR" >&5
7688 $as_echo_n "checking for APPINDICATOR... " >&6; }
7690 if test -n "$APPINDICATOR_CFLAGS"; then
7691 pkg_cv_APPINDICATOR_CFLAGS="$APPINDICATOR_CFLAGS"
7692 elif test -n "$PKG_CONFIG"; then
7693 if test -n "$PKG_CONFIG" && \
7694 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"appindicator3-0.1\""; } >&5
7695 ($PKG_CONFIG --exists --print-errors "appindicator3-0.1") 2>&5
7697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7698 test $ac_status = 0; }; then
7699 pkg_cv_APPINDICATOR_CFLAGS=`$PKG_CONFIG --cflags "appindicator3-0.1" 2>/dev/null`
7700 test "x$?" != "x0" && pkg_failed=yes
7707 if test -n "$APPINDICATOR_LIBS"; then
7708 pkg_cv_APPINDICATOR_LIBS="$APPINDICATOR_LIBS"
7709 elif test -n "$PKG_CONFIG"; then
7710 if test -n "$PKG_CONFIG" && \
7711 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"appindicator3-0.1\""; } >&5
7712 ($PKG_CONFIG --exists --print-errors "appindicator3-0.1") 2>&5
7714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7715 test $ac_status = 0; }; then
7716 pkg_cv_APPINDICATOR_LIBS=`$PKG_CONFIG --libs "appindicator3-0.1" 2>/dev/null`
7717 test "x$?" != "x0" && pkg_failed=yes
7727 if test $pkg_failed = yes; then
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7729 $as_echo "no" >&6; }
7731 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7732 _pkg_short_errors_supported=yes
7734 _pkg_short_errors_supported=no
7736 if test $_pkg_short_errors_supported = yes; then
7737 APPINDICATOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "appindicator3-0.1" 2>&1`
7739 APPINDICATOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "appindicator3-0.1" 2>&1`
7741 # Put the nasty error message in config.log where it belongs
7742 echo "$APPINDICATOR_PKG_ERRORS" >&5
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: AppIndicator 3-0.1 not present\"" >&5
7745 $as_echo "$as_me: WARNING: AppIndicator 3-0.1 not present\"" >&2;}
7746 elif test $pkg_failed = untried; then
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7748 $as_echo "no" >&6; }
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: AppIndicator 3-0.1 not present\"" >&5
7750 $as_echo "$as_me: WARNING: AppIndicator 3-0.1 not present\"" >&2;}
7752 APPINDICATOR_CFLAGS=$pkg_cv_APPINDICATOR_CFLAGS
7753 APPINDICATOR_LIBS=$pkg_cv_APPINDICATOR_LIBS
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7755 $as_echo "yes" >&6; }
7757 $as_echo "#define HAVE_APPINDICATOR 1" >>confdefs.h
7761 if test "$APPINDICATOR_LIBS" == ""; then
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APPINDICATOR" >&5
7765 $as_echo_n "checking for APPINDICATOR... " >&6; }
7767 if test -n "$APPINDICATOR_CFLAGS"; then
7768 pkg_cv_APPINDICATOR_CFLAGS="$APPINDICATOR_CFLAGS"
7769 elif test -n "$PKG_CONFIG"; then
7770 if test -n "$PKG_CONFIG" && \
7771 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"appindicator-0.1 <= 0.2.9 \""; } >&5
7772 ($PKG_CONFIG --exists --print-errors "appindicator-0.1 <= 0.2.9 ") 2>&5
7774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7775 test $ac_status = 0; }; then
7776 pkg_cv_APPINDICATOR_CFLAGS=`$PKG_CONFIG --cflags "appindicator-0.1 <= 0.2.9 " 2>/dev/null`
7777 test "x$?" != "x0" && pkg_failed=yes
7784 if test -n "$APPINDICATOR_LIBS"; then
7785 pkg_cv_APPINDICATOR_LIBS="$APPINDICATOR_LIBS"
7786 elif test -n "$PKG_CONFIG"; then
7787 if test -n "$PKG_CONFIG" && \
7788 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"appindicator-0.1 <= 0.2.9 \""; } >&5
7789 ($PKG_CONFIG --exists --print-errors "appindicator-0.1 <= 0.2.9 ") 2>&5
7791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7792 test $ac_status = 0; }; then
7793 pkg_cv_APPINDICATOR_LIBS=`$PKG_CONFIG --libs "appindicator-0.1 <= 0.2.9 " 2>/dev/null`
7794 test "x$?" != "x0" && pkg_failed=yes
7804 if test $pkg_failed = yes; then
7805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7806 $as_echo "no" >&6; }
7808 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7809 _pkg_short_errors_supported=yes
7811 _pkg_short_errors_supported=no
7813 if test $_pkg_short_errors_supported = yes; then
7814 APPINDICATOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "appindicator-0.1 <= 0.2.9 " 2>&1`
7816 APPINDICATOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "appindicator-0.1 <= 0.2.9 " 2>&1`
7818 # Put the nasty error message in config.log where it belongs
7819 echo "$APPINDICATOR_PKG_ERRORS" >&5
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: AppIndicator 0.2.9 not present\"" >&5
7822 $as_echo "$as_me: WARNING: AppIndicator 0.2.9 not present\"" >&2;}
7823 elif test $pkg_failed = untried; then
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7825 $as_echo "no" >&6; }
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: AppIndicator 0.2.9 not present\"" >&5
7827 $as_echo "$as_me: WARNING: AppIndicator 0.2.9 not present\"" >&2;}
7829 APPINDICATOR_CFLAGS=$pkg_cv_APPINDICATOR_CFLAGS
7830 APPINDICATOR_LIBS=$pkg_cv_APPINDICATOR_LIBS
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7832 $as_echo "yes" >&6; }
7834 $as_echo "#define HAVE_APPINDICATOR 1" >>confdefs.h
7837 $as_echo "#define HAVE_APPINDICATOR_029 1" >>confdefs.h
7843 if test "$APPINDICATOR_LIBS" == ""; then
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APPINDICATOR" >&5
7847 $as_echo_n "checking for APPINDICATOR... " >&6; }
7849 if test -n "$APPINDICATOR_CFLAGS"; then
7850 pkg_cv_APPINDICATOR_CFLAGS="$APPINDICATOR_CFLAGS"
7851 elif test -n "$PKG_CONFIG"; then
7852 if test -n "$PKG_CONFIG" && \
7853 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"appindicator-0.1 > 0.2.9\""; } >&5
7854 ($PKG_CONFIG --exists --print-errors "appindicator-0.1 > 0.2.9") 2>&5
7856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7857 test $ac_status = 0; }; then
7858 pkg_cv_APPINDICATOR_CFLAGS=`$PKG_CONFIG --cflags "appindicator-0.1 > 0.2.9" 2>/dev/null`
7859 test "x$?" != "x0" && pkg_failed=yes
7866 if test -n "$APPINDICATOR_LIBS"; then
7867 pkg_cv_APPINDICATOR_LIBS="$APPINDICATOR_LIBS"
7868 elif test -n "$PKG_CONFIG"; then
7869 if test -n "$PKG_CONFIG" && \
7870 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"appindicator-0.1 > 0.2.9\""; } >&5
7871 ($PKG_CONFIG --exists --print-errors "appindicator-0.1 > 0.2.9") 2>&5
7873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7874 test $ac_status = 0; }; then
7875 pkg_cv_APPINDICATOR_LIBS=`$PKG_CONFIG --libs "appindicator-0.1 > 0.2.9" 2>/dev/null`
7876 test "x$?" != "x0" && pkg_failed=yes
7886 if test $pkg_failed = yes; then
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7888 $as_echo "no" >&6; }
7890 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7891 _pkg_short_errors_supported=yes
7893 _pkg_short_errors_supported=no
7895 if test $_pkg_short_errors_supported = yes; then
7896 APPINDICATOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "appindicator-0.1 > 0.2.9" 2>&1`
7898 APPINDICATOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "appindicator-0.1 > 0.2.9" 2>&1`
7900 # Put the nasty error message in config.log where it belongs
7901 echo "$APPINDICATOR_PKG_ERRORS" >&5
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"AppIndicator > 0.2.9 not present\"" >&5
7904 $as_echo "$as_me: WARNING: \"AppIndicator > 0.2.9 not present\"" >&2;}
7905 elif test $pkg_failed = untried; then
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7907 $as_echo "no" >&6; }
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"AppIndicator > 0.2.9 not present\"" >&5
7909 $as_echo "$as_me: WARNING: \"AppIndicator > 0.2.9 not present\"" >&2;}
7911 APPINDICATOR_CFLAGS=$pkg_cv_APPINDICATOR_CFLAGS
7912 APPINDICATOR_LIBS=$pkg_cv_APPINDICATOR_LIBS
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7914 $as_echo "yes" >&6; }
7916 $as_echo "#define HAVE_APPINDICATOR 1" >>confdefs.h
7920 if test -n "$APPINDICATOR_LIBS"; then
7922 APPINDICATOR_FALSE='#'
7924 APPINDICATOR_TRUE='#'
7931 # Check CURL, needed for remote monitoring
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CURL" >&5
7936 $as_echo_n "checking for CURL... " >&6; }
7938 if test -n "$CURL_CFLAGS"; then
7939 pkg_cv_CURL_CFLAGS="$CURL_CFLAGS"
7940 elif test -n "$PKG_CONFIG"; then
7941 if test -n "$PKG_CONFIG" && \
7942 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl\""; } >&5
7943 ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5
7945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7946 test $ac_status = 0; }; then
7947 pkg_cv_CURL_CFLAGS=`$PKG_CONFIG --cflags "libcurl" 2>/dev/null`
7948 test "x$?" != "x0" && pkg_failed=yes
7955 if test -n "$CURL_LIBS"; then
7956 pkg_cv_CURL_LIBS="$CURL_LIBS"
7957 elif test -n "$PKG_CONFIG"; then
7958 if test -n "$PKG_CONFIG" && \
7959 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl\""; } >&5
7960 ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5
7962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7963 test $ac_status = 0; }; then
7964 pkg_cv_CURL_LIBS=`$PKG_CONFIG --libs "libcurl" 2>/dev/null`
7965 test "x$?" != "x0" && pkg_failed=yes
7975 if test $pkg_failed = yes; then
7976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7977 $as_echo "no" >&6; }
7979 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7980 _pkg_short_errors_supported=yes
7982 _pkg_short_errors_supported=no
7984 if test $_pkg_short_errors_supported = yes; then
7985 CURL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcurl" 2>&1`
7987 CURL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcurl" 2>&1`
7989 # Put the nasty error message in config.log where it belongs
7990 echo "$CURL_PKG_ERRORS" >&5
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Remote monitoring disabled" >&5
7993 $as_echo "$as_me: WARNING: \"Remote monitoring disabled" >&2;}
7994 elif test $pkg_failed = untried; then
7995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7996 $as_echo "no" >&6; }
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Remote monitoring disabled" >&5
7998 $as_echo "$as_me: WARNING: \"Remote monitoring disabled" >&2;}
8000 CURL_CFLAGS=$pkg_cv_CURL_CFLAGS
8001 CURL_LIBS=$pkg_cv_CURL_LIBS
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8003 $as_echo "yes" >&6; }
8005 $as_echo "#define HAVE_CURL 1" >>confdefs.h
8008 if test -n "$CURL_LIBS"; then
8019 # Check JSON, needed for remote monitoring
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JSON" >&5
8024 $as_echo_n "checking for JSON... " >&6; }
8026 if test -n "$JSON_CFLAGS"; then
8027 pkg_cv_JSON_CFLAGS="$JSON_CFLAGS"
8028 elif test -n "$PKG_CONFIG"; then
8029 if test -n "$PKG_CONFIG" && \
8030 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json\""; } >&5
8031 ($PKG_CONFIG --exists --print-errors "json") 2>&5
8033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8034 test $ac_status = 0; }; then
8035 pkg_cv_JSON_CFLAGS=`$PKG_CONFIG --cflags "json" 2>/dev/null`
8036 test "x$?" != "x0" && pkg_failed=yes
8043 if test -n "$JSON_LIBS"; then
8044 pkg_cv_JSON_LIBS="$JSON_LIBS"
8045 elif test -n "$PKG_CONFIG"; then
8046 if test -n "$PKG_CONFIG" && \
8047 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json\""; } >&5
8048 ($PKG_CONFIG --exists --print-errors "json") 2>&5
8050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8051 test $ac_status = 0; }; then
8052 pkg_cv_JSON_LIBS=`$PKG_CONFIG --libs "json" 2>/dev/null`
8053 test "x$?" != "x0" && pkg_failed=yes
8063 if test $pkg_failed = yes; then
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8065 $as_echo "no" >&6; }
8067 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8068 _pkg_short_errors_supported=yes
8070 _pkg_short_errors_supported=no
8072 if test $_pkg_short_errors_supported = yes; then
8073 JSON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "json" 2>&1`
8075 JSON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "json" 2>&1`
8077 # Put the nasty error message in config.log where it belongs
8078 echo "$JSON_PKG_ERRORS" >&5
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Remote monitoring disabled" >&5
8081 $as_echo "$as_me: WARNING: \"Remote monitoring disabled" >&2;}
8082 elif test $pkg_failed = untried; then
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8084 $as_echo "no" >&6; }
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Remote monitoring disabled" >&5
8086 $as_echo "$as_me: WARNING: \"Remote monitoring disabled" >&2;}
8088 JSON_CFLAGS=$pkg_cv_JSON_CFLAGS
8089 JSON_LIBS=$pkg_cv_JSON_LIBS
8090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8091 $as_echo "yes" >&6; }
8093 $as_echo "#define HAVE_JSON 1" >>confdefs.h
8096 if test -n "$JSON_LIBS"; then
8107 # Enables remote monitoring if JSON and CURL is present
8108 if test -n "$JSON_LIBS"; then
8109 if test -n "$CURL_LIBS"; then
8111 $as_echo "#define HAVE_REMOTE_SUPPORT 1" >>confdefs.h
8117 # following code from sensors-applet
8118 # sensors-applet.sourceforge.net/
8119 for ac_header in NVCtrl/NVCtrl.h NVCtrl/NVCtrlLib.h
8121 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8122 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
8123 #include <X11/Xlib.h>
8126 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8127 cat >>confdefs.h <<_ACEOF
8128 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8135 if test -n "${X11_LIBS}"; then
8136 LIBS="${LIBS} -lX11 -lXext"
8138 if test "${HAVE_NVIDIA}" = "true"; then
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XNVCTRLQueryExtension in -lXNVCtrl" >&5
8140 $as_echo_n "checking for XNVCTRLQueryExtension in -lXNVCtrl... " >&6; }
8141 if ${ac_cv_lib_XNVCtrl_XNVCTRLQueryExtension+:} false; then :
8142 $as_echo_n "(cached) " >&6
8144 ac_check_lib_save_LIBS=$LIBS
8145 LIBS="-lXNVCtrl $LIBS"
8146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8147 /* end confdefs.h. */
8149 /* Override any GCC internal prototype to avoid an error.
8150 Use char because int might match the return type of a GCC
8151 builtin and then its argument prototype would still apply. */
8155 char XNVCTRLQueryExtension ();
8159 return XNVCTRLQueryExtension ();
8164 if ac_fn_c_try_link "$LINENO"; then :
8165 ac_cv_lib_XNVCtrl_XNVCTRLQueryExtension=yes
8167 ac_cv_lib_XNVCtrl_XNVCTRLQueryExtension=no
8169 rm -f core conftest.err conftest.$ac_objext \
8170 conftest$ac_exeext conftest.$ac_ext
8171 LIBS=$ac_check_lib_save_LIBS
8173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_XNVCtrl_XNVCTRLQueryExtension" >&5
8174 $as_echo "$ac_cv_lib_XNVCtrl_XNVCTRLQueryExtension" >&6; }
8175 if test "x$ac_cv_lib_XNVCtrl_XNVCTRLQueryExtension" = xyes; then :
8176 NVIDIA_LIBS="-lXNVCtrl -lX11 -lXext"
8178 $as_echo "#define HAVE_NVIDIA 1" >>confdefs.h
8185 if test -n "$NVIDIA_LIBS"; then
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNITY" >&5
8200 $as_echo_n "checking for UNITY... " >&6; }
8202 if test -n "$UNITY_CFLAGS"; then
8203 pkg_cv_UNITY_CFLAGS="$UNITY_CFLAGS"
8204 elif test -n "$PKG_CONFIG"; then
8205 if test -n "$PKG_CONFIG" && \
8206 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"unity >= 3.4.2\""; } >&5
8207 ($PKG_CONFIG --exists --print-errors "unity >= 3.4.2") 2>&5
8209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8210 test $ac_status = 0; }; then
8211 pkg_cv_UNITY_CFLAGS=`$PKG_CONFIG --cflags "unity >= 3.4.2" 2>/dev/null`
8212 test "x$?" != "x0" && pkg_failed=yes
8219 if test -n "$UNITY_LIBS"; then
8220 pkg_cv_UNITY_LIBS="$UNITY_LIBS"
8221 elif test -n "$PKG_CONFIG"; then
8222 if test -n "$PKG_CONFIG" && \
8223 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"unity >= 3.4.2\""; } >&5
8224 ($PKG_CONFIG --exists --print-errors "unity >= 3.4.2") 2>&5
8226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8227 test $ac_status = 0; }; then
8228 pkg_cv_UNITY_LIBS=`$PKG_CONFIG --libs "unity >= 3.4.2" 2>/dev/null`
8229 test "x$?" != "x0" && pkg_failed=yes
8239 if test $pkg_failed = yes; then
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8241 $as_echo "no" >&6; }
8243 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8244 _pkg_short_errors_supported=yes
8246 _pkg_short_errors_supported=no
8248 if test $_pkg_short_errors_supported = yes; then
8249 UNITY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "unity >= 3.4.2" 2>&1`
8251 UNITY_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "unity >= 3.4.2" 2>&1`
8253 # Put the nasty error message in config.log where it belongs
8254 echo "$UNITY_PKG_ERRORS" >&5
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unity not present" >&5
8257 $as_echo "$as_me: WARNING: Unity not present" >&2;}
8258 elif test $pkg_failed = untried; then
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8260 $as_echo "no" >&6; }
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unity not present" >&5
8262 $as_echo "$as_me: WARNING: Unity not present" >&2;}
8264 UNITY_CFLAGS=$pkg_cv_UNITY_CFLAGS
8265 UNITY_LIBS=$pkg_cv_UNITY_LIBS
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8267 $as_echo "yes" >&6; }
8269 $as_echo "#define HAVE_UNITY 1" >>confdefs.h
8274 if test -n "$UNITY_LIBS"; then
8285 # Check whether --with-libatiadl was given.
8286 if test "${with_libatiadl+set}" = set; then :
8287 withval=$with_libatiadl;
8288 ATIADL_DIR=${withval}
8289 CPPFLAGS="${CPPFLAGS} -I${ATIADL_DIR}/include"
8290 LIBS="$LIBS -L/usr/lib/fglrx -L/usr/lib64/fglrx -L/usr/lib/catalyst -L/usr/lib64/catalyst"
8296 for ac_header in adl_defines.h
8298 ac_fn_c_check_header_mongrel "$LINENO" "adl_defines.h" "ac_cv_header_adl_defines_h" "$ac_includes_default"
8299 if test "x$ac_cv_header_adl_defines_h" = xyes; then :
8300 cat >>confdefs.h <<_ACEOF
8301 #define HAVE_ADL_DEFINES_H 1
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ADL_Main_Control_Refresh in -latiadlxx" >&5
8304 $as_echo_n "checking for ADL_Main_Control_Refresh in -latiadlxx... " >&6; }
8305 if ${ac_cv_lib_atiadlxx_ADL_Main_Control_Refresh+:} false; then :
8306 $as_echo_n "(cached) " >&6
8308 ac_check_lib_save_LIBS=$LIBS
8309 LIBS="-latiadlxx $LIBS"
8310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8311 /* end confdefs.h. */
8313 /* Override any GCC internal prototype to avoid an error.
8314 Use char because int might match the return type of a GCC
8315 builtin and then its argument prototype would still apply. */
8319 char ADL_Main_Control_Refresh ();
8323 return ADL_Main_Control_Refresh ();
8328 if ac_fn_c_try_link "$LINENO"; then :
8329 ac_cv_lib_atiadlxx_ADL_Main_Control_Refresh=yes
8331 ac_cv_lib_atiadlxx_ADL_Main_Control_Refresh=no
8333 rm -f core conftest.err conftest.$ac_objext \
8334 conftest$ac_exeext conftest.$ac_ext
8335 LIBS=$ac_check_lib_save_LIBS
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_atiadlxx_ADL_Main_Control_Refresh" >&5
8338 $as_echo "$ac_cv_lib_atiadlxx_ADL_Main_Control_Refresh" >&6; }
8339 if test "x$ac_cv_lib_atiadlxx_ADL_Main_Control_Refresh" = xyes; then :
8342 $as_echo "#define HAVE_LIBATIADL 1" >>confdefs.h
8344 LIBATIADL_CFLAGS="-I${ATIADL_DIR}/include"
8345 LIBATIADL_LIBS="-L/usr/lib/fglrx -L/usr/lib64/fglrx -L/usr/lib/catalyst -L/usr/lib64/catalyst -latiadlxx -ldl"
8354 if test -n "$LIBATIADL_LIBS"; then
8365 ############### psensor-server
8367 # libmicrohttpd, mandatory for psensor-server
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBMICROHTTPD" >&5
8372 $as_echo_n "checking for LIBMICROHTTPD... " >&6; }
8374 if test -n "$LIBMICROHTTPD_CFLAGS"; then
8375 pkg_cv_LIBMICROHTTPD_CFLAGS="$LIBMICROHTTPD_CFLAGS"
8376 elif test -n "$PKG_CONFIG"; then
8377 if test -n "$PKG_CONFIG" && \
8378 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmicrohttpd\""; } >&5
8379 ($PKG_CONFIG --exists --print-errors "libmicrohttpd") 2>&5
8381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8382 test $ac_status = 0; }; then
8383 pkg_cv_LIBMICROHTTPD_CFLAGS=`$PKG_CONFIG --cflags "libmicrohttpd" 2>/dev/null`
8384 test "x$?" != "x0" && pkg_failed=yes
8391 if test -n "$LIBMICROHTTPD_LIBS"; then
8392 pkg_cv_LIBMICROHTTPD_LIBS="$LIBMICROHTTPD_LIBS"
8393 elif test -n "$PKG_CONFIG"; then
8394 if test -n "$PKG_CONFIG" && \
8395 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmicrohttpd\""; } >&5
8396 ($PKG_CONFIG --exists --print-errors "libmicrohttpd") 2>&5
8398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8399 test $ac_status = 0; }; then
8400 pkg_cv_LIBMICROHTTPD_LIBS=`$PKG_CONFIG --libs "libmicrohttpd" 2>/dev/null`
8401 test "x$?" != "x0" && pkg_failed=yes
8411 if test $pkg_failed = yes; then
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8413 $as_echo "no" >&6; }
8415 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8416 _pkg_short_errors_supported=yes
8418 _pkg_short_errors_supported=no
8420 if test $_pkg_short_errors_supported = yes; then
8421 LIBMICROHTTPD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libmicrohttpd" 2>&1`
8423 LIBMICROHTTPD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libmicrohttpd" 2>&1`
8425 # Put the nasty error message in config.log where it belongs
8426 echo "$LIBMICROHTTPD_PKG_ERRORS" >&5
8428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"libmicrohttpd not present" >&5
8429 $as_echo "$as_me: WARNING: \"libmicrohttpd not present" >&2;}
8430 elif test $pkg_failed = untried; then
8431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8432 $as_echo "no" >&6; }
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"libmicrohttpd not present" >&5
8434 $as_echo "$as_me: WARNING: \"libmicrohttpd not present" >&2;}
8436 LIBMICROHTTPD_CFLAGS=$pkg_cv_LIBMICROHTTPD_CFLAGS
8437 LIBMICROHTTPD_LIBS=$pkg_cv_LIBMICROHTTPD_LIBS
8438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8439 $as_echo "yes" >&6; }
8441 $as_echo "#define HAVE_LIBMICROHTTPD 1" >>confdefs.h
8444 if test -n "$LIBMICROHTTPD_LIBS"; then
8446 LIBMICROHTTPD_FALSE='#'
8448 LIBMICROHTTPD_TRUE='#'
8449 LIBMICROHTTPD_FALSE=
8458 # Check whether --with-gtop was given.
8459 if test "${with_gtop+set}" = set; then :
8470 if test "$with_gtop" = "yes"; then
8473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTOP" >&5
8474 $as_echo_n "checking for GTOP... " >&6; }
8476 if test -n "$GTOP_CFLAGS"; then
8477 pkg_cv_GTOP_CFLAGS="$GTOP_CFLAGS"
8478 elif test -n "$PKG_CONFIG"; then
8479 if test -n "$PKG_CONFIG" && \
8480 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgtop-2.0\""; } >&5
8481 ($PKG_CONFIG --exists --print-errors "libgtop-2.0") 2>&5
8483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8484 test $ac_status = 0; }; then
8485 pkg_cv_GTOP_CFLAGS=`$PKG_CONFIG --cflags "libgtop-2.0" 2>/dev/null`
8486 test "x$?" != "x0" && pkg_failed=yes
8493 if test -n "$GTOP_LIBS"; then
8494 pkg_cv_GTOP_LIBS="$GTOP_LIBS"
8495 elif test -n "$PKG_CONFIG"; then
8496 if test -n "$PKG_CONFIG" && \
8497 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgtop-2.0\""; } >&5
8498 ($PKG_CONFIG --exists --print-errors "libgtop-2.0") 2>&5
8500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8501 test $ac_status = 0; }; then
8502 pkg_cv_GTOP_LIBS=`$PKG_CONFIG --libs "libgtop-2.0" 2>/dev/null`
8503 test "x$?" != "x0" && pkg_failed=yes
8513 if test $pkg_failed = yes; then
8514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8515 $as_echo "no" >&6; }
8517 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8518 _pkg_short_errors_supported=yes
8520 _pkg_short_errors_supported=no
8522 if test $_pkg_short_errors_supported = yes; then
8523 GTOP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libgtop-2.0" 2>&1`
8525 GTOP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libgtop-2.0" 2>&1`
8527 # Put the nasty error message in config.log where it belongs
8528 echo "$GTOP_PKG_ERRORS" >&5
8530 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"gtop not present" >&5
8531 $as_echo "$as_me: WARNING: \"gtop not present" >&2;}
8532 elif test $pkg_failed = untried; then
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8534 $as_echo "no" >&6; }
8535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"gtop not present" >&5
8536 $as_echo "$as_me: WARNING: \"gtop not present" >&2;}
8538 GTOP_CFLAGS=$pkg_cv_GTOP_CFLAGS
8539 GTOP_LIBS=$pkg_cv_GTOP_LIBS
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8541 $as_echo "yes" >&6; }
8543 $as_echo "#define HAVE_GTOP 1" >>confdefs.h
8547 if test -n "$GTOP_LIBS"; then
8558 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"
8561 for ac_prog in help2man
8563 # Extract the first word of "$ac_prog", so it can be a program name with args.
8564 set dummy $ac_prog; ac_word=$2
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8566 $as_echo_n "checking for $ac_word... " >&6; }
8567 if ${ac_cv_prog_HELP2MAN+:} false; then :
8568 $as_echo_n "(cached) " >&6
8570 if test -n "$HELP2MAN"; then
8571 ac_cv_prog_HELP2MAN="$HELP2MAN" # Let the user override the test.
8573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8577 test -z "$as_dir" && as_dir=.
8578 for ac_exec_ext in '' $ac_executable_extensions; do
8579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8580 ac_cv_prog_HELP2MAN="$ac_prog"
8581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8590 HELP2MAN=$ac_cv_prog_HELP2MAN
8591 if test -n "$HELP2MAN"; then
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HELP2MAN" >&5
8593 $as_echo "$HELP2MAN" >&6; }
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8596 $as_echo "no" >&6; }
8600 test -n "$HELP2MAN" && break
8604 cat >confcache <<\_ACEOF
8605 # This file is a shell script that caches the results of configure
8606 # tests run on this system so they can be shared between configure
8607 # scripts and configure runs, see configure's option --config-cache.
8608 # It is not useful on other systems. If it contains results you don't
8609 # want to keep, you may remove or edit it.
8611 # config.status only pays attention to the cache file if you give it
8612 # the --recheck option to rerun configure.
8614 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8615 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8620 # The following way of writing the cache mishandles newlines in values,
8621 # but we know of no workaround that is simple, portable, and efficient.
8622 # So, we kill variables containing newlines.
8623 # Ultrix sh set writes to stderr and can't be redirected directly,
8624 # and sets the high bit in the cache file unless we assign to the vars.
8626 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8627 eval ac_val=\$$ac_var
8631 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8632 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8635 _ | IFS | as_nl) ;; #(
8636 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8637 *) { eval $ac_var=; unset $ac_var;} ;;
8643 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8644 *${as_nl}ac_space=\ *)
8645 # `set' does not quote correctly, so add quotes: double-quote
8646 # substitution turns \\\\ into \\, and sed turns \\ into \.
8649 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8652 # `set' quotes correctly as required by POSIX, so do not add quotes.
8653 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8662 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8664 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8666 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8667 if test -w "$cache_file"; then
8668 if test "x$cache_file" != "x/dev/null"; then
8669 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8670 $as_echo "$as_me: updating cache $cache_file" >&6;}
8671 if test ! -f "$cache_file" || test -h "$cache_file"; then
8672 cat confcache >"$cache_file"
8674 case $cache_file in #(
8676 mv -f confcache "$cache_file"$$ &&
8677 mv -f "$cache_file"$$ "$cache_file" ;; #(
8679 mv -f confcache "$cache_file" ;;
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8685 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8690 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8691 # Let make expand exec_prefix.
8692 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8694 DEFS=-DHAVE_CONFIG_H
8699 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8700 # 1. Remove the extension, and $U if already installed.
8701 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8702 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
8703 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8704 # will be set to the directory where LIBOBJS objects are built.
8705 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8706 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
8710 LTLIBOBJS=$ac_ltlibobjs
8713 if test -n "$EXEEXT"; then
8715 am__EXEEXT_FALSE='#'
8721 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
8722 as_fn_error $? "conditional \"AMDEP\" was never defined.
8723 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8725 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8726 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
8727 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8729 if test -z "${GTK_TRUE}" && test -z "${GTK_FALSE}"; then
8730 as_fn_error $? "conditional \"GTK\" was never defined.
8731 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8733 if test -z "${GTK_TRUE}" && test -z "${GTK_FALSE}"; then
8734 as_fn_error $? "conditional \"GTK\" was never defined.
8735 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8737 if test -z "${LIBNOTIFY_TRUE}" && test -z "${LIBNOTIFY_FALSE}"; then
8738 as_fn_error $? "conditional \"LIBNOTIFY\" was never defined.
8739 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8741 if test -z "${APPINDICATOR_TRUE}" && test -z "${APPINDICATOR_FALSE}"; then
8742 as_fn_error $? "conditional \"APPINDICATOR\" was never defined.
8743 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8745 if test -z "${CURL_TRUE}" && test -z "${CURL_FALSE}"; then
8746 as_fn_error $? "conditional \"CURL\" was never defined.
8747 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8749 if test -z "${JSON_TRUE}" && test -z "${JSON_FALSE}"; then
8750 as_fn_error $? "conditional \"JSON\" was never defined.
8751 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8753 if test -z "${NVIDIA_TRUE}" && test -z "${NVIDIA_FALSE}"; then
8754 as_fn_error $? "conditional \"NVIDIA\" was never defined.
8755 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8757 if test -z "${UNITY_TRUE}" && test -z "${UNITY_FALSE}"; then
8758 as_fn_error $? "conditional \"UNITY\" was never defined.
8759 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8761 if test -z "${LIBATIADL_TRUE}" && test -z "${LIBATIADL_FALSE}"; then
8762 as_fn_error $? "conditional \"LIBATIADL\" was never defined.
8763 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8765 if test -z "${LIBMICROHTTPD_TRUE}" && test -z "${LIBMICROHTTPD_FALSE}"; then
8766 as_fn_error $? "conditional \"LIBMICROHTTPD\" was never defined.
8767 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8769 if test -z "${GTOP_TRUE}" && test -z "${GTOP_FALSE}"; then
8770 as_fn_error $? "conditional \"GTOP\" was never defined.
8771 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8774 : "${CONFIG_STATUS=./config.status}"
8776 ac_clean_files_save=$ac_clean_files
8777 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8778 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8779 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8781 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8783 # Generated by $as_me.
8784 # Run this file to recreate the current configuration.
8785 # Compiler output produced by configure, useful for debugging
8786 # configure, is in config.log if it exists.
8792 SHELL=\${CONFIG_SHELL-$SHELL}
8795 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
8796 ## -------------------- ##
8797 ## M4sh Initialization. ##
8798 ## -------------------- ##
8800 # Be more Bourne compatible
8801 DUALCASE=1; export DUALCASE # for MKS sh
8802 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
8805 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8806 # is contrary to our usage. Disable this feature.
8807 alias -g '${1+"$@"}'='"$@"'
8808 setopt NO_GLOB_SUBST
8810 case `(set -o) 2>/dev/null` in #(
8822 # Printing a long string crashes Solaris 7 /usr/bin/printf.
8823 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8824 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8825 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8826 # Prefer a ksh shell builtin over an external printf program on Solaris,
8827 # but without wasting forks for bash or zsh.
8828 if test -z "$BASH_VERSION$ZSH_VERSION" \
8829 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
8830 as_echo='print -r --'
8831 as_echo_n='print -rn --'
8832 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8833 as_echo='printf %s\n'
8834 as_echo_n='printf %s'
8836 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8837 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
8838 as_echo_n='/usr/ucb/echo -n'
8840 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8841 as_echo_n_body='eval
8845 expr "X$arg" : "X\\(.*\\)$as_nl";
8846 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8848 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
8850 export as_echo_n_body
8851 as_echo_n='sh -c $as_echo_n_body as_echo'
8854 as_echo='sh -c $as_echo_body as_echo'
8857 # The user is always right.
8858 if test "${PATH_SEPARATOR+set}" != set; then
8860 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8861 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8868 # We need space, tab and new line, in precisely that order. Quoting is
8869 # there to prevent editors from complaining about space-tab.
8870 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8871 # splitting by setting IFS to empty value.)
8874 # Find who we are. Look in the path if we contain no directory separator.
8877 *[\\/]* ) as_myself=$0 ;;
8878 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8882 test -z "$as_dir" && as_dir=.
8883 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8889 # We did not find ourselves, most probably we were run as `sh COMMAND'
8890 # in which case we are not to be found in the path.
8891 if test "x$as_myself" = x; then
8894 if test ! -f "$as_myself"; then
8895 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8899 # Unset variables that we do not need and which cause bugs (e.g. in
8900 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
8901 # suppresses any "Segmentation fault" message there. '((' could
8902 # trigger a bug in pdksh 5.2.14.
8903 for as_var in BASH_ENV ENV MAIL MAILPATH
8904 do eval test x\${$as_var+set} = xset \
8905 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8918 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8921 # as_fn_error STATUS ERROR [LINENO LOG_FD]
8922 # ----------------------------------------
8923 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8924 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8925 # script with STATUS, using 1 if that was 0.
8928 as_status=$1; test $as_status -eq 0 && as_status=1
8930 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8931 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
8933 $as_echo "$as_me: error: $2" >&2
8934 as_fn_exit $as_status
8938 # as_fn_set_status STATUS
8939 # -----------------------
8940 # Set $? to STATUS, without forking.
8944 } # as_fn_set_status
8948 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8958 # Portably unset VAR.
8961 { eval $1=; unset $1;}
8963 as_unset=as_fn_unset
8964 # as_fn_append VAR VALUE
8965 # ----------------------
8966 # Append the text in VALUE to the end of the definition contained in VAR. Take
8967 # advantage of any shell optimizations that allow amortized linear growth over
8968 # repeated appends, instead of the typical quadratic growth present in naive
8970 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
8971 eval 'as_fn_append ()
8982 # as_fn_arith ARG...
8983 # ------------------
8984 # Perform arithmetic evaluation on the ARGs, and store the result in the
8985 # global $as_val. Take advantage of shells that can avoid forks. The arguments
8986 # must be portable across $(()) and expr.
8987 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
8988 eval 'as_fn_arith ()
8995 as_val=`expr "$@" || test $? -eq 1`
9000 if expr a : '\(a\)' >/dev/null 2>&1 &&
9001 test "X`expr 00001 : '.*\(...\)'`" = X001; then
9007 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9008 as_basename=basename
9013 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9019 as_me=`$as_basename -- "$0" ||
9020 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9021 X"$0" : 'X\(//\)$' \| \
9022 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9024 sed '/^.*\/\([^/][^/]*\)\/*$/{
9038 # Avoid depending upon Character Ranges.
9039 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9040 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9041 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9042 as_cr_digits='0123456789'
9043 as_cr_alnum=$as_cr_Letters$as_cr_digits
9045 ECHO_C= ECHO_N= ECHO_T=
9046 case `echo -n x` in #(((((
9048 case `echo 'xy\c'` in
9049 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
9051 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
9058 rm -f conf$$ conf$$.exe conf$$.file
9059 if test -d conf$$.dir; then
9060 rm -f conf$$.dir/conf$$.file
9063 mkdir conf$$.dir 2>/dev/null
9065 if (echo >conf$$.file) 2>/dev/null; then
9066 if ln -s conf$$.file conf$$ 2>/dev/null; then
9068 # ... but there are two gotchas:
9069 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9070 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9071 # In both cases, we have to default to `cp -p'.
9072 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9074 elif ln conf$$.file conf$$ 2>/dev/null; then
9082 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9083 rmdir conf$$.dir 2>/dev/null
9088 # Create "$as_dir" as a directory, including parents if necessary.
9093 -*) as_dir=./$as_dir;;
9095 test -d "$as_dir" || eval $as_mkdir_p || {
9099 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9100 *) as_qdir=$as_dir;;
9102 as_dirs="'$as_qdir' $as_dirs"
9103 as_dir=`$as_dirname -- "$as_dir" ||
9104 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9105 X"$as_dir" : 'X\(//\)[^/]' \| \
9106 X"$as_dir" : 'X\(//\)$' \| \
9107 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9108 $as_echo X"$as_dir" |
9109 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9126 test -d "$as_dir" && break
9128 test -z "$as_dirs" || eval "mkdir $as_dirs"
9129 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
9133 if mkdir -p . 2>/dev/null; then
9134 as_mkdir_p='mkdir -p "$as_dir"'
9136 test -d ./-p && rmdir ./-p
9140 if test -x / >/dev/null 2>&1; then
9143 if ls -dL / >/dev/null 2>&1; then
9150 if test -d "$1"; then
9156 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
9157 ???[sx]*):;;*)false;;esac;fi
9161 as_executable_p=$as_test_x
9163 # Sed expression to map a string onto a valid CPP name.
9164 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9166 # Sed expression to map a string onto a valid variable name.
9167 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9171 ## ----------------------------------- ##
9172 ## Main body of $CONFIG_STATUS script. ##
9173 ## ----------------------------------- ##
9175 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
9177 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9178 # Save the log message, to keep $0 and so on meaningful, and to
9179 # report actual input values of CONFIG_FILES etc. instead of their
9180 # values after options handling.
9182 This file was extended by psensor $as_me 0.6.2.x, which was
9183 generated by GNU Autoconf 2.68. Invocation command line was
9185 CONFIG_FILES = $CONFIG_FILES
9186 CONFIG_HEADERS = $CONFIG_HEADERS
9187 CONFIG_LINKS = $CONFIG_LINKS
9188 CONFIG_COMMANDS = $CONFIG_COMMANDS
9191 on `(hostname || uname -n) 2>/dev/null | sed 1q`
9196 case $ac_config_files in *"
9197 "*) set x $ac_config_files; shift; ac_config_files=$*;;
9200 case $ac_config_headers in *"
9201 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
9205 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9206 # Files that config.status was made for.
9207 config_files="$ac_config_files"
9208 config_headers="$ac_config_headers"
9209 config_commands="$ac_config_commands"
9213 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9215 \`$as_me' instantiates files and other configuration actions
9216 from templates according to the current configuration. Unless the files
9217 and actions are specified as TAGs, all are instantiated by default.
9219 Usage: $0 [OPTION]... [TAG]...
9221 -h, --help print this help, then exit
9222 -V, --version print version number and configuration settings, then exit
9223 --config print configuration, then exit
9224 -q, --quiet, --silent
9225 do not print progress messages
9226 -d, --debug don't remove temporary files
9227 --recheck update $as_me by reconfiguring in the same conditions
9228 --file=FILE[:TEMPLATE]
9229 instantiate the configuration file FILE
9230 --header=FILE[:TEMPLATE]
9231 instantiate the configuration header FILE
9233 Configuration files:
9236 Configuration headers:
9239 Configuration commands:
9242 Report bugs to <jeanfi@gmail.com>.
9243 psensor home page: <http://wpitchoune.net/psensor>."
9246 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9247 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
9249 psensor config.status 0.6.2.x
9250 configured by $0, generated by GNU Autoconf 2.68,
9251 with options \\"\$ac_cs_config\\"
9253 Copyright (C) 2010 Free Software Foundation, Inc.
9254 This config.status script is free software; the Free Software Foundation
9255 gives unlimited permission to copy, distribute and modify it."
9262 test -n "\$AWK" || AWK=awk
9265 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9266 # The default lists apply if the user does not specify any file.
9272 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9273 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9277 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9289 # Handling of the options.
9290 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9292 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9293 $as_echo "$ac_cs_version"; exit ;;
9294 --config | --confi | --conf | --con | --co | --c )
9295 $as_echo "$ac_cs_config"; exit ;;
9296 --debug | --debu | --deb | --de | --d | -d )
9298 --file | --fil | --fi | --f )
9301 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9302 '') as_fn_error $? "missing file argument" ;;
9304 as_fn_append CONFIG_FILES " '$ac_optarg'"
9305 ac_need_defaults=false;;
9306 --header | --heade | --head | --hea )
9309 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9311 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
9312 ac_need_defaults=false;;
9314 # Conflict between --help and --header
9315 as_fn_error $? "ambiguous option: \`$1'
9316 Try \`$0 --help' for more information.";;
9317 --help | --hel | -h )
9318 $as_echo "$ac_cs_usage"; exit ;;
9319 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9320 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9324 -*) as_fn_error $? "unrecognized option: \`$1'
9325 Try \`$0 --help' for more information." ;;
9327 *) as_fn_append ac_config_targets " $1"
9328 ac_need_defaults=false ;;
9334 ac_configure_extra_args=
9336 if $ac_cs_silent; then
9338 ac_configure_extra_args="$ac_configure_extra_args --silent"
9342 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9343 if \$ac_cs_recheck; then
9344 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9346 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
9347 CONFIG_SHELL='$SHELL'
9353 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9357 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9358 ## Running $as_me. ##
9364 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9368 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9369 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
9370 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
9371 # from automake < 1.5.
9372 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
9373 # Capture the value of LINGUAS because we need it to compute CATALOGS.
9374 LINGUAS="${LINGUAS-%UNSET%}"
9379 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9381 # Handling of arguments.
9382 for ac_config_target in $ac_config_targets
9384 case $ac_config_target in
9385 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
9386 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9387 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
9388 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9389 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
9390 "src/glade/Makefile") CONFIG_FILES="$CONFIG_FILES src/glade/Makefile" ;;
9391 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
9392 "src/server/Makefile") CONFIG_FILES="$CONFIG_FILES src/server/Makefile" ;;
9393 "icons/hicolor/scalable/Makefile") CONFIG_FILES="$CONFIG_FILES icons/hicolor/scalable/Makefile" ;;
9394 "icons/hicolor/14x14/Makefile") CONFIG_FILES="$CONFIG_FILES icons/hicolor/14x14/Makefile" ;;
9395 "icons/hicolor/16x16/Makefile") CONFIG_FILES="$CONFIG_FILES icons/hicolor/16x16/Makefile" ;;
9396 "icons/hicolor/22x22/Makefile") CONFIG_FILES="$CONFIG_FILES icons/hicolor/22x22/Makefile" ;;
9397 "icons/hicolor/24x24/Makefile") CONFIG_FILES="$CONFIG_FILES icons/hicolor/24x24/Makefile" ;;
9398 "icons/hicolor/32x32/Makefile") CONFIG_FILES="$CONFIG_FILES icons/hicolor/32x32/Makefile" ;;
9399 "icons/hicolor/48x48/Makefile") CONFIG_FILES="$CONFIG_FILES icons/hicolor/48x48/Makefile" ;;
9400 "icons/hicolor/64x64/Makefile") CONFIG_FILES="$CONFIG_FILES icons/hicolor/64x64/Makefile" ;;
9401 "icons/ubuntu-mono-dark/status/22/Makefile") CONFIG_FILES="$CONFIG_FILES icons/ubuntu-mono-dark/status/22/Makefile" ;;
9402 "icons/ubuntu-mono-light/status/22/Makefile") CONFIG_FILES="$CONFIG_FILES icons/ubuntu-mono-light/status/22/Makefile" ;;
9403 "icons/ubuntu-mono-dark/apps/22/Makefile") CONFIG_FILES="$CONFIG_FILES icons/ubuntu-mono-dark/apps/22/Makefile" ;;
9404 "www/Makefile") CONFIG_FILES="$CONFIG_FILES www/Makefile" ;;
9405 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
9406 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
9408 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
9413 # If the user did not use the arguments to specify the items to instantiate,
9414 # then the envvar interface is used. Set only those that are not.
9415 # We use the long form for the default assignment because of an extremely
9416 # bizarre bug on SunOS 4.1.3.
9417 if $ac_need_defaults; then
9418 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9419 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9420 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9423 # Have a temporary directory for convenience. Make it in the build tree
9424 # simply because there is no reason against having it here, and in addition,
9425 # creating and moving files from /tmp can sometimes cause problems.
9426 # Hook for its removal unless debugging.
9427 # Note that there is a small window in which the directory will not be cleaned:
9428 # after its creation but before its name has been assigned to `$tmp'.
9432 trap 'exit_status=$?
9434 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
9436 trap 'as_fn_exit 1' 1 2 13 15
9438 # Create a (secure) tmp directory for tmp files.
9441 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9445 tmp=./conf$$-$RANDOM
9446 (umask 077 && mkdir "$tmp")
9447 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
9450 # Set up the scripts for CONFIG_FILES section.
9451 # No need to generate them if there are no CONFIG_FILES.
9452 # This happens for instance with `./config.status config.h'.
9453 if test -n "$CONFIG_FILES"; then
9456 ac_cr=`echo X | tr X '\015'`
9457 # On cygwin, bash can eat \r inside `` if the user requested igncr.
9458 # But we know of no other shell where ac_cr would be empty at this
9459 # point, so we can use a bashism as a fallback.
9460 if test "x$ac_cr" = x; then
9461 eval ac_cr=\$\'\\r\'
9463 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
9464 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
9470 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
9475 echo "cat >conf$$subs.awk <<_ACEOF" &&
9476 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
9479 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9480 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
9482 for ac_last_try in false false false false false :; do
9483 . ./conf$$subs.sh ||
9484 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9486 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
9487 if test $ac_delim_n = $ac_delim_num; then
9489 elif $ac_last_try; then
9490 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9492 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9497 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9498 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
9502 s/^/S["/; s/!.*/"]=/
9512 s/\(.\{148\}\)..*/\1/
9514 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
9519 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9526 s/\(.\{148\}\)..*/\1/
9528 s/["\\]/\\&/g; s/^/"/; s/$/"/
9532 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9537 ' <conf$$subs.awk | sed '
9542 ' >>$CONFIG_STATUS || ac_write_fail=1
9543 rm -f conf$$subs.awk
9544 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9546 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
9547 for (key in S) S_is_set[key] = 1
9553 nfields = split(line, field, "@")
9555 len = length(field[1])
9556 for (i = 2; i < nfields; i++) {
9558 keylen = length(key)
9559 if (S_is_set[key]) {
9561 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
9562 len += length(value) + length(field[++i])
9573 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9574 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9575 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
9578 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
9579 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
9582 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
9583 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
9584 # trailing colons and then remove the whole line if VPATH becomes empty
9585 # (actually we leave an empty line to preserve line numbers).
9586 if test "x$srcdir" = x.; then
9587 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
9605 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9606 fi # test -n "$CONFIG_FILES"
9608 # Set up the scripts for CONFIG_HEADERS section.
9609 # No need to generate them if there are no CONFIG_HEADERS.
9610 # This happens for instance with `./config.status Makefile'.
9611 if test -n "$CONFIG_HEADERS"; then
9612 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
9616 # Transform confdefs.h into an awk script `defines.awk', embedded as
9617 # here-document in config.status, that substitutes the proper values into
9618 # config.h.in to produce config.h.
9620 # Create a delimiter string that does not exist in confdefs.h, to ease
9621 # handling of long lines.
9623 for ac_last_try in false false :; do
9624 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
9625 if test -z "$ac_tt"; then
9627 elif $ac_last_try; then
9628 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
9630 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9634 # For the awk script, D is an array of macro values keyed by name,
9635 # likewise P contains macro parameters if any. Preserve backslash
9636 # newline sequences.
9638 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9640 s/.\{148\}/&'"$ac_delim"'/g
9643 s/^[ ]*#[ ]*define[ ][ ]*/ /
9650 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9652 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
9656 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9657 D["\1"]=" \3\\\\\\n"\\/p
9659 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
9664 s/.\{148\}/&'"$ac_delim"'/g
9669 s/["\\]/\\&/g; s/^/"/; s/$/"/p
9672 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
9674 ' <confdefs.h | sed '
9675 s/'"$ac_delim"'/"\\\
9676 "/g' >>$CONFIG_STATUS || ac_write_fail=1
9678 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9679 for (key in D) D_is_set[key] = 1
9682 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
9684 split(line, arg, " ")
9685 if (arg[1] == "#") {
9689 defundef = substr(arg[1], 2)
9692 split(mac1, mac2, "(") #)
9694 prefix = substr(line, 1, index(line, defundef) - 1)
9695 if (D_is_set[macro]) {
9696 # Preserve the white space surrounding the "#".
9697 print prefix "define", macro P[macro] D[macro]
9700 # Replace #undef with comments. This is necessary, for example,
9701 # in the case of _POSIX_SOURCE, which is predefined and required
9702 # on some systems where configure will not decide to define it.
9703 if (defundef == "undef") {
9704 print "/*", prefix defundef, macro, "*/"
9712 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9713 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
9714 fi # test -n "$CONFIG_HEADERS"
9717 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
9722 :[FHLC]) ac_mode=$ac_tag; continue;;
9724 case $ac_mode$ac_tag in
9726 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
9727 :[FH]-) ac_tag=-:-;;
9728 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9745 -) ac_f="$ac_tmp/stdin";;
9746 *) # Look for the file first in the build tree, then in the source tree
9747 # (if the path is not absolute). The absolute path cannot be DOS-style,
9748 # because $ac_f cannot contain `:'.
9752 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9754 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
9756 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9757 as_fn_append ac_file_inputs " '$ac_f'"
9760 # Let's still pretend it is `configure' which instantiates (i.e., don't
9761 # use $as_me), people would be surprised to read:
9762 # /* config.h. Generated by config.status. */
9763 configure_input='Generated from '`
9764 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9766 if test x"$ac_file" != x-; then
9767 configure_input="$ac_file. $configure_input"
9768 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
9769 $as_echo "$as_me: creating $ac_file" >&6;}
9771 # Neutralize special characters interpreted by sed in replacement strings.
9772 case $configure_input in #(
9773 *\&* | *\|* | *\\* )
9774 ac_sed_conf_input=`$as_echo "$configure_input" |
9775 sed 's/[\\\\&|]/\\\\&/g'`;; #(
9776 *) ac_sed_conf_input=$configure_input;;
9780 *:-:* | *:-) cat >"$ac_tmp/stdin" \
9781 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
9786 ac_dir=`$as_dirname -- "$ac_file" ||
9787 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9788 X"$ac_file" : 'X\(//\)[^/]' \| \
9789 X"$ac_file" : 'X\(//\)$' \| \
9790 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9791 $as_echo X"$ac_file" |
9792 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9809 as_dir="$ac_dir"; as_fn_mkdir_p
9813 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9815 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9816 # A ".." for each directory in $ac_dir_suffix.
9817 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9818 case $ac_top_builddir_sub in
9819 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9820 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9823 ac_abs_top_builddir=$ac_pwd
9824 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9825 # for backward compatibility:
9826 ac_top_builddir=$ac_top_build_prefix
9829 .) # We are building in place.
9831 ac_top_srcdir=$ac_top_builddir_sub
9832 ac_abs_top_srcdir=$ac_pwd ;;
9833 [\\/]* | ?:[\\/]* ) # Absolute name.
9834 ac_srcdir=$srcdir$ac_dir_suffix;
9835 ac_top_srcdir=$srcdir
9836 ac_abs_top_srcdir=$srcdir ;;
9838 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9839 ac_top_srcdir=$ac_top_build_prefix$srcdir
9840 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9842 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9852 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9853 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
9857 [\\/$]* | ?:[\\/]* ) ;;
9858 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
9862 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9863 # If the template does not know about datarootdir, expand it.
9864 # FIXME: This hack should be removed a few years after 2.60.
9865 ac_datarootdir_hack=; ac_datarootdir_seen=
9876 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9877 *datarootdir*) ac_datarootdir_seen=yes;;
9878 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9880 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9882 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9883 ac_datarootdir_hack='
9884 s&@datadir@&$datadir&g
9885 s&@docdir@&$docdir&g
9886 s&@infodir@&$infodir&g
9887 s&@localedir@&$localedir&g
9888 s&@mandir@&$mandir&g
9889 s&\\\${datarootdir}&$datarootdir&g' ;;
9893 # Neutralize VPATH when `$srcdir' = `.'.
9894 # Shell code in configure.ac might set extrasub.
9895 # FIXME: do we really want to maintain this feature?
9896 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9897 ac_sed_extra="$ac_vpsub
9900 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9902 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9903 s|@configure_input@|$ac_sed_conf_input|;t t
9904 s&@top_builddir@&$ac_top_builddir_sub&;t t
9905 s&@top_build_prefix@&$ac_top_build_prefix&;t t
9906 s&@srcdir@&$ac_srcdir&;t t
9907 s&@abs_srcdir@&$ac_abs_srcdir&;t t
9908 s&@top_srcdir@&$ac_top_srcdir&;t t
9909 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9910 s&@builddir@&$ac_builddir&;t t
9911 s&@abs_builddir@&$ac_abs_builddir&;t t
9912 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9913 s&@INSTALL@&$ac_INSTALL&;t t
9914 s&@MKDIR_P@&$ac_MKDIR_P&;t t
9915 $ac_datarootdir_hack
9917 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
9918 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9920 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9921 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
9922 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
9923 "$ac_tmp/out"`; test -z "$ac_out"; } &&
9924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9925 which seems to be undefined. Please make sure it is defined" >&5
9926 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9927 which seems to be undefined. Please make sure it is defined" >&2;}
9929 rm -f "$ac_tmp/stdin"
9931 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
9932 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
9934 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9940 if test x"$ac_file" != x-; then
9942 $as_echo "/* $configure_input */" \
9943 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
9944 } >"$ac_tmp/config.h" \
9945 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9946 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
9947 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
9948 $as_echo "$as_me: $ac_file is unchanged" >&6;}
9951 mv "$ac_tmp/config.h" "$ac_file" \
9952 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9955 $as_echo "/* $configure_input */" \
9956 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
9957 || as_fn_error $? "could not create -" "$LINENO" 5
9959 # Compute "$ac_file"'s index in $config_headers.
9962 for _am_header in $config_headers :; do
9964 $_am_arg | $_am_arg:* )
9967 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
9970 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
9971 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9972 X"$_am_arg" : 'X\(//\)[^/]' \| \
9973 X"$_am_arg" : 'X\(//\)$' \| \
9974 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
9975 $as_echo X"$_am_arg" |
9976 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9992 s/.*/./; q'`/stamp-h$_am_stamp_count
9995 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
9996 $as_echo "$as_me: executing $ac_file commands" >&6;}
10001 case $ac_file$ac_mode in
10002 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
10003 # Autoconf 2.62 quotes --file arguments for eval, but not when files
10004 # are listed without --file. Let's play safe and only enable the eval
10005 # if we detect the quoting.
10006 case $CONFIG_FILES in
10007 *\'*) eval set x "$CONFIG_FILES" ;;
10008 *) set x $CONFIG_FILES ;;
10013 # Strip MF so we end up with the name of the file.
10014 mf=`echo "$mf" | sed -e 's/:.*$//'`
10015 # Check whether this is an Automake generated Makefile or not.
10016 # We used to match only the files named `Makefile.in', but
10017 # some people rename them; so instead we look at the file content.
10018 # Grep'ing the first line is not enough: some people post-process
10019 # each Makefile.in and add a new line on top of each file to say so.
10020 # Grep'ing the whole file is not good either: AIX grep has a line
10021 # limit of 2048, but all sed's we know have understand at least 4000.
10022 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
10023 dirpart=`$as_dirname -- "$mf" ||
10024 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10025 X"$mf" : 'X\(//\)[^/]' \| \
10026 X"$mf" : 'X\(//\)$' \| \
10027 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
10029 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10033 /^X\(\/\/\)[^/].*/{
10049 # Extract the definition of DEPDIR, am__include, and am__quote
10050 # from the Makefile without running `make'.
10051 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
10052 test -z "$DEPDIR" && continue
10053 am__include=`sed -n 's/^am__include = //p' < "$mf"`
10054 test -z "am__include" && continue
10055 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
10056 # When using ansi2knr, U may be empty or an underscore; expand it
10057 U=`sed -n 's/^U = //p' < "$mf"`
10058 # Find all dependency output files, they are included files with
10059 # $(DEPDIR) in their names. We invoke sed twice because it is the
10060 # simplest approach to changing $(DEPDIR) to its actual value in the
10062 for file in `sed -n "
10063 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
10064 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10065 # Make sure the directory exists.
10066 test -f "$dirpart/$file" && continue
10067 fdir=`$as_dirname -- "$file" ||
10068 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10069 X"$file" : 'X\(//\)[^/]' \| \
10070 X"$file" : 'X\(//\)$' \| \
10071 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
10072 $as_echo X"$file" |
10073 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10077 /^X\(\/\/\)[^/].*/{
10090 as_dir=$dirpart/$fdir; as_fn_mkdir_p
10091 # echo "creating $dirpart/$file"
10092 echo '# dummy' > "$dirpart/$file"
10097 "po-directories":C)
10098 for ac_file in $CONFIG_FILES; do
10099 # Support "outfile[:infile[:infile...]]"
10101 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10103 # PO directories have a Makefile.in generated from Makefile.in.in.
10104 case "$ac_file" in */Makefile.in)
10105 # Adjust a relative srcdir.
10106 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
10107 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
10108 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
10109 # In autoconf-2.13 it is called $ac_given_srcdir.
10110 # In autoconf-2.50 it is called $srcdir.
10111 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
10112 case "$ac_given_srcdir" in
10113 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
10114 /*) top_srcdir="$ac_given_srcdir" ;;
10115 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
10117 # Treat a directory as a PO directory if and only if it has a
10118 # POTFILES.in file. This allows packages to have multiple PO
10119 # directories under different names or in different locations.
10120 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
10121 rm -f "$ac_dir/POTFILES"
10122 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
10123 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
10124 POMAKEFILEDEPS="POTFILES.in"
10125 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
10126 # on $ac_dir but don't depend on user-specified configuration
10128 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
10129 # The LINGUAS file contains the set of available languages.
10130 if test -n "$OBSOLETE_ALL_LINGUAS"; then
10131 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
10133 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
10134 # Hide the ALL_LINGUAS assigment from automake < 1.5.
10135 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
10136 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
10138 # The set of available languages was given in configure.in.
10139 # Hide the ALL_LINGUAS assigment from automake < 1.5.
10140 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
10143 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
10144 # Compute UPDATEPOFILES
10145 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
10146 # Compute DUMMYPOFILES
10147 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
10149 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
10150 case "$ac_given_srcdir" in
10152 *) srcdirpre='$(srcdir)/' ;;
10158 for lang in $ALL_LINGUAS; do
10159 POFILES="$POFILES $srcdirpre$lang.po"
10160 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
10161 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
10162 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
10164 # CATALOGS depends on both $ac_dir and the user's LINGUAS
10165 # environment variable.
10167 if test -n "$ALL_LINGUAS"; then
10168 for presentlang in $ALL_LINGUAS; do
10170 if test "%UNSET%" != "$LINGUAS"; then
10171 desiredlanguages="$LINGUAS"
10173 desiredlanguages="$ALL_LINGUAS"
10175 for desiredlang in $desiredlanguages; do
10176 # Use the presentlang catalog if desiredlang is
10177 # a. equal to presentlang, or
10178 # b. a variant of presentlang (because in this case,
10179 # presentlang can be used as a fallback for messages
10180 # which are not translated in the desiredlang catalog).
10181 case "$desiredlang" in
10182 "$presentlang"*) useit=yes;;
10185 if test $useit = yes; then
10186 INST_LINGUAS="$INST_LINGUAS $presentlang"
10191 if test -n "$INST_LINGUAS"; then
10192 for lang in $INST_LINGUAS; do
10193 CATALOGS="$CATALOGS $lang.gmo"
10196 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
10197 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"
10198 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
10199 if test -f "$f"; then
10201 *.orig | *.bak | *~) ;;
10202 *) cat "$f" >> "$ac_dir/Makefile" ;;
10217 ac_clean_files=$ac_clean_files_save
10219 test $ac_write_fail = 0 ||
10220 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
10223 # configure is writing to config.log, and then calls config.status.
10224 # config.status does its own redirection, appending to config.log.
10225 # Unfortunately, on DOS this fails, as config.log is still kept open
10226 # by configure, so config.status won't be able to write to it; its
10227 # output is simply discarded. So we exec the FD to /dev/null,
10228 # effectively closing config.log, so it can be properly (re)opened and
10229 # appended to by config.status. When coming back to configure, we
10230 # need to make the FD available again.
10231 if test "$no_create" != yes; then
10233 ac_config_status_args=
10234 test "$silent" = yes &&
10235 ac_config_status_args="$ac_config_status_args --quiet"
10237 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10239 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10240 # would make configure fail if this is the last instruction.
10241 $ac_cs_success || as_fn_exit 1
10243 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
10244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10245 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}