2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for psensor 0.6.2.x.
5 # Report bugs to <jeanfi@gmail.com>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 *v*x* | *x*v* ) as_opts=-vx ;;
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
215 test -z "$as_dir" && as_dir=.
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
240 if test "x$CONFIG_SHELL" != x; then :
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
250 *v*x* | *x*v* ) as_opts=-vx ;;
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
269 $as_echo "$0: Please tell bug-autoconf@gnu.org and jeanfi@gmail.com
270 $0: about your system, including any error possibly output
271 $0: before this message. Then install a modern shell, or
272 $0: manually run the script under such a shell if you do
279 SHELL=${CONFIG_SHELL-/bin/sh}
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
290 # Portably unset VAR.
293 { eval $1=; unset $1;}
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 # Create "$as_dir" as a directory, including parents if necessary.
322 -*) as_dir=./$as_dir;;
324 test -d "$as_dir" || eval $as_mkdir_p || {
328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
331 as_dirs="'$as_qdir' $as_dirs"
332 as_dir=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
355 test -d "$as_dir" && break
357 test -z "$as_dirs" || eval "mkdir $as_dirs"
358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
368 test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377 eval 'as_fn_append ()
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
401 as_val=`expr "$@" || test $? -eq 1`
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
413 as_status=$1; test $as_status -eq 0 && as_status=1
415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit $as_status
422 if expr a : '\(a\)' >/dev/null 2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_me=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
460 # Avoid depending upon Character Ranges.
461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits='0123456789'
465 as_cr_alnum=$as_cr_Letters$as_cr_digits
468 as_lineno_1=$LINENO as_lineno_1a=$LINENO
469 as_lineno_2=$LINENO as_lineno_2a=$LINENO
470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
488 chmod +x "$as_me.lineno" ||
489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec=no; export _as_can_reexec
495 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the
497 # original and so on. Autoconf is especially sensitive to this).
499 # Exit status is that of the last command.
503 ECHO_C= ECHO_N= ECHO_T=
504 case `echo -n x` in #(((((
506 case `echo 'xy\c'` in
507 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
516 rm -f conf$$ conf$$.exe conf$$.file
517 if test -d conf$$.dir; then
518 rm -f conf$$.dir/conf$$.file
521 mkdir conf$$.dir 2>/dev/null
523 if (echo >conf$$.file) 2>/dev/null; then
524 if ln -s conf$$.file conf$$ 2>/dev/null; then
526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529 # In both cases, we have to default to `cp -pR'.
530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
532 elif ln conf$$.file conf$$ 2>/dev/null; then
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
543 if mkdir -p . 2>/dev/null; then
544 as_mkdir_p='mkdir -p "$as_dir"'
546 test -d ./-p && rmdir ./-p
551 as_executable_p=as_fn_executable_p
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
560 test -n "$DJDIR" || exec 7<&0 </dev/null
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
571 ac_default_prefix=/usr/local
573 ac_config_libobj_dir=.
580 # Identity of this package.
581 PACKAGE_NAME='psensor'
582 PACKAGE_TARNAME='psensor'
583 PACKAGE_VERSION='0.6.2.x'
584 PACKAGE_STRING='psensor 0.6.2.x'
585 PACKAGE_BUGREPORT='jeanfi@gmail.com'
586 PACKAGE_URL='http://wpitchoune.net/psensor'
588 ac_unique_file="src/compat.h"
589 # Factoring default headers for most tests.
590 ac_includes_default="\
592 #ifdef HAVE_SYS_TYPES_H
593 # include <sys/types.h>
595 #ifdef HAVE_SYS_STAT_H
596 # include <sys/stat.h>
602 # ifdef HAVE_STDLIB_H
607 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
612 #ifdef HAVE_STRINGS_H
613 # include <strings.h>
615 #ifdef HAVE_INTTYPES_H
616 # include <inttypes.h>
626 ac_subst_vars='am__EXEEXT_FALSE
695 XGETTEXT_EXTRA_OPTIONS
703 GETTEXT_MACRO_VERSION
736 INSTALL_STRIP_PROGRAM
778 program_transform_name
791 enable_option_checking
792 enable_dependency_tracking
802 ac_precious_vars='build_alias
839 # Initialize some variables set by options.
841 ac_init_version=false
842 ac_unrecognized_opts=
844 # The variables have the same names as the options, with
845 # dashes changed to underlines.
853 program_transform_name=s,x,x,
861 # Installation directory options.
862 # These are left unexpanded so users can "make install exec_prefix=/foo"
863 # and all the variables that are supposed to be based on exec_prefix
864 # by default will actually change.
865 # Use braces instead of parens because sh, perl, etc. also accept them.
866 # (The list follows the same order as the GNU Coding Standards.)
867 bindir='${exec_prefix}/bin'
868 sbindir='${exec_prefix}/sbin'
869 libexecdir='${exec_prefix}/libexec'
870 datarootdir='${prefix}/share'
871 datadir='${datarootdir}'
872 sysconfdir='${prefix}/etc'
873 sharedstatedir='${prefix}/com'
874 localstatedir='${prefix}/var'
875 includedir='${prefix}/include'
876 oldincludedir='/usr/include'
877 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
878 infodir='${datarootdir}/info'
883 libdir='${exec_prefix}/lib'
884 localedir='${datarootdir}/locale'
885 mandir='${datarootdir}/man'
891 # If the previous option needs an argument, assign it.
892 if test -n "$ac_prev"; then
893 eval $ac_prev=\$ac_option
899 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
904 # Accept the important Cygnus configure options, so we can diagnose typos.
906 case $ac_dashdash$ac_option in
910 -bindir | --bindir | --bindi | --bind | --bin | --bi)
912 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
915 -build | --build | --buil | --bui | --bu)
916 ac_prev=build_alias ;;
917 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
918 build_alias=$ac_optarg ;;
920 -cache-file | --cache-file | --cache-fil | --cache-fi \
921 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
922 ac_prev=cache_file ;;
923 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
924 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
925 cache_file=$ac_optarg ;;
928 cache_file=config.cache ;;
930 -datadir | --datadir | --datadi | --datad)
932 -datadir=* | --datadir=* | --datadi=* | --datad=*)
933 datadir=$ac_optarg ;;
935 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
936 | --dataroo | --dataro | --datar)
937 ac_prev=datarootdir ;;
938 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
939 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
940 datarootdir=$ac_optarg ;;
942 -disable-* | --disable-*)
943 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
944 # Reject names that are not valid shell variable names.
945 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
946 as_fn_error $? "invalid feature name: $ac_useropt"
947 ac_useropt_orig=$ac_useropt
948 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
949 case $ac_user_opts in
953 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
954 ac_unrecognized_sep=', ';;
956 eval enable_$ac_useropt=no ;;
958 -docdir | --docdir | --docdi | --doc | --do)
960 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
963 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
965 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
968 -enable-* | --enable-*)
969 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
970 # Reject names that are not valid shell variable names.
971 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
972 as_fn_error $? "invalid feature name: $ac_useropt"
973 ac_useropt_orig=$ac_useropt
974 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
975 case $ac_user_opts in
979 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
980 ac_unrecognized_sep=', ';;
982 eval enable_$ac_useropt=\$ac_optarg ;;
984 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
985 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
986 | --exec | --exe | --ex)
987 ac_prev=exec_prefix ;;
988 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
989 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
990 | --exec=* | --exe=* | --ex=*)
991 exec_prefix=$ac_optarg ;;
993 -gas | --gas | --ga | --g)
994 # Obsolete; use --with-gas.
997 -help | --help | --hel | --he | -h)
999 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1000 ac_init_help=recursive ;;
1001 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1002 ac_init_help=short ;;
1004 -host | --host | --hos | --ho)
1005 ac_prev=host_alias ;;
1006 -host=* | --host=* | --hos=* | --ho=*)
1007 host_alias=$ac_optarg ;;
1009 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1011 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1013 htmldir=$ac_optarg ;;
1015 -includedir | --includedir | --includedi | --included | --include \
1016 | --includ | --inclu | --incl | --inc)
1017 ac_prev=includedir ;;
1018 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1019 | --includ=* | --inclu=* | --incl=* | --inc=*)
1020 includedir=$ac_optarg ;;
1022 -infodir | --infodir | --infodi | --infod | --info | --inf)
1024 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1025 infodir=$ac_optarg ;;
1027 -libdir | --libdir | --libdi | --libd)
1029 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1030 libdir=$ac_optarg ;;
1032 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1033 | --libexe | --libex | --libe)
1034 ac_prev=libexecdir ;;
1035 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1036 | --libexe=* | --libex=* | --libe=*)
1037 libexecdir=$ac_optarg ;;
1039 -localedir | --localedir | --localedi | --localed | --locale)
1040 ac_prev=localedir ;;
1041 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1042 localedir=$ac_optarg ;;
1044 -localstatedir | --localstatedir | --localstatedi | --localstated \
1045 | --localstate | --localstat | --localsta | --localst | --locals)
1046 ac_prev=localstatedir ;;
1047 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1048 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1049 localstatedir=$ac_optarg ;;
1051 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1053 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1054 mandir=$ac_optarg ;;
1056 -nfp | --nfp | --nf)
1057 # Obsolete; use --without-fp.
1060 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1061 | --no-cr | --no-c | -n)
1064 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1065 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1068 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1069 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1070 | --oldin | --oldi | --old | --ol | --o)
1071 ac_prev=oldincludedir ;;
1072 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1073 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1074 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1075 oldincludedir=$ac_optarg ;;
1077 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1079 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1080 prefix=$ac_optarg ;;
1082 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1083 | --program-pre | --program-pr | --program-p)
1084 ac_prev=program_prefix ;;
1085 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1086 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1087 program_prefix=$ac_optarg ;;
1089 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1090 | --program-suf | --program-su | --program-s)
1091 ac_prev=program_suffix ;;
1092 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1093 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1094 program_suffix=$ac_optarg ;;
1096 -program-transform-name | --program-transform-name \
1097 | --program-transform-nam | --program-transform-na \
1098 | --program-transform-n | --program-transform- \
1099 | --program-transform | --program-transfor \
1100 | --program-transfo | --program-transf \
1101 | --program-trans | --program-tran \
1102 | --progr-tra | --program-tr | --program-t)
1103 ac_prev=program_transform_name ;;
1104 -program-transform-name=* | --program-transform-name=* \
1105 | --program-transform-nam=* | --program-transform-na=* \
1106 | --program-transform-n=* | --program-transform-=* \
1107 | --program-transform=* | --program-transfor=* \
1108 | --program-transfo=* | --program-transf=* \
1109 | --program-trans=* | --program-tran=* \
1110 | --progr-tra=* | --program-tr=* | --program-t=*)
1111 program_transform_name=$ac_optarg ;;
1113 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1115 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1116 pdfdir=$ac_optarg ;;
1118 -psdir | --psdir | --psdi | --psd | --ps)
1120 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1123 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1124 | -silent | --silent | --silen | --sile | --sil)
1127 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1129 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1131 sbindir=$ac_optarg ;;
1133 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1134 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1135 | --sharedst | --shareds | --shared | --share | --shar \
1137 ac_prev=sharedstatedir ;;
1138 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1139 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1140 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1142 sharedstatedir=$ac_optarg ;;
1144 -site | --site | --sit)
1146 -site=* | --site=* | --sit=*)
1149 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1151 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1152 srcdir=$ac_optarg ;;
1154 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1155 | --syscon | --sysco | --sysc | --sys | --sy)
1156 ac_prev=sysconfdir ;;
1157 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1158 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1159 sysconfdir=$ac_optarg ;;
1161 -target | --target | --targe | --targ | --tar | --ta | --t)
1162 ac_prev=target_alias ;;
1163 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1164 target_alias=$ac_optarg ;;
1166 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1169 -version | --version | --versio | --versi | --vers | -V)
1170 ac_init_version=: ;;
1173 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1174 # Reject names that are not valid shell variable names.
1175 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1176 as_fn_error $? "invalid package name: $ac_useropt"
1177 ac_useropt_orig=$ac_useropt
1178 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1179 case $ac_user_opts in
1183 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1184 ac_unrecognized_sep=', ';;
1186 eval with_$ac_useropt=\$ac_optarg ;;
1188 -without-* | --without-*)
1189 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1190 # Reject names that are not valid shell variable names.
1191 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1192 as_fn_error $? "invalid package name: $ac_useropt"
1193 ac_useropt_orig=$ac_useropt
1194 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1195 case $ac_user_opts in
1199 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1200 ac_unrecognized_sep=', ';;
1202 eval with_$ac_useropt=no ;;
1205 # Obsolete; use --with-x.
1208 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1209 | --x-incl | --x-inc | --x-in | --x-i)
1210 ac_prev=x_includes ;;
1211 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1212 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1213 x_includes=$ac_optarg ;;
1215 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1216 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1217 ac_prev=x_libraries ;;
1218 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1219 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1220 x_libraries=$ac_optarg ;;
1222 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1223 Try \`$0 --help' for more information"
1227 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1228 # Reject names that are not valid shell variable names.
1229 case $ac_envvar in #(
1230 '' | [0-9]* | *[!_$as_cr_alnum]* )
1231 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1233 eval $ac_envvar=\$ac_optarg
1234 export $ac_envvar ;;
1237 # FIXME: should be removed in autoconf 3.0.
1238 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1239 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1240 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1241 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1247 if test -n "$ac_prev"; then
1248 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1249 as_fn_error $? "missing argument to $ac_option"
1252 if test -n "$ac_unrecognized_opts"; then
1253 case $enable_option_checking in
1255 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1256 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1260 # Check all directory arguments for consistency.
1261 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1262 datadir sysconfdir sharedstatedir localstatedir includedir \
1263 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1264 libdir localedir mandir
1266 eval ac_val=\$$ac_var
1267 # Remove trailing slashes.
1270 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1271 eval $ac_var=\$ac_val;;
1273 # Be sure to have absolute directory names.
1275 [\\/$]* | ?:[\\/]* ) continue;;
1276 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1278 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1281 # There might be people who depend on the old broken behavior: `$host'
1282 # used to hold the argument of --host etc.
1283 # FIXME: To remove some day.
1286 target=$target_alias
1288 # FIXME: To remove some day.
1289 if test "x$host_alias" != x; then
1290 if test "x$build_alias" = x; then
1291 cross_compiling=maybe
1292 elif test "x$build_alias" != "x$host_alias"; then
1298 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1300 test "$silent" = yes && exec 6>/dev/null
1303 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1304 ac_ls_di=`ls -di .` &&
1305 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1306 as_fn_error $? "working directory cannot be determined"
1307 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1308 as_fn_error $? "pwd does not report name of working directory"
1311 # Find the source files, if location was not specified.
1312 if test -z "$srcdir"; then
1313 ac_srcdir_defaulted=yes
1314 # Try the directory containing this script, then the parent directory.
1315 ac_confdir=`$as_dirname -- "$as_myself" ||
1316 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1317 X"$as_myself" : 'X\(//\)[^/]' \| \
1318 X"$as_myself" : 'X\(//\)$' \| \
1319 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1320 $as_echo X"$as_myself" |
1321 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1339 if test ! -r "$srcdir/$ac_unique_file"; then
1343 ac_srcdir_defaulted=no
1345 if test ! -r "$srcdir/$ac_unique_file"; then
1346 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1347 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1349 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1351 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1353 # When building in place, set srcdir=.
1354 if test "$ac_abs_confdir" = "$ac_pwd"; then
1357 # Remove unnecessary trailing slashes from srcdir.
1358 # Double slashes in file names in object file debugging info
1359 # mess up M-x gdb in Emacs.
1361 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1363 for ac_var in $ac_precious_vars; do
1364 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1365 eval ac_env_${ac_var}_value=\$${ac_var}
1366 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1367 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1371 # Report the --help message.
1373 if test "$ac_init_help" = "long"; then
1374 # Omit some internal or obsolete options to make the list less imposing.
1375 # This message is too long to be a string in the A/UX 3.1 sh.
1377 \`configure' configures psensor 0.6.2.x to adapt to many kinds of systems.
1379 Usage: $0 [OPTION]... [VAR=VALUE]...
1381 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1382 VAR=VALUE. See below for descriptions of some of the useful variables.
1384 Defaults for the options are specified in brackets.
1387 -h, --help display this help and exit
1388 --help=short display options specific to this package
1389 --help=recursive display the short help of all the included packages
1390 -V, --version display version information and exit
1391 -q, --quiet, --silent do not print \`checking ...' messages
1392 --cache-file=FILE cache test results in FILE [disabled]
1393 -C, --config-cache alias for \`--cache-file=config.cache'
1394 -n, --no-create do not create output files
1395 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1397 Installation directories:
1398 --prefix=PREFIX install architecture-independent files in PREFIX
1399 [$ac_default_prefix]
1400 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1403 By default, \`make install' will install all the files in
1404 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1405 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1406 for instance \`--prefix=\$HOME'.
1408 For better control, use the options below.
1410 Fine tuning of the installation directories:
1411 --bindir=DIR user executables [EPREFIX/bin]
1412 --sbindir=DIR system admin executables [EPREFIX/sbin]
1413 --libexecdir=DIR program executables [EPREFIX/libexec]
1414 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1415 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1416 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1417 --libdir=DIR object code libraries [EPREFIX/lib]
1418 --includedir=DIR C header files [PREFIX/include]
1419 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1420 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1421 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1422 --infodir=DIR info documentation [DATAROOTDIR/info]
1423 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1424 --mandir=DIR man documentation [DATAROOTDIR/man]
1425 --docdir=DIR documentation root [DATAROOTDIR/doc/psensor]
1426 --htmldir=DIR html documentation [DOCDIR]
1427 --dvidir=DIR dvi documentation [DOCDIR]
1428 --pdfdir=DIR pdf documentation [DOCDIR]
1429 --psdir=DIR ps documentation [DOCDIR]
1435 --program-prefix=PREFIX prepend PREFIX to installed program names
1436 --program-suffix=SUFFIX append SUFFIX to installed program names
1437 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1440 --x-includes=DIR X include files are in DIR
1441 --x-libraries=DIR X library files are in DIR
1444 --build=BUILD configure for building on BUILD [guessed]
1445 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1449 if test -n "$ac_init_help"; then
1450 case $ac_init_help in
1451 short | recursive ) echo "Configuration of psensor 0.6.2.x:";;
1456 --disable-option-checking ignore unrecognized --enable/--with options
1457 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1458 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1459 --disable-dependency-tracking speeds up one-time build
1460 --enable-dependency-tracking do not reject slow dependency extractors
1461 --disable-nls do not use Native Language Support
1462 --disable-rpath do not hardcode runtime library paths
1465 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1466 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1467 --with-x use the X Window System
1468 --with-gnu-ld assume the C compiler uses GNU ld default=no
1469 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1470 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1471 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1472 --without-libintl-prefix don't search for libintl in includedir and libdir
1473 --with-libatiadl=DIR use libatiadlxx in DIR
1474 --with-gtop=yes|no use gtop
1476 Some influential environment variables:
1477 CC C compiler command
1478 CFLAGS C compiler flags
1479 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1480 nonstandard directory <lib dir>
1481 LIBS libraries to pass to the linker, e.g. -l<library>
1482 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1483 you have headers in a nonstandard directory <include dir>
1484 XMKMF Path to xmkmf, Makefile generator for X Window System
1486 PKG_CONFIG path to pkg-config utility
1488 directories to add to pkg-config's search path
1490 path overriding pkg-config's built-in search path
1491 X11_CFLAGS C compiler flags for X11, overriding pkg-config
1492 X11_LIBS linker flags for X11, overriding pkg-config
1493 XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
1494 XEXT_LIBS linker flags for XEXT, overriding pkg-config
1495 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config
1496 GTK_LIBS linker flags for GTK, overriding pkg-config
1498 C compiler flags for GCONF, overriding pkg-config
1499 GCONF_LIBS linker flags for GCONF, overriding pkg-config
1501 C compiler flags for LIBNOTIFY, overriding pkg-config
1503 linker flags for LIBNOTIFY, overriding pkg-config
1505 C compiler flags for APPINDICATOR, overriding pkg-config
1507 linker flags for APPINDICATOR, overriding pkg-config
1508 CURL_CFLAGS C compiler flags for CURL, overriding pkg-config
1509 CURL_LIBS linker flags for CURL, overriding pkg-config
1510 JSON_CFLAGS C compiler flags for JSON, overriding pkg-config
1511 JSON_LIBS linker flags for JSON, overriding pkg-config
1513 C compiler flags for UNITY, overriding pkg-config
1514 UNITY_LIBS linker flags for UNITY, overriding pkg-config
1515 LIBMICROHTTPD_CFLAGS
1516 C compiler flags for LIBMICROHTTPD, overriding pkg-config
1518 linker flags for LIBMICROHTTPD, overriding pkg-config
1519 GTOP_CFLAGS C compiler flags for GTOP, overriding pkg-config
1520 GTOP_LIBS linker flags for GTOP, overriding pkg-config
1522 Use these variables to override the choices made by `configure' or to help
1523 it to find libraries and programs with nonstandard names/locations.
1525 Report bugs to <jeanfi@gmail.com>.
1526 psensor home page: <http://wpitchoune.net/psensor>.
1531 if test "$ac_init_help" = "recursive"; then
1532 # If there are subdirs, report their specific --help.
1533 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1534 test -d "$ac_dir" ||
1535 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1540 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1542 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1543 # A ".." for each directory in $ac_dir_suffix.
1544 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1545 case $ac_top_builddir_sub in
1546 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1547 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1550 ac_abs_top_builddir=$ac_pwd
1551 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1552 # for backward compatibility:
1553 ac_top_builddir=$ac_top_build_prefix
1556 .) # We are building in place.
1558 ac_top_srcdir=$ac_top_builddir_sub
1559 ac_abs_top_srcdir=$ac_pwd ;;
1560 [\\/]* | ?:[\\/]* ) # Absolute name.
1561 ac_srcdir=$srcdir$ac_dir_suffix;
1562 ac_top_srcdir=$srcdir
1563 ac_abs_top_srcdir=$srcdir ;;
1565 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1566 ac_top_srcdir=$ac_top_build_prefix$srcdir
1567 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1569 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1571 cd "$ac_dir" || { ac_status=$?; continue; }
1572 # Check for guested configure.
1573 if test -f "$ac_srcdir/configure.gnu"; then
1575 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1576 elif test -f "$ac_srcdir/configure"; then
1578 $SHELL "$ac_srcdir/configure" --help=recursive
1580 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1582 cd "$ac_pwd" || { ac_status=$?; break; }
1586 test -n "$ac_init_help" && exit $ac_status
1587 if $ac_init_version; then
1589 psensor configure 0.6.2.x
1590 generated by GNU Autoconf 2.69
1592 Copyright (C) 2012 Free Software Foundation, Inc.
1593 This configure script is free software; the Free Software Foundation
1594 gives unlimited permission to copy, distribute and modify it.
1599 ## ------------------------ ##
1600 ## Autoconf initialization. ##
1601 ## ------------------------ ##
1603 # ac_fn_c_try_compile LINENO
1604 # --------------------------
1605 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1606 ac_fn_c_try_compile ()
1608 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1609 rm -f conftest.$ac_objext
1610 if { { ac_try="$ac_compile"
1612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1613 *) ac_try_echo=$ac_try;;
1615 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1616 $as_echo "$ac_try_echo"; } >&5
1617 (eval "$ac_compile") 2>conftest.err
1619 if test -s conftest.err; then
1620 grep -v '^ *+' conftest.err >conftest.er1
1621 cat conftest.er1 >&5
1622 mv -f conftest.er1 conftest.err
1624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1625 test $ac_status = 0; } && {
1626 test -z "$ac_c_werror_flag" ||
1627 test ! -s conftest.err
1628 } && test -s conftest.$ac_objext; then :
1631 $as_echo "$as_me: failed program was:" >&5
1632 sed 's/^/| /' conftest.$ac_ext >&5
1636 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1637 as_fn_set_status $ac_retval
1639 } # ac_fn_c_try_compile
1641 # ac_fn_c_try_cpp LINENO
1642 # ----------------------
1643 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1646 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1647 if { { ac_try="$ac_cpp conftest.$ac_ext"
1649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1650 *) ac_try_echo=$ac_try;;
1652 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1653 $as_echo "$ac_try_echo"; } >&5
1654 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1656 if test -s conftest.err; then
1657 grep -v '^ *+' conftest.err >conftest.er1
1658 cat conftest.er1 >&5
1659 mv -f conftest.er1 conftest.err
1661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1662 test $ac_status = 0; } > conftest.i && {
1663 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1664 test ! -s conftest.err
1668 $as_echo "$as_me: failed program was:" >&5
1669 sed 's/^/| /' conftest.$ac_ext >&5
1673 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1674 as_fn_set_status $ac_retval
1678 # ac_fn_c_try_link LINENO
1679 # -----------------------
1680 # Try to link conftest.$ac_ext, and return whether this succeeded.
1683 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1684 rm -f conftest.$ac_objext conftest$ac_exeext
1685 if { { ac_try="$ac_link"
1687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1688 *) ac_try_echo=$ac_try;;
1690 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1691 $as_echo "$ac_try_echo"; } >&5
1692 (eval "$ac_link") 2>conftest.err
1694 if test -s conftest.err; then
1695 grep -v '^ *+' conftest.err >conftest.er1
1696 cat conftest.er1 >&5
1697 mv -f conftest.er1 conftest.err
1699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1700 test $ac_status = 0; } && {
1701 test -z "$ac_c_werror_flag" ||
1702 test ! -s conftest.err
1703 } && test -s conftest$ac_exeext && {
1704 test "$cross_compiling" = yes ||
1705 test -x conftest$ac_exeext
1709 $as_echo "$as_me: failed program was:" >&5
1710 sed 's/^/| /' conftest.$ac_ext >&5
1714 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1715 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1716 # interfere with the next link command; also delete a directory that is
1717 # left behind by Apple's compiler. We do this before executing the actions.
1718 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1719 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1720 as_fn_set_status $ac_retval
1722 } # ac_fn_c_try_link
1724 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1725 # -------------------------------------------------------
1726 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1727 # the include files in INCLUDES and setting the cache variable VAR
1729 ac_fn_c_check_header_mongrel ()
1731 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1732 if eval \${$3+:} false; then :
1733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1734 $as_echo_n "checking for $2... " >&6; }
1735 if eval \${$3+:} false; then :
1736 $as_echo_n "(cached) " >&6
1739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1740 $as_echo "$ac_res" >&6; }
1742 # Is the header compilable?
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1744 $as_echo_n "checking $2 usability... " >&6; }
1745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1746 /* end confdefs.h. */
1750 if ac_fn_c_try_compile "$LINENO"; then :
1751 ac_header_compiler=yes
1753 ac_header_compiler=no
1755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1757 $as_echo "$ac_header_compiler" >&6; }
1759 # Is the header present?
1760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1761 $as_echo_n "checking $2 presence... " >&6; }
1762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1763 /* end confdefs.h. */
1766 if ac_fn_c_try_cpp "$LINENO"; then :
1767 ac_header_preproc=yes
1769 ac_header_preproc=no
1771 rm -f conftest.err conftest.i conftest.$ac_ext
1772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1773 $as_echo "$ac_header_preproc" >&6; }
1775 # So? What about this header?
1776 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1779 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1781 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1785 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1787 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1789 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1791 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1793 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1794 ( $as_echo "## ------------------------------- ##
1795 ## Report this to jeanfi@gmail.com ##
1796 ## ------------------------------- ##"
1797 ) | sed "s/^/$as_me: WARNING: /" >&2
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1801 $as_echo_n "checking for $2... " >&6; }
1802 if eval \${$3+:} false; then :
1803 $as_echo_n "(cached) " >&6
1805 eval "$3=\$ac_header_compiler"
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1809 $as_echo "$ac_res" >&6; }
1811 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1813 } # ac_fn_c_check_header_mongrel
1815 # ac_fn_c_try_run LINENO
1816 # ----------------------
1817 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1818 # that executables *can* be run.
1821 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1822 if { { ac_try="$ac_link"
1824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1825 *) ac_try_echo=$ac_try;;
1827 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1828 $as_echo "$ac_try_echo"; } >&5
1829 (eval "$ac_link") 2>&5
1831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1832 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1833 { { case "(($ac_try" in
1834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1835 *) ac_try_echo=$ac_try;;
1837 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1838 $as_echo "$ac_try_echo"; } >&5
1839 (eval "$ac_try") 2>&5
1841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1842 test $ac_status = 0; }; }; then :
1845 $as_echo "$as_me: program exited with status $ac_status" >&5
1846 $as_echo "$as_me: failed program was:" >&5
1847 sed 's/^/| /' conftest.$ac_ext >&5
1849 ac_retval=$ac_status
1851 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1852 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1853 as_fn_set_status $ac_retval
1857 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1858 # -------------------------------------------------------
1859 # Tests whether HEADER exists and can be compiled using the include files in
1860 # INCLUDES, setting the cache variable VAR accordingly.
1861 ac_fn_c_check_header_compile ()
1863 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1865 $as_echo_n "checking for $2... " >&6; }
1866 if eval \${$3+:} false; then :
1867 $as_echo_n "(cached) " >&6
1869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1870 /* end confdefs.h. */
1874 if ac_fn_c_try_compile "$LINENO"; then :
1879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1883 $as_echo "$ac_res" >&6; }
1884 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1886 } # ac_fn_c_check_header_compile
1888 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1889 # -------------------------------------------
1890 # Tests whether TYPE exists after having included INCLUDES, setting cache
1891 # variable VAR accordingly.
1892 ac_fn_c_check_type ()
1894 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1896 $as_echo_n "checking for $2... " >&6; }
1897 if eval \${$3+:} false; then :
1898 $as_echo_n "(cached) " >&6
1901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1902 /* end confdefs.h. */
1913 if ac_fn_c_try_compile "$LINENO"; then :
1914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1915 /* end confdefs.h. */
1926 if ac_fn_c_try_compile "$LINENO"; then :
1931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1937 $as_echo "$ac_res" >&6; }
1938 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1940 } # ac_fn_c_check_type
1942 # ac_fn_c_check_func LINENO FUNC VAR
1943 # ----------------------------------
1944 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1945 ac_fn_c_check_func ()
1947 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1949 $as_echo_n "checking for $2... " >&6; }
1950 if eval \${$3+:} false; then :
1951 $as_echo_n "(cached) " >&6
1953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1954 /* end confdefs.h. */
1955 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1956 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1957 #define $2 innocuous_$2
1959 /* System header to define __stub macros and hopefully few prototypes,
1960 which can conflict with char $2 (); below.
1961 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1962 <limits.h> exists even on freestanding compilers. */
1965 # include <limits.h>
1967 # include <assert.h>
1972 /* Override any GCC internal prototype to avoid an error.
1973 Use char because int might match the return type of a GCC
1974 builtin and then its argument prototype would still apply. */
1979 /* The GNU C library defines this for functions which it implements
1980 to always fail with ENOSYS. Some functions are actually named
1981 something starting with __ and the normal name is an alias. */
1982 #if defined __stub_$2 || defined __stub___$2
1994 if ac_fn_c_try_link "$LINENO"; then :
1999 rm -f core conftest.err conftest.$ac_objext \
2000 conftest$ac_exeext conftest.$ac_ext
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2004 $as_echo "$ac_res" >&6; }
2005 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2007 } # ac_fn_c_check_func
2008 cat >config.log <<_ACEOF
2009 This file contains any messages produced by compilers while
2010 running configure, to aid debugging if configure makes a mistake.
2012 It was created by psensor $as_me 0.6.2.x, which was
2013 generated by GNU Autoconf 2.69. Invocation command line was
2025 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2026 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2027 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2028 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2029 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2031 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2032 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2034 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2035 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2036 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2037 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2038 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2039 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2040 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2048 test -z "$as_dir" && as_dir=.
2049 $as_echo "PATH: $as_dir"
2065 # Keep a trace of the command line.
2066 # Strip out --no-create and --no-recursion so they do not pile up.
2067 # Strip out --silent because we don't want to record it for future runs.
2068 # Also quote any args containing shell meta-characters.
2069 # Make two passes to allow for proper duplicate-argument suppression.
2073 ac_must_keep_next=false
2079 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2080 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2081 | -silent | --silent | --silen | --sile | --sil)
2084 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2087 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2089 as_fn_append ac_configure_args1 " '$ac_arg'"
2090 if test $ac_must_keep_next = true; then
2091 ac_must_keep_next=false # Got value, back to normal.
2094 *=* | --config-cache | -C | -disable-* | --disable-* \
2095 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2096 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2097 | -with-* | --with-* | -without-* | --without-* | --x)
2098 case "$ac_configure_args0 " in
2099 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2102 -* ) ac_must_keep_next=true ;;
2105 as_fn_append ac_configure_args " '$ac_arg'"
2110 { ac_configure_args0=; unset ac_configure_args0;}
2111 { ac_configure_args1=; unset ac_configure_args1;}
2113 # When interrupted or exit'd, cleanup temporary files, and complete
2114 # config.log. We remove comments because anyway the quotes in there
2115 # would cause problems or look ugly.
2116 # WARNING: Use '\'' to represent an apostrophe within the trap.
2117 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2118 trap 'exit_status=$?
2119 # Save into config.log some information that might help in debugging.
2123 $as_echo "## ---------------- ##
2124 ## Cache variables. ##
2125 ## ---------------- ##"
2127 # The following way of writing the cache mishandles newlines in values,
2129 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2130 eval ac_val=\$$ac_var
2134 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2135 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2138 _ | IFS | as_nl) ;; #(
2139 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2140 *) { eval $ac_var=; unset $ac_var;} ;;
2145 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2146 *${as_nl}ac_space=\ *)
2148 "s/'\''/'\''\\\\'\'''\''/g;
2149 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2152 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2159 $as_echo "## ----------------- ##
2160 ## Output variables. ##
2161 ## ----------------- ##"
2163 for ac_var in $ac_subst_vars
2165 eval ac_val=\$$ac_var
2167 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2169 $as_echo "$ac_var='\''$ac_val'\''"
2173 if test -n "$ac_subst_files"; then
2174 $as_echo "## ------------------- ##
2175 ## File substitutions. ##
2176 ## ------------------- ##"
2178 for ac_var in $ac_subst_files
2180 eval ac_val=\$$ac_var
2182 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2184 $as_echo "$ac_var='\''$ac_val'\''"
2189 if test -s confdefs.h; then
2190 $as_echo "## ----------- ##
2197 test "$ac_signal" != 0 &&
2198 $as_echo "$as_me: caught signal $ac_signal"
2199 $as_echo "$as_me: exit $exit_status"
2201 rm -f core *.core core.conftest.* &&
2202 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2205 for ac_signal in 1 2 13 15; do
2206 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2210 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2211 rm -f -r conftest* confdefs.h
2213 $as_echo "/* confdefs.h */" > confdefs.h
2215 # Predefined preprocessor variables.
2217 cat >>confdefs.h <<_ACEOF
2218 #define PACKAGE_NAME "$PACKAGE_NAME"
2221 cat >>confdefs.h <<_ACEOF
2222 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2225 cat >>confdefs.h <<_ACEOF
2226 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2229 cat >>confdefs.h <<_ACEOF
2230 #define PACKAGE_STRING "$PACKAGE_STRING"
2233 cat >>confdefs.h <<_ACEOF
2234 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2237 cat >>confdefs.h <<_ACEOF
2238 #define PACKAGE_URL "$PACKAGE_URL"
2242 # Let the site file select an alternate cache file if it wants to.
2243 # Prefer an explicitly selected file to automatically selected ones.
2246 if test -n "$CONFIG_SITE"; then
2247 # We do not want a PATH search for config.site.
2248 case $CONFIG_SITE in #((
2249 -*) ac_site_file1=./$CONFIG_SITE;;
2250 */*) ac_site_file1=$CONFIG_SITE;;
2251 *) ac_site_file1=./$CONFIG_SITE;;
2253 elif test "x$prefix" != xNONE; then
2254 ac_site_file1=$prefix/share/config.site
2255 ac_site_file2=$prefix/etc/config.site
2257 ac_site_file1=$ac_default_prefix/share/config.site
2258 ac_site_file2=$ac_default_prefix/etc/config.site
2260 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2262 test "x$ac_site_file" = xNONE && continue
2263 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2265 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2266 sed 's/^/| /' "$ac_site_file" >&5
2268 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2269 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2270 as_fn_error $? "failed to load site script $ac_site_file
2271 See \`config.log' for more details" "$LINENO" 5; }
2275 if test -r "$cache_file"; then
2276 # Some versions of bash will fail to source /dev/null (special files
2277 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2278 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2279 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2280 $as_echo "$as_me: loading cache $cache_file" >&6;}
2282 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2283 *) . "./$cache_file";;
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2288 $as_echo "$as_me: creating cache $cache_file" >&6;}
2292 gt_needs="$gt_needs "
2293 # Check that the precious variables saved in the cache have kept the same
2295 ac_cache_corrupted=false
2296 for ac_var in $ac_precious_vars; do
2297 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2298 eval ac_new_set=\$ac_env_${ac_var}_set
2299 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2300 eval ac_new_val=\$ac_env_${ac_var}_value
2301 case $ac_old_set,$ac_new_set in
2303 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2304 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2305 ac_cache_corrupted=: ;;
2307 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2308 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2309 ac_cache_corrupted=: ;;
2312 if test "x$ac_old_val" != "x$ac_new_val"; then
2313 # differences in whitespace do not lead to failure.
2314 ac_old_val_w=`echo x $ac_old_val`
2315 ac_new_val_w=`echo x $ac_new_val`
2316 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2318 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2319 ac_cache_corrupted=:
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2322 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2323 eval $ac_var=\$ac_old_val
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2326 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2328 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2331 # Pass precious variables to config.status.
2332 if test "$ac_new_set" = set; then
2334 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2335 *) ac_arg=$ac_var=$ac_new_val ;;
2337 case " $ac_configure_args " in
2338 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2339 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2343 if $ac_cache_corrupted; then
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2345 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2346 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2347 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2348 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2350 ## -------------------- ##
2351 ## Main body of script. ##
2352 ## -------------------- ##
2355 ac_cpp='$CPP $CPPFLAGS'
2356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2362 am__api_version='1.11'
2365 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2366 if test -f "$ac_dir/install-sh"; then
2368 ac_install_sh="$ac_aux_dir/install-sh -c"
2370 elif test -f "$ac_dir/install.sh"; then
2372 ac_install_sh="$ac_aux_dir/install.sh -c"
2374 elif test -f "$ac_dir/shtool"; then
2376 ac_install_sh="$ac_aux_dir/shtool install -c"
2380 if test -z "$ac_aux_dir"; then
2381 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2384 # These three variables are undocumented and unsupported,
2385 # and are intended to be withdrawn in a future Autoconf release.
2386 # They can cause serious problems if a builder's source tree is in a directory
2387 # whose full name contains unusual characters.
2388 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2389 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2390 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2393 # Find a good install program. We prefer a C program (faster),
2394 # so one script is as good as another. But avoid the broken or
2395 # incompatible versions:
2396 # SysV /etc/install, /usr/sbin/install
2397 # SunOS /usr/etc/install
2398 # IRIX /sbin/install
2400 # AmigaOS /C/install, which installs bootblocks on floppy discs
2401 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2402 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2403 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2404 # OS/2's system install, which has a completely different semantic
2405 # ./install, which can be erroneously created by make from ./install.sh.
2406 # Reject install programs that cannot install multiple files.
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2408 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2409 if test -z "$INSTALL"; then
2410 if ${ac_cv_path_install+:} false; then :
2411 $as_echo_n "(cached) " >&6
2413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2417 test -z "$as_dir" && as_dir=.
2418 # Account for people who put trailing slashes in PATH elements.
2419 case $as_dir/ in #((
2420 ./ | .// | /[cC]/* | \
2421 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2422 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2425 # OSF1 and SCO ODT 3.0 have their own names for install.
2426 # Don't use installbsd from OSF since it installs stuff as root
2428 for ac_prog in ginstall scoinst install; do
2429 for ac_exec_ext in '' $ac_executable_extensions; do
2430 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2431 if test $ac_prog = install &&
2432 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2433 # AIX install. It has an incompatible calling convention.
2435 elif test $ac_prog = install &&
2436 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2437 # program-specific install script used by HP pwplus--don't use.
2440 rm -rf conftest.one conftest.two conftest.dir
2441 echo one > conftest.one
2442 echo two > conftest.two
2444 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2445 test -s conftest.one && test -s conftest.two &&
2446 test -s conftest.dir/conftest.one &&
2447 test -s conftest.dir/conftest.two
2449 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2462 rm -rf conftest.one conftest.two conftest.dir
2465 if test "${ac_cv_path_install+set}" = set; then
2466 INSTALL=$ac_cv_path_install
2468 # As a last resort, use the slow shell script. Don't cache a
2469 # value for INSTALL within a source directory, because that will
2470 # break other packages using the cache if that directory is
2471 # removed, or if the value is a relative name.
2472 INSTALL=$ac_install_sh
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2476 $as_echo "$INSTALL" >&6; }
2478 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2479 # It thinks the first close brace ends the variable substitution.
2480 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2482 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2484 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2487 $as_echo_n "checking whether build environment is sane... " >&6; }
2490 echo timestamp > conftest.file
2491 # Reject unsafe characters in $srcdir or the absolute working directory
2492 # name. Accept space and tab only in the latter.
2496 *[\\\"\#\$\&\'\`$am_lf]*)
2497 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2500 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2501 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2504 # Do `set' in a subshell so we don't clobber the current shell's
2505 # arguments. Must try -L first in case configure is actually a
2506 # symlink; some systems play weird games with the mod time of symlinks
2507 # (eg FreeBSD returns the mod time of the symlink's containing
2510 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2511 if test "$*" = "X"; then
2513 set X `ls -t "$srcdir/configure" conftest.file`
2516 if test "$*" != "X $srcdir/configure conftest.file" \
2517 && test "$*" != "X conftest.file $srcdir/configure"; then
2519 # If neither matched, then we have a broken ls. This can happen
2520 # if, for instance, CONFIG_SHELL is bash and it inherits a
2521 # broken ls alias from the environment. This has actually
2522 # happened. Such a system could not be considered "sane".
2523 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2524 alias in your environment" "$LINENO" 5
2527 test "$2" = conftest.file
2533 as_fn_error $? "newly created file is older than distributed files!
2534 Check your system clock" "$LINENO" 5
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2537 $as_echo "yes" >&6; }
2538 test "$program_prefix" != NONE &&
2539 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2540 # Use a double $ so make ignores it.
2541 test "$program_suffix" != NONE &&
2542 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2543 # Double any \ or $.
2544 # By default was `s,x,x', remove it if useless.
2545 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2546 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2548 # expand $ac_aux_dir to an absolute path
2549 am_aux_dir=`cd $ac_aux_dir && pwd`
2551 if test x"${MISSING+set}" != xset; then
2554 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2556 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2559 # Use eval to expand $SHELL
2560 if eval "$MISSING --run true"; then
2561 am_missing_run="$MISSING --run "
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2565 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2568 if test x"${install_sh}" != xset; then
2571 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2573 install_sh="\${SHELL} $am_aux_dir/install-sh"
2577 # Installed binaries are usually stripped using `strip' when the user
2578 # run `make install-strip'. However `strip' might not be the right
2579 # tool to use in cross-compilation environments, therefore Automake
2580 # will honor the `STRIP' environment variable to overrule this program.
2581 if test "$cross_compiling" != no; then
2582 if test -n "$ac_tool_prefix"; then
2583 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2584 set dummy ${ac_tool_prefix}strip; ac_word=$2
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2586 $as_echo_n "checking for $ac_word... " >&6; }
2587 if ${ac_cv_prog_STRIP+:} false; then :
2588 $as_echo_n "(cached) " >&6
2590 if test -n "$STRIP"; then
2591 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2597 test -z "$as_dir" && as_dir=.
2598 for ac_exec_ext in '' $ac_executable_extensions; do
2599 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2600 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2610 STRIP=$ac_cv_prog_STRIP
2611 if test -n "$STRIP"; then
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2613 $as_echo "$STRIP" >&6; }
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2616 $as_echo "no" >&6; }
2621 if test -z "$ac_cv_prog_STRIP"; then
2623 # Extract the first word of "strip", so it can be a program name with args.
2624 set dummy strip; ac_word=$2
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2626 $as_echo_n "checking for $ac_word... " >&6; }
2627 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2628 $as_echo_n "(cached) " >&6
2630 if test -n "$ac_ct_STRIP"; then
2631 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2637 test -z "$as_dir" && as_dir=.
2638 for ac_exec_ext in '' $ac_executable_extensions; do
2639 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2640 ac_cv_prog_ac_ct_STRIP="strip"
2641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2650 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2651 if test -n "$ac_ct_STRIP"; then
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2653 $as_echo "$ac_ct_STRIP" >&6; }
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2656 $as_echo "no" >&6; }
2659 if test "x$ac_ct_STRIP" = x; then
2662 case $cross_compiling:$ac_tool_warned in
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2665 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2666 ac_tool_warned=yes ;;
2671 STRIP="$ac_cv_prog_STRIP"
2675 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2678 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2679 if test -z "$MKDIR_P"; then
2680 if ${ac_cv_path_mkdir+:} false; then :
2681 $as_echo_n "(cached) " >&6
2683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2684 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2687 test -z "$as_dir" && as_dir=.
2688 for ac_prog in mkdir gmkdir; do
2689 for ac_exec_ext in '' $ac_executable_extensions; do
2690 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2691 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2692 'mkdir (GNU coreutils) '* | \
2693 'mkdir (coreutils) '* | \
2694 'mkdir (fileutils) '4.1*)
2695 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2705 test -d ./--version && rmdir ./--version
2706 if test "${ac_cv_path_mkdir+set}" = set; then
2707 MKDIR_P="$ac_cv_path_mkdir -p"
2709 # As a last resort, use the slow shell script. Don't cache a
2710 # value for MKDIR_P within a source directory, because that will
2711 # break other packages using the cache if that directory is
2712 # removed, or if the value is a relative name.
2713 MKDIR_P="$ac_install_sh -d"
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2717 $as_echo "$MKDIR_P" >&6; }
2721 [\\/$]* | ?:[\\/]*) ;;
2722 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2725 for ac_prog in gawk mawk nawk awk
2727 # Extract the first word of "$ac_prog", so it can be a program name with args.
2728 set dummy $ac_prog; ac_word=$2
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2730 $as_echo_n "checking for $ac_word... " >&6; }
2731 if ${ac_cv_prog_AWK+:} false; then :
2732 $as_echo_n "(cached) " >&6
2734 if test -n "$AWK"; then
2735 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2741 test -z "$as_dir" && as_dir=.
2742 for ac_exec_ext in '' $ac_executable_extensions; do
2743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2744 ac_cv_prog_AWK="$ac_prog"
2745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2755 if test -n "$AWK"; then
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2757 $as_echo "$AWK" >&6; }
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2760 $as_echo "no" >&6; }
2764 test -n "$AWK" && break
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2768 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2770 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2771 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2772 $as_echo_n "(cached) " >&6
2774 cat >conftest.make <<\_ACEOF
2777 @echo '@@@%%%=$(MAKE)=@@@%%%'
2779 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2780 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2782 eval ac_cv_prog_make_${ac_make}_set=yes;;
2784 eval ac_cv_prog_make_${ac_make}_set=no;;
2788 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2790 $as_echo "yes" >&6; }
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2794 $as_echo "no" >&6; }
2795 SET_MAKE="MAKE=${MAKE-make}"
2798 rm -rf .tst 2>/dev/null
2799 mkdir .tst 2>/dev/null
2800 if test -d .tst; then
2805 rmdir .tst 2>/dev/null
2807 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2808 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2809 # is not polluted with repeated "-I."
2810 am__isrc=' -I$(srcdir)'
2811 # test to see if srcdir already configured
2812 if test -f $srcdir/config.status; then
2813 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2817 # test whether we have cygpath
2818 if test -z "$CYGPATH_W"; then
2819 if (cygpath --version) >/dev/null 2>/dev/null; then
2820 CYGPATH_W='cygpath -w'
2827 # Define the identity of the package.
2832 cat >>confdefs.h <<_ACEOF
2833 #define PACKAGE "$PACKAGE"
2837 cat >>confdefs.h <<_ACEOF
2838 #define VERSION "$VERSION"
2841 # Some tools Automake needs.
2843 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2846 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2849 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2852 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2855 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2857 # We need awk for the "check" target. The system "awk" is bad on
2859 # Always define AMTAR for backward compatibility. Yes, it's still used
2860 # in the wild :-( We should find a proper way to deprecate it ...
2863 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2871 ac_config_headers="$ac_config_headers config.h"
2874 # Checks for programs.
2876 ac_cpp='$CPP $CPPFLAGS'
2877 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2878 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2879 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2880 if test -n "$ac_tool_prefix"; then
2881 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2882 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2884 $as_echo_n "checking for $ac_word... " >&6; }
2885 if ${ac_cv_prog_CC+:} false; then :
2886 $as_echo_n "(cached) " >&6
2888 if test -n "$CC"; then
2889 ac_cv_prog_CC="$CC" # Let the user override the test.
2891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2895 test -z "$as_dir" && as_dir=.
2896 for ac_exec_ext in '' $ac_executable_extensions; do
2897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2898 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2909 if test -n "$CC"; then
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2911 $as_echo "$CC" >&6; }
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2914 $as_echo "no" >&6; }
2919 if test -z "$ac_cv_prog_CC"; then
2921 # Extract the first word of "gcc", so it can be a program name with args.
2922 set dummy gcc; ac_word=$2
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2924 $as_echo_n "checking for $ac_word... " >&6; }
2925 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2926 $as_echo_n "(cached) " >&6
2928 if test -n "$ac_ct_CC"; then
2929 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2935 test -z "$as_dir" && as_dir=.
2936 for ac_exec_ext in '' $ac_executable_extensions; do
2937 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2938 ac_cv_prog_ac_ct_CC="gcc"
2939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2948 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2949 if test -n "$ac_ct_CC"; then
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2951 $as_echo "$ac_ct_CC" >&6; }
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2954 $as_echo "no" >&6; }
2957 if test "x$ac_ct_CC" = x; then
2960 case $cross_compiling:$ac_tool_warned in
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2963 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2964 ac_tool_warned=yes ;;
2972 if test -z "$CC"; then
2973 if test -n "$ac_tool_prefix"; then
2974 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2975 set dummy ${ac_tool_prefix}cc; ac_word=$2
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2977 $as_echo_n "checking for $ac_word... " >&6; }
2978 if ${ac_cv_prog_CC+:} false; then :
2979 $as_echo_n "(cached) " >&6
2981 if test -n "$CC"; then
2982 ac_cv_prog_CC="$CC" # Let the user override the test.
2984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2988 test -z "$as_dir" && as_dir=.
2989 for ac_exec_ext in '' $ac_executable_extensions; do
2990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2991 ac_cv_prog_CC="${ac_tool_prefix}cc"
2992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3002 if test -n "$CC"; then
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3004 $as_echo "$CC" >&6; }
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3007 $as_echo "no" >&6; }
3013 if test -z "$CC"; then
3014 # Extract the first word of "cc", so it can be a program name with args.
3015 set dummy cc; ac_word=$2
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3017 $as_echo_n "checking for $ac_word... " >&6; }
3018 if ${ac_cv_prog_CC+:} false; then :
3019 $as_echo_n "(cached) " >&6
3021 if test -n "$CC"; then
3022 ac_cv_prog_CC="$CC" # Let the user override the test.
3025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3029 test -z "$as_dir" && as_dir=.
3030 for ac_exec_ext in '' $ac_executable_extensions; do
3031 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3032 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3033 ac_prog_rejected=yes
3037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3044 if test $ac_prog_rejected = yes; then
3045 # We found a bogon in the path, so make sure we never use it.
3046 set dummy $ac_cv_prog_CC
3048 if test $# != 0; then
3049 # We chose a different compiler from the bogus one.
3050 # However, it has the same basename, so the bogon will be chosen
3051 # first if we set CC to just the basename; use the full file name.
3053 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3059 if test -n "$CC"; then
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3061 $as_echo "$CC" >&6; }
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3064 $as_echo "no" >&6; }
3069 if test -z "$CC"; then
3070 if test -n "$ac_tool_prefix"; then
3071 for ac_prog in cl.exe
3073 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3074 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3076 $as_echo_n "checking for $ac_word... " >&6; }
3077 if ${ac_cv_prog_CC+:} false; then :
3078 $as_echo_n "(cached) " >&6
3080 if test -n "$CC"; then
3081 ac_cv_prog_CC="$CC" # Let the user override the test.
3083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3087 test -z "$as_dir" && as_dir=.
3088 for ac_exec_ext in '' $ac_executable_extensions; do
3089 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3090 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3101 if test -n "$CC"; then
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3103 $as_echo "$CC" >&6; }
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3106 $as_echo "no" >&6; }
3110 test -n "$CC" && break
3113 if test -z "$CC"; then
3115 for ac_prog in cl.exe
3117 # Extract the first word of "$ac_prog", so it can be a program name with args.
3118 set dummy $ac_prog; ac_word=$2
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3120 $as_echo_n "checking for $ac_word... " >&6; }
3121 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3122 $as_echo_n "(cached) " >&6
3124 if test -n "$ac_ct_CC"; then
3125 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3131 test -z "$as_dir" && as_dir=.
3132 for ac_exec_ext in '' $ac_executable_extensions; do
3133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3134 ac_cv_prog_ac_ct_CC="$ac_prog"
3135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3144 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3145 if test -n "$ac_ct_CC"; then
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3147 $as_echo "$ac_ct_CC" >&6; }
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3150 $as_echo "no" >&6; }
3154 test -n "$ac_ct_CC" && break
3157 if test "x$ac_ct_CC" = x; then
3160 case $cross_compiling:$ac_tool_warned in
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3163 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3164 ac_tool_warned=yes ;;
3173 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3174 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3175 as_fn_error $? "no acceptable C compiler found in \$PATH
3176 See \`config.log' for more details" "$LINENO" 5; }
3178 # Provide some information about the compiler.
3179 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3182 for ac_option in --version -v -V -qversion; do
3183 { { ac_try="$ac_compiler $ac_option >&5"
3185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3186 *) ac_try_echo=$ac_try;;
3188 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3189 $as_echo "$ac_try_echo"; } >&5
3190 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3192 if test -s conftest.err; then
3194 ... rest of stderr output deleted ...
3195 10q' conftest.err >conftest.er1
3196 cat conftest.er1 >&5
3198 rm -f conftest.er1 conftest.err
3199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3200 test $ac_status = 0; }
3203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3204 /* end confdefs.h. */
3214 ac_clean_files_save=$ac_clean_files
3215 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3216 # Try to create an executable without -o first, disregard a.out.
3217 # It will help us diagnose broken compilers, and finding out an intuition
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3220 $as_echo_n "checking whether the C compiler works... " >&6; }
3221 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3223 # The possible output files:
3224 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3227 for ac_file in $ac_files
3230 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3231 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3236 if { { ac_try="$ac_link_default"
3238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3239 *) ac_try_echo=$ac_try;;
3241 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3242 $as_echo "$ac_try_echo"; } >&5
3243 (eval "$ac_link_default") 2>&5
3245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3246 test $ac_status = 0; }; then :
3247 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3248 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3249 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3250 # so that the user can short-circuit this test for compilers unknown to
3252 for ac_file in $ac_files ''
3254 test -f "$ac_file" || continue
3256 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3259 # We found the default executable, but exeext='' is most
3263 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3265 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3267 # We set ac_cv_exeext here because the later test for it is not
3268 # safe: cross compilers may not add the suffix if given an `-o'
3269 # argument, so we may need to know it at that point already.
3270 # Even if this section looks crufty: it has the advantage of
3277 test "$ac_cv_exeext" = no && ac_cv_exeext=
3282 if test -z "$ac_file"; then :
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3284 $as_echo "no" >&6; }
3285 $as_echo "$as_me: failed program was:" >&5
3286 sed 's/^/| /' conftest.$ac_ext >&5
3288 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3289 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3290 as_fn_error 77 "C compiler cannot create executables
3291 See \`config.log' for more details" "$LINENO" 5; }
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3294 $as_echo "yes" >&6; }
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3297 $as_echo_n "checking for C compiler default output file name... " >&6; }
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3299 $as_echo "$ac_file" >&6; }
3300 ac_exeext=$ac_cv_exeext
3302 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3303 ac_clean_files=$ac_clean_files_save
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3305 $as_echo_n "checking for suffix of executables... " >&6; }
3306 if { { ac_try="$ac_link"
3308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3309 *) ac_try_echo=$ac_try;;
3311 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3312 $as_echo "$ac_try_echo"; } >&5
3313 (eval "$ac_link") 2>&5
3315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3316 test $ac_status = 0; }; then :
3317 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3318 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3319 # work properly (i.e., refer to `conftest.exe'), while it won't with
3321 for ac_file in conftest.exe conftest conftest.*; do
3322 test -f "$ac_file" || continue
3324 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3325 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3331 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3332 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3333 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3334 See \`config.log' for more details" "$LINENO" 5; }
3336 rm -f conftest conftest$ac_cv_exeext
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3338 $as_echo "$ac_cv_exeext" >&6; }
3340 rm -f conftest.$ac_ext
3341 EXEEXT=$ac_cv_exeext
3343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3344 /* end confdefs.h. */
3349 FILE *f = fopen ("conftest.out", "w");
3350 return ferror (f) || fclose (f) != 0;
3356 ac_clean_files="$ac_clean_files conftest.out"
3357 # Check that the compiler produces executables we can run. If not, either
3358 # the compiler is broken, or we cross compile.
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3360 $as_echo_n "checking whether we are cross compiling... " >&6; }
3361 if test "$cross_compiling" != yes; then
3362 { { ac_try="$ac_link"
3364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3365 *) ac_try_echo=$ac_try;;
3367 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3368 $as_echo "$ac_try_echo"; } >&5
3369 (eval "$ac_link") 2>&5
3371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3372 test $ac_status = 0; }
3373 if { ac_try='./conftest$ac_cv_exeext'
3374 { { case "(($ac_try" in
3375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3376 *) ac_try_echo=$ac_try;;
3378 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3379 $as_echo "$ac_try_echo"; } >&5
3380 (eval "$ac_try") 2>&5
3382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3383 test $ac_status = 0; }; }; then
3386 if test "$cross_compiling" = maybe; then
3389 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3390 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3391 as_fn_error $? "cannot run C compiled programs.
3392 If you meant to cross compile, use \`--host'.
3393 See \`config.log' for more details" "$LINENO" 5; }
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3398 $as_echo "$cross_compiling" >&6; }
3400 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3401 ac_clean_files=$ac_clean_files_save
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3403 $as_echo_n "checking for suffix of object files... " >&6; }
3404 if ${ac_cv_objext+:} false; then :
3405 $as_echo_n "(cached) " >&6
3407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3408 /* end confdefs.h. */
3418 rm -f conftest.o conftest.obj
3419 if { { ac_try="$ac_compile"
3421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3422 *) ac_try_echo=$ac_try;;
3424 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3425 $as_echo "$ac_try_echo"; } >&5
3426 (eval "$ac_compile") 2>&5
3428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3429 test $ac_status = 0; }; then :
3430 for ac_file in conftest.o conftest.obj conftest.*; do
3431 test -f "$ac_file" || continue;
3433 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3434 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3439 $as_echo "$as_me: failed program was:" >&5
3440 sed 's/^/| /' conftest.$ac_ext >&5
3442 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3443 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3444 as_fn_error $? "cannot compute suffix of object files: cannot compile
3445 See \`config.log' for more details" "$LINENO" 5; }
3447 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3450 $as_echo "$ac_cv_objext" >&6; }
3451 OBJEXT=$ac_cv_objext
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3454 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3455 if ${ac_cv_c_compiler_gnu+:} false; then :
3456 $as_echo_n "(cached) " >&6
3458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3459 /* end confdefs.h. */
3472 if ac_fn_c_try_compile "$LINENO"; then :
3477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3478 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3482 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3483 if test $ac_compiler_gnu = yes; then
3488 ac_test_CFLAGS=${CFLAGS+set}
3489 ac_save_CFLAGS=$CFLAGS
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3491 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3492 if ${ac_cv_prog_cc_g+:} false; then :
3493 $as_echo_n "(cached) " >&6
3495 ac_save_c_werror_flag=$ac_c_werror_flag
3496 ac_c_werror_flag=yes
3499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3500 /* end confdefs.h. */
3510 if ac_fn_c_try_compile "$LINENO"; then :
3514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3515 /* end confdefs.h. */
3525 if ac_fn_c_try_compile "$LINENO"; then :
3528 ac_c_werror_flag=$ac_save_c_werror_flag
3530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3531 /* end confdefs.h. */
3541 if ac_fn_c_try_compile "$LINENO"; then :
3544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3549 ac_c_werror_flag=$ac_save_c_werror_flag
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3552 $as_echo "$ac_cv_prog_cc_g" >&6; }
3553 if test "$ac_test_CFLAGS" = set; then
3554 CFLAGS=$ac_save_CFLAGS
3555 elif test $ac_cv_prog_cc_g = yes; then
3556 if test "$GCC" = yes; then
3562 if test "$GCC" = yes; then
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3569 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3570 if ${ac_cv_prog_cc_c89+:} false; then :
3571 $as_echo_n "(cached) " >&6
3573 ac_cv_prog_cc_c89=no
3575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3576 /* end confdefs.h. */
3580 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3581 struct buf { int x; };
3582 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3583 static char *e (p, i)
3589 static char *f (char * (*g) (char **, int), char **p, ...)
3594 s = g (p, va_arg (v,int));
3599 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3600 function prototypes and stuff, but not '\xHH' hex character constants.
3601 These don't provoke an error unfortunately, instead are silently treated
3602 as 'x'. The following induces an error, until -std is added to get
3603 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3604 array size at least. It's necessary to write '\x00'==0 to get something
3605 that's true only with -std. */
3606 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3608 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3609 inside strings and character constants. */
3611 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3613 int test (int i, double x);
3614 struct s1 {int (*f) (int a);};
3615 struct s2 {int (*f) (double a);};
3616 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3622 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3627 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3628 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3630 CC="$ac_save_CC $ac_arg"
3631 if ac_fn_c_try_compile "$LINENO"; then :
3632 ac_cv_prog_cc_c89=$ac_arg
3634 rm -f core conftest.err conftest.$ac_objext
3635 test "x$ac_cv_prog_cc_c89" != "xno" && break
3637 rm -f conftest.$ac_ext
3642 case "x$ac_cv_prog_cc_c89" in
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3645 $as_echo "none needed" >&6; } ;;
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3648 $as_echo "unsupported" >&6; } ;;
3650 CC="$CC $ac_cv_prog_cc_c89"
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3652 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3654 if test "x$ac_cv_prog_cc_c89" != xno; then :
3659 ac_cpp='$CPP $CPPFLAGS'
3660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3663 DEPDIR="${am__leading_dot}deps"
3665 ac_config_commands="$ac_config_commands depfiles"
3668 am_make=${MAKE-make}
3669 cat > confinc << 'END'
3671 @echo this is the am__doit target
3674 # If we don't find an include directive, just comment out the code.
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3676 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3680 # First try GNU make style include.
3681 echo "include confinc" > confmf
3682 # Ignore all kinds of additional output from `make'.
3683 case `$am_make -s -f confmf 2> /dev/null` in #(
3684 *the\ am__doit\ target*)
3690 # Now try BSD make style include.
3691 if test "$am__include" = "#"; then
3692 echo '.include "confinc"' > confmf
3693 case `$am_make -s -f confmf 2> /dev/null` in #(
3694 *the\ am__doit\ target*)
3695 am__include=.include
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3704 $as_echo "$_am_result" >&6; }
3705 rm -f confinc confmf
3707 # Check whether --enable-dependency-tracking was given.
3708 if test "${enable_dependency_tracking+set}" = set; then :
3709 enableval=$enable_dependency_tracking;
3712 if test "x$enable_dependency_tracking" != xno; then
3713 am_depcomp="$ac_aux_dir/depcomp"
3717 if test "x$enable_dependency_tracking" != xno; then
3727 depcc="$CC" am_compiler_list=
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3730 $as_echo_n "checking dependency style of $depcc... " >&6; }
3731 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3732 $as_echo_n "(cached) " >&6
3734 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3735 # We make a subdir and do the tests there. Otherwise we can end up
3736 # making bogus files that we don't know about and never remove. For
3737 # instance it was reported that on HP-UX the gcc test will end up
3738 # making a dummy file named `D' -- because `-MD' means `put the output
3742 # Copy depcomp to subdir because otherwise we won't find it if we're
3743 # using a relative directory.
3744 cp "$am_depcomp" conftest.dir
3746 # We will build objects and dependencies in a subdirectory because
3747 # it helps to detect inapplicable dependency modes. For instance
3748 # both Tru64's cc and ICC support -MD to output dependencies as a
3749 # side effect of compilation, but ICC will put the dependencies in
3750 # the current directory while Tru64 will put them in the object
3754 am_cv_CC_dependencies_compiler_type=none
3755 if test "$am_compiler_list" = ""; then
3756 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3759 case " $depcc " in #(
3760 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3763 for depmode in $am_compiler_list; do
3764 # Setup a source with many dependencies, because some compilers
3765 # like to wrap large dependency lists on column 80 (with \), and
3766 # we should not choose a depcomp mode which is confused by this.
3768 # We need to recreate these files for each test, as the compiler may
3769 # overwrite some of them when testing with obscure command lines.
3770 # This happens at least with the AIX C compiler.
3772 for i in 1 2 3 4 5 6; do
3773 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3774 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3775 # Solaris 8's {/usr,}/bin/sh.
3776 touch sub/conftst$i.h
3778 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3780 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3781 # mode. It turns out that the SunPro C++ compiler does not properly
3782 # handle `-M -o', and we need to detect this. Also, some Intel
3783 # versions had trouble with output in subdirs
3784 am__obj=sub/conftest.${OBJEXT-o}
3785 am__minus_obj="-o $am__obj"
3788 # This depmode causes a compiler race in universal mode.
3789 test "$am__universal" = false || continue
3792 # after this tag, mechanisms are not by side-effect, so they'll
3793 # only be used when explicitly requested
3794 if test "x$enable_dependency_tracking" = xyes; then
3800 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3801 # This compiler won't grok `-c -o', but also, the minuso test has
3802 # not run yet. These depmodes are late enough in the game, and
3803 # so weak that their functioning should not be impacted.
3804 am__obj=conftest.${OBJEXT-o}
3809 if depmode=$depmode \
3810 source=sub/conftest.c object=$am__obj \
3811 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3812 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3813 >/dev/null 2>conftest.err &&
3814 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3815 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3816 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3817 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3818 # icc doesn't choke on unknown options, it will just issue warnings
3819 # or remarks (even with -Werror). So we grep stderr for any message
3820 # that says an option was ignored or not supported.
3821 # When given -MP, icc 7.0 and 7.1 complain thusly:
3822 # icc: Command line warning: ignoring option '-M'; no argument required
3823 # The diagnosis changed in icc 8.0:
3824 # icc: Command line remark: option '-MP' not supported
3825 if (grep 'ignoring option' conftest.err ||
3826 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3827 am_cv_CC_dependencies_compiler_type=$depmode
3836 am_cv_CC_dependencies_compiler_type=none
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3841 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3842 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3845 test "x$enable_dependency_tracking" != xno \
3846 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3848 am__fastdepCC_FALSE='#'
3850 am__fastdepCC_TRUE='#'
3851 am__fastdepCC_FALSE=
3855 if test "x$CC" != xcc; then
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
3857 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
3860 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
3862 set dummy $CC; ac_cc=`$as_echo "$2" |
3863 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3864 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
3865 $as_echo_n "(cached) " >&6
3867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3868 /* end confdefs.h. */
3878 # Make sure it works both with $CC and with simple cc.
3879 # We do the test twice because some compilers refuse to overwrite an
3880 # existing .o file with -o, though they will create one.
3881 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3883 if { { case "(($ac_try" in
3884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3885 *) ac_try_echo=$ac_try;;
3887 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3888 $as_echo "$ac_try_echo"; } >&5
3889 (eval "$ac_try") 2>&5
3891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3892 test $ac_status = 0; } &&
3893 test -f conftest2.$ac_objext && { { case "(($ac_try" in
3894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3895 *) ac_try_echo=$ac_try;;
3897 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3898 $as_echo "$ac_try_echo"; } >&5
3899 (eval "$ac_try") 2>&5
3901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3902 test $ac_status = 0; };
3904 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3905 if test "x$CC" != xcc; then
3906 # Test first that cc exists at all.
3907 if { ac_try='cc -c conftest.$ac_ext >&5'
3908 { { case "(($ac_try" in
3909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3910 *) ac_try_echo=$ac_try;;
3912 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3913 $as_echo "$ac_try_echo"; } >&5
3914 (eval "$ac_try") 2>&5
3916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3917 test $ac_status = 0; }; }; then
3918 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3920 if { { case "(($ac_try" in
3921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3922 *) ac_try_echo=$ac_try;;
3924 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3925 $as_echo "$ac_try_echo"; } >&5
3926 (eval "$ac_try") 2>&5
3928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3929 test $ac_status = 0; } &&
3930 test -f conftest2.$ac_objext && { { case "(($ac_try" in
3931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3932 *) ac_try_echo=$ac_try;;
3934 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3935 $as_echo "$ac_try_echo"; } >&5
3936 (eval "$ac_try") 2>&5
3938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3939 test $ac_status = 0; };
3944 # cc exists but doesn't like -o.
3945 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3950 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3952 rm -f core conftest*
3955 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3957 $as_echo "yes" >&6; }
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3960 $as_echo "no" >&6; }
3962 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
3966 # FIXME: we rely on the cache variable name because
3967 # there is no other way.
3969 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3970 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
3971 if test "$am_t" != yes; then
3972 # Losing compiler, so override with the script.
3973 # FIXME: It is wrong to rewrite CC.
3974 # But if we don't then we get into trouble of one sort or another.
3975 # A longer-term fix would be to have automake use am__CC in this case,
3976 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3977 CC="$am_aux_dir/compile $CC"
3983 if test -n "$ac_tool_prefix"; then
3984 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3985 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3987 $as_echo_n "checking for $ac_word... " >&6; }
3988 if ${ac_cv_prog_RANLIB+:} false; then :
3989 $as_echo_n "(cached) " >&6
3991 if test -n "$RANLIB"; then
3992 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3998 test -z "$as_dir" && as_dir=.
3999 for ac_exec_ext in '' $ac_executable_extensions; do
4000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4001 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4011 RANLIB=$ac_cv_prog_RANLIB
4012 if test -n "$RANLIB"; then
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4014 $as_echo "$RANLIB" >&6; }
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4017 $as_echo "no" >&6; }
4022 if test -z "$ac_cv_prog_RANLIB"; then
4023 ac_ct_RANLIB=$RANLIB
4024 # Extract the first word of "ranlib", so it can be a program name with args.
4025 set dummy ranlib; ac_word=$2
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4027 $as_echo_n "checking for $ac_word... " >&6; }
4028 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4029 $as_echo_n "(cached) " >&6
4031 if test -n "$ac_ct_RANLIB"; then
4032 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4038 test -z "$as_dir" && as_dir=.
4039 for ac_exec_ext in '' $ac_executable_extensions; do
4040 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4041 ac_cv_prog_ac_ct_RANLIB="ranlib"
4042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4051 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4052 if test -n "$ac_ct_RANLIB"; then
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4054 $as_echo "$ac_ct_RANLIB" >&6; }
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4057 $as_echo "no" >&6; }
4060 if test "x$ac_ct_RANLIB" = x; then
4063 case $cross_compiling:$ac_tool_warned in
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4066 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4067 ac_tool_warned=yes ;;
4069 RANLIB=$ac_ct_RANLIB
4072 RANLIB="$ac_cv_prog_RANLIB"
4076 # Checks for header files.
4079 ac_cpp='$CPP $CPPFLAGS'
4080 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4081 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4082 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4084 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4085 # On Suns, sometimes $CPP names a directory.
4086 if test -n "$CPP" && test -d "$CPP"; then
4089 if test -z "$CPP"; then
4090 if ${ac_cv_prog_CPP+:} false; then :
4091 $as_echo_n "(cached) " >&6
4093 # Double quotes because CPP needs to be expanded
4094 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4097 for ac_c_preproc_warn_flag in '' yes
4099 # Use a header file that comes with gcc, so configuring glibc
4100 # with a fresh cross-compiler works.
4101 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4102 # <limits.h> exists even on freestanding compilers.
4103 # On the NeXT, cc -E runs the code through the compiler's parser,
4104 # not just through cpp. "Syntax error" is here to catch this case.
4105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4106 /* end confdefs.h. */
4108 # include <limits.h>
4110 # include <assert.h>
4114 if ac_fn_c_try_cpp "$LINENO"; then :
4117 # Broken: fails on valid input.
4120 rm -f conftest.err conftest.i conftest.$ac_ext
4122 # OK, works on sane cases. Now check whether nonexistent headers
4123 # can be detected and how.
4124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4125 /* end confdefs.h. */
4126 #include <ac_nonexistent.h>
4128 if ac_fn_c_try_cpp "$LINENO"; then :
4129 # Broken: success on invalid input.
4132 # Passes both tests.
4136 rm -f conftest.err conftest.i conftest.$ac_ext
4139 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4140 rm -f conftest.i conftest.err conftest.$ac_ext
4141 if $ac_preproc_ok; then :
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4154 $as_echo "$CPP" >&6; }
4156 for ac_c_preproc_warn_flag in '' yes
4158 # Use a header file that comes with gcc, so configuring glibc
4159 # with a fresh cross-compiler works.
4160 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4161 # <limits.h> exists even on freestanding compilers.
4162 # On the NeXT, cc -E runs the code through the compiler's parser,
4163 # not just through cpp. "Syntax error" is here to catch this case.
4164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4165 /* end confdefs.h. */
4167 # include <limits.h>
4169 # include <assert.h>
4173 if ac_fn_c_try_cpp "$LINENO"; then :
4176 # Broken: fails on valid input.
4179 rm -f conftest.err conftest.i conftest.$ac_ext
4181 # OK, works on sane cases. Now check whether nonexistent headers
4182 # can be detected and how.
4183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4184 /* end confdefs.h. */
4185 #include <ac_nonexistent.h>
4187 if ac_fn_c_try_cpp "$LINENO"; then :
4188 # Broken: success on invalid input.
4191 # Passes both tests.
4195 rm -f conftest.err conftest.i conftest.$ac_ext
4198 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4199 rm -f conftest.i conftest.err conftest.$ac_ext
4200 if $ac_preproc_ok; then :
4203 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4204 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4205 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4206 See \`config.log' for more details" "$LINENO" 5; }
4210 ac_cpp='$CPP $CPPFLAGS'
4211 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4212 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4213 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
4217 $as_echo_n "checking for X... " >&6; }
4220 # Check whether --with-x was given.
4221 if test "${with_x+set}" = set; then :
4225 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4226 if test "x$with_x" = xno; then
4227 # The user explicitly disabled X.
4230 case $x_includes,$x_libraries in #(
4231 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
4232 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
4233 $as_echo_n "(cached) " >&6
4235 # One or both of the vars are not set, and there is no cached value.
4236 ac_x_includes=no ac_x_libraries=no
4237 rm -f -r conftest.dir
4238 if mkdir conftest.dir; then
4240 cat >Imakefile <<'_ACEOF'
4242 @echo incroot='${INCROOT}'
4244 @echo usrlibdir='${USRLIBDIR}'
4246 @echo libdir='${LIBDIR}'
4248 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
4249 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4250 for ac_var in incroot usrlibdir libdir; do
4251 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
4253 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4254 for ac_extension in a so sl dylib la dll; do
4255 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
4256 test -f "$ac_im_libdir/libX11.$ac_extension"; then
4257 ac_im_usrlibdir=$ac_im_libdir; break
4260 # Screen out bogus values from the imake configuration. They are
4261 # bogus both because they are the default anyway, and because
4262 # using them would break gcc on systems where it needs fixed includes.
4263 case $ac_im_incroot in
4264 /usr/include) ac_x_includes= ;;
4265 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4267 case $ac_im_usrlibdir in
4268 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
4269 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4273 rm -f -r conftest.dir
4276 # Standard set of common directories for X headers.
4277 # Check X11 before X11Rn because it is often a symlink to the current release.
4291 /usr/local/X11/include
4292 /usr/local/X11R7/include
4293 /usr/local/X11R6/include
4294 /usr/local/X11R5/include
4295 /usr/local/X11R4/include
4297 /usr/local/include/X11
4298 /usr/local/include/X11R7
4299 /usr/local/include/X11R6
4300 /usr/local/include/X11R5
4301 /usr/local/include/X11R4
4305 /usr/XFree86/include/X11
4309 /usr/unsupported/include
4311 /usr/local/x11r5/include
4312 /usr/lpp/Xamples/include
4314 /usr/openwin/include
4315 /usr/openwin/share/include'
4317 if test "$ac_x_includes" = no; then
4318 # Guess where to find include files, by looking for Xlib.h.
4319 # First, try using that file with no special directory specified.
4320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4321 /* end confdefs.h. */
4322 #include <X11/Xlib.h>
4324 if ac_fn_c_try_cpp "$LINENO"; then :
4325 # We can compile using X headers with no special include directory.
4328 for ac_dir in $ac_x_header_dirs; do
4329 if test -r "$ac_dir/X11/Xlib.h"; then
4330 ac_x_includes=$ac_dir
4335 rm -f conftest.err conftest.i conftest.$ac_ext
4336 fi # $ac_x_includes = no
4338 if test "$ac_x_libraries" = no; then
4339 # Check for the libraries.
4340 # See if we find them without any special options.
4341 # Don't add to $LIBS permanently.
4344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4345 /* end confdefs.h. */
4346 #include <X11/Xlib.h>
4355 if ac_fn_c_try_link "$LINENO"; then :
4357 # We can link X programs with no special library path.
4361 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4363 # Don't even attempt the hair of trying to link an X program!
4364 for ac_extension in a so sl dylib la dll; do
4365 if test -r "$ac_dir/libX11.$ac_extension"; then
4366 ac_x_libraries=$ac_dir
4372 rm -f core conftest.err conftest.$ac_objext \
4373 conftest$ac_exeext conftest.$ac_ext
4374 fi # $ac_x_libraries = no
4376 case $ac_x_includes,$ac_x_libraries in #(
4378 # Didn't find X, or a directory has "'" in its name.
4379 ac_cv_have_x="have_x=no";; #(
4381 # Record where we found X for the cache.
4382 ac_cv_have_x="have_x=yes\
4383 ac_x_includes='$ac_x_includes'\
4384 ac_x_libraries='$ac_x_libraries'"
4390 eval "$ac_cv_have_x"
4393 if test "$have_x" != yes; then
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
4395 $as_echo "$have_x" >&6; }
4398 # If each of the values was on the command line, it overrides each guess.
4399 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4400 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4401 # Update the cache value to reflect the command line values.
4402 ac_cv_have_x="have_x=yes\
4403 ac_x_includes='$x_includes'\
4404 ac_x_libraries='$x_libraries'"
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
4406 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4410 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4411 if ${ac_cv_path_GREP+:} false; then :
4412 $as_echo_n "(cached) " >&6
4414 if test -z "$GREP"; then
4415 ac_path_GREP_found=false
4416 # Loop through the user's path and test for each of PROGNAME-LIST
4417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4418 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4421 test -z "$as_dir" && as_dir=.
4422 for ac_prog in grep ggrep; do
4423 for ac_exec_ext in '' $ac_executable_extensions; do
4424 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4425 as_fn_executable_p "$ac_path_GREP" || continue
4426 # Check for GNU ac_path_GREP and select it if it is found.
4427 # Check for GNU $ac_path_GREP
4428 case `"$ac_path_GREP" --version 2>&1` in
4430 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4433 $as_echo_n 0123456789 >"conftest.in"
4436 cat "conftest.in" "conftest.in" >"conftest.tmp"
4437 mv "conftest.tmp" "conftest.in"
4438 cp "conftest.in" "conftest.nl"
4439 $as_echo 'GREP' >> "conftest.nl"
4440 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4441 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4442 as_fn_arith $ac_count + 1 && ac_count=$as_val
4443 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4444 # Best one so far, save it but keep looking for a better one
4445 ac_cv_path_GREP="$ac_path_GREP"
4446 ac_path_GREP_max=$ac_count
4448 # 10*(2^10) chars as input seems more than enough
4449 test $ac_count -gt 10 && break
4451 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4454 $ac_path_GREP_found && break 3
4459 if test -z "$ac_cv_path_GREP"; then
4460 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4463 ac_cv_path_GREP=$GREP
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4468 $as_echo "$ac_cv_path_GREP" >&6; }
4469 GREP="$ac_cv_path_GREP"
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4473 $as_echo_n "checking for egrep... " >&6; }
4474 if ${ac_cv_path_EGREP+:} false; then :
4475 $as_echo_n "(cached) " >&6
4477 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4478 then ac_cv_path_EGREP="$GREP -E"
4480 if test -z "$EGREP"; then
4481 ac_path_EGREP_found=false
4482 # Loop through the user's path and test for each of PROGNAME-LIST
4483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4484 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4487 test -z "$as_dir" && as_dir=.
4488 for ac_prog in egrep; do
4489 for ac_exec_ext in '' $ac_executable_extensions; do
4490 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4491 as_fn_executable_p "$ac_path_EGREP" || continue
4492 # Check for GNU ac_path_EGREP and select it if it is found.
4493 # Check for GNU $ac_path_EGREP
4494 case `"$ac_path_EGREP" --version 2>&1` in
4496 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4499 $as_echo_n 0123456789 >"conftest.in"
4502 cat "conftest.in" "conftest.in" >"conftest.tmp"
4503 mv "conftest.tmp" "conftest.in"
4504 cp "conftest.in" "conftest.nl"
4505 $as_echo 'EGREP' >> "conftest.nl"
4506 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4507 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4508 as_fn_arith $ac_count + 1 && ac_count=$as_val
4509 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4510 # Best one so far, save it but keep looking for a better one
4511 ac_cv_path_EGREP="$ac_path_EGREP"
4512 ac_path_EGREP_max=$ac_count
4514 # 10*(2^10) chars as input seems more than enough
4515 test $ac_count -gt 10 && break
4517 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4520 $ac_path_EGREP_found && break 3
4525 if test -z "$ac_cv_path_EGREP"; then
4526 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4529 ac_cv_path_EGREP=$EGREP
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4535 $as_echo "$ac_cv_path_EGREP" >&6; }
4536 EGREP="$ac_cv_path_EGREP"
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4540 $as_echo_n "checking for ANSI C header files... " >&6; }
4541 if ${ac_cv_header_stdc+:} false; then :
4542 $as_echo_n "(cached) " >&6
4544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4545 /* end confdefs.h. */
4559 if ac_fn_c_try_compile "$LINENO"; then :
4560 ac_cv_header_stdc=yes
4562 ac_cv_header_stdc=no
4564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4566 if test $ac_cv_header_stdc = yes; then
4567 # SunOS 4.x string.h does not declare mem*, 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 "memchr" >/dev/null 2>&1; then :
4577 ac_cv_header_stdc=no
4583 if test $ac_cv_header_stdc = yes; then
4584 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4586 /* end confdefs.h. */
4590 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4591 $EGREP "free" >/dev/null 2>&1; then :
4594 ac_cv_header_stdc=no
4600 if test $ac_cv_header_stdc = yes; then
4601 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4602 if test "$cross_compiling" = yes; then :
4605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4606 /* end confdefs.h. */
4609 #if ((' ' & 0x0FF) == 0x020)
4610 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4611 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4613 # define ISLOWER(c) \
4614 (('a' <= (c) && (c) <= 'i') \
4615 || ('j' <= (c) && (c) <= 'r') \
4616 || ('s' <= (c) && (c) <= 'z'))
4617 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4620 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4625 for (i = 0; i < 256; i++)
4626 if (XOR (islower (i), ISLOWER (i))
4627 || toupper (i) != TOUPPER (i))
4632 if ac_fn_c_try_run "$LINENO"; then :
4635 ac_cv_header_stdc=no
4637 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4638 conftest.$ac_objext conftest.beam conftest.$ac_ext
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4644 $as_echo "$ac_cv_header_stdc" >&6; }
4645 if test $ac_cv_header_stdc = yes; then
4647 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4651 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4652 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4653 inttypes.h stdint.h unistd.h
4655 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4656 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4658 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4659 cat >>confdefs.h <<_ACEOF
4660 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4668 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
4670 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4671 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4672 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4673 cat >>confdefs.h <<_ACEOF
4674 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4682 # Checks for typedefs, structures, and compiler characteristics.
4683 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
4684 if test "x$ac_cv_type_size_t" = xyes; then :
4688 cat >>confdefs.h <<_ACEOF
4689 #define size_t unsigned int
4694 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
4695 if test "x$ac_cv_type_ssize_t" = xyes; then :
4699 cat >>confdefs.h <<_ACEOF
4706 # Checks for library functions.
4707 for ac_header in stdlib.h
4709 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
4710 if test "x$ac_cv_header_stdlib_h" = xyes; then :
4711 cat >>confdefs.h <<_ACEOF
4712 #define HAVE_STDLIB_H 1
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
4720 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
4721 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
4722 $as_echo_n "(cached) " >&6
4724 if test "$cross_compiling" = yes; then :
4725 ac_cv_func_malloc_0_nonnull=no
4727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4728 /* end confdefs.h. */
4729 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
4730 # include <stdlib.h>
4738 return ! malloc (0);
4743 if ac_fn_c_try_run "$LINENO"; then :
4744 ac_cv_func_malloc_0_nonnull=yes
4746 ac_cv_func_malloc_0_nonnull=no
4748 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4749 conftest.$ac_objext conftest.beam conftest.$ac_ext
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
4754 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
4755 if test $ac_cv_func_malloc_0_nonnull = yes; then :
4757 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
4760 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
4762 case " $LIBOBJS " in
4763 *" malloc.$ac_objext "* ) ;;
4764 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
4769 $as_echo "#define malloc rpl_malloc" >>confdefs.h
4774 for ac_header in stdlib.h
4776 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
4777 if test "x$ac_cv_header_stdlib_h" = xyes; then :
4778 cat >>confdefs.h <<_ACEOF
4779 #define HAVE_STDLIB_H 1
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
4787 $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
4788 if ${ac_cv_func_realloc_0_nonnull+:} false; then :
4789 $as_echo_n "(cached) " >&6
4791 if test "$cross_compiling" = yes; then :
4792 ac_cv_func_realloc_0_nonnull=no
4794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4795 /* end confdefs.h. */
4796 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
4797 # include <stdlib.h>
4805 return ! realloc (0, 0);
4810 if ac_fn_c_try_run "$LINENO"; then :
4811 ac_cv_func_realloc_0_nonnull=yes
4813 ac_cv_func_realloc_0_nonnull=no
4815 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4816 conftest.$ac_objext conftest.beam conftest.$ac_ext
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
4821 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
4822 if test $ac_cv_func_realloc_0_nonnull = yes; then :
4824 $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
4827 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
4829 case " $LIBOBJS " in
4830 *" realloc.$ac_objext "* ) ;;
4831 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
4836 $as_echo "#define realloc rpl_realloc" >>confdefs.h
4841 for ac_func in gettimeofday memmove socket strdup strtol
4843 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4844 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4845 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
4846 cat >>confdefs.h <<_ACEOF
4847 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
4857 $as_echo_n "checking whether NLS is requested... " >&6; }
4858 # Check whether --enable-nls was given.
4859 if test "${enable_nls+set}" = set; then :
4860 enableval=$enable_nls; USE_NLS=$enableval
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
4866 $as_echo "$USE_NLS" >&6; }
4871 GETTEXT_MACRO_VERSION=0.18
4876 # Prepare PATH_SEPARATOR.
4877 # The user is always right.
4878 if test "${PATH_SEPARATOR+set}" != set; then
4879 echo "#! /bin/sh" >conf$$.sh
4880 echo "exit 0" >>conf$$.sh
4882 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4890 # Find out how to test for executable files. Don't use a zero-byte file,
4891 # as systems may use methods other than mode bits to determine executability.
4892 cat >conf$$.file <<_ASEOF
4896 chmod +x conf$$.file
4897 if test -x conf$$.file >/dev/null 2>&1; then
4898 ac_executable_p="test -x"
4900 ac_executable_p="test -f"
4904 # Extract the first word of "msgfmt", so it can be a program name with args.
4905 set dummy msgfmt; ac_word=$2
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4907 $as_echo_n "checking for $ac_word... " >&6; }
4908 if ${ac_cv_path_MSGFMT+:} false; then :
4909 $as_echo_n "(cached) " >&6
4913 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4916 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4917 for ac_dir in $PATH; do
4919 test -z "$ac_dir" && ac_dir=.
4920 for ac_exec_ext in '' $ac_executable_extensions; do
4921 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4922 echo "$as_me: trying $ac_dir/$ac_word..." >&5
4923 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
4924 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4925 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4932 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4936 MSGFMT="$ac_cv_path_MSGFMT"
4937 if test "$MSGFMT" != ":"; then
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
4939 $as_echo "$MSGFMT" >&6; }
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4942 $as_echo "no" >&6; }
4945 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4946 set dummy gmsgfmt; ac_word=$2
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4948 $as_echo_n "checking for $ac_word... " >&6; }
4949 if ${ac_cv_path_GMSGFMT+:} false; then :
4950 $as_echo_n "(cached) " >&6
4954 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4961 test -z "$as_dir" && as_dir=.
4962 for ac_exec_ext in '' $ac_executable_extensions; do
4963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4964 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4972 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4976 GMSGFMT=$ac_cv_path_GMSGFMT
4977 if test -n "$GMSGFMT"; then
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
4979 $as_echo "$GMSGFMT" >&6; }
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4982 $as_echo "no" >&6; }
4987 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
4988 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
4989 *) MSGFMT_015=$MSGFMT ;;
4992 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
4993 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
4994 *) GMSGFMT_015=$GMSGFMT ;;
4999 # Prepare PATH_SEPARATOR.
5000 # The user is always right.
5001 if test "${PATH_SEPARATOR+set}" != set; then
5002 echo "#! /bin/sh" >conf$$.sh
5003 echo "exit 0" >>conf$$.sh
5005 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5013 # Find out how to test for executable files. Don't use a zero-byte file,
5014 # as systems may use methods other than mode bits to determine executability.
5015 cat >conf$$.file <<_ASEOF
5019 chmod +x conf$$.file
5020 if test -x conf$$.file >/dev/null 2>&1; then
5021 ac_executable_p="test -x"
5023 ac_executable_p="test -f"
5027 # Extract the first word of "xgettext", so it can be a program name with args.
5028 set dummy xgettext; ac_word=$2
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5030 $as_echo_n "checking for $ac_word... " >&6; }
5031 if ${ac_cv_path_XGETTEXT+:} false; then :
5032 $as_echo_n "(cached) " >&6
5036 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5039 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5040 for ac_dir in $PATH; do
5042 test -z "$ac_dir" && ac_dir=.
5043 for ac_exec_ext in '' $ac_executable_extensions; do
5044 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5045 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5046 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
5047 (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
5048 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5055 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5059 XGETTEXT="$ac_cv_path_XGETTEXT"
5060 if test "$XGETTEXT" != ":"; then
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
5062 $as_echo "$XGETTEXT" >&6; }
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5065 $as_echo "no" >&6; }
5070 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5071 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
5072 *) XGETTEXT_015=$XGETTEXT ;;
5077 # Prepare PATH_SEPARATOR.
5078 # The user is always right.
5079 if test "${PATH_SEPARATOR+set}" != set; then
5080 echo "#! /bin/sh" >conf$$.sh
5081 echo "exit 0" >>conf$$.sh
5083 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5091 # Find out how to test for executable files. Don't use a zero-byte file,
5092 # as systems may use methods other than mode bits to determine executability.
5093 cat >conf$$.file <<_ASEOF
5097 chmod +x conf$$.file
5098 if test -x conf$$.file >/dev/null 2>&1; then
5099 ac_executable_p="test -x"
5101 ac_executable_p="test -f"
5105 # Extract the first word of "msgmerge", so it can be a program name with args.
5106 set dummy msgmerge; ac_word=$2
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5108 $as_echo_n "checking for $ac_word... " >&6; }
5109 if ${ac_cv_path_MSGMERGE+:} false; then :
5110 $as_echo_n "(cached) " >&6
5114 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5117 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5118 for ac_dir in $PATH; do
5120 test -z "$ac_dir" && ac_dir=.
5121 for ac_exec_ext in '' $ac_executable_extensions; do
5122 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5123 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5124 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
5125 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5132 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5136 MSGMERGE="$ac_cv_path_MSGMERGE"
5137 if test "$MSGMERGE" != ":"; then
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
5139 $as_echo "$MSGMERGE" >&6; }
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5142 $as_echo "no" >&6; }
5146 test -n "$localedir" || localedir='${datadir}/locale'
5149 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
5152 ac_config_commands="$ac_config_commands po-directories"
5156 if test "X$prefix" = "XNONE"; then
5157 acl_final_prefix="$ac_default_prefix"
5159 acl_final_prefix="$prefix"
5161 if test "X$exec_prefix" = "XNONE"; then
5162 acl_final_exec_prefix='${prefix}'
5164 acl_final_exec_prefix="$exec_prefix"
5166 acl_save_prefix="$prefix"
5167 prefix="$acl_final_prefix"
5168 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5169 prefix="$acl_save_prefix"
5171 # Make sure we can run config.sub.
5172 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5173 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5176 $as_echo_n "checking build system type... " >&6; }
5177 if ${ac_cv_build+:} false; then :
5178 $as_echo_n "(cached) " >&6
5180 ac_build_alias=$build_alias
5181 test "x$ac_build_alias" = x &&
5182 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5183 test "x$ac_build_alias" = x &&
5184 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5185 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5186 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5190 $as_echo "$ac_cv_build" >&6; }
5191 case $ac_cv_build in
5193 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5196 ac_save_IFS=$IFS; IFS='-'
5202 # Remember, the first character of IFS is used to create $*,
5203 # except with old shells:
5206 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5210 $as_echo_n "checking host system type... " >&6; }
5211 if ${ac_cv_host+:} false; then :
5212 $as_echo_n "(cached) " >&6
5214 if test "x$host_alias" = x; then
5215 ac_cv_host=$ac_cv_build
5217 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5218 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5223 $as_echo "$ac_cv_host" >&6; }
5226 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5229 ac_save_IFS=$IFS; IFS='-'
5235 # Remember, the first character of IFS is used to create $*,
5236 # except with old shells:
5239 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5243 # Check whether --with-gnu-ld was given.
5244 if test "${with_gnu_ld+set}" = set; then :
5245 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5250 # Prepare PATH_SEPARATOR.
5251 # The user is always right.
5252 if test "${PATH_SEPARATOR+set}" != set; then
5253 echo "#! /bin/sh" >conf$$.sh
5254 echo "exit 0" >>conf$$.sh
5256 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5264 if test "$GCC" = yes; then
5265 # Check if gcc -print-prog-name=ld gives a path.
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
5267 $as_echo_n "checking for ld used by GCC... " >&6; }
5270 # gcc leaves a trailing carriage return which upsets mingw
5271 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5273 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5276 # Accept absolute paths.
5277 [\\/]* | [A-Za-z]:[\\/]*)
5278 re_direlt='/[^/][^/]*/\.\./'
5279 # Canonicalize the path of ld
5280 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5281 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5282 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5284 test -z "$LD" && LD="$ac_prog"
5287 # If it fails, then pretend we aren't using GCC.
5291 # If it is relative, then search for the first ld in PATH.
5295 elif test "$with_gnu_ld" = yes; then
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5297 $as_echo_n "checking for GNU ld... " >&6; }
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5300 $as_echo_n "checking for non-GNU ld... " >&6; }
5302 if ${acl_cv_path_LD+:} false; then :
5303 $as_echo_n "(cached) " >&6
5305 if test -z "$LD"; then
5306 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5307 for ac_dir in $PATH; do
5308 test -z "$ac_dir" && ac_dir=.
5309 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5310 acl_cv_path_LD="$ac_dir/$ac_prog"
5311 # Check to see if the program is GNU ld. I'd rather use --version,
5312 # but apparently some GNU ld's only accept -v.
5313 # Break only if it was the GNU/non-GNU ld that we prefer.
5314 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
5315 *GNU* | *'with BFD'*)
5316 test "$with_gnu_ld" != no && break ;;
5318 test "$with_gnu_ld" != yes && break ;;
5324 acl_cv_path_LD="$LD" # Let the user override the test with a path.
5328 LD="$acl_cv_path_LD"
5329 if test -n "$LD"; then
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5331 $as_echo "$LD" >&6; }
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5334 $as_echo "no" >&6; }
5336 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5338 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5339 if ${acl_cv_prog_gnu_ld+:} false; then :
5340 $as_echo_n "(cached) " >&6
5342 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5343 case `$LD -v 2>&1 </dev/null` in
5344 *GNU* | *'with BFD'*)
5345 acl_cv_prog_gnu_ld=yes ;;
5347 acl_cv_prog_gnu_ld=no ;;
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
5351 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
5352 with_gnu_ld=$acl_cv_prog_gnu_ld
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
5358 $as_echo_n "checking for shared library run path origin... " >&6; }
5359 if ${acl_cv_rpath+:} false; then :
5360 $as_echo_n "(cached) " >&6
5363 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5364 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
5371 $as_echo "$acl_cv_rpath" >&6; }
5373 acl_libext="$acl_cv_libext"
5374 acl_shlibext="$acl_cv_shlibext"
5375 acl_libname_spec="$acl_cv_libname_spec"
5376 acl_library_names_spec="$acl_cv_library_names_spec"
5377 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5378 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5379 acl_hardcode_direct="$acl_cv_hardcode_direct"
5380 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
5381 # Check whether --enable-rpath was given.
5382 if test "${enable_rpath+set}" = set; then :
5383 enableval=$enable_rpath; :
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
5396 $as_echo_n "checking for 64-bit host... " >&6; }
5397 if ${gl_cv_solaris_64bit+:} false; then :
5398 $as_echo_n "(cached) " >&6
5400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5401 /* end confdefs.h. */
5408 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5409 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
5410 gl_cv_solaris_64bit=yes
5412 gl_cv_solaris_64bit=no
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
5419 $as_echo "$gl_cv_solaris_64bit" >&6; }
5420 if test $gl_cv_solaris_64bit = yes; then
5421 acl_libdirstem=lib/64
5423 sparc*) acl_libdirstem2=lib/sparcv9 ;;
5424 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
5429 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
5430 if test -n "$searchpath"; then
5431 acl_save_IFS="${IFS= }"; IFS=":"
5432 for searchdir in $searchpath; do
5433 if test -d "$searchdir"; then
5434 case "$searchdir" in
5435 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
5437 # Better ignore directories of this form. They are misleading.
5439 *) searchdir=`cd "$searchdir" && pwd`
5440 case "$searchdir" in
5441 */lib64 ) acl_libdirstem=lib64 ;;
5450 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
5465 acl_save_prefix="$prefix"
5466 prefix="$acl_final_prefix"
5467 acl_save_exec_prefix="$exec_prefix"
5468 exec_prefix="$acl_final_exec_prefix"
5470 eval additional_includedir=\"$includedir\"
5471 eval additional_libdir=\"$libdir\"
5473 exec_prefix="$acl_save_exec_prefix"
5474 prefix="$acl_save_prefix"
5477 # Check whether --with-libiconv-prefix was given.
5478 if test "${with_libiconv_prefix+set}" = set; then :
5479 withval=$with_libiconv_prefix;
5480 if test "X$withval" = "Xno"; then
5483 if test "X$withval" = "X"; then
5485 acl_save_prefix="$prefix"
5486 prefix="$acl_final_prefix"
5487 acl_save_exec_prefix="$exec_prefix"
5488 exec_prefix="$acl_final_exec_prefix"
5490 eval additional_includedir=\"$includedir\"
5491 eval additional_libdir=\"$libdir\"
5493 exec_prefix="$acl_save_exec_prefix"
5494 prefix="$acl_save_prefix"
5497 additional_includedir="$withval/include"
5498 additional_libdir="$withval/$acl_libdirstem"
5499 if test "$acl_libdirstem2" != "$acl_libdirstem" \
5500 && ! test -d "$withval/$acl_libdirstem"; then
5501 additional_libdir="$withval/$acl_libdirstem2"
5515 names_already_handled=
5516 names_next_round='iconv '
5517 while test -n "$names_next_round"; do
5518 names_this_round="$names_next_round"
5520 for name in $names_this_round; do
5522 for n in $names_already_handled; do
5523 if test "$n" = "$name"; then
5528 if test -z "$already_handled"; then
5529 names_already_handled="$names_already_handled $name"
5530 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5531 eval value=\"\$HAVE_LIB$uppername\"
5532 if test -n "$value"; then
5533 if test "$value" = yes; then
5534 eval value=\"\$LIB$uppername\"
5535 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
5536 eval value=\"\$LTLIB$uppername\"
5537 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
5546 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
5547 if test -n "$acl_shlibext"; then
5548 shrext=".$acl_shlibext" # typically: shrext=.so
5552 if test $use_additional = yes; then
5553 dir="$additional_libdir"
5554 if test -n "$acl_shlibext"; then
5555 if test -f "$dir/$libname$shrext"; then
5557 found_so="$dir/$libname$shrext"
5559 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5560 ver=`(cd "$dir" && \
5561 for f in "$libname$shrext".*; do echo "$f"; done \
5562 | sed -e "s,^$libname$shrext\\\\.,," \
5563 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5564 | sed 1q ) 2>/dev/null`
5565 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5567 found_so="$dir/$libname$shrext.$ver"
5570 eval library_names=\"$acl_library_names_spec\"
5571 for f in $library_names; do
5572 if test -f "$dir/$f"; then
5581 if test "X$found_dir" = "X"; then
5582 if test -f "$dir/$libname.$acl_libext"; then
5584 found_a="$dir/$libname.$acl_libext"
5587 if test "X$found_dir" != "X"; then
5588 if test -f "$dir/$libname.la"; then
5589 found_la="$dir/$libname.la"
5593 if test "X$found_dir" = "X"; then
5594 for x in $LDFLAGS $LTLIBICONV; do
5596 acl_save_prefix="$prefix"
5597 prefix="$acl_final_prefix"
5598 acl_save_exec_prefix="$exec_prefix"
5599 exec_prefix="$acl_final_exec_prefix"
5601 exec_prefix="$acl_save_exec_prefix"
5602 prefix="$acl_save_prefix"
5606 dir=`echo "X$x" | sed -e 's/^X-L//'`
5607 if test -n "$acl_shlibext"; then
5608 if test -f "$dir/$libname$shrext"; then
5610 found_so="$dir/$libname$shrext"
5612 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5613 ver=`(cd "$dir" && \
5614 for f in "$libname$shrext".*; do echo "$f"; done \
5615 | sed -e "s,^$libname$shrext\\\\.,," \
5616 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5617 | sed 1q ) 2>/dev/null`
5618 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5620 found_so="$dir/$libname$shrext.$ver"
5623 eval library_names=\"$acl_library_names_spec\"
5624 for f in $library_names; do
5625 if test -f "$dir/$f"; then
5634 if test "X$found_dir" = "X"; then
5635 if test -f "$dir/$libname.$acl_libext"; then
5637 found_a="$dir/$libname.$acl_libext"
5640 if test "X$found_dir" != "X"; then
5641 if test -f "$dir/$libname.la"; then
5642 found_la="$dir/$libname.la"
5647 if test "X$found_dir" != "X"; then
5652 if test "X$found_dir" != "X"; then
5653 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
5654 if test "X$found_so" != "X"; then
5655 if test "$enable_rpath" = no \
5656 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
5657 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
5658 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5661 for x in $ltrpathdirs; do
5662 if test "X$x" = "X$found_dir"; then
5667 if test -z "$haveit"; then
5668 ltrpathdirs="$ltrpathdirs $found_dir"
5670 if test "$acl_hardcode_direct" = yes; then
5671 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5673 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
5674 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5676 for x in $rpathdirs; do
5677 if test "X$x" = "X$found_dir"; then
5682 if test -z "$haveit"; then
5683 rpathdirs="$rpathdirs $found_dir"
5687 for x in $LDFLAGS $LIBICONV; do
5689 acl_save_prefix="$prefix"
5690 prefix="$acl_final_prefix"
5691 acl_save_exec_prefix="$exec_prefix"
5692 exec_prefix="$acl_final_exec_prefix"
5694 exec_prefix="$acl_save_exec_prefix"
5695 prefix="$acl_save_prefix"
5697 if test "X$x" = "X-L$found_dir"; then
5702 if test -z "$haveit"; then
5703 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
5705 if test "$acl_hardcode_minus_L" != no; then
5706 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5708 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5714 if test "X$found_a" != "X"; then
5715 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
5717 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
5720 additional_includedir=
5721 case "$found_dir" in
5722 */$acl_libdirstem | */$acl_libdirstem/)
5723 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
5724 if test "$name" = 'iconv'; then
5725 LIBICONV_PREFIX="$basedir"
5727 additional_includedir="$basedir/include"
5729 */$acl_libdirstem2 | */$acl_libdirstem2/)
5730 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
5731 if test "$name" = 'iconv'; then
5732 LIBICONV_PREFIX="$basedir"
5734 additional_includedir="$basedir/include"
5737 if test "X$additional_includedir" != "X"; then
5738 if test "X$additional_includedir" != "X/usr/include"; then
5740 if test "X$additional_includedir" = "X/usr/local/include"; then
5741 if test -n "$GCC"; then
5743 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5747 if test -z "$haveit"; then
5748 for x in $CPPFLAGS $INCICONV; do
5750 acl_save_prefix="$prefix"
5751 prefix="$acl_final_prefix"
5752 acl_save_exec_prefix="$exec_prefix"
5753 exec_prefix="$acl_final_exec_prefix"
5755 exec_prefix="$acl_save_exec_prefix"
5756 prefix="$acl_save_prefix"
5758 if test "X$x" = "X-I$additional_includedir"; then
5763 if test -z "$haveit"; then
5764 if test -d "$additional_includedir"; then
5765 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
5771 if test -n "$found_la"; then
5772 save_libdir="$libdir"
5774 */* | *\\*) . "$found_la" ;;
5775 *) . "./$found_la" ;;
5777 libdir="$save_libdir"
5778 for dep in $dependency_libs; do
5781 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5782 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
5783 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
5785 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
5786 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
5787 if test -n "$GCC"; then
5789 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5793 if test -z "$haveit"; then
5795 for x in $LDFLAGS $LIBICONV; do
5797 acl_save_prefix="$prefix"
5798 prefix="$acl_final_prefix"
5799 acl_save_exec_prefix="$exec_prefix"
5800 exec_prefix="$acl_final_exec_prefix"
5802 exec_prefix="$acl_save_exec_prefix"
5803 prefix="$acl_save_prefix"
5805 if test "X$x" = "X-L$additional_libdir"; then
5810 if test -z "$haveit"; then
5811 if test -d "$additional_libdir"; then
5812 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
5816 for x in $LDFLAGS $LTLIBICONV; do
5818 acl_save_prefix="$prefix"
5819 prefix="$acl_final_prefix"
5820 acl_save_exec_prefix="$exec_prefix"
5821 exec_prefix="$acl_final_exec_prefix"
5823 exec_prefix="$acl_save_exec_prefix"
5824 prefix="$acl_save_prefix"
5826 if test "X$x" = "X-L$additional_libdir"; then
5831 if test -z "$haveit"; then
5832 if test -d "$additional_libdir"; then
5833 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
5840 dir=`echo "X$dep" | sed -e 's/^X-R//'`
5841 if test "$enable_rpath" != no; then
5843 for x in $rpathdirs; do
5844 if test "X$x" = "X$dir"; then
5849 if test -z "$haveit"; then
5850 rpathdirs="$rpathdirs $dir"
5853 for x in $ltrpathdirs; do
5854 if test "X$x" = "X$dir"; then
5859 if test -z "$haveit"; then
5860 ltrpathdirs="$ltrpathdirs $dir"
5865 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5868 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5871 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
5872 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
5878 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5879 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
5885 if test "X$rpathdirs" != "X"; then
5886 if test -n "$acl_hardcode_libdir_separator"; then
5888 for found_dir in $rpathdirs; do
5889 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
5891 acl_save_libdir="$libdir"
5893 eval flag=\"$acl_hardcode_libdir_flag_spec\"
5894 libdir="$acl_save_libdir"
5895 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5897 for found_dir in $rpathdirs; do
5898 acl_save_libdir="$libdir"
5900 eval flag=\"$acl_hardcode_libdir_flag_spec\"
5901 libdir="$acl_save_libdir"
5902 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5906 if test "X$ltrpathdirs" != "X"; then
5907 for found_dir in $ltrpathdirs; do
5908 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
5943 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
5944 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
5945 $as_echo_n "(cached) " >&6
5947 gt_save_LIBS="$LIBS"
5948 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
5949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5950 /* end confdefs.h. */
5951 #include <CoreFoundation/CFPreferences.h>
5955 CFPreferencesCopyAppValue(NULL, NULL)
5960 if ac_fn_c_try_link "$LINENO"; then :
5961 gt_cv_func_CFPreferencesCopyAppValue=yes
5963 gt_cv_func_CFPreferencesCopyAppValue=no
5965 rm -f core conftest.err conftest.$ac_objext \
5966 conftest$ac_exeext conftest.$ac_ext
5967 LIBS="$gt_save_LIBS"
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
5970 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
5971 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
5973 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
5977 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
5978 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
5979 $as_echo_n "(cached) " >&6
5981 gt_save_LIBS="$LIBS"
5982 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
5983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5984 /* end confdefs.h. */
5985 #include <CoreFoundation/CFLocale.h>
5989 CFLocaleCopyCurrent();
5994 if ac_fn_c_try_link "$LINENO"; then :
5995 gt_cv_func_CFLocaleCopyCurrent=yes
5997 gt_cv_func_CFLocaleCopyCurrent=no
5999 rm -f core conftest.err conftest.$ac_objext \
6000 conftest$ac_exeext conftest.$ac_ext
6001 LIBS="$gt_save_LIBS"
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
6004 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
6005 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6007 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
6011 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6012 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
6024 case " $gt_needs " in
6025 *" need-formatstring-macros "*) gt_api_version=3 ;;
6026 *" need-ngettext "*) gt_api_version=2 ;;
6027 *) gt_api_version=1 ;;
6029 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
6030 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
6032 if test "$USE_NLS" = "yes"; then
6033 gt_use_preinstalled_gnugettext=no
6036 if test $gt_api_version -ge 3; then
6037 gt_revision_test_code='
6038 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
6039 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
6041 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
6044 gt_revision_test_code=
6046 if test $gt_api_version -ge 2; then
6047 gt_expression_test_code=' + * ngettext ("", "", 0)'
6049 gt_expression_test_code=
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
6053 $as_echo_n "checking for GNU gettext in libc... " >&6; }
6054 if eval \${$gt_func_gnugettext_libc+:} false; then :
6055 $as_echo_n "(cached) " >&6
6057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6058 /* end confdefs.h. */
6059 #include <libintl.h>
6060 $gt_revision_test_code
6061 extern int _nl_msg_cat_cntr;
6062 extern int *_nl_domain_bindings;
6066 bindtextdomain ("", "");
6067 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
6072 if ac_fn_c_try_link "$LINENO"; then :
6073 eval "$gt_func_gnugettext_libc=yes"
6075 eval "$gt_func_gnugettext_libc=no"
6077 rm -f core conftest.err conftest.$ac_objext \
6078 conftest$ac_exeext conftest.$ac_ext
6080 eval ac_res=\$$gt_func_gnugettext_libc
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6082 $as_echo "$ac_res" >&6; }
6084 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
6090 am_save_CPPFLAGS="$CPPFLAGS"
6092 for element in $INCICONV; do
6094 for x in $CPPFLAGS; do
6096 acl_save_prefix="$prefix"
6097 prefix="$acl_final_prefix"
6098 acl_save_exec_prefix="$exec_prefix"
6099 exec_prefix="$acl_final_exec_prefix"
6101 exec_prefix="$acl_save_exec_prefix"
6102 prefix="$acl_save_prefix"
6104 if test "X$x" = "X$element"; then
6109 if test -z "$haveit"; then
6110 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
6116 $as_echo_n "checking for iconv... " >&6; }
6117 if ${am_cv_func_iconv+:} false; then :
6118 $as_echo_n "(cached) " >&6
6121 am_cv_func_iconv="no, consider installing GNU libiconv"
6123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6124 /* end confdefs.h. */
6130 iconv_t cd = iconv_open("","");
6131 iconv(cd,NULL,NULL,NULL,NULL);
6137 if ac_fn_c_try_link "$LINENO"; then :
6138 am_cv_func_iconv=yes
6140 rm -f core conftest.err conftest.$ac_objext \
6141 conftest$ac_exeext conftest.$ac_ext
6142 if test "$am_cv_func_iconv" != yes; then
6143 am_save_LIBS="$LIBS"
6144 LIBS="$LIBS $LIBICONV"
6145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6146 /* end confdefs.h. */
6152 iconv_t cd = iconv_open("","");
6153 iconv(cd,NULL,NULL,NULL,NULL);
6159 if ac_fn_c_try_link "$LINENO"; then :
6161 am_cv_func_iconv=yes
6163 rm -f core conftest.err conftest.$ac_objext \
6164 conftest$ac_exeext conftest.$ac_ext
6165 LIBS="$am_save_LIBS"
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
6170 $as_echo "$am_cv_func_iconv" >&6; }
6171 if test "$am_cv_func_iconv" = yes; then
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
6173 $as_echo_n "checking for working iconv... " >&6; }
6174 if ${am_cv_func_iconv_works+:} false; then :
6175 $as_echo_n "(cached) " >&6
6178 am_save_LIBS="$LIBS"
6179 if test $am_cv_lib_iconv = yes; then
6180 LIBS="$LIBS $LIBICONV"
6182 if test "$cross_compiling" = yes; then :
6184 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
6185 *) am_cv_func_iconv_works="guessing yes" ;;
6188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6189 /* end confdefs.h. */
6195 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
6198 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
6199 if (cd_utf8_to_88591 != (iconv_t)(-1))
6201 static const char input[] = "\342\202\254"; /* EURO SIGN */
6203 const char *inptr = input;
6204 size_t inbytesleft = strlen (input);
6206 size_t outbytesleft = sizeof (buf);
6207 size_t res = iconv (cd_utf8_to_88591,
6208 (char **) &inptr, &inbytesleft,
6209 &outptr, &outbytesleft);
6214 /* Test against Solaris 10 bug: Failures are not distinguishable from
6215 successful returns. */
6217 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
6218 if (cd_ascii_to_88591 != (iconv_t)(-1))
6220 static const char input[] = "\263";
6222 const char *inptr = input;
6223 size_t inbytesleft = strlen (input);
6225 size_t outbytesleft = sizeof (buf);
6226 size_t res = iconv (cd_ascii_to_88591,
6227 (char **) &inptr, &inbytesleft,
6228 &outptr, &outbytesleft);
6233 #if 0 /* This bug could be worked around by the caller. */
6234 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
6236 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
6237 if (cd_88591_to_utf8 != (iconv_t)(-1))
6239 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
6241 const char *inptr = input;
6242 size_t inbytesleft = strlen (input);
6244 size_t outbytesleft = sizeof (buf);
6245 size_t res = iconv (cd_88591_to_utf8,
6246 (char **) &inptr, &inbytesleft,
6247 &outptr, &outbytesleft);
6253 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
6255 if (/* Try standardized names. */
6256 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
6257 /* Try IRIX, OSF/1 names. */
6258 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
6259 /* Try AIX names. */
6260 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
6261 /* Try HP-UX names. */
6262 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
6267 if ac_fn_c_try_run "$LINENO"; then :
6268 am_cv_func_iconv_works=yes
6270 am_cv_func_iconv_works=no
6272 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6273 conftest.$ac_objext conftest.beam conftest.$ac_ext
6276 LIBS="$am_save_LIBS"
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
6280 $as_echo "$am_cv_func_iconv_works" >&6; }
6281 case "$am_cv_func_iconv_works" in
6282 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
6283 *) am_func_iconv=yes ;;
6286 am_func_iconv=no am_cv_lib_iconv=no
6288 if test "$am_func_iconv" = yes; then
6290 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
6293 if test "$am_cv_lib_iconv" = yes; then
6294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
6295 $as_echo_n "checking how to link with libiconv... " >&6; }
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
6297 $as_echo "$LIBICONV" >&6; }
6299 CPPFLAGS="$am_save_CPPFLAGS"
6316 acl_save_prefix="$prefix"
6317 prefix="$acl_final_prefix"
6318 acl_save_exec_prefix="$exec_prefix"
6319 exec_prefix="$acl_final_exec_prefix"
6321 eval additional_includedir=\"$includedir\"
6322 eval additional_libdir=\"$libdir\"
6324 exec_prefix="$acl_save_exec_prefix"
6325 prefix="$acl_save_prefix"
6328 # Check whether --with-libintl-prefix was given.
6329 if test "${with_libintl_prefix+set}" = set; then :
6330 withval=$with_libintl_prefix;
6331 if test "X$withval" = "Xno"; then
6334 if test "X$withval" = "X"; then
6336 acl_save_prefix="$prefix"
6337 prefix="$acl_final_prefix"
6338 acl_save_exec_prefix="$exec_prefix"
6339 exec_prefix="$acl_final_exec_prefix"
6341 eval additional_includedir=\"$includedir\"
6342 eval additional_libdir=\"$libdir\"
6344 exec_prefix="$acl_save_exec_prefix"
6345 prefix="$acl_save_prefix"
6348 additional_includedir="$withval/include"
6349 additional_libdir="$withval/$acl_libdirstem"
6350 if test "$acl_libdirstem2" != "$acl_libdirstem" \
6351 && ! test -d "$withval/$acl_libdirstem"; then
6352 additional_libdir="$withval/$acl_libdirstem2"
6366 names_already_handled=
6367 names_next_round='intl '
6368 while test -n "$names_next_round"; do
6369 names_this_round="$names_next_round"
6371 for name in $names_this_round; do
6373 for n in $names_already_handled; do
6374 if test "$n" = "$name"; then
6379 if test -z "$already_handled"; then
6380 names_already_handled="$names_already_handled $name"
6381 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6382 eval value=\"\$HAVE_LIB$uppername\"
6383 if test -n "$value"; then
6384 if test "$value" = yes; then
6385 eval value=\"\$LIB$uppername\"
6386 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
6387 eval value=\"\$LTLIB$uppername\"
6388 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
6397 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
6398 if test -n "$acl_shlibext"; then
6399 shrext=".$acl_shlibext" # typically: shrext=.so
6403 if test $use_additional = yes; then
6404 dir="$additional_libdir"
6405 if test -n "$acl_shlibext"; then
6406 if test -f "$dir/$libname$shrext"; then
6408 found_so="$dir/$libname$shrext"
6410 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6411 ver=`(cd "$dir" && \
6412 for f in "$libname$shrext".*; do echo "$f"; done \
6413 | sed -e "s,^$libname$shrext\\\\.,," \
6414 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6415 | sed 1q ) 2>/dev/null`
6416 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6418 found_so="$dir/$libname$shrext.$ver"
6421 eval library_names=\"$acl_library_names_spec\"
6422 for f in $library_names; do
6423 if test -f "$dir/$f"; then
6432 if test "X$found_dir" = "X"; then
6433 if test -f "$dir/$libname.$acl_libext"; then
6435 found_a="$dir/$libname.$acl_libext"
6438 if test "X$found_dir" != "X"; then
6439 if test -f "$dir/$libname.la"; then
6440 found_la="$dir/$libname.la"
6444 if test "X$found_dir" = "X"; then
6445 for x in $LDFLAGS $LTLIBINTL; do
6447 acl_save_prefix="$prefix"
6448 prefix="$acl_final_prefix"
6449 acl_save_exec_prefix="$exec_prefix"
6450 exec_prefix="$acl_final_exec_prefix"
6452 exec_prefix="$acl_save_exec_prefix"
6453 prefix="$acl_save_prefix"
6457 dir=`echo "X$x" | sed -e 's/^X-L//'`
6458 if test -n "$acl_shlibext"; then
6459 if test -f "$dir/$libname$shrext"; then
6461 found_so="$dir/$libname$shrext"
6463 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6464 ver=`(cd "$dir" && \
6465 for f in "$libname$shrext".*; do echo "$f"; done \
6466 | sed -e "s,^$libname$shrext\\\\.,," \
6467 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6468 | sed 1q ) 2>/dev/null`
6469 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6471 found_so="$dir/$libname$shrext.$ver"
6474 eval library_names=\"$acl_library_names_spec\"
6475 for f in $library_names; do
6476 if test -f "$dir/$f"; then
6485 if test "X$found_dir" = "X"; then
6486 if test -f "$dir/$libname.$acl_libext"; then
6488 found_a="$dir/$libname.$acl_libext"
6491 if test "X$found_dir" != "X"; then
6492 if test -f "$dir/$libname.la"; then
6493 found_la="$dir/$libname.la"
6498 if test "X$found_dir" != "X"; then
6503 if test "X$found_dir" != "X"; then
6504 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
6505 if test "X$found_so" != "X"; then
6506 if test "$enable_rpath" = no \
6507 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
6508 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
6509 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6512 for x in $ltrpathdirs; do
6513 if test "X$x" = "X$found_dir"; then
6518 if test -z "$haveit"; then
6519 ltrpathdirs="$ltrpathdirs $found_dir"
6521 if test "$acl_hardcode_direct" = yes; then
6522 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6524 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
6525 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6527 for x in $rpathdirs; do
6528 if test "X$x" = "X$found_dir"; then
6533 if test -z "$haveit"; then
6534 rpathdirs="$rpathdirs $found_dir"
6538 for x in $LDFLAGS $LIBINTL; do
6540 acl_save_prefix="$prefix"
6541 prefix="$acl_final_prefix"
6542 acl_save_exec_prefix="$exec_prefix"
6543 exec_prefix="$acl_final_exec_prefix"
6545 exec_prefix="$acl_save_exec_prefix"
6546 prefix="$acl_save_prefix"
6548 if test "X$x" = "X-L$found_dir"; then
6553 if test -z "$haveit"; then
6554 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
6556 if test "$acl_hardcode_minus_L" != no; then
6557 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6559 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6565 if test "X$found_a" != "X"; then
6566 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
6568 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
6571 additional_includedir=
6572 case "$found_dir" in
6573 */$acl_libdirstem | */$acl_libdirstem/)
6574 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
6575 if test "$name" = 'intl'; then
6576 LIBINTL_PREFIX="$basedir"
6578 additional_includedir="$basedir/include"
6580 */$acl_libdirstem2 | */$acl_libdirstem2/)
6581 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
6582 if test "$name" = 'intl'; then
6583 LIBINTL_PREFIX="$basedir"
6585 additional_includedir="$basedir/include"
6588 if test "X$additional_includedir" != "X"; then
6589 if test "X$additional_includedir" != "X/usr/include"; then
6591 if test "X$additional_includedir" = "X/usr/local/include"; then
6592 if test -n "$GCC"; then
6594 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6598 if test -z "$haveit"; then
6599 for x in $CPPFLAGS $INCINTL; do
6601 acl_save_prefix="$prefix"
6602 prefix="$acl_final_prefix"
6603 acl_save_exec_prefix="$exec_prefix"
6604 exec_prefix="$acl_final_exec_prefix"
6606 exec_prefix="$acl_save_exec_prefix"
6607 prefix="$acl_save_prefix"
6609 if test "X$x" = "X-I$additional_includedir"; then
6614 if test -z "$haveit"; then
6615 if test -d "$additional_includedir"; then
6616 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
6622 if test -n "$found_la"; then
6623 save_libdir="$libdir"
6625 */* | *\\*) . "$found_la" ;;
6626 *) . "./$found_la" ;;
6628 libdir="$save_libdir"
6629 for dep in $dependency_libs; do
6632 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6633 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
6634 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
6636 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
6637 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
6638 if test -n "$GCC"; then
6640 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6644 if test -z "$haveit"; then
6646 for x in $LDFLAGS $LIBINTL; do
6648 acl_save_prefix="$prefix"
6649 prefix="$acl_final_prefix"
6650 acl_save_exec_prefix="$exec_prefix"
6651 exec_prefix="$acl_final_exec_prefix"
6653 exec_prefix="$acl_save_exec_prefix"
6654 prefix="$acl_save_prefix"
6656 if test "X$x" = "X-L$additional_libdir"; then
6661 if test -z "$haveit"; then
6662 if test -d "$additional_libdir"; then
6663 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
6667 for x in $LDFLAGS $LTLIBINTL; do
6669 acl_save_prefix="$prefix"
6670 prefix="$acl_final_prefix"
6671 acl_save_exec_prefix="$exec_prefix"
6672 exec_prefix="$acl_final_exec_prefix"
6674 exec_prefix="$acl_save_exec_prefix"
6675 prefix="$acl_save_prefix"
6677 if test "X$x" = "X-L$additional_libdir"; then
6682 if test -z "$haveit"; then
6683 if test -d "$additional_libdir"; then
6684 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
6691 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6692 if test "$enable_rpath" != no; then
6694 for x in $rpathdirs; do
6695 if test "X$x" = "X$dir"; then
6700 if test -z "$haveit"; then
6701 rpathdirs="$rpathdirs $dir"
6704 for x in $ltrpathdirs; do
6705 if test "X$x" = "X$dir"; then
6710 if test -z "$haveit"; then
6711 ltrpathdirs="$ltrpathdirs $dir"
6716 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6719 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6722 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
6723 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
6729 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6730 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
6736 if test "X$rpathdirs" != "X"; then
6737 if test -n "$acl_hardcode_libdir_separator"; then
6739 for found_dir in $rpathdirs; do
6740 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
6742 acl_save_libdir="$libdir"
6744 eval flag=\"$acl_hardcode_libdir_flag_spec\"
6745 libdir="$acl_save_libdir"
6746 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6748 for found_dir in $rpathdirs; do
6749 acl_save_libdir="$libdir"
6751 eval flag=\"$acl_hardcode_libdir_flag_spec\"
6752 libdir="$acl_save_libdir"
6753 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6757 if test "X$ltrpathdirs" != "X"; then
6758 for found_dir in $ltrpathdirs; do
6759 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
6769 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
6770 if eval \${$gt_func_gnugettext_libintl+:} false; then :
6771 $as_echo_n "(cached) " >&6
6773 gt_save_CPPFLAGS="$CPPFLAGS"
6774 CPPFLAGS="$CPPFLAGS $INCINTL"
6775 gt_save_LIBS="$LIBS"
6776 LIBS="$LIBS $LIBINTL"
6777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6778 /* end confdefs.h. */
6779 #include <libintl.h>
6780 $gt_revision_test_code
6781 extern int _nl_msg_cat_cntr;
6786 const char *_nl_expand_alias (const char *);
6790 bindtextdomain ("", "");
6791 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6796 if ac_fn_c_try_link "$LINENO"; then :
6797 eval "$gt_func_gnugettext_libintl=yes"
6799 eval "$gt_func_gnugettext_libintl=no"
6801 rm -f core conftest.err conftest.$ac_objext \
6802 conftest$ac_exeext conftest.$ac_ext
6803 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
6804 LIBS="$LIBS $LIBICONV"
6805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6806 /* end confdefs.h. */
6807 #include <libintl.h>
6808 $gt_revision_test_code
6809 extern int _nl_msg_cat_cntr;
6814 const char *_nl_expand_alias (const char *);
6818 bindtextdomain ("", "");
6819 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6824 if ac_fn_c_try_link "$LINENO"; then :
6825 LIBINTL="$LIBINTL $LIBICONV"
6826 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
6827 eval "$gt_func_gnugettext_libintl=yes"
6830 rm -f core conftest.err conftest.$ac_objext \
6831 conftest$ac_exeext conftest.$ac_ext
6833 CPPFLAGS="$gt_save_CPPFLAGS"
6834 LIBS="$gt_save_LIBS"
6836 eval ac_res=\$$gt_func_gnugettext_libintl
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6838 $as_echo "$ac_res" >&6; }
6841 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
6842 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
6843 && test "$PACKAGE" != gettext-runtime \
6844 && test "$PACKAGE" != gettext-tools; }; then
6845 gt_use_preinstalled_gnugettext=yes
6854 if test -n "$INTL_MACOSX_LIBS"; then
6855 if test "$gt_use_preinstalled_gnugettext" = "yes" \
6856 || test "$nls_cv_use_gnu_gettext" = "yes"; then
6857 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
6858 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
6862 if test "$gt_use_preinstalled_gnugettext" = "yes" \
6863 || test "$nls_cv_use_gnu_gettext" = "yes"; then
6865 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
6873 $as_echo_n "checking whether to use NLS... " >&6; }
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6875 $as_echo "$USE_NLS" >&6; }
6876 if test "$USE_NLS" = "yes"; then
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
6878 $as_echo_n "checking where the gettext function comes from... " >&6; }
6879 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6880 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
6881 gt_source="external libintl"
6886 gt_source="included intl directory"
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
6889 $as_echo "$gt_source" >&6; }
6892 if test "$USE_NLS" = "yes"; then
6894 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6895 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
6896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
6897 $as_echo_n "checking how to link with libintl... " >&6; }
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
6899 $as_echo "$LIBINTL" >&6; }
6901 for element in $INCINTL; do
6903 for x in $CPPFLAGS; do
6905 acl_save_prefix="$prefix"
6906 prefix="$acl_final_prefix"
6907 acl_save_exec_prefix="$exec_prefix"
6908 exec_prefix="$acl_final_exec_prefix"
6910 exec_prefix="$acl_save_exec_prefix"
6911 prefix="$acl_save_prefix"
6913 if test "X$x" = "X$element"; then
6918 if test -z "$haveit"; then
6919 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6926 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
6929 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
6946 ############### common
6948 # Checks sensors, required by psensor and psensor-server
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sensors_init in -lsensors" >&5
6950 $as_echo_n "checking for sensors_init in -lsensors... " >&6; }
6951 if ${ac_cv_lib_sensors_sensors_init+:} false; then :
6952 $as_echo_n "(cached) " >&6
6954 ac_check_lib_save_LIBS=$LIBS
6955 LIBS="-lsensors $LIBS"
6956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6957 /* end confdefs.h. */
6959 /* Override any GCC internal prototype to avoid an error.
6960 Use char because int might match the return type of a GCC
6961 builtin and then its argument prototype would still apply. */
6965 char sensors_init ();
6969 return sensors_init ();
6974 if ac_fn_c_try_link "$LINENO"; then :
6975 ac_cv_lib_sensors_sensors_init=yes
6977 ac_cv_lib_sensors_sensors_init=no
6979 rm -f core conftest.err conftest.$ac_objext \
6980 conftest$ac_exeext conftest.$ac_ext
6981 LIBS=$ac_check_lib_save_LIBS
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sensors_sensors_init" >&5
6984 $as_echo "$ac_cv_lib_sensors_sensors_init" >&6; }
6985 if test "x$ac_cv_lib_sensors_sensors_init" = xyes; then :
6986 cat >>confdefs.h <<_ACEOF
6987 #define HAVE_LIBSENSORS 1
6990 LIBS="-lsensors $LIBS"
6994 for ac_header in sensors/sensors.h sensors/errors.h
6996 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6997 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6998 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6999 cat >>confdefs.h <<_ACEOF
7000 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7007 SENSORS_LIBS=-lsensors
7010 ############### psensor
7021 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7022 if test -n "$ac_tool_prefix"; then
7023 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7024 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7026 $as_echo_n "checking for $ac_word... " >&6; }
7027 if ${ac_cv_path_PKG_CONFIG+:} false; then :
7028 $as_echo_n "(cached) " >&6
7032 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7039 test -z "$as_dir" && as_dir=.
7040 for ac_exec_ext in '' $ac_executable_extensions; do
7041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7042 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7053 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7054 if test -n "$PKG_CONFIG"; then
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7056 $as_echo "$PKG_CONFIG" >&6; }
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7059 $as_echo "no" >&6; }
7064 if test -z "$ac_cv_path_PKG_CONFIG"; then
7065 ac_pt_PKG_CONFIG=$PKG_CONFIG
7066 # Extract the first word of "pkg-config", so it can be a program name with args.
7067 set dummy pkg-config; ac_word=$2
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7069 $as_echo_n "checking for $ac_word... " >&6; }
7070 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
7071 $as_echo_n "(cached) " >&6
7073 case $ac_pt_PKG_CONFIG in
7075 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7082 test -z "$as_dir" && as_dir=.
7083 for ac_exec_ext in '' $ac_executable_extensions; do
7084 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7085 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7096 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7097 if test -n "$ac_pt_PKG_CONFIG"; then
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7099 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
7101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7102 $as_echo "no" >&6; }
7105 if test "x$ac_pt_PKG_CONFIG" = x; then
7108 case $cross_compiling:$ac_tool_warned in
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7111 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7112 ac_tool_warned=yes ;;
7114 PKG_CONFIG=$ac_pt_PKG_CONFIG
7117 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7121 if test -n "$PKG_CONFIG"; then
7122 _pkg_min_version=0.9.0
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7124 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7125 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7127 $as_echo "yes" >&6; }
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7130 $as_echo "no" >&6; }
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
7137 $as_echo_n "checking for X11... " >&6; }
7139 if test -n "$X11_CFLAGS"; then
7140 pkg_cv_X11_CFLAGS="$X11_CFLAGS"
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_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
7149 test "x$?" != "x0" && pkg_failed=yes
7156 if test -n "$X11_LIBS"; then
7157 pkg_cv_X11_LIBS="$X11_LIBS"
7158 elif test -n "$PKG_CONFIG"; then
7159 if test -n "$PKG_CONFIG" && \
7160 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
7161 ($PKG_CONFIG --exists --print-errors "x11") 2>&5
7163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7164 test $ac_status = 0; }; then
7165 pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
7166 test "x$?" != "x0" && pkg_failed=yes
7176 if test $pkg_failed = yes; then
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7178 $as_echo "no" >&6; }
7180 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7181 _pkg_short_errors_supported=yes
7183 _pkg_short_errors_supported=no
7185 if test $_pkg_short_errors_supported = yes; then
7186 X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11" 2>&1`
7188 X11_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11" 2>&1`
7190 # Put the nasty error message in config.log where it belongs
7191 echo "$X11_PKG_ERRORS" >&5
7193 as_fn_error $? "Package requirements (x11) were not met:
7197 Consider adjusting the PKG_CONFIG_PATH environment variable if you
7198 installed software in a non-standard prefix.
7200 Alternatively, you may set the environment variables X11_CFLAGS
7201 and X11_LIBS to avoid the need to call pkg-config.
7202 See the pkg-config man page for more details." "$LINENO" 5
7203 elif test $pkg_failed = untried; then
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7205 $as_echo "no" >&6; }
7206 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7207 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7208 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
7209 is in your PATH or set the PKG_CONFIG environment variable to the full
7212 Alternatively, you may set the environment variables X11_CFLAGS
7213 and X11_LIBS to avoid the need to call pkg-config.
7214 See the pkg-config man page for more details.
7216 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7217 See \`config.log' for more details" "$LINENO" 5; }
7219 X11_CFLAGS=$pkg_cv_X11_CFLAGS
7220 X11_LIBS=$pkg_cv_X11_LIBS
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7222 $as_echo "yes" >&6; }
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5
7231 $as_echo_n "checking for XEXT... " >&6; }
7233 if test -n "$XEXT_CFLAGS"; then
7234 pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
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_CFLAGS=`$PKG_CONFIG --cflags "xext" 2>/dev/null`
7243 test "x$?" != "x0" && pkg_failed=yes
7250 if test -n "$XEXT_LIBS"; then
7251 pkg_cv_XEXT_LIBS="$XEXT_LIBS"
7252 elif test -n "$PKG_CONFIG"; then
7253 if test -n "$PKG_CONFIG" && \
7254 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5
7255 ($PKG_CONFIG --exists --print-errors "xext") 2>&5
7257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7258 test $ac_status = 0; }; then
7259 pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xext" 2>/dev/null`
7260 test "x$?" != "x0" && pkg_failed=yes
7270 if test $pkg_failed = yes; then
7271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7272 $as_echo "no" >&6; }
7274 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7275 _pkg_short_errors_supported=yes
7277 _pkg_short_errors_supported=no
7279 if test $_pkg_short_errors_supported = yes; then
7280 XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xext" 2>&1`
7282 XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xext" 2>&1`
7284 # Put the nasty error message in config.log where it belongs
7285 echo "$XEXT_PKG_ERRORS" >&5
7287 as_fn_error $? "Package requirements (xext) were not met:
7291 Consider adjusting the PKG_CONFIG_PATH environment variable if you
7292 installed software in a non-standard prefix.
7294 Alternatively, you may set the environment variables XEXT_CFLAGS
7295 and XEXT_LIBS to avoid the need to call pkg-config.
7296 See the pkg-config man page for more details." "$LINENO" 5
7297 elif test $pkg_failed = untried; then
7298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7299 $as_echo "no" >&6; }
7300 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7301 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7302 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
7303 is in your PATH or set the PKG_CONFIG environment variable to the full
7306 Alternatively, you may set the environment variables XEXT_CFLAGS
7307 and XEXT_LIBS to avoid the need to call pkg-config.
7308 See the pkg-config man page for more details.
7310 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7311 See \`config.log' for more details" "$LINENO" 5; }
7313 XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
7314 XEXT_LIBS=$pkg_cv_XEXT_LIBS
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7316 $as_echo "yes" >&6; }
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5
7327 $as_echo_n "checking for GTK... " >&6; }
7329 if test -n "$GTK_CFLAGS"; then
7330 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
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_CFLAGS=`$PKG_CONFIG --cflags "gtk+-3.0" 2>/dev/null`
7339 test "x$?" != "x0" && pkg_failed=yes
7346 if test -n "$GTK_LIBS"; then
7347 pkg_cv_GTK_LIBS="$GTK_LIBS"
7348 elif test -n "$PKG_CONFIG"; then
7349 if test -n "$PKG_CONFIG" && \
7350 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0\""; } >&5
7351 ($PKG_CONFIG --exists --print-errors "gtk+-3.0") 2>&5
7353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7354 test $ac_status = 0; }; then
7355 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-3.0" 2>/dev/null`
7356 test "x$?" != "x0" && pkg_failed=yes
7366 if test $pkg_failed = yes; then
7367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7368 $as_echo "no" >&6; }
7370 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7371 _pkg_short_errors_supported=yes
7373 _pkg_short_errors_supported=no
7375 if test $_pkg_short_errors_supported = yes; then
7376 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-3.0" 2>&1`
7378 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-3.0" 2>&1`
7380 # Put the nasty error message in config.log where it belongs
7381 echo "$GTK_PKG_ERRORS" >&5
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"GTK+ 3 not present\"" >&5
7384 $as_echo "$as_me: WARNING: \"GTK+ 3 not present\"" >&2;}
7385 elif test $pkg_failed = untried; then
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7387 $as_echo "no" >&6; }
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"GTK+ 3 not present\"" >&5
7389 $as_echo "$as_me: WARNING: \"GTK+ 3 not present\"" >&2;}
7391 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
7392 GTK_LIBS=$pkg_cv_GTK_LIBS
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7394 $as_echo "yes" >&6; }
7396 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
7399 if test -n "$GTK_LIBS"; then
7410 if test "$GTK_LIBS" == ""; then
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5
7414 $as_echo_n "checking for GTK... " >&6; }
7416 if test -n "$GTK_CFLAGS"; then
7417 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
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_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.18" 2>/dev/null`
7426 test "x$?" != "x0" && pkg_failed=yes
7433 if test -n "$GTK_LIBS"; then
7434 pkg_cv_GTK_LIBS="$GTK_LIBS"
7435 elif test -n "$PKG_CONFIG"; then
7436 if test -n "$PKG_CONFIG" && \
7437 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.18\""; } >&5
7438 ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.18") 2>&5
7440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7441 test $ac_status = 0; }; then
7442 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.18" 2>/dev/null`
7443 test "x$?" != "x0" && pkg_failed=yes
7453 if test $pkg_failed = yes; then
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7455 $as_echo "no" >&6; }
7457 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7458 _pkg_short_errors_supported=yes
7460 _pkg_short_errors_supported=no
7462 if test $_pkg_short_errors_supported = yes; then
7463 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-2.0 >= 2.18" 2>&1`
7465 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-2.0 >= 2.18" 2>&1`
7467 # Put the nasty error message in config.log where it belongs
7468 echo "$GTK_PKG_ERRORS" >&5
7470 as_fn_error $? "Package requirements (gtk+-2.0 >= 2.18) were not met:
7474 Consider adjusting the PKG_CONFIG_PATH environment variable if you
7475 installed software in a non-standard prefix.
7477 Alternatively, you may set the environment variables GTK_CFLAGS
7478 and GTK_LIBS to avoid the need to call pkg-config.
7479 See the pkg-config man page for more details." "$LINENO" 5
7480 elif test $pkg_failed = untried; then
7481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7482 $as_echo "no" >&6; }
7483 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7484 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7485 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
7486 is in your PATH or set the PKG_CONFIG environment variable to the full
7489 Alternatively, you may set the environment variables GTK_CFLAGS
7490 and GTK_LIBS to avoid the need to call pkg-config.
7491 See the pkg-config man page for more details.
7493 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7494 See \`config.log' for more details" "$LINENO" 5; }
7496 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
7497 GTK_LIBS=$pkg_cv_GTK_LIBS
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7499 $as_echo "yes" >&6; }
7502 if test -n "$GTK_LIBS"; then
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCONF" >&5
7518 $as_echo_n "checking for GCONF... " >&6; }
7520 if test -n "$GCONF_CFLAGS"; then
7521 pkg_cv_GCONF_CFLAGS="$GCONF_CFLAGS"
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_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0" 2>/dev/null`
7530 test "x$?" != "x0" && pkg_failed=yes
7537 if test -n "$GCONF_LIBS"; then
7538 pkg_cv_GCONF_LIBS="$GCONF_LIBS"
7539 elif test -n "$PKG_CONFIG"; then
7540 if test -n "$PKG_CONFIG" && \
7541 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gconf-2.0\""; } >&5
7542 ($PKG_CONFIG --exists --print-errors "gconf-2.0") 2>&5
7544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7545 test $ac_status = 0; }; then
7546 pkg_cv_GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0" 2>/dev/null`
7547 test "x$?" != "x0" && pkg_failed=yes
7557 if test $pkg_failed = yes; then
7558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7559 $as_echo "no" >&6; }
7561 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7562 _pkg_short_errors_supported=yes
7564 _pkg_short_errors_supported=no
7566 if test $_pkg_short_errors_supported = yes; then
7567 GCONF_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gconf-2.0" 2>&1`
7569 GCONF_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gconf-2.0" 2>&1`
7571 # Put the nasty error message in config.log where it belongs
7572 echo "$GCONF_PKG_ERRORS" >&5
7574 as_fn_error $? "Package requirements (gconf-2.0) were not met:
7578 Consider adjusting the PKG_CONFIG_PATH environment variable if you
7579 installed software in a non-standard prefix.
7581 Alternatively, you may set the environment variables GCONF_CFLAGS
7582 and GCONF_LIBS to avoid the need to call pkg-config.
7583 See the pkg-config man page for more details." "$LINENO" 5
7584 elif test $pkg_failed = untried; then
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7586 $as_echo "no" >&6; }
7587 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7588 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7589 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
7590 is in your PATH or set the PKG_CONFIG environment variable to the full
7593 Alternatively, you may set the environment variables GCONF_CFLAGS
7594 and GCONF_LIBS to avoid the need to call pkg-config.
7595 See the pkg-config man page for more details.
7597 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7598 See \`config.log' for more details" "$LINENO" 5; }
7600 GCONF_CFLAGS=$pkg_cv_GCONF_CFLAGS
7601 GCONF_LIBS=$pkg_cv_GCONF_LIBS
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7603 $as_echo "yes" >&6; }
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBNOTIFY" >&5
7616 $as_echo_n "checking for LIBNOTIFY... " >&6; }
7618 if test -n "$LIBNOTIFY_CFLAGS"; then
7619 pkg_cv_LIBNOTIFY_CFLAGS="$LIBNOTIFY_CFLAGS"
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_CFLAGS=`$PKG_CONFIG --cflags "libnotify" 2>/dev/null`
7628 test "x$?" != "x0" && pkg_failed=yes
7635 if test -n "$LIBNOTIFY_LIBS"; then
7636 pkg_cv_LIBNOTIFY_LIBS="$LIBNOTIFY_LIBS"
7637 elif test -n "$PKG_CONFIG"; then
7638 if test -n "$PKG_CONFIG" && \
7639 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnotify\""; } >&5
7640 ($PKG_CONFIG --exists --print-errors "libnotify") 2>&5
7642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7643 test $ac_status = 0; }; then
7644 pkg_cv_LIBNOTIFY_LIBS=`$PKG_CONFIG --libs "libnotify" 2>/dev/null`
7645 test "x$?" != "x0" && pkg_failed=yes
7655 if test $pkg_failed = yes; then
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7657 $as_echo "no" >&6; }
7659 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7660 _pkg_short_errors_supported=yes
7662 _pkg_short_errors_supported=no
7664 if test $_pkg_short_errors_supported = yes; then
7665 LIBNOTIFY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libnotify" 2>&1`
7667 LIBNOTIFY_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libnotify" 2>&1`
7669 # Put the nasty error message in config.log where it belongs
7670 echo "$LIBNOTIFY_PKG_ERRORS" >&5
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Desktop notification disabled\"" >&5
7673 $as_echo "$as_me: WARNING: \"Desktop notification disabled\"" >&2;}
7674 elif test $pkg_failed = untried; then
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7676 $as_echo "no" >&6; }
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Desktop notification disabled\"" >&5
7678 $as_echo "$as_me: WARNING: \"Desktop notification disabled\"" >&2;}
7680 LIBNOTIFY_CFLAGS=$pkg_cv_LIBNOTIFY_CFLAGS
7681 LIBNOTIFY_LIBS=$pkg_cv_LIBNOTIFY_LIBS
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7683 $as_echo "yes" >&6; }
7685 $as_echo "#define HAVE_LIBNOTIFY 1" >>confdefs.h
7688 if test -n "$LIBNOTIFY_LIBS"; then
7699 # Checks AppIndicator
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APPINDICATOR" >&5
7705 $as_echo_n "checking for APPINDICATOR... " >&6; }
7707 if test -n "$APPINDICATOR_CFLAGS"; then
7708 pkg_cv_APPINDICATOR_CFLAGS="$APPINDICATOR_CFLAGS"
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_CFLAGS=`$PKG_CONFIG --cflags "appindicator3-0.1" 2>/dev/null`
7717 test "x$?" != "x0" && pkg_failed=yes
7724 if test -n "$APPINDICATOR_LIBS"; then
7725 pkg_cv_APPINDICATOR_LIBS="$APPINDICATOR_LIBS"
7726 elif test -n "$PKG_CONFIG"; then
7727 if test -n "$PKG_CONFIG" && \
7728 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"appindicator3-0.1\""; } >&5
7729 ($PKG_CONFIG --exists --print-errors "appindicator3-0.1") 2>&5
7731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7732 test $ac_status = 0; }; then
7733 pkg_cv_APPINDICATOR_LIBS=`$PKG_CONFIG --libs "appindicator3-0.1" 2>/dev/null`
7734 test "x$?" != "x0" && pkg_failed=yes
7744 if test $pkg_failed = yes; then
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7746 $as_echo "no" >&6; }
7748 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7749 _pkg_short_errors_supported=yes
7751 _pkg_short_errors_supported=no
7753 if test $_pkg_short_errors_supported = yes; then
7754 APPINDICATOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "appindicator3-0.1" 2>&1`
7756 APPINDICATOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "appindicator3-0.1" 2>&1`
7758 # Put the nasty error message in config.log where it belongs
7759 echo "$APPINDICATOR_PKG_ERRORS" >&5
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: AppIndicator 3-0.1 not present\"" >&5
7762 $as_echo "$as_me: WARNING: AppIndicator 3-0.1 not present\"" >&2;}
7763 elif test $pkg_failed = untried; then
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7765 $as_echo "no" >&6; }
7766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: AppIndicator 3-0.1 not present\"" >&5
7767 $as_echo "$as_me: WARNING: AppIndicator 3-0.1 not present\"" >&2;}
7769 APPINDICATOR_CFLAGS=$pkg_cv_APPINDICATOR_CFLAGS
7770 APPINDICATOR_LIBS=$pkg_cv_APPINDICATOR_LIBS
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7772 $as_echo "yes" >&6; }
7774 $as_echo "#define HAVE_APPINDICATOR 1" >>confdefs.h
7778 if test "$APPINDICATOR_LIBS" == ""; then
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APPINDICATOR" >&5
7782 $as_echo_n "checking for APPINDICATOR... " >&6; }
7784 if test -n "$APPINDICATOR_CFLAGS"; then
7785 pkg_cv_APPINDICATOR_CFLAGS="$APPINDICATOR_CFLAGS"
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_CFLAGS=`$PKG_CONFIG --cflags "appindicator-0.1 <= 0.2.9 " 2>/dev/null`
7794 test "x$?" != "x0" && pkg_failed=yes
7801 if test -n "$APPINDICATOR_LIBS"; then
7802 pkg_cv_APPINDICATOR_LIBS="$APPINDICATOR_LIBS"
7803 elif test -n "$PKG_CONFIG"; then
7804 if test -n "$PKG_CONFIG" && \
7805 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"appindicator-0.1 <= 0.2.9 \""; } >&5
7806 ($PKG_CONFIG --exists --print-errors "appindicator-0.1 <= 0.2.9 ") 2>&5
7808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7809 test $ac_status = 0; }; then
7810 pkg_cv_APPINDICATOR_LIBS=`$PKG_CONFIG --libs "appindicator-0.1 <= 0.2.9 " 2>/dev/null`
7811 test "x$?" != "x0" && pkg_failed=yes
7821 if test $pkg_failed = yes; then
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7823 $as_echo "no" >&6; }
7825 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7826 _pkg_short_errors_supported=yes
7828 _pkg_short_errors_supported=no
7830 if test $_pkg_short_errors_supported = yes; then
7831 APPINDICATOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "appindicator-0.1 <= 0.2.9 " 2>&1`
7833 APPINDICATOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "appindicator-0.1 <= 0.2.9 " 2>&1`
7835 # Put the nasty error message in config.log where it belongs
7836 echo "$APPINDICATOR_PKG_ERRORS" >&5
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: AppIndicator 0.2.9 not present\"" >&5
7839 $as_echo "$as_me: WARNING: AppIndicator 0.2.9 not present\"" >&2;}
7840 elif test $pkg_failed = untried; then
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7842 $as_echo "no" >&6; }
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: AppIndicator 0.2.9 not present\"" >&5
7844 $as_echo "$as_me: WARNING: AppIndicator 0.2.9 not present\"" >&2;}
7846 APPINDICATOR_CFLAGS=$pkg_cv_APPINDICATOR_CFLAGS
7847 APPINDICATOR_LIBS=$pkg_cv_APPINDICATOR_LIBS
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7849 $as_echo "yes" >&6; }
7851 $as_echo "#define HAVE_APPINDICATOR 1" >>confdefs.h
7854 $as_echo "#define HAVE_APPINDICATOR_029 1" >>confdefs.h
7860 if test "$APPINDICATOR_LIBS" == ""; then
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APPINDICATOR" >&5
7864 $as_echo_n "checking for APPINDICATOR... " >&6; }
7866 if test -n "$APPINDICATOR_CFLAGS"; then
7867 pkg_cv_APPINDICATOR_CFLAGS="$APPINDICATOR_CFLAGS"
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_CFLAGS=`$PKG_CONFIG --cflags "appindicator-0.1 > 0.2.9" 2>/dev/null`
7876 test "x$?" != "x0" && pkg_failed=yes
7883 if test -n "$APPINDICATOR_LIBS"; then
7884 pkg_cv_APPINDICATOR_LIBS="$APPINDICATOR_LIBS"
7885 elif test -n "$PKG_CONFIG"; then
7886 if test -n "$PKG_CONFIG" && \
7887 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"appindicator-0.1 > 0.2.9\""; } >&5
7888 ($PKG_CONFIG --exists --print-errors "appindicator-0.1 > 0.2.9") 2>&5
7890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7891 test $ac_status = 0; }; then
7892 pkg_cv_APPINDICATOR_LIBS=`$PKG_CONFIG --libs "appindicator-0.1 > 0.2.9" 2>/dev/null`
7893 test "x$?" != "x0" && pkg_failed=yes
7903 if test $pkg_failed = yes; then
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7905 $as_echo "no" >&6; }
7907 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7908 _pkg_short_errors_supported=yes
7910 _pkg_short_errors_supported=no
7912 if test $_pkg_short_errors_supported = yes; then
7913 APPINDICATOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "appindicator-0.1 > 0.2.9" 2>&1`
7915 APPINDICATOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "appindicator-0.1 > 0.2.9" 2>&1`
7917 # Put the nasty error message in config.log where it belongs
7918 echo "$APPINDICATOR_PKG_ERRORS" >&5
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"AppIndicator > 0.2.9 not present\"" >&5
7921 $as_echo "$as_me: WARNING: \"AppIndicator > 0.2.9 not present\"" >&2;}
7922 elif test $pkg_failed = untried; then
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7924 $as_echo "no" >&6; }
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"AppIndicator > 0.2.9 not present\"" >&5
7926 $as_echo "$as_me: WARNING: \"AppIndicator > 0.2.9 not present\"" >&2;}
7928 APPINDICATOR_CFLAGS=$pkg_cv_APPINDICATOR_CFLAGS
7929 APPINDICATOR_LIBS=$pkg_cv_APPINDICATOR_LIBS
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7931 $as_echo "yes" >&6; }
7933 $as_echo "#define HAVE_APPINDICATOR 1" >>confdefs.h
7937 if test -n "$APPINDICATOR_LIBS"; then
7939 APPINDICATOR_FALSE='#'
7941 APPINDICATOR_TRUE='#'
7948 # Check CURL, needed for remote monitoring
7952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CURL" >&5
7953 $as_echo_n "checking for CURL... " >&6; }
7955 if test -n "$CURL_CFLAGS"; then
7956 pkg_cv_CURL_CFLAGS="$CURL_CFLAGS"
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_CFLAGS=`$PKG_CONFIG --cflags "libcurl" 2>/dev/null`
7965 test "x$?" != "x0" && pkg_failed=yes
7972 if test -n "$CURL_LIBS"; then
7973 pkg_cv_CURL_LIBS="$CURL_LIBS"
7974 elif test -n "$PKG_CONFIG"; then
7975 if test -n "$PKG_CONFIG" && \
7976 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl\""; } >&5
7977 ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5
7979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7980 test $ac_status = 0; }; then
7981 pkg_cv_CURL_LIBS=`$PKG_CONFIG --libs "libcurl" 2>/dev/null`
7982 test "x$?" != "x0" && pkg_failed=yes
7992 if test $pkg_failed = yes; then
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7994 $as_echo "no" >&6; }
7996 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7997 _pkg_short_errors_supported=yes
7999 _pkg_short_errors_supported=no
8001 if test $_pkg_short_errors_supported = yes; then
8002 CURL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcurl" 2>&1`
8004 CURL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcurl" 2>&1`
8006 # Put the nasty error message in config.log where it belongs
8007 echo "$CURL_PKG_ERRORS" >&5
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Remote monitoring disabled" >&5
8010 $as_echo "$as_me: WARNING: \"Remote monitoring disabled" >&2;}
8011 elif test $pkg_failed = untried; then
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8013 $as_echo "no" >&6; }
8014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Remote monitoring disabled" >&5
8015 $as_echo "$as_me: WARNING: \"Remote monitoring disabled" >&2;}
8017 CURL_CFLAGS=$pkg_cv_CURL_CFLAGS
8018 CURL_LIBS=$pkg_cv_CURL_LIBS
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8020 $as_echo "yes" >&6; }
8022 $as_echo "#define HAVE_CURL 1" >>confdefs.h
8025 if test -n "$CURL_LIBS"; then
8036 # Check JSON, needed for remote monitoring
8040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JSON" >&5
8041 $as_echo_n "checking for JSON... " >&6; }
8043 if test -n "$JSON_CFLAGS"; then
8044 pkg_cv_JSON_CFLAGS="$JSON_CFLAGS"
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_CFLAGS=`$PKG_CONFIG --cflags "json" 2>/dev/null`
8053 test "x$?" != "x0" && pkg_failed=yes
8060 if test -n "$JSON_LIBS"; then
8061 pkg_cv_JSON_LIBS="$JSON_LIBS"
8062 elif test -n "$PKG_CONFIG"; then
8063 if test -n "$PKG_CONFIG" && \
8064 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json\""; } >&5
8065 ($PKG_CONFIG --exists --print-errors "json") 2>&5
8067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8068 test $ac_status = 0; }; then
8069 pkg_cv_JSON_LIBS=`$PKG_CONFIG --libs "json" 2>/dev/null`
8070 test "x$?" != "x0" && pkg_failed=yes
8080 if test $pkg_failed = yes; then
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8082 $as_echo "no" >&6; }
8084 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8085 _pkg_short_errors_supported=yes
8087 _pkg_short_errors_supported=no
8089 if test $_pkg_short_errors_supported = yes; then
8090 JSON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "json" 2>&1`
8092 JSON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "json" 2>&1`
8094 # Put the nasty error message in config.log where it belongs
8095 echo "$JSON_PKG_ERRORS" >&5
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Remote monitoring disabled" >&5
8098 $as_echo "$as_me: WARNING: \"Remote monitoring disabled" >&2;}
8099 elif test $pkg_failed = untried; then
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8101 $as_echo "no" >&6; }
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Remote monitoring disabled" >&5
8103 $as_echo "$as_me: WARNING: \"Remote monitoring disabled" >&2;}
8105 JSON_CFLAGS=$pkg_cv_JSON_CFLAGS
8106 JSON_LIBS=$pkg_cv_JSON_LIBS
8107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8108 $as_echo "yes" >&6; }
8110 $as_echo "#define HAVE_JSON 1" >>confdefs.h
8113 if test -n "$JSON_LIBS"; then
8124 # Enables remote monitoring if JSON and CURL is present
8125 if test -n "$JSON_LIBS"; then
8126 if test -n "$CURL_LIBS"; then
8128 $as_echo "#define HAVE_REMOTE_SUPPORT 1" >>confdefs.h
8134 # following code from sensors-applet
8135 # sensors-applet.sourceforge.net/
8136 for ac_header in NVCtrl/NVCtrl.h NVCtrl/NVCtrlLib.h
8138 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8139 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
8140 #include <X11/Xlib.h>
8143 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8144 cat >>confdefs.h <<_ACEOF
8145 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8152 if test -n "${X11_LIBS}"; then
8153 LIBS="${LIBS} -lX11 -lXext"
8155 if test "${HAVE_NVIDIA}" = "true"; then
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XNVCTRLQueryExtension in -lXNVCtrl" >&5
8157 $as_echo_n "checking for XNVCTRLQueryExtension in -lXNVCtrl... " >&6; }
8158 if ${ac_cv_lib_XNVCtrl_XNVCTRLQueryExtension+:} false; then :
8159 $as_echo_n "(cached) " >&6
8161 ac_check_lib_save_LIBS=$LIBS
8162 LIBS="-lXNVCtrl $LIBS"
8163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8164 /* end confdefs.h. */
8166 /* Override any GCC internal prototype to avoid an error.
8167 Use char because int might match the return type of a GCC
8168 builtin and then its argument prototype would still apply. */
8172 char XNVCTRLQueryExtension ();
8176 return XNVCTRLQueryExtension ();
8181 if ac_fn_c_try_link "$LINENO"; then :
8182 ac_cv_lib_XNVCtrl_XNVCTRLQueryExtension=yes
8184 ac_cv_lib_XNVCtrl_XNVCTRLQueryExtension=no
8186 rm -f core conftest.err conftest.$ac_objext \
8187 conftest$ac_exeext conftest.$ac_ext
8188 LIBS=$ac_check_lib_save_LIBS
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_XNVCtrl_XNVCTRLQueryExtension" >&5
8191 $as_echo "$ac_cv_lib_XNVCtrl_XNVCTRLQueryExtension" >&6; }
8192 if test "x$ac_cv_lib_XNVCtrl_XNVCTRLQueryExtension" = xyes; then :
8193 NVIDIA_LIBS="-lXNVCtrl -lX11 -lXext"
8195 $as_echo "#define HAVE_NVIDIA 1" >>confdefs.h
8202 if test -n "$NVIDIA_LIBS"; then
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNITY" >&5
8217 $as_echo_n "checking for UNITY... " >&6; }
8219 if test -n "$UNITY_CFLAGS"; then
8220 pkg_cv_UNITY_CFLAGS="$UNITY_CFLAGS"
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_CFLAGS=`$PKG_CONFIG --cflags "unity >= 3.4.2" 2>/dev/null`
8229 test "x$?" != "x0" && pkg_failed=yes
8236 if test -n "$UNITY_LIBS"; then
8237 pkg_cv_UNITY_LIBS="$UNITY_LIBS"
8238 elif test -n "$PKG_CONFIG"; then
8239 if test -n "$PKG_CONFIG" && \
8240 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"unity >= 3.4.2\""; } >&5
8241 ($PKG_CONFIG --exists --print-errors "unity >= 3.4.2") 2>&5
8243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8244 test $ac_status = 0; }; then
8245 pkg_cv_UNITY_LIBS=`$PKG_CONFIG --libs "unity >= 3.4.2" 2>/dev/null`
8246 test "x$?" != "x0" && pkg_failed=yes
8256 if test $pkg_failed = yes; then
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8258 $as_echo "no" >&6; }
8260 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8261 _pkg_short_errors_supported=yes
8263 _pkg_short_errors_supported=no
8265 if test $_pkg_short_errors_supported = yes; then
8266 UNITY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "unity >= 3.4.2" 2>&1`
8268 UNITY_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "unity >= 3.4.2" 2>&1`
8270 # Put the nasty error message in config.log where it belongs
8271 echo "$UNITY_PKG_ERRORS" >&5
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unity not present" >&5
8274 $as_echo "$as_me: WARNING: Unity not present" >&2;}
8275 elif test $pkg_failed = untried; then
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8277 $as_echo "no" >&6; }
8278 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unity not present" >&5
8279 $as_echo "$as_me: WARNING: Unity not present" >&2;}
8281 UNITY_CFLAGS=$pkg_cv_UNITY_CFLAGS
8282 UNITY_LIBS=$pkg_cv_UNITY_LIBS
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8284 $as_echo "yes" >&6; }
8286 $as_echo "#define HAVE_UNITY 1" >>confdefs.h
8291 if test -n "$UNITY_LIBS"; then
8302 # Check whether --with-libatiadl was given.
8303 if test "${with_libatiadl+set}" = set; then :
8304 withval=$with_libatiadl;
8305 ATIADL_DIR=${withval}
8306 CPPFLAGS="${CPPFLAGS} -I${ATIADL_DIR}/include"
8307 LIBS="$LIBS -L/usr/lib/fglrx -L/usr/lib64/fglrx -L/usr/lib/catalyst -L/usr/lib64/catalyst"
8313 for ac_header in adl_defines.h
8315 ac_fn_c_check_header_mongrel "$LINENO" "adl_defines.h" "ac_cv_header_adl_defines_h" "$ac_includes_default"
8316 if test "x$ac_cv_header_adl_defines_h" = xyes; then :
8317 cat >>confdefs.h <<_ACEOF
8318 #define HAVE_ADL_DEFINES_H 1
8320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ADL_Main_Control_Refresh in -latiadlxx" >&5
8321 $as_echo_n "checking for ADL_Main_Control_Refresh in -latiadlxx... " >&6; }
8322 if ${ac_cv_lib_atiadlxx_ADL_Main_Control_Refresh+:} false; then :
8323 $as_echo_n "(cached) " >&6
8325 ac_check_lib_save_LIBS=$LIBS
8326 LIBS="-latiadlxx $LIBS"
8327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8328 /* end confdefs.h. */
8330 /* Override any GCC internal prototype to avoid an error.
8331 Use char because int might match the return type of a GCC
8332 builtin and then its argument prototype would still apply. */
8336 char ADL_Main_Control_Refresh ();
8340 return ADL_Main_Control_Refresh ();
8345 if ac_fn_c_try_link "$LINENO"; then :
8346 ac_cv_lib_atiadlxx_ADL_Main_Control_Refresh=yes
8348 ac_cv_lib_atiadlxx_ADL_Main_Control_Refresh=no
8350 rm -f core conftest.err conftest.$ac_objext \
8351 conftest$ac_exeext conftest.$ac_ext
8352 LIBS=$ac_check_lib_save_LIBS
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_atiadlxx_ADL_Main_Control_Refresh" >&5
8355 $as_echo "$ac_cv_lib_atiadlxx_ADL_Main_Control_Refresh" >&6; }
8356 if test "x$ac_cv_lib_atiadlxx_ADL_Main_Control_Refresh" = xyes; then :
8359 $as_echo "#define HAVE_LIBATIADL 1" >>confdefs.h
8361 LIBATIADL_CFLAGS="-I${ATIADL_DIR}/include"
8362 LIBATIADL_LIBS="-L/usr/lib/fglrx -L/usr/lib64/fglrx -L/usr/lib/catalyst -L/usr/lib64/catalyst -latiadlxx -ldl"
8371 if test -n "$LIBATIADL_LIBS"; then
8382 ############### psensor-server
8384 # libmicrohttpd, mandatory for psensor-server
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBMICROHTTPD" >&5
8389 $as_echo_n "checking for LIBMICROHTTPD... " >&6; }
8391 if test -n "$LIBMICROHTTPD_CFLAGS"; then
8392 pkg_cv_LIBMICROHTTPD_CFLAGS="$LIBMICROHTTPD_CFLAGS"
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_CFLAGS=`$PKG_CONFIG --cflags "libmicrohttpd" 2>/dev/null`
8401 test "x$?" != "x0" && pkg_failed=yes
8408 if test -n "$LIBMICROHTTPD_LIBS"; then
8409 pkg_cv_LIBMICROHTTPD_LIBS="$LIBMICROHTTPD_LIBS"
8410 elif test -n "$PKG_CONFIG"; then
8411 if test -n "$PKG_CONFIG" && \
8412 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmicrohttpd\""; } >&5
8413 ($PKG_CONFIG --exists --print-errors "libmicrohttpd") 2>&5
8415 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8416 test $ac_status = 0; }; then
8417 pkg_cv_LIBMICROHTTPD_LIBS=`$PKG_CONFIG --libs "libmicrohttpd" 2>/dev/null`
8418 test "x$?" != "x0" && pkg_failed=yes
8428 if test $pkg_failed = yes; then
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8430 $as_echo "no" >&6; }
8432 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8433 _pkg_short_errors_supported=yes
8435 _pkg_short_errors_supported=no
8437 if test $_pkg_short_errors_supported = yes; then
8438 LIBMICROHTTPD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libmicrohttpd" 2>&1`
8440 LIBMICROHTTPD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libmicrohttpd" 2>&1`
8442 # Put the nasty error message in config.log where it belongs
8443 echo "$LIBMICROHTTPD_PKG_ERRORS" >&5
8445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"libmicrohttpd not present" >&5
8446 $as_echo "$as_me: WARNING: \"libmicrohttpd not present" >&2;}
8447 elif test $pkg_failed = untried; then
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8449 $as_echo "no" >&6; }
8450 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"libmicrohttpd not present" >&5
8451 $as_echo "$as_me: WARNING: \"libmicrohttpd not present" >&2;}
8453 LIBMICROHTTPD_CFLAGS=$pkg_cv_LIBMICROHTTPD_CFLAGS
8454 LIBMICROHTTPD_LIBS=$pkg_cv_LIBMICROHTTPD_LIBS
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8456 $as_echo "yes" >&6; }
8458 $as_echo "#define HAVE_LIBMICROHTTPD 1" >>confdefs.h
8461 if test -n "$LIBMICROHTTPD_LIBS"; then
8463 LIBMICROHTTPD_FALSE='#'
8465 LIBMICROHTTPD_TRUE='#'
8466 LIBMICROHTTPD_FALSE=
8475 # Check whether --with-gtop was given.
8476 if test "${with_gtop+set}" = set; then :
8487 if test "$with_gtop" = "yes"; then
8490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTOP" >&5
8491 $as_echo_n "checking for GTOP... " >&6; }
8493 if test -n "$GTOP_CFLAGS"; then
8494 pkg_cv_GTOP_CFLAGS="$GTOP_CFLAGS"
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_CFLAGS=`$PKG_CONFIG --cflags "libgtop-2.0" 2>/dev/null`
8503 test "x$?" != "x0" && pkg_failed=yes
8510 if test -n "$GTOP_LIBS"; then
8511 pkg_cv_GTOP_LIBS="$GTOP_LIBS"
8512 elif test -n "$PKG_CONFIG"; then
8513 if test -n "$PKG_CONFIG" && \
8514 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgtop-2.0\""; } >&5
8515 ($PKG_CONFIG --exists --print-errors "libgtop-2.0") 2>&5
8517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8518 test $ac_status = 0; }; then
8519 pkg_cv_GTOP_LIBS=`$PKG_CONFIG --libs "libgtop-2.0" 2>/dev/null`
8520 test "x$?" != "x0" && pkg_failed=yes
8530 if test $pkg_failed = yes; then
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8532 $as_echo "no" >&6; }
8534 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8535 _pkg_short_errors_supported=yes
8537 _pkg_short_errors_supported=no
8539 if test $_pkg_short_errors_supported = yes; then
8540 GTOP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libgtop-2.0" 2>&1`
8542 GTOP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libgtop-2.0" 2>&1`
8544 # Put the nasty error message in config.log where it belongs
8545 echo "$GTOP_PKG_ERRORS" >&5
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"gtop not present" >&5
8548 $as_echo "$as_me: WARNING: \"gtop not present" >&2;}
8549 elif test $pkg_failed = untried; then
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8551 $as_echo "no" >&6; }
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"gtop not present" >&5
8553 $as_echo "$as_me: WARNING: \"gtop not present" >&2;}
8555 GTOP_CFLAGS=$pkg_cv_GTOP_CFLAGS
8556 GTOP_LIBS=$pkg_cv_GTOP_LIBS
8557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8558 $as_echo "yes" >&6; }
8560 $as_echo "#define HAVE_GTOP 1" >>confdefs.h
8564 if test -n "$GTOP_LIBS"; then
8575 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"
8578 for ac_prog in help2man
8580 # Extract the first word of "$ac_prog", so it can be a program name with args.
8581 set dummy $ac_prog; ac_word=$2
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8583 $as_echo_n "checking for $ac_word... " >&6; }
8584 if ${ac_cv_prog_HELP2MAN+:} false; then :
8585 $as_echo_n "(cached) " >&6
8587 if test -n "$HELP2MAN"; then
8588 ac_cv_prog_HELP2MAN="$HELP2MAN" # Let the user override the test.
8590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8594 test -z "$as_dir" && as_dir=.
8595 for ac_exec_ext in '' $ac_executable_extensions; do
8596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8597 ac_cv_prog_HELP2MAN="$ac_prog"
8598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8607 HELP2MAN=$ac_cv_prog_HELP2MAN
8608 if test -n "$HELP2MAN"; then
8609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HELP2MAN" >&5
8610 $as_echo "$HELP2MAN" >&6; }
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8613 $as_echo "no" >&6; }
8617 test -n "$HELP2MAN" && break
8621 cat >confcache <<\_ACEOF
8622 # This file is a shell script that caches the results of configure
8623 # tests run on this system so they can be shared between configure
8624 # scripts and configure runs, see configure's option --config-cache.
8625 # It is not useful on other systems. If it contains results you don't
8626 # want to keep, you may remove or edit it.
8628 # config.status only pays attention to the cache file if you give it
8629 # the --recheck option to rerun configure.
8631 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8632 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8637 # The following way of writing the cache mishandles newlines in values,
8638 # but we know of no workaround that is simple, portable, and efficient.
8639 # So, we kill variables containing newlines.
8640 # Ultrix sh set writes to stderr and can't be redirected directly,
8641 # and sets the high bit in the cache file unless we assign to the vars.
8643 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8644 eval ac_val=\$$ac_var
8648 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8649 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8652 _ | IFS | as_nl) ;; #(
8653 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8654 *) { eval $ac_var=; unset $ac_var;} ;;
8660 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8661 *${as_nl}ac_space=\ *)
8662 # `set' does not quote correctly, so add quotes: double-quote
8663 # substitution turns \\\\ into \\, and sed turns \\ into \.
8666 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8669 # `set' quotes correctly as required by POSIX, so do not add quotes.
8670 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8679 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8681 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8683 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8684 if test -w "$cache_file"; then
8685 if test "x$cache_file" != "x/dev/null"; then
8686 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8687 $as_echo "$as_me: updating cache $cache_file" >&6;}
8688 if test ! -f "$cache_file" || test -h "$cache_file"; then
8689 cat confcache >"$cache_file"
8691 case $cache_file in #(
8693 mv -f confcache "$cache_file"$$ &&
8694 mv -f "$cache_file"$$ "$cache_file" ;; #(
8696 mv -f confcache "$cache_file" ;;
8701 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8702 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8707 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8708 # Let make expand exec_prefix.
8709 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8711 DEFS=-DHAVE_CONFIG_H
8716 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8717 # 1. Remove the extension, and $U if already installed.
8718 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8719 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
8720 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8721 # will be set to the directory where LIBOBJS objects are built.
8722 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8723 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
8727 LTLIBOBJS=$ac_ltlibobjs
8730 if test -n "$EXEEXT"; then
8732 am__EXEEXT_FALSE='#'
8738 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
8739 as_fn_error $? "conditional \"AMDEP\" was never defined.
8740 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8742 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8743 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
8744 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8746 if test -z "${GTK_TRUE}" && test -z "${GTK_FALSE}"; then
8747 as_fn_error $? "conditional \"GTK\" was never defined.
8748 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8750 if test -z "${GTK_TRUE}" && test -z "${GTK_FALSE}"; then
8751 as_fn_error $? "conditional \"GTK\" was never defined.
8752 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8754 if test -z "${LIBNOTIFY_TRUE}" && test -z "${LIBNOTIFY_FALSE}"; then
8755 as_fn_error $? "conditional \"LIBNOTIFY\" was never defined.
8756 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8758 if test -z "${APPINDICATOR_TRUE}" && test -z "${APPINDICATOR_FALSE}"; then
8759 as_fn_error $? "conditional \"APPINDICATOR\" was never defined.
8760 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8762 if test -z "${CURL_TRUE}" && test -z "${CURL_FALSE}"; then
8763 as_fn_error $? "conditional \"CURL\" was never defined.
8764 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8766 if test -z "${JSON_TRUE}" && test -z "${JSON_FALSE}"; then
8767 as_fn_error $? "conditional \"JSON\" was never defined.
8768 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8770 if test -z "${NVIDIA_TRUE}" && test -z "${NVIDIA_FALSE}"; then
8771 as_fn_error $? "conditional \"NVIDIA\" was never defined.
8772 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8774 if test -z "${UNITY_TRUE}" && test -z "${UNITY_FALSE}"; then
8775 as_fn_error $? "conditional \"UNITY\" was never defined.
8776 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8778 if test -z "${LIBATIADL_TRUE}" && test -z "${LIBATIADL_FALSE}"; then
8779 as_fn_error $? "conditional \"LIBATIADL\" was never defined.
8780 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8782 if test -z "${LIBMICROHTTPD_TRUE}" && test -z "${LIBMICROHTTPD_FALSE}"; then
8783 as_fn_error $? "conditional \"LIBMICROHTTPD\" was never defined.
8784 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8786 if test -z "${GTOP_TRUE}" && test -z "${GTOP_FALSE}"; then
8787 as_fn_error $? "conditional \"GTOP\" was never defined.
8788 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8791 : "${CONFIG_STATUS=./config.status}"
8793 ac_clean_files_save=$ac_clean_files
8794 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8795 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8796 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8798 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8800 # Generated by $as_me.
8801 # Run this file to recreate the current configuration.
8802 # Compiler output produced by configure, useful for debugging
8803 # configure, is in config.log if it exists.
8809 SHELL=\${CONFIG_SHELL-$SHELL}
8812 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
8813 ## -------------------- ##
8814 ## M4sh Initialization. ##
8815 ## -------------------- ##
8817 # Be more Bourne compatible
8818 DUALCASE=1; export DUALCASE # for MKS sh
8819 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
8822 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8823 # is contrary to our usage. Disable this feature.
8824 alias -g '${1+"$@"}'='"$@"'
8825 setopt NO_GLOB_SUBST
8827 case `(set -o) 2>/dev/null` in #(
8839 # Printing a long string crashes Solaris 7 /usr/bin/printf.
8840 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8841 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8842 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8843 # Prefer a ksh shell builtin over an external printf program on Solaris,
8844 # but without wasting forks for bash or zsh.
8845 if test -z "$BASH_VERSION$ZSH_VERSION" \
8846 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
8847 as_echo='print -r --'
8848 as_echo_n='print -rn --'
8849 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8850 as_echo='printf %s\n'
8851 as_echo_n='printf %s'
8853 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8854 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
8855 as_echo_n='/usr/ucb/echo -n'
8857 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8858 as_echo_n_body='eval
8862 expr "X$arg" : "X\\(.*\\)$as_nl";
8863 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8865 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
8867 export as_echo_n_body
8868 as_echo_n='sh -c $as_echo_n_body as_echo'
8871 as_echo='sh -c $as_echo_body as_echo'
8874 # The user is always right.
8875 if test "${PATH_SEPARATOR+set}" != set; then
8877 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8878 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8885 # We need space, tab and new line, in precisely that order. Quoting is
8886 # there to prevent editors from complaining about space-tab.
8887 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8888 # splitting by setting IFS to empty value.)
8891 # Find who we are. Look in the path if we contain no directory separator.
8894 *[\\/]* ) as_myself=$0 ;;
8895 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8899 test -z "$as_dir" && as_dir=.
8900 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8906 # We did not find ourselves, most probably we were run as `sh COMMAND'
8907 # in which case we are not to be found in the path.
8908 if test "x$as_myself" = x; then
8911 if test ! -f "$as_myself"; then
8912 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8916 # Unset variables that we do not need and which cause bugs (e.g. in
8917 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
8918 # suppresses any "Segmentation fault" message there. '((' could
8919 # trigger a bug in pdksh 5.2.14.
8920 for as_var in BASH_ENV ENV MAIL MAILPATH
8921 do eval test x\${$as_var+set} = xset \
8922 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8935 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8938 # as_fn_error STATUS ERROR [LINENO LOG_FD]
8939 # ----------------------------------------
8940 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8941 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8942 # script with STATUS, using 1 if that was 0.
8945 as_status=$1; test $as_status -eq 0 && as_status=1
8947 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8948 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
8950 $as_echo "$as_me: error: $2" >&2
8951 as_fn_exit $as_status
8955 # as_fn_set_status STATUS
8956 # -----------------------
8957 # Set $? to STATUS, without forking.
8961 } # as_fn_set_status
8965 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8975 # Portably unset VAR.
8978 { eval $1=; unset $1;}
8980 as_unset=as_fn_unset
8981 # as_fn_append VAR VALUE
8982 # ----------------------
8983 # Append the text in VALUE to the end of the definition contained in VAR. Take
8984 # advantage of any shell optimizations that allow amortized linear growth over
8985 # repeated appends, instead of the typical quadratic growth present in naive
8987 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
8988 eval 'as_fn_append ()
8999 # as_fn_arith ARG...
9000 # ------------------
9001 # Perform arithmetic evaluation on the ARGs, and store the result in the
9002 # global $as_val. Take advantage of shells that can avoid forks. The arguments
9003 # must be portable across $(()) and expr.
9004 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
9005 eval 'as_fn_arith ()
9012 as_val=`expr "$@" || test $? -eq 1`
9017 if expr a : '\(a\)' >/dev/null 2>&1 &&
9018 test "X`expr 00001 : '.*\(...\)'`" = X001; then
9024 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9025 as_basename=basename
9030 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9036 as_me=`$as_basename -- "$0" ||
9037 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9038 X"$0" : 'X\(//\)$' \| \
9039 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9041 sed '/^.*\/\([^/][^/]*\)\/*$/{
9055 # Avoid depending upon Character Ranges.
9056 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9057 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9058 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9059 as_cr_digits='0123456789'
9060 as_cr_alnum=$as_cr_Letters$as_cr_digits
9062 ECHO_C= ECHO_N= ECHO_T=
9063 case `echo -n x` in #(((((
9065 case `echo 'xy\c'` in
9066 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
9068 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
9075 rm -f conf$$ conf$$.exe conf$$.file
9076 if test -d conf$$.dir; then
9077 rm -f conf$$.dir/conf$$.file
9080 mkdir conf$$.dir 2>/dev/null
9082 if (echo >conf$$.file) 2>/dev/null; then
9083 if ln -s conf$$.file conf$$ 2>/dev/null; then
9085 # ... but there are two gotchas:
9086 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9087 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9088 # In both cases, we have to default to `cp -pR'.
9089 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9091 elif ln conf$$.file conf$$ 2>/dev/null; then
9099 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9100 rmdir conf$$.dir 2>/dev/null
9105 # Create "$as_dir" as a directory, including parents if necessary.
9110 -*) as_dir=./$as_dir;;
9112 test -d "$as_dir" || eval $as_mkdir_p || {
9116 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9117 *) as_qdir=$as_dir;;
9119 as_dirs="'$as_qdir' $as_dirs"
9120 as_dir=`$as_dirname -- "$as_dir" ||
9121 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9122 X"$as_dir" : 'X\(//\)[^/]' \| \
9123 X"$as_dir" : 'X\(//\)$' \| \
9124 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9125 $as_echo X"$as_dir" |
9126 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9143 test -d "$as_dir" && break
9145 test -z "$as_dirs" || eval "mkdir $as_dirs"
9146 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
9150 if mkdir -p . 2>/dev/null; then
9151 as_mkdir_p='mkdir -p "$as_dir"'
9153 test -d ./-p && rmdir ./-p
9158 # as_fn_executable_p FILE
9159 # -----------------------
9160 # Test if FILE is an executable regular file.
9161 as_fn_executable_p ()
9163 test -f "$1" && test -x "$1"
9164 } # as_fn_executable_p
9166 as_executable_p=as_fn_executable_p
9168 # Sed expression to map a string onto a valid CPP name.
9169 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9171 # Sed expression to map a string onto a valid variable name.
9172 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9176 ## ----------------------------------- ##
9177 ## Main body of $CONFIG_STATUS script. ##
9178 ## ----------------------------------- ##
9180 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
9182 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9183 # Save the log message, to keep $0 and so on meaningful, and to
9184 # report actual input values of CONFIG_FILES etc. instead of their
9185 # values after options handling.
9187 This file was extended by psensor $as_me 0.6.2.x, which was
9188 generated by GNU Autoconf 2.69. Invocation command line was
9190 CONFIG_FILES = $CONFIG_FILES
9191 CONFIG_HEADERS = $CONFIG_HEADERS
9192 CONFIG_LINKS = $CONFIG_LINKS
9193 CONFIG_COMMANDS = $CONFIG_COMMANDS
9196 on `(hostname || uname -n) 2>/dev/null | sed 1q`
9201 case $ac_config_files in *"
9202 "*) set x $ac_config_files; shift; ac_config_files=$*;;
9205 case $ac_config_headers in *"
9206 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
9210 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9211 # Files that config.status was made for.
9212 config_files="$ac_config_files"
9213 config_headers="$ac_config_headers"
9214 config_commands="$ac_config_commands"
9218 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9220 \`$as_me' instantiates files and other configuration actions
9221 from templates according to the current configuration. Unless the files
9222 and actions are specified as TAGs, all are instantiated by default.
9224 Usage: $0 [OPTION]... [TAG]...
9226 -h, --help print this help, then exit
9227 -V, --version print version number and configuration settings, then exit
9228 --config print configuration, then exit
9229 -q, --quiet, --silent
9230 do not print progress messages
9231 -d, --debug don't remove temporary files
9232 --recheck update $as_me by reconfiguring in the same conditions
9233 --file=FILE[:TEMPLATE]
9234 instantiate the configuration file FILE
9235 --header=FILE[:TEMPLATE]
9236 instantiate the configuration header FILE
9238 Configuration files:
9241 Configuration headers:
9244 Configuration commands:
9247 Report bugs to <jeanfi@gmail.com>.
9248 psensor home page: <http://wpitchoune.net/psensor>."
9251 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9252 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
9254 psensor config.status 0.6.2.x
9255 configured by $0, generated by GNU Autoconf 2.69,
9256 with options \\"\$ac_cs_config\\"
9258 Copyright (C) 2012 Free Software Foundation, Inc.
9259 This config.status script is free software; the Free Software Foundation
9260 gives unlimited permission to copy, distribute and modify it."
9267 test -n "\$AWK" || AWK=awk
9270 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9271 # The default lists apply if the user does not specify any file.
9277 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9278 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9282 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9294 # Handling of the options.
9295 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9297 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9298 $as_echo "$ac_cs_version"; exit ;;
9299 --config | --confi | --conf | --con | --co | --c )
9300 $as_echo "$ac_cs_config"; exit ;;
9301 --debug | --debu | --deb | --de | --d | -d )
9303 --file | --fil | --fi | --f )
9306 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9307 '') as_fn_error $? "missing file argument" ;;
9309 as_fn_append CONFIG_FILES " '$ac_optarg'"
9310 ac_need_defaults=false;;
9311 --header | --heade | --head | --hea )
9314 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9316 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
9317 ac_need_defaults=false;;
9319 # Conflict between --help and --header
9320 as_fn_error $? "ambiguous option: \`$1'
9321 Try \`$0 --help' for more information.";;
9322 --help | --hel | -h )
9323 $as_echo "$ac_cs_usage"; exit ;;
9324 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9325 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9329 -*) as_fn_error $? "unrecognized option: \`$1'
9330 Try \`$0 --help' for more information." ;;
9332 *) as_fn_append ac_config_targets " $1"
9333 ac_need_defaults=false ;;
9339 ac_configure_extra_args=
9341 if $ac_cs_silent; then
9343 ac_configure_extra_args="$ac_configure_extra_args --silent"
9347 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9348 if \$ac_cs_recheck; then
9349 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9351 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
9352 CONFIG_SHELL='$SHELL'
9358 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9362 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9363 ## Running $as_me. ##
9369 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9373 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9374 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
9375 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
9376 # from automake < 1.5.
9377 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
9378 # Capture the value of LINGUAS because we need it to compute CATALOGS.
9379 LINGUAS="${LINGUAS-%UNSET%}"
9384 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9386 # Handling of arguments.
9387 for ac_config_target in $ac_config_targets
9389 case $ac_config_target in
9390 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
9391 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9392 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
9393 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9394 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
9395 "src/glade/Makefile") CONFIG_FILES="$CONFIG_FILES src/glade/Makefile" ;;
9396 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
9397 "src/server/Makefile") CONFIG_FILES="$CONFIG_FILES src/server/Makefile" ;;
9398 "icons/hicolor/scalable/Makefile") CONFIG_FILES="$CONFIG_FILES icons/hicolor/scalable/Makefile" ;;
9399 "icons/hicolor/14x14/Makefile") CONFIG_FILES="$CONFIG_FILES icons/hicolor/14x14/Makefile" ;;
9400 "icons/hicolor/16x16/Makefile") CONFIG_FILES="$CONFIG_FILES icons/hicolor/16x16/Makefile" ;;
9401 "icons/hicolor/22x22/Makefile") CONFIG_FILES="$CONFIG_FILES icons/hicolor/22x22/Makefile" ;;
9402 "icons/hicolor/24x24/Makefile") CONFIG_FILES="$CONFIG_FILES icons/hicolor/24x24/Makefile" ;;
9403 "icons/hicolor/32x32/Makefile") CONFIG_FILES="$CONFIG_FILES icons/hicolor/32x32/Makefile" ;;
9404 "icons/hicolor/48x48/Makefile") CONFIG_FILES="$CONFIG_FILES icons/hicolor/48x48/Makefile" ;;
9405 "icons/hicolor/64x64/Makefile") CONFIG_FILES="$CONFIG_FILES icons/hicolor/64x64/Makefile" ;;
9406 "icons/ubuntu-mono-dark/status/22/Makefile") CONFIG_FILES="$CONFIG_FILES icons/ubuntu-mono-dark/status/22/Makefile" ;;
9407 "icons/ubuntu-mono-light/status/22/Makefile") CONFIG_FILES="$CONFIG_FILES icons/ubuntu-mono-light/status/22/Makefile" ;;
9408 "icons/ubuntu-mono-dark/apps/22/Makefile") CONFIG_FILES="$CONFIG_FILES icons/ubuntu-mono-dark/apps/22/Makefile" ;;
9409 "www/Makefile") CONFIG_FILES="$CONFIG_FILES www/Makefile" ;;
9410 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
9411 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
9413 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
9418 # If the user did not use the arguments to specify the items to instantiate,
9419 # then the envvar interface is used. Set only those that are not.
9420 # We use the long form for the default assignment because of an extremely
9421 # bizarre bug on SunOS 4.1.3.
9422 if $ac_need_defaults; then
9423 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9424 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9425 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9428 # Have a temporary directory for convenience. Make it in the build tree
9429 # simply because there is no reason against having it here, and in addition,
9430 # creating and moving files from /tmp can sometimes cause problems.
9431 # Hook for its removal unless debugging.
9432 # Note that there is a small window in which the directory will not be cleaned:
9433 # after its creation but before its name has been assigned to `$tmp'.
9437 trap 'exit_status=$?
9439 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
9441 trap 'as_fn_exit 1' 1 2 13 15
9443 # Create a (secure) tmp directory for tmp files.
9446 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9450 tmp=./conf$$-$RANDOM
9451 (umask 077 && mkdir "$tmp")
9452 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
9455 # Set up the scripts for CONFIG_FILES section.
9456 # No need to generate them if there are no CONFIG_FILES.
9457 # This happens for instance with `./config.status config.h'.
9458 if test -n "$CONFIG_FILES"; then
9461 ac_cr=`echo X | tr X '\015'`
9462 # On cygwin, bash can eat \r inside `` if the user requested igncr.
9463 # But we know of no other shell where ac_cr would be empty at this
9464 # point, so we can use a bashism as a fallback.
9465 if test "x$ac_cr" = x; then
9466 eval ac_cr=\$\'\\r\'
9468 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
9469 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
9475 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
9480 echo "cat >conf$$subs.awk <<_ACEOF" &&
9481 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
9484 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9485 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
9487 for ac_last_try in false false false false false :; do
9488 . ./conf$$subs.sh ||
9489 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9491 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
9492 if test $ac_delim_n = $ac_delim_num; then
9494 elif $ac_last_try; then
9495 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9497 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9502 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9503 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
9507 s/^/S["/; s/!.*/"]=/
9517 s/\(.\{148\}\)..*/\1/
9519 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
9524 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9531 s/\(.\{148\}\)..*/\1/
9533 s/["\\]/\\&/g; s/^/"/; s/$/"/
9537 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9542 ' <conf$$subs.awk | sed '
9547 ' >>$CONFIG_STATUS || ac_write_fail=1
9548 rm -f conf$$subs.awk
9549 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9551 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
9552 for (key in S) S_is_set[key] = 1
9558 nfields = split(line, field, "@")
9560 len = length(field[1])
9561 for (i = 2; i < nfields; i++) {
9563 keylen = length(key)
9564 if (S_is_set[key]) {
9566 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
9567 len += length(value) + length(field[++i])
9578 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9579 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9580 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
9583 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
9584 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
9587 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
9588 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
9589 # trailing colons and then remove the whole line if VPATH becomes empty
9590 # (actually we leave an empty line to preserve line numbers).
9591 if test "x$srcdir" = x.; then
9592 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
9610 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9611 fi # test -n "$CONFIG_FILES"
9613 # Set up the scripts for CONFIG_HEADERS section.
9614 # No need to generate them if there are no CONFIG_HEADERS.
9615 # This happens for instance with `./config.status Makefile'.
9616 if test -n "$CONFIG_HEADERS"; then
9617 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
9621 # Transform confdefs.h into an awk script `defines.awk', embedded as
9622 # here-document in config.status, that substitutes the proper values into
9623 # config.h.in to produce config.h.
9625 # Create a delimiter string that does not exist in confdefs.h, to ease
9626 # handling of long lines.
9628 for ac_last_try in false false :; do
9629 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
9630 if test -z "$ac_tt"; then
9632 elif $ac_last_try; then
9633 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
9635 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9639 # For the awk script, D is an array of macro values keyed by name,
9640 # likewise P contains macro parameters if any. Preserve backslash
9641 # newline sequences.
9643 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9645 s/.\{148\}/&'"$ac_delim"'/g
9648 s/^[ ]*#[ ]*define[ ][ ]*/ /
9655 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9657 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
9661 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9662 D["\1"]=" \3\\\\\\n"\\/p
9664 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
9669 s/.\{148\}/&'"$ac_delim"'/g
9674 s/["\\]/\\&/g; s/^/"/; s/$/"/p
9677 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
9679 ' <confdefs.h | sed '
9680 s/'"$ac_delim"'/"\\\
9681 "/g' >>$CONFIG_STATUS || ac_write_fail=1
9683 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9684 for (key in D) D_is_set[key] = 1
9687 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
9689 split(line, arg, " ")
9690 if (arg[1] == "#") {
9694 defundef = substr(arg[1], 2)
9697 split(mac1, mac2, "(") #)
9699 prefix = substr(line, 1, index(line, defundef) - 1)
9700 if (D_is_set[macro]) {
9701 # Preserve the white space surrounding the "#".
9702 print prefix "define", macro P[macro] D[macro]
9705 # Replace #undef with comments. This is necessary, for example,
9706 # in the case of _POSIX_SOURCE, which is predefined and required
9707 # on some systems where configure will not decide to define it.
9708 if (defundef == "undef") {
9709 print "/*", prefix defundef, macro, "*/"
9717 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9718 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
9719 fi # test -n "$CONFIG_HEADERS"
9722 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
9727 :[FHLC]) ac_mode=$ac_tag; continue;;
9729 case $ac_mode$ac_tag in
9731 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
9732 :[FH]-) ac_tag=-:-;;
9733 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9750 -) ac_f="$ac_tmp/stdin";;
9751 *) # Look for the file first in the build tree, then in the source tree
9752 # (if the path is not absolute). The absolute path cannot be DOS-style,
9753 # because $ac_f cannot contain `:'.
9757 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9759 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
9761 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9762 as_fn_append ac_file_inputs " '$ac_f'"
9765 # Let's still pretend it is `configure' which instantiates (i.e., don't
9766 # use $as_me), people would be surprised to read:
9767 # /* config.h. Generated by config.status. */
9768 configure_input='Generated from '`
9769 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9771 if test x"$ac_file" != x-; then
9772 configure_input="$ac_file. $configure_input"
9773 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
9774 $as_echo "$as_me: creating $ac_file" >&6;}
9776 # Neutralize special characters interpreted by sed in replacement strings.
9777 case $configure_input in #(
9778 *\&* | *\|* | *\\* )
9779 ac_sed_conf_input=`$as_echo "$configure_input" |
9780 sed 's/[\\\\&|]/\\\\&/g'`;; #(
9781 *) ac_sed_conf_input=$configure_input;;
9785 *:-:* | *:-) cat >"$ac_tmp/stdin" \
9786 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
9791 ac_dir=`$as_dirname -- "$ac_file" ||
9792 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9793 X"$ac_file" : 'X\(//\)[^/]' \| \
9794 X"$ac_file" : 'X\(//\)$' \| \
9795 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9796 $as_echo X"$ac_file" |
9797 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9814 as_dir="$ac_dir"; as_fn_mkdir_p
9818 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9820 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9821 # A ".." for each directory in $ac_dir_suffix.
9822 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9823 case $ac_top_builddir_sub in
9824 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9825 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9828 ac_abs_top_builddir=$ac_pwd
9829 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9830 # for backward compatibility:
9831 ac_top_builddir=$ac_top_build_prefix
9834 .) # We are building in place.
9836 ac_top_srcdir=$ac_top_builddir_sub
9837 ac_abs_top_srcdir=$ac_pwd ;;
9838 [\\/]* | ?:[\\/]* ) # Absolute name.
9839 ac_srcdir=$srcdir$ac_dir_suffix;
9840 ac_top_srcdir=$srcdir
9841 ac_abs_top_srcdir=$srcdir ;;
9843 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9844 ac_top_srcdir=$ac_top_build_prefix$srcdir
9845 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9847 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9857 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9858 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
9862 [\\/$]* | ?:[\\/]* ) ;;
9863 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
9867 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9868 # If the template does not know about datarootdir, expand it.
9869 # FIXME: This hack should be removed a few years after 2.60.
9870 ac_datarootdir_hack=; ac_datarootdir_seen=
9881 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9882 *datarootdir*) ac_datarootdir_seen=yes;;
9883 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9885 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9887 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9888 ac_datarootdir_hack='
9889 s&@datadir@&$datadir&g
9890 s&@docdir@&$docdir&g
9891 s&@infodir@&$infodir&g
9892 s&@localedir@&$localedir&g
9893 s&@mandir@&$mandir&g
9894 s&\\\${datarootdir}&$datarootdir&g' ;;
9898 # Neutralize VPATH when `$srcdir' = `.'.
9899 # Shell code in configure.ac might set extrasub.
9900 # FIXME: do we really want to maintain this feature?
9901 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9902 ac_sed_extra="$ac_vpsub
9905 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9907 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9908 s|@configure_input@|$ac_sed_conf_input|;t t
9909 s&@top_builddir@&$ac_top_builddir_sub&;t t
9910 s&@top_build_prefix@&$ac_top_build_prefix&;t t
9911 s&@srcdir@&$ac_srcdir&;t t
9912 s&@abs_srcdir@&$ac_abs_srcdir&;t t
9913 s&@top_srcdir@&$ac_top_srcdir&;t t
9914 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9915 s&@builddir@&$ac_builddir&;t t
9916 s&@abs_builddir@&$ac_abs_builddir&;t t
9917 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9918 s&@INSTALL@&$ac_INSTALL&;t t
9919 s&@MKDIR_P@&$ac_MKDIR_P&;t t
9920 $ac_datarootdir_hack
9922 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
9923 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9925 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9926 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
9927 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
9928 "$ac_tmp/out"`; test -z "$ac_out"; } &&
9929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9930 which seems to be undefined. Please make sure it is defined" >&5
9931 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9932 which seems to be undefined. Please make sure it is defined" >&2;}
9934 rm -f "$ac_tmp/stdin"
9936 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
9937 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
9939 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9945 if test x"$ac_file" != x-; then
9947 $as_echo "/* $configure_input */" \
9948 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
9949 } >"$ac_tmp/config.h" \
9950 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9951 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
9952 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
9953 $as_echo "$as_me: $ac_file is unchanged" >&6;}
9956 mv "$ac_tmp/config.h" "$ac_file" \
9957 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9960 $as_echo "/* $configure_input */" \
9961 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
9962 || as_fn_error $? "could not create -" "$LINENO" 5
9964 # Compute "$ac_file"'s index in $config_headers.
9967 for _am_header in $config_headers :; do
9969 $_am_arg | $_am_arg:* )
9972 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
9975 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
9976 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9977 X"$_am_arg" : 'X\(//\)[^/]' \| \
9978 X"$_am_arg" : 'X\(//\)$' \| \
9979 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
9980 $as_echo X"$_am_arg" |
9981 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9997 s/.*/./; q'`/stamp-h$_am_stamp_count
10000 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
10001 $as_echo "$as_me: executing $ac_file commands" >&6;}
10006 case $ac_file$ac_mode in
10007 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
10008 # Autoconf 2.62 quotes --file arguments for eval, but not when files
10009 # are listed without --file. Let's play safe and only enable the eval
10010 # if we detect the quoting.
10011 case $CONFIG_FILES in
10012 *\'*) eval set x "$CONFIG_FILES" ;;
10013 *) set x $CONFIG_FILES ;;
10018 # Strip MF so we end up with the name of the file.
10019 mf=`echo "$mf" | sed -e 's/:.*$//'`
10020 # Check whether this is an Automake generated Makefile or not.
10021 # We used to match only the files named `Makefile.in', but
10022 # some people rename them; so instead we look at the file content.
10023 # Grep'ing the first line is not enough: some people post-process
10024 # each Makefile.in and add a new line on top of each file to say so.
10025 # Grep'ing the whole file is not good either: AIX grep has a line
10026 # limit of 2048, but all sed's we know have understand at least 4000.
10027 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
10028 dirpart=`$as_dirname -- "$mf" ||
10029 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10030 X"$mf" : 'X\(//\)[^/]' \| \
10031 X"$mf" : 'X\(//\)$' \| \
10032 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
10034 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10038 /^X\(\/\/\)[^/].*/{
10054 # Extract the definition of DEPDIR, am__include, and am__quote
10055 # from the Makefile without running `make'.
10056 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
10057 test -z "$DEPDIR" && continue
10058 am__include=`sed -n 's/^am__include = //p' < "$mf"`
10059 test -z "am__include" && continue
10060 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
10061 # When using ansi2knr, U may be empty or an underscore; expand it
10062 U=`sed -n 's/^U = //p' < "$mf"`
10063 # Find all dependency output files, they are included files with
10064 # $(DEPDIR) in their names. We invoke sed twice because it is the
10065 # simplest approach to changing $(DEPDIR) to its actual value in the
10067 for file in `sed -n "
10068 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
10069 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10070 # Make sure the directory exists.
10071 test -f "$dirpart/$file" && continue
10072 fdir=`$as_dirname -- "$file" ||
10073 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10074 X"$file" : 'X\(//\)[^/]' \| \
10075 X"$file" : 'X\(//\)$' \| \
10076 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
10077 $as_echo X"$file" |
10078 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10082 /^X\(\/\/\)[^/].*/{
10095 as_dir=$dirpart/$fdir; as_fn_mkdir_p
10096 # echo "creating $dirpart/$file"
10097 echo '# dummy' > "$dirpart/$file"
10102 "po-directories":C)
10103 for ac_file in $CONFIG_FILES; do
10104 # Support "outfile[:infile[:infile...]]"
10106 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10108 # PO directories have a Makefile.in generated from Makefile.in.in.
10109 case "$ac_file" in */Makefile.in)
10110 # Adjust a relative srcdir.
10111 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
10112 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
10113 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
10114 # In autoconf-2.13 it is called $ac_given_srcdir.
10115 # In autoconf-2.50 it is called $srcdir.
10116 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
10117 case "$ac_given_srcdir" in
10118 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
10119 /*) top_srcdir="$ac_given_srcdir" ;;
10120 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
10122 # Treat a directory as a PO directory if and only if it has a
10123 # POTFILES.in file. This allows packages to have multiple PO
10124 # directories under different names or in different locations.
10125 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
10126 rm -f "$ac_dir/POTFILES"
10127 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
10128 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
10129 POMAKEFILEDEPS="POTFILES.in"
10130 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
10131 # on $ac_dir but don't depend on user-specified configuration
10133 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
10134 # The LINGUAS file contains the set of available languages.
10135 if test -n "$OBSOLETE_ALL_LINGUAS"; then
10136 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
10138 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
10139 # Hide the ALL_LINGUAS assigment from automake < 1.5.
10140 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
10141 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
10143 # The set of available languages was given in configure.in.
10144 # Hide the ALL_LINGUAS assigment from automake < 1.5.
10145 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
10148 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
10149 # Compute UPDATEPOFILES
10150 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
10151 # Compute DUMMYPOFILES
10152 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
10154 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
10155 case "$ac_given_srcdir" in
10157 *) srcdirpre='$(srcdir)/' ;;
10163 for lang in $ALL_LINGUAS; do
10164 POFILES="$POFILES $srcdirpre$lang.po"
10165 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
10166 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
10167 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
10169 # CATALOGS depends on both $ac_dir and the user's LINGUAS
10170 # environment variable.
10172 if test -n "$ALL_LINGUAS"; then
10173 for presentlang in $ALL_LINGUAS; do
10175 if test "%UNSET%" != "$LINGUAS"; then
10176 desiredlanguages="$LINGUAS"
10178 desiredlanguages="$ALL_LINGUAS"
10180 for desiredlang in $desiredlanguages; do
10181 # Use the presentlang catalog if desiredlang is
10182 # a. equal to presentlang, or
10183 # b. a variant of presentlang (because in this case,
10184 # presentlang can be used as a fallback for messages
10185 # which are not translated in the desiredlang catalog).
10186 case "$desiredlang" in
10187 "$presentlang"*) useit=yes;;
10190 if test $useit = yes; then
10191 INST_LINGUAS="$INST_LINGUAS $presentlang"
10196 if test -n "$INST_LINGUAS"; then
10197 for lang in $INST_LINGUAS; do
10198 CATALOGS="$CATALOGS $lang.gmo"
10201 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
10202 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"
10203 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
10204 if test -f "$f"; then
10206 *.orig | *.bak | *~) ;;
10207 *) cat "$f" >> "$ac_dir/Makefile" ;;
10222 ac_clean_files=$ac_clean_files_save
10224 test $ac_write_fail = 0 ||
10225 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
10228 # configure is writing to config.log, and then calls config.status.
10229 # config.status does its own redirection, appending to config.log.
10230 # Unfortunately, on DOS this fails, as config.log is still kept open
10231 # by configure, so config.status won't be able to write to it; its
10232 # output is simply discarded. So we exec the FD to /dev/null,
10233 # effectively closing config.log, so it can be properly (re)opened and
10234 # appended to by config.status. When coming back to configure, we
10235 # need to make the FD available again.
10236 if test "$no_create" != yes; then
10238 ac_config_status_args=
10239 test "$silent" = yes &&
10240 ac_config_status_args="$ac_config_status_args --quiet"
10242 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10244 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10245 # would make configure fail if this is the last instruction.
10246 $ac_cs_success || as_fn_exit 1
10248 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10250 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}