2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for psensor 0.8.0.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.8.0.x'
584 PACKAGE_STRING='psensor 0.8.0.x'
585 PACKAGE_BUGREPORT='jeanfi@gmail.com'
586 PACKAGE_URL='http://wpitchoune.net/psensor'
588 ac_unique_file="src/ui.c"
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
688 GCONF_SCHEMAS_INSTALL_FALSE
689 GCONF_SCHEMAS_INSTALL_TRUE
690 GCONF_SCHEMA_FILE_DIR
691 GCONF_SCHEMA_CONFIG_SOURCE
708 XGETTEXT_EXTRA_OPTIONS
716 GETTEXT_MACRO_VERSION
749 INSTALL_STRIP_PROGRAM
791 program_transform_name
804 enable_option_checking
805 enable_dependency_tracking
813 with_gconf_schema_file_dir
814 enable_schemas_install
818 ac_precious_vars='build_alias
857 # Initialize some variables set by options.
859 ac_init_version=false
860 ac_unrecognized_opts=
862 # The variables have the same names as the options, with
863 # dashes changed to underlines.
871 program_transform_name=s,x,x,
879 # Installation directory options.
880 # These are left unexpanded so users can "make install exec_prefix=/foo"
881 # and all the variables that are supposed to be based on exec_prefix
882 # by default will actually change.
883 # Use braces instead of parens because sh, perl, etc. also accept them.
884 # (The list follows the same order as the GNU Coding Standards.)
885 bindir='${exec_prefix}/bin'
886 sbindir='${exec_prefix}/sbin'
887 libexecdir='${exec_prefix}/libexec'
888 datarootdir='${prefix}/share'
889 datadir='${datarootdir}'
890 sysconfdir='${prefix}/etc'
891 sharedstatedir='${prefix}/com'
892 localstatedir='${prefix}/var'
893 includedir='${prefix}/include'
894 oldincludedir='/usr/include'
895 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
896 infodir='${datarootdir}/info'
901 libdir='${exec_prefix}/lib'
902 localedir='${datarootdir}/locale'
903 mandir='${datarootdir}/man'
909 # If the previous option needs an argument, assign it.
910 if test -n "$ac_prev"; then
911 eval $ac_prev=\$ac_option
917 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
922 # Accept the important Cygnus configure options, so we can diagnose typos.
924 case $ac_dashdash$ac_option in
928 -bindir | --bindir | --bindi | --bind | --bin | --bi)
930 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
933 -build | --build | --buil | --bui | --bu)
934 ac_prev=build_alias ;;
935 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
936 build_alias=$ac_optarg ;;
938 -cache-file | --cache-file | --cache-fil | --cache-fi \
939 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
940 ac_prev=cache_file ;;
941 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
942 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
943 cache_file=$ac_optarg ;;
946 cache_file=config.cache ;;
948 -datadir | --datadir | --datadi | --datad)
950 -datadir=* | --datadir=* | --datadi=* | --datad=*)
951 datadir=$ac_optarg ;;
953 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
954 | --dataroo | --dataro | --datar)
955 ac_prev=datarootdir ;;
956 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
957 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
958 datarootdir=$ac_optarg ;;
960 -disable-* | --disable-*)
961 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
962 # Reject names that are not valid shell variable names.
963 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
964 as_fn_error $? "invalid feature name: $ac_useropt"
965 ac_useropt_orig=$ac_useropt
966 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
967 case $ac_user_opts in
971 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
972 ac_unrecognized_sep=', ';;
974 eval enable_$ac_useropt=no ;;
976 -docdir | --docdir | --docdi | --doc | --do)
978 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
981 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
983 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
986 -enable-* | --enable-*)
987 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
988 # Reject names that are not valid shell variable names.
989 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
990 as_fn_error $? "invalid feature name: $ac_useropt"
991 ac_useropt_orig=$ac_useropt
992 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
993 case $ac_user_opts in
997 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
998 ac_unrecognized_sep=', ';;
1000 eval enable_$ac_useropt=\$ac_optarg ;;
1002 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1003 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1004 | --exec | --exe | --ex)
1005 ac_prev=exec_prefix ;;
1006 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1007 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1008 | --exec=* | --exe=* | --ex=*)
1009 exec_prefix=$ac_optarg ;;
1011 -gas | --gas | --ga | --g)
1012 # Obsolete; use --with-gas.
1015 -help | --help | --hel | --he | -h)
1016 ac_init_help=long ;;
1017 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1018 ac_init_help=recursive ;;
1019 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1020 ac_init_help=short ;;
1022 -host | --host | --hos | --ho)
1023 ac_prev=host_alias ;;
1024 -host=* | --host=* | --hos=* | --ho=*)
1025 host_alias=$ac_optarg ;;
1027 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1029 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1031 htmldir=$ac_optarg ;;
1033 -includedir | --includedir | --includedi | --included | --include \
1034 | --includ | --inclu | --incl | --inc)
1035 ac_prev=includedir ;;
1036 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1037 | --includ=* | --inclu=* | --incl=* | --inc=*)
1038 includedir=$ac_optarg ;;
1040 -infodir | --infodir | --infodi | --infod | --info | --inf)
1042 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1043 infodir=$ac_optarg ;;
1045 -libdir | --libdir | --libdi | --libd)
1047 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1048 libdir=$ac_optarg ;;
1050 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1051 | --libexe | --libex | --libe)
1052 ac_prev=libexecdir ;;
1053 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1054 | --libexe=* | --libex=* | --libe=*)
1055 libexecdir=$ac_optarg ;;
1057 -localedir | --localedir | --localedi | --localed | --locale)
1058 ac_prev=localedir ;;
1059 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1060 localedir=$ac_optarg ;;
1062 -localstatedir | --localstatedir | --localstatedi | --localstated \
1063 | --localstate | --localstat | --localsta | --localst | --locals)
1064 ac_prev=localstatedir ;;
1065 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1066 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1067 localstatedir=$ac_optarg ;;
1069 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1071 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1072 mandir=$ac_optarg ;;
1074 -nfp | --nfp | --nf)
1075 # Obsolete; use --without-fp.
1078 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1079 | --no-cr | --no-c | -n)
1082 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1083 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1086 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1087 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1088 | --oldin | --oldi | --old | --ol | --o)
1089 ac_prev=oldincludedir ;;
1090 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1091 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1092 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1093 oldincludedir=$ac_optarg ;;
1095 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1097 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1098 prefix=$ac_optarg ;;
1100 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1101 | --program-pre | --program-pr | --program-p)
1102 ac_prev=program_prefix ;;
1103 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1104 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1105 program_prefix=$ac_optarg ;;
1107 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1108 | --program-suf | --program-su | --program-s)
1109 ac_prev=program_suffix ;;
1110 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1111 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1112 program_suffix=$ac_optarg ;;
1114 -program-transform-name | --program-transform-name \
1115 | --program-transform-nam | --program-transform-na \
1116 | --program-transform-n | --program-transform- \
1117 | --program-transform | --program-transfor \
1118 | --program-transfo | --program-transf \
1119 | --program-trans | --program-tran \
1120 | --progr-tra | --program-tr | --program-t)
1121 ac_prev=program_transform_name ;;
1122 -program-transform-name=* | --program-transform-name=* \
1123 | --program-transform-nam=* | --program-transform-na=* \
1124 | --program-transform-n=* | --program-transform-=* \
1125 | --program-transform=* | --program-transfor=* \
1126 | --program-transfo=* | --program-transf=* \
1127 | --program-trans=* | --program-tran=* \
1128 | --progr-tra=* | --program-tr=* | --program-t=*)
1129 program_transform_name=$ac_optarg ;;
1131 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1133 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1134 pdfdir=$ac_optarg ;;
1136 -psdir | --psdir | --psdi | --psd | --ps)
1138 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1141 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1142 | -silent | --silent | --silen | --sile | --sil)
1145 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1147 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1149 sbindir=$ac_optarg ;;
1151 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1152 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1153 | --sharedst | --shareds | --shared | --share | --shar \
1155 ac_prev=sharedstatedir ;;
1156 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1157 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1158 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1160 sharedstatedir=$ac_optarg ;;
1162 -site | --site | --sit)
1164 -site=* | --site=* | --sit=*)
1167 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1169 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1170 srcdir=$ac_optarg ;;
1172 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1173 | --syscon | --sysco | --sysc | --sys | --sy)
1174 ac_prev=sysconfdir ;;
1175 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1176 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1177 sysconfdir=$ac_optarg ;;
1179 -target | --target | --targe | --targ | --tar | --ta | --t)
1180 ac_prev=target_alias ;;
1181 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1182 target_alias=$ac_optarg ;;
1184 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1187 -version | --version | --versio | --versi | --vers | -V)
1188 ac_init_version=: ;;
1191 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1192 # Reject names that are not valid shell variable names.
1193 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1194 as_fn_error $? "invalid package name: $ac_useropt"
1195 ac_useropt_orig=$ac_useropt
1196 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1197 case $ac_user_opts in
1201 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1202 ac_unrecognized_sep=', ';;
1204 eval with_$ac_useropt=\$ac_optarg ;;
1206 -without-* | --without-*)
1207 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1208 # Reject names that are not valid shell variable names.
1209 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1210 as_fn_error $? "invalid package name: $ac_useropt"
1211 ac_useropt_orig=$ac_useropt
1212 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1213 case $ac_user_opts in
1217 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1218 ac_unrecognized_sep=', ';;
1220 eval with_$ac_useropt=no ;;
1223 # Obsolete; use --with-x.
1226 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1227 | --x-incl | --x-inc | --x-in | --x-i)
1228 ac_prev=x_includes ;;
1229 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1230 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1231 x_includes=$ac_optarg ;;
1233 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1234 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1235 ac_prev=x_libraries ;;
1236 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1237 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1238 x_libraries=$ac_optarg ;;
1240 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1241 Try \`$0 --help' for more information"
1245 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1246 # Reject names that are not valid shell variable names.
1247 case $ac_envvar in #(
1248 '' | [0-9]* | *[!_$as_cr_alnum]* )
1249 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1251 eval $ac_envvar=\$ac_optarg
1252 export $ac_envvar ;;
1255 # FIXME: should be removed in autoconf 3.0.
1256 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1257 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1258 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1259 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1265 if test -n "$ac_prev"; then
1266 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1267 as_fn_error $? "missing argument to $ac_option"
1270 if test -n "$ac_unrecognized_opts"; then
1271 case $enable_option_checking in
1273 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1274 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1278 # Check all directory arguments for consistency.
1279 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1280 datadir sysconfdir sharedstatedir localstatedir includedir \
1281 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1282 libdir localedir mandir
1284 eval ac_val=\$$ac_var
1285 # Remove trailing slashes.
1288 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1289 eval $ac_var=\$ac_val;;
1291 # Be sure to have absolute directory names.
1293 [\\/$]* | ?:[\\/]* ) continue;;
1294 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1296 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1299 # There might be people who depend on the old broken behavior: `$host'
1300 # used to hold the argument of --host etc.
1301 # FIXME: To remove some day.
1304 target=$target_alias
1306 # FIXME: To remove some day.
1307 if test "x$host_alias" != x; then
1308 if test "x$build_alias" = x; then
1309 cross_compiling=maybe
1310 elif test "x$build_alias" != "x$host_alias"; then
1316 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1318 test "$silent" = yes && exec 6>/dev/null
1321 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1322 ac_ls_di=`ls -di .` &&
1323 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1324 as_fn_error $? "working directory cannot be determined"
1325 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1326 as_fn_error $? "pwd does not report name of working directory"
1329 # Find the source files, if location was not specified.
1330 if test -z "$srcdir"; then
1331 ac_srcdir_defaulted=yes
1332 # Try the directory containing this script, then the parent directory.
1333 ac_confdir=`$as_dirname -- "$as_myself" ||
1334 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1335 X"$as_myself" : 'X\(//\)[^/]' \| \
1336 X"$as_myself" : 'X\(//\)$' \| \
1337 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1338 $as_echo X"$as_myself" |
1339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1357 if test ! -r "$srcdir/$ac_unique_file"; then
1361 ac_srcdir_defaulted=no
1363 if test ! -r "$srcdir/$ac_unique_file"; then
1364 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1365 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1367 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1369 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1371 # When building in place, set srcdir=.
1372 if test "$ac_abs_confdir" = "$ac_pwd"; then
1375 # Remove unnecessary trailing slashes from srcdir.
1376 # Double slashes in file names in object file debugging info
1377 # mess up M-x gdb in Emacs.
1379 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1381 for ac_var in $ac_precious_vars; do
1382 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1383 eval ac_env_${ac_var}_value=\$${ac_var}
1384 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1385 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1389 # Report the --help message.
1391 if test "$ac_init_help" = "long"; then
1392 # Omit some internal or obsolete options to make the list less imposing.
1393 # This message is too long to be a string in the A/UX 3.1 sh.
1395 \`configure' configures psensor 0.8.0.x to adapt to many kinds of systems.
1397 Usage: $0 [OPTION]... [VAR=VALUE]...
1399 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1400 VAR=VALUE. See below for descriptions of some of the useful variables.
1402 Defaults for the options are specified in brackets.
1405 -h, --help display this help and exit
1406 --help=short display options specific to this package
1407 --help=recursive display the short help of all the included packages
1408 -V, --version display version information and exit
1409 -q, --quiet, --silent do not print \`checking ...' messages
1410 --cache-file=FILE cache test results in FILE [disabled]
1411 -C, --config-cache alias for \`--cache-file=config.cache'
1412 -n, --no-create do not create output files
1413 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1415 Installation directories:
1416 --prefix=PREFIX install architecture-independent files in PREFIX
1417 [$ac_default_prefix]
1418 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1421 By default, \`make install' will install all the files in
1422 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1423 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1424 for instance \`--prefix=\$HOME'.
1426 For better control, use the options below.
1428 Fine tuning of the installation directories:
1429 --bindir=DIR user executables [EPREFIX/bin]
1430 --sbindir=DIR system admin executables [EPREFIX/sbin]
1431 --libexecdir=DIR program executables [EPREFIX/libexec]
1432 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1433 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1434 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1435 --libdir=DIR object code libraries [EPREFIX/lib]
1436 --includedir=DIR C header files [PREFIX/include]
1437 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1438 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1439 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1440 --infodir=DIR info documentation [DATAROOTDIR/info]
1441 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1442 --mandir=DIR man documentation [DATAROOTDIR/man]
1443 --docdir=DIR documentation root [DATAROOTDIR/doc/psensor]
1444 --htmldir=DIR html documentation [DOCDIR]
1445 --dvidir=DIR dvi documentation [DOCDIR]
1446 --pdfdir=DIR pdf documentation [DOCDIR]
1447 --psdir=DIR ps documentation [DOCDIR]
1453 --program-prefix=PREFIX prepend PREFIX to installed program names
1454 --program-suffix=SUFFIX append SUFFIX to installed program names
1455 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1458 --x-includes=DIR X include files are in DIR
1459 --x-libraries=DIR X library files are in DIR
1462 --build=BUILD configure for building on BUILD [guessed]
1463 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1467 if test -n "$ac_init_help"; then
1468 case $ac_init_help in
1469 short | recursive ) echo "Configuration of psensor 0.8.0.x:";;
1474 --disable-option-checking ignore unrecognized --enable/--with options
1475 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1476 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1477 --disable-dependency-tracking speeds up one-time build
1478 --enable-dependency-tracking do not reject slow dependency extractors
1479 --disable-nls do not use Native Language Support
1480 --disable-rpath do not hardcode runtime library paths
1481 --disable-schemas-install
1482 Disable the schemas installation
1485 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1486 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1487 --with-x use the X Window System
1488 --with-gnu-ld assume the C compiler uses GNU ld default=no
1489 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1490 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1491 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1492 --without-libintl-prefix don't search for libintl in includedir and libdir
1493 --with-gconf-source=sourceaddress
1494 Config database for installing schema files.
1495 --with-gconf-schema-file-dir=dir
1496 Directory for installing schema files.
1497 --with-libatiadl=DIR use libatiadlxx in DIR
1498 --with-gtop=yes|no use gtop
1500 Some influential environment variables:
1501 CC C compiler command
1502 CFLAGS C compiler flags
1503 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1504 nonstandard directory <lib dir>
1505 LIBS libraries to pass to the linker, e.g. -l<library>
1506 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1507 you have headers in a nonstandard directory <include dir>
1508 XMKMF Path to xmkmf, Makefile generator for X Window System
1510 PKG_CONFIG path to pkg-config utility
1512 directories to add to pkg-config's search path
1514 path overriding pkg-config's built-in search path
1515 X11_CFLAGS C compiler flags for X11, overriding pkg-config
1516 X11_LIBS linker flags for X11, overriding pkg-config
1517 XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
1518 XEXT_LIBS linker flags for XEXT, overriding pkg-config
1519 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config
1520 GTK_LIBS linker flags for GTK, overriding pkg-config
1522 C compiler flags for GCONF, overriding pkg-config
1523 GCONF_LIBS linker flags for GCONF, overriding pkg-config
1525 C compiler flags for ATASMART, overriding pkg-config
1527 linker flags for ATASMART, overriding pkg-config
1529 C compiler flags for LIBNOTIFY, overriding pkg-config
1531 linker flags for LIBNOTIFY, overriding pkg-config
1533 C compiler flags for APPINDICATOR, overriding pkg-config
1535 linker flags for APPINDICATOR, overriding pkg-config
1536 CURL_CFLAGS C compiler flags for CURL, overriding pkg-config
1537 CURL_LIBS linker flags for CURL, overriding pkg-config
1538 JSON_CFLAGS C compiler flags for JSON, overriding pkg-config
1539 JSON_LIBS linker flags for JSON, overriding pkg-config
1541 C compiler flags for UNITY, overriding pkg-config
1542 UNITY_LIBS linker flags for UNITY, overriding pkg-config
1543 LIBMICROHTTPD_CFLAGS
1544 C compiler flags for LIBMICROHTTPD, overriding pkg-config
1546 linker flags for LIBMICROHTTPD, overriding pkg-config
1547 GTOP_CFLAGS C compiler flags for GTOP, overriding pkg-config
1548 GTOP_LIBS linker flags for GTOP, overriding pkg-config
1550 Use these variables to override the choices made by `configure' or to help
1551 it to find libraries and programs with nonstandard names/locations.
1553 Report bugs to <jeanfi@gmail.com>.
1554 psensor home page: <http://wpitchoune.net/psensor>.
1559 if test "$ac_init_help" = "recursive"; then
1560 # If there are subdirs, report their specific --help.
1561 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1562 test -d "$ac_dir" ||
1563 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1568 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1570 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1571 # A ".." for each directory in $ac_dir_suffix.
1572 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1573 case $ac_top_builddir_sub in
1574 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1575 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1578 ac_abs_top_builddir=$ac_pwd
1579 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1580 # for backward compatibility:
1581 ac_top_builddir=$ac_top_build_prefix
1584 .) # We are building in place.
1586 ac_top_srcdir=$ac_top_builddir_sub
1587 ac_abs_top_srcdir=$ac_pwd ;;
1588 [\\/]* | ?:[\\/]* ) # Absolute name.
1589 ac_srcdir=$srcdir$ac_dir_suffix;
1590 ac_top_srcdir=$srcdir
1591 ac_abs_top_srcdir=$srcdir ;;
1593 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1594 ac_top_srcdir=$ac_top_build_prefix$srcdir
1595 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1597 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1599 cd "$ac_dir" || { ac_status=$?; continue; }
1600 # Check for guested configure.
1601 if test -f "$ac_srcdir/configure.gnu"; then
1603 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1604 elif test -f "$ac_srcdir/configure"; then
1606 $SHELL "$ac_srcdir/configure" --help=recursive
1608 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1610 cd "$ac_pwd" || { ac_status=$?; break; }
1614 test -n "$ac_init_help" && exit $ac_status
1615 if $ac_init_version; then
1617 psensor configure 0.8.0.x
1618 generated by GNU Autoconf 2.69
1620 Copyright (C) 2012 Free Software Foundation, Inc.
1621 This configure script is free software; the Free Software Foundation
1622 gives unlimited permission to copy, distribute and modify it.
1627 ## ------------------------ ##
1628 ## Autoconf initialization. ##
1629 ## ------------------------ ##
1631 # ac_fn_c_try_compile LINENO
1632 # --------------------------
1633 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1634 ac_fn_c_try_compile ()
1636 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1637 rm -f conftest.$ac_objext
1638 if { { ac_try="$ac_compile"
1640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1641 *) ac_try_echo=$ac_try;;
1643 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1644 $as_echo "$ac_try_echo"; } >&5
1645 (eval "$ac_compile") 2>conftest.err
1647 if test -s conftest.err; then
1648 grep -v '^ *+' conftest.err >conftest.er1
1649 cat conftest.er1 >&5
1650 mv -f conftest.er1 conftest.err
1652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1653 test $ac_status = 0; } && {
1654 test -z "$ac_c_werror_flag" ||
1655 test ! -s conftest.err
1656 } && test -s conftest.$ac_objext; then :
1659 $as_echo "$as_me: failed program was:" >&5
1660 sed 's/^/| /' conftest.$ac_ext >&5
1664 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1665 as_fn_set_status $ac_retval
1667 } # ac_fn_c_try_compile
1669 # ac_fn_c_try_cpp LINENO
1670 # ----------------------
1671 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1674 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1675 if { { ac_try="$ac_cpp conftest.$ac_ext"
1677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1678 *) ac_try_echo=$ac_try;;
1680 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1681 $as_echo "$ac_try_echo"; } >&5
1682 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1684 if test -s conftest.err; then
1685 grep -v '^ *+' conftest.err >conftest.er1
1686 cat conftest.er1 >&5
1687 mv -f conftest.er1 conftest.err
1689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1690 test $ac_status = 0; } > conftest.i && {
1691 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1692 test ! -s conftest.err
1696 $as_echo "$as_me: failed program was:" >&5
1697 sed 's/^/| /' conftest.$ac_ext >&5
1701 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1702 as_fn_set_status $ac_retval
1706 # ac_fn_c_try_link LINENO
1707 # -----------------------
1708 # Try to link conftest.$ac_ext, and return whether this succeeded.
1711 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1712 rm -f conftest.$ac_objext conftest$ac_exeext
1713 if { { ac_try="$ac_link"
1715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1716 *) ac_try_echo=$ac_try;;
1718 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1719 $as_echo "$ac_try_echo"; } >&5
1720 (eval "$ac_link") 2>conftest.err
1722 if test -s conftest.err; then
1723 grep -v '^ *+' conftest.err >conftest.er1
1724 cat conftest.er1 >&5
1725 mv -f conftest.er1 conftest.err
1727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1728 test $ac_status = 0; } && {
1729 test -z "$ac_c_werror_flag" ||
1730 test ! -s conftest.err
1731 } && test -s conftest$ac_exeext && {
1732 test "$cross_compiling" = yes ||
1733 test -x conftest$ac_exeext
1737 $as_echo "$as_me: failed program was:" >&5
1738 sed 's/^/| /' conftest.$ac_ext >&5
1742 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1743 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1744 # interfere with the next link command; also delete a directory that is
1745 # left behind by Apple's compiler. We do this before executing the actions.
1746 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1747 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1748 as_fn_set_status $ac_retval
1750 } # ac_fn_c_try_link
1752 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1753 # -------------------------------------------------------
1754 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1755 # the include files in INCLUDES and setting the cache variable VAR
1757 ac_fn_c_check_header_mongrel ()
1759 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1760 if eval \${$3+:} false; then :
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1762 $as_echo_n "checking for $2... " >&6; }
1763 if eval \${$3+:} false; then :
1764 $as_echo_n "(cached) " >&6
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1768 $as_echo "$ac_res" >&6; }
1770 # Is the header compilable?
1771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1772 $as_echo_n "checking $2 usability... " >&6; }
1773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1774 /* end confdefs.h. */
1778 if ac_fn_c_try_compile "$LINENO"; then :
1779 ac_header_compiler=yes
1781 ac_header_compiler=no
1783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1785 $as_echo "$ac_header_compiler" >&6; }
1787 # Is the header present?
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1789 $as_echo_n "checking $2 presence... " >&6; }
1790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1791 /* end confdefs.h. */
1794 if ac_fn_c_try_cpp "$LINENO"; then :
1795 ac_header_preproc=yes
1797 ac_header_preproc=no
1799 rm -f conftest.err conftest.i conftest.$ac_ext
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1801 $as_echo "$ac_header_preproc" >&6; }
1803 # So? What about this header?
1804 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1807 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1809 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1813 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1815 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1817 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1819 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1821 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1822 ( $as_echo "## ------------------------------- ##
1823 ## Report this to jeanfi@gmail.com ##
1824 ## ------------------------------- ##"
1825 ) | sed "s/^/$as_me: WARNING: /" >&2
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1829 $as_echo_n "checking for $2... " >&6; }
1830 if eval \${$3+:} false; then :
1831 $as_echo_n "(cached) " >&6
1833 eval "$3=\$ac_header_compiler"
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1837 $as_echo "$ac_res" >&6; }
1839 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1841 } # ac_fn_c_check_header_mongrel
1843 # ac_fn_c_try_run LINENO
1844 # ----------------------
1845 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1846 # that executables *can* be run.
1849 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1850 if { { ac_try="$ac_link"
1852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1853 *) ac_try_echo=$ac_try;;
1855 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1856 $as_echo "$ac_try_echo"; } >&5
1857 (eval "$ac_link") 2>&5
1859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1860 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1861 { { case "(($ac_try" in
1862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1863 *) ac_try_echo=$ac_try;;
1865 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1866 $as_echo "$ac_try_echo"; } >&5
1867 (eval "$ac_try") 2>&5
1869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1870 test $ac_status = 0; }; }; then :
1873 $as_echo "$as_me: program exited with status $ac_status" >&5
1874 $as_echo "$as_me: failed program was:" >&5
1875 sed 's/^/| /' conftest.$ac_ext >&5
1877 ac_retval=$ac_status
1879 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1880 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1881 as_fn_set_status $ac_retval
1885 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1886 # -------------------------------------------------------
1887 # Tests whether HEADER exists and can be compiled using the include files in
1888 # INCLUDES, setting the cache variable VAR accordingly.
1889 ac_fn_c_check_header_compile ()
1891 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1893 $as_echo_n "checking for $2... " >&6; }
1894 if eval \${$3+:} false; then :
1895 $as_echo_n "(cached) " >&6
1897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1898 /* end confdefs.h. */
1902 if ac_fn_c_try_compile "$LINENO"; then :
1907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1911 $as_echo "$ac_res" >&6; }
1912 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1914 } # ac_fn_c_check_header_compile
1916 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1917 # -------------------------------------------
1918 # Tests whether TYPE exists after having included INCLUDES, setting cache
1919 # variable VAR accordingly.
1920 ac_fn_c_check_type ()
1922 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1924 $as_echo_n "checking for $2... " >&6; }
1925 if eval \${$3+:} false; then :
1926 $as_echo_n "(cached) " >&6
1929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1930 /* end confdefs.h. */
1941 if ac_fn_c_try_compile "$LINENO"; then :
1942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1943 /* end confdefs.h. */
1954 if ac_fn_c_try_compile "$LINENO"; then :
1959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1965 $as_echo "$ac_res" >&6; }
1966 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1968 } # ac_fn_c_check_type
1970 # ac_fn_c_check_func LINENO FUNC VAR
1971 # ----------------------------------
1972 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1973 ac_fn_c_check_func ()
1975 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1977 $as_echo_n "checking for $2... " >&6; }
1978 if eval \${$3+:} false; then :
1979 $as_echo_n "(cached) " >&6
1981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1982 /* end confdefs.h. */
1983 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1984 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1985 #define $2 innocuous_$2
1987 /* System header to define __stub macros and hopefully few prototypes,
1988 which can conflict with char $2 (); below.
1989 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1990 <limits.h> exists even on freestanding compilers. */
1993 # include <limits.h>
1995 # include <assert.h>
2000 /* Override any GCC internal prototype to avoid an error.
2001 Use char because int might match the return type of a GCC
2002 builtin and then its argument prototype would still apply. */
2007 /* The GNU C library defines this for functions which it implements
2008 to always fail with ENOSYS. Some functions are actually named
2009 something starting with __ and the normal name is an alias. */
2010 #if defined __stub_$2 || defined __stub___$2
2022 if ac_fn_c_try_link "$LINENO"; then :
2027 rm -f core conftest.err conftest.$ac_objext \
2028 conftest$ac_exeext conftest.$ac_ext
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2032 $as_echo "$ac_res" >&6; }
2033 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2035 } # ac_fn_c_check_func
2036 cat >config.log <<_ACEOF
2037 This file contains any messages produced by compilers while
2038 running configure, to aid debugging if configure makes a mistake.
2040 It was created by psensor $as_me 0.8.0.x, which was
2041 generated by GNU Autoconf 2.69. Invocation command line was
2053 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2054 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2055 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2056 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2057 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2059 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2060 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2062 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2063 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2064 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2065 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2066 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2067 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2068 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2076 test -z "$as_dir" && as_dir=.
2077 $as_echo "PATH: $as_dir"
2093 # Keep a trace of the command line.
2094 # Strip out --no-create and --no-recursion so they do not pile up.
2095 # Strip out --silent because we don't want to record it for future runs.
2096 # Also quote any args containing shell meta-characters.
2097 # Make two passes to allow for proper duplicate-argument suppression.
2101 ac_must_keep_next=false
2107 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2108 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2109 | -silent | --silent | --silen | --sile | --sil)
2112 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2115 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2117 as_fn_append ac_configure_args1 " '$ac_arg'"
2118 if test $ac_must_keep_next = true; then
2119 ac_must_keep_next=false # Got value, back to normal.
2122 *=* | --config-cache | -C | -disable-* | --disable-* \
2123 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2124 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2125 | -with-* | --with-* | -without-* | --without-* | --x)
2126 case "$ac_configure_args0 " in
2127 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2130 -* ) ac_must_keep_next=true ;;
2133 as_fn_append ac_configure_args " '$ac_arg'"
2138 { ac_configure_args0=; unset ac_configure_args0;}
2139 { ac_configure_args1=; unset ac_configure_args1;}
2141 # When interrupted or exit'd, cleanup temporary files, and complete
2142 # config.log. We remove comments because anyway the quotes in there
2143 # would cause problems or look ugly.
2144 # WARNING: Use '\'' to represent an apostrophe within the trap.
2145 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2146 trap 'exit_status=$?
2147 # Save into config.log some information that might help in debugging.
2151 $as_echo "## ---------------- ##
2152 ## Cache variables. ##
2153 ## ---------------- ##"
2155 # The following way of writing the cache mishandles newlines in values,
2157 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2158 eval ac_val=\$$ac_var
2162 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2163 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2166 _ | IFS | as_nl) ;; #(
2167 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2168 *) { eval $ac_var=; unset $ac_var;} ;;
2173 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2174 *${as_nl}ac_space=\ *)
2176 "s/'\''/'\''\\\\'\'''\''/g;
2177 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2180 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2187 $as_echo "## ----------------- ##
2188 ## Output variables. ##
2189 ## ----------------- ##"
2191 for ac_var in $ac_subst_vars
2193 eval ac_val=\$$ac_var
2195 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2197 $as_echo "$ac_var='\''$ac_val'\''"
2201 if test -n "$ac_subst_files"; then
2202 $as_echo "## ------------------- ##
2203 ## File substitutions. ##
2204 ## ------------------- ##"
2206 for ac_var in $ac_subst_files
2208 eval ac_val=\$$ac_var
2210 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2212 $as_echo "$ac_var='\''$ac_val'\''"
2217 if test -s confdefs.h; then
2218 $as_echo "## ----------- ##
2225 test "$ac_signal" != 0 &&
2226 $as_echo "$as_me: caught signal $ac_signal"
2227 $as_echo "$as_me: exit $exit_status"
2229 rm -f core *.core core.conftest.* &&
2230 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2233 for ac_signal in 1 2 13 15; do
2234 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2238 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2239 rm -f -r conftest* confdefs.h
2241 $as_echo "/* confdefs.h */" > confdefs.h
2243 # Predefined preprocessor variables.
2245 cat >>confdefs.h <<_ACEOF
2246 #define PACKAGE_NAME "$PACKAGE_NAME"
2249 cat >>confdefs.h <<_ACEOF
2250 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2253 cat >>confdefs.h <<_ACEOF
2254 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2257 cat >>confdefs.h <<_ACEOF
2258 #define PACKAGE_STRING "$PACKAGE_STRING"
2261 cat >>confdefs.h <<_ACEOF
2262 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2265 cat >>confdefs.h <<_ACEOF
2266 #define PACKAGE_URL "$PACKAGE_URL"
2270 # Let the site file select an alternate cache file if it wants to.
2271 # Prefer an explicitly selected file to automatically selected ones.
2274 if test -n "$CONFIG_SITE"; then
2275 # We do not want a PATH search for config.site.
2276 case $CONFIG_SITE in #((
2277 -*) ac_site_file1=./$CONFIG_SITE;;
2278 */*) ac_site_file1=$CONFIG_SITE;;
2279 *) ac_site_file1=./$CONFIG_SITE;;
2281 elif test "x$prefix" != xNONE; then
2282 ac_site_file1=$prefix/share/config.site
2283 ac_site_file2=$prefix/etc/config.site
2285 ac_site_file1=$ac_default_prefix/share/config.site
2286 ac_site_file2=$ac_default_prefix/etc/config.site
2288 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2290 test "x$ac_site_file" = xNONE && continue
2291 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2293 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2294 sed 's/^/| /' "$ac_site_file" >&5
2296 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2297 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2298 as_fn_error $? "failed to load site script $ac_site_file
2299 See \`config.log' for more details" "$LINENO" 5; }
2303 if test -r "$cache_file"; then
2304 # Some versions of bash will fail to source /dev/null (special files
2305 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2306 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2307 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2308 $as_echo "$as_me: loading cache $cache_file" >&6;}
2310 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2311 *) . "./$cache_file";;
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2316 $as_echo "$as_me: creating cache $cache_file" >&6;}
2320 gt_needs="$gt_needs "
2321 # Check that the precious variables saved in the cache have kept the same
2323 ac_cache_corrupted=false
2324 for ac_var in $ac_precious_vars; do
2325 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2326 eval ac_new_set=\$ac_env_${ac_var}_set
2327 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2328 eval ac_new_val=\$ac_env_${ac_var}_value
2329 case $ac_old_set,$ac_new_set in
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2332 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2333 ac_cache_corrupted=: ;;
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2336 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2337 ac_cache_corrupted=: ;;
2340 if test "x$ac_old_val" != "x$ac_new_val"; then
2341 # differences in whitespace do not lead to failure.
2342 ac_old_val_w=`echo x $ac_old_val`
2343 ac_new_val_w=`echo x $ac_new_val`
2344 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2345 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2346 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2347 ac_cache_corrupted=:
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2350 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2351 eval $ac_var=\$ac_old_val
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2354 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2355 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2356 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2359 # Pass precious variables to config.status.
2360 if test "$ac_new_set" = set; then
2362 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2363 *) ac_arg=$ac_var=$ac_new_val ;;
2365 case " $ac_configure_args " in
2366 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2367 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2371 if $ac_cache_corrupted; then
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2373 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2375 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2376 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2378 ## -------------------- ##
2379 ## Main body of script. ##
2380 ## -------------------- ##
2383 ac_cpp='$CPP $CPPFLAGS'
2384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2390 am__api_version='1.11'
2393 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2394 if test -f "$ac_dir/install-sh"; then
2396 ac_install_sh="$ac_aux_dir/install-sh -c"
2398 elif test -f "$ac_dir/install.sh"; then
2400 ac_install_sh="$ac_aux_dir/install.sh -c"
2402 elif test -f "$ac_dir/shtool"; then
2404 ac_install_sh="$ac_aux_dir/shtool install -c"
2408 if test -z "$ac_aux_dir"; then
2409 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2412 # These three variables are undocumented and unsupported,
2413 # and are intended to be withdrawn in a future Autoconf release.
2414 # They can cause serious problems if a builder's source tree is in a directory
2415 # whose full name contains unusual characters.
2416 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2417 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2418 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2421 # Find a good install program. We prefer a C program (faster),
2422 # so one script is as good as another. But avoid the broken or
2423 # incompatible versions:
2424 # SysV /etc/install, /usr/sbin/install
2425 # SunOS /usr/etc/install
2426 # IRIX /sbin/install
2428 # AmigaOS /C/install, which installs bootblocks on floppy discs
2429 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2430 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2431 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2432 # OS/2's system install, which has a completely different semantic
2433 # ./install, which can be erroneously created by make from ./install.sh.
2434 # Reject install programs that cannot install multiple files.
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2436 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2437 if test -z "$INSTALL"; then
2438 if ${ac_cv_path_install+:} false; then :
2439 $as_echo_n "(cached) " >&6
2441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2445 test -z "$as_dir" && as_dir=.
2446 # Account for people who put trailing slashes in PATH elements.
2447 case $as_dir/ in #((
2448 ./ | .// | /[cC]/* | \
2449 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2450 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2453 # OSF1 and SCO ODT 3.0 have their own names for install.
2454 # Don't use installbsd from OSF since it installs stuff as root
2456 for ac_prog in ginstall scoinst install; do
2457 for ac_exec_ext in '' $ac_executable_extensions; do
2458 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2459 if test $ac_prog = install &&
2460 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2461 # AIX install. It has an incompatible calling convention.
2463 elif test $ac_prog = install &&
2464 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2465 # program-specific install script used by HP pwplus--don't use.
2468 rm -rf conftest.one conftest.two conftest.dir
2469 echo one > conftest.one
2470 echo two > conftest.two
2472 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2473 test -s conftest.one && test -s conftest.two &&
2474 test -s conftest.dir/conftest.one &&
2475 test -s conftest.dir/conftest.two
2477 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2490 rm -rf conftest.one conftest.two conftest.dir
2493 if test "${ac_cv_path_install+set}" = set; then
2494 INSTALL=$ac_cv_path_install
2496 # As a last resort, use the slow shell script. Don't cache a
2497 # value for INSTALL within a source directory, because that will
2498 # break other packages using the cache if that directory is
2499 # removed, or if the value is a relative name.
2500 INSTALL=$ac_install_sh
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2504 $as_echo "$INSTALL" >&6; }
2506 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2507 # It thinks the first close brace ends the variable substitution.
2508 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2510 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2512 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2515 $as_echo_n "checking whether build environment is sane... " >&6; }
2518 echo timestamp > conftest.file
2519 # Reject unsafe characters in $srcdir or the absolute working directory
2520 # name. Accept space and tab only in the latter.
2524 *[\\\"\#\$\&\'\`$am_lf]*)
2525 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2528 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2529 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2532 # Do `set' in a subshell so we don't clobber the current shell's
2533 # arguments. Must try -L first in case configure is actually a
2534 # symlink; some systems play weird games with the mod time of symlinks
2535 # (eg FreeBSD returns the mod time of the symlink's containing
2538 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2539 if test "$*" = "X"; then
2541 set X `ls -t "$srcdir/configure" conftest.file`
2544 if test "$*" != "X $srcdir/configure conftest.file" \
2545 && test "$*" != "X conftest.file $srcdir/configure"; then
2547 # If neither matched, then we have a broken ls. This can happen
2548 # if, for instance, CONFIG_SHELL is bash and it inherits a
2549 # broken ls alias from the environment. This has actually
2550 # happened. Such a system could not be considered "sane".
2551 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2552 alias in your environment" "$LINENO" 5
2555 test "$2" = conftest.file
2561 as_fn_error $? "newly created file is older than distributed files!
2562 Check your system clock" "$LINENO" 5
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2565 $as_echo "yes" >&6; }
2566 test "$program_prefix" != NONE &&
2567 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2568 # Use a double $ so make ignores it.
2569 test "$program_suffix" != NONE &&
2570 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2571 # Double any \ or $.
2572 # By default was `s,x,x', remove it if useless.
2573 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2574 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2576 # expand $ac_aux_dir to an absolute path
2577 am_aux_dir=`cd $ac_aux_dir && pwd`
2579 if test x"${MISSING+set}" != xset; then
2582 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2584 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2587 # Use eval to expand $SHELL
2588 if eval "$MISSING --run true"; then
2589 am_missing_run="$MISSING --run "
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2593 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2596 if test x"${install_sh}" != xset; then
2599 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2601 install_sh="\${SHELL} $am_aux_dir/install-sh"
2605 # Installed binaries are usually stripped using `strip' when the user
2606 # run `make install-strip'. However `strip' might not be the right
2607 # tool to use in cross-compilation environments, therefore Automake
2608 # will honor the `STRIP' environment variable to overrule this program.
2609 if test "$cross_compiling" != no; then
2610 if test -n "$ac_tool_prefix"; then
2611 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2612 set dummy ${ac_tool_prefix}strip; ac_word=$2
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2614 $as_echo_n "checking for $ac_word... " >&6; }
2615 if ${ac_cv_prog_STRIP+:} false; then :
2616 $as_echo_n "(cached) " >&6
2618 if test -n "$STRIP"; then
2619 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2625 test -z "$as_dir" && as_dir=.
2626 for ac_exec_ext in '' $ac_executable_extensions; do
2627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2628 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2638 STRIP=$ac_cv_prog_STRIP
2639 if test -n "$STRIP"; then
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2641 $as_echo "$STRIP" >&6; }
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2644 $as_echo "no" >&6; }
2649 if test -z "$ac_cv_prog_STRIP"; then
2651 # Extract the first word of "strip", so it can be a program name with args.
2652 set dummy strip; ac_word=$2
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2654 $as_echo_n "checking for $ac_word... " >&6; }
2655 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2656 $as_echo_n "(cached) " >&6
2658 if test -n "$ac_ct_STRIP"; then
2659 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2665 test -z "$as_dir" && as_dir=.
2666 for ac_exec_ext in '' $ac_executable_extensions; do
2667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2668 ac_cv_prog_ac_ct_STRIP="strip"
2669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2678 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2679 if test -n "$ac_ct_STRIP"; then
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2681 $as_echo "$ac_ct_STRIP" >&6; }
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2684 $as_echo "no" >&6; }
2687 if test "x$ac_ct_STRIP" = x; then
2690 case $cross_compiling:$ac_tool_warned in
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2693 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2694 ac_tool_warned=yes ;;
2699 STRIP="$ac_cv_prog_STRIP"
2703 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2706 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2707 if test -z "$MKDIR_P"; then
2708 if ${ac_cv_path_mkdir+:} false; then :
2709 $as_echo_n "(cached) " >&6
2711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2712 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2715 test -z "$as_dir" && as_dir=.
2716 for ac_prog in mkdir gmkdir; do
2717 for ac_exec_ext in '' $ac_executable_extensions; do
2718 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2719 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2720 'mkdir (GNU coreutils) '* | \
2721 'mkdir (coreutils) '* | \
2722 'mkdir (fileutils) '4.1*)
2723 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2733 test -d ./--version && rmdir ./--version
2734 if test "${ac_cv_path_mkdir+set}" = set; then
2735 MKDIR_P="$ac_cv_path_mkdir -p"
2737 # As a last resort, use the slow shell script. Don't cache a
2738 # value for MKDIR_P within a source directory, because that will
2739 # break other packages using the cache if that directory is
2740 # removed, or if the value is a relative name.
2741 MKDIR_P="$ac_install_sh -d"
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2745 $as_echo "$MKDIR_P" >&6; }
2749 [\\/$]* | ?:[\\/]*) ;;
2750 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2753 for ac_prog in gawk mawk nawk awk
2755 # Extract the first word of "$ac_prog", so it can be a program name with args.
2756 set dummy $ac_prog; ac_word=$2
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2758 $as_echo_n "checking for $ac_word... " >&6; }
2759 if ${ac_cv_prog_AWK+:} false; then :
2760 $as_echo_n "(cached) " >&6
2762 if test -n "$AWK"; then
2763 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2769 test -z "$as_dir" && as_dir=.
2770 for ac_exec_ext in '' $ac_executable_extensions; do
2771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2772 ac_cv_prog_AWK="$ac_prog"
2773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2783 if test -n "$AWK"; then
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2785 $as_echo "$AWK" >&6; }
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2788 $as_echo "no" >&6; }
2792 test -n "$AWK" && break
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2796 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2798 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2799 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2800 $as_echo_n "(cached) " >&6
2802 cat >conftest.make <<\_ACEOF
2805 @echo '@@@%%%=$(MAKE)=@@@%%%'
2807 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2808 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2810 eval ac_cv_prog_make_${ac_make}_set=yes;;
2812 eval ac_cv_prog_make_${ac_make}_set=no;;
2816 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2818 $as_echo "yes" >&6; }
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2822 $as_echo "no" >&6; }
2823 SET_MAKE="MAKE=${MAKE-make}"
2826 rm -rf .tst 2>/dev/null
2827 mkdir .tst 2>/dev/null
2828 if test -d .tst; then
2833 rmdir .tst 2>/dev/null
2835 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2836 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2837 # is not polluted with repeated "-I."
2838 am__isrc=' -I$(srcdir)'
2839 # test to see if srcdir already configured
2840 if test -f $srcdir/config.status; then
2841 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2845 # test whether we have cygpath
2846 if test -z "$CYGPATH_W"; then
2847 if (cygpath --version) >/dev/null 2>/dev/null; then
2848 CYGPATH_W='cygpath -w'
2855 # Define the identity of the package.
2860 cat >>confdefs.h <<_ACEOF
2861 #define PACKAGE "$PACKAGE"
2865 cat >>confdefs.h <<_ACEOF
2866 #define VERSION "$VERSION"
2869 # Some tools Automake needs.
2871 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2874 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2877 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2880 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2883 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2885 # We need awk for the "check" target. The system "awk" is bad on
2887 # Always define AMTAR for backward compatibility. Yes, it's still used
2888 # in the wild :-( We should find a proper way to deprecate it ...
2891 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2899 ac_config_headers="$ac_config_headers config.h"
2902 # Checks for programs.
2904 ac_cpp='$CPP $CPPFLAGS'
2905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2908 if test -n "$ac_tool_prefix"; then
2909 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2910 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2912 $as_echo_n "checking for $ac_word... " >&6; }
2913 if ${ac_cv_prog_CC+:} false; then :
2914 $as_echo_n "(cached) " >&6
2916 if test -n "$CC"; then
2917 ac_cv_prog_CC="$CC" # Let the user override the test.
2919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2923 test -z "$as_dir" && as_dir=.
2924 for ac_exec_ext in '' $ac_executable_extensions; do
2925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2926 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2937 if test -n "$CC"; then
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2939 $as_echo "$CC" >&6; }
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2942 $as_echo "no" >&6; }
2947 if test -z "$ac_cv_prog_CC"; then
2949 # Extract the first word of "gcc", so it can be a program name with args.
2950 set dummy gcc; ac_word=$2
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2952 $as_echo_n "checking for $ac_word... " >&6; }
2953 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2954 $as_echo_n "(cached) " >&6
2956 if test -n "$ac_ct_CC"; then
2957 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2963 test -z "$as_dir" && as_dir=.
2964 for ac_exec_ext in '' $ac_executable_extensions; do
2965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2966 ac_cv_prog_ac_ct_CC="gcc"
2967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2976 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2977 if test -n "$ac_ct_CC"; then
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2979 $as_echo "$ac_ct_CC" >&6; }
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2982 $as_echo "no" >&6; }
2985 if test "x$ac_ct_CC" = x; then
2988 case $cross_compiling:$ac_tool_warned in
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2991 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2992 ac_tool_warned=yes ;;
3000 if test -z "$CC"; then
3001 if test -n "$ac_tool_prefix"; then
3002 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3003 set dummy ${ac_tool_prefix}cc; ac_word=$2
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3005 $as_echo_n "checking for $ac_word... " >&6; }
3006 if ${ac_cv_prog_CC+:} false; then :
3007 $as_echo_n "(cached) " >&6
3009 if test -n "$CC"; then
3010 ac_cv_prog_CC="$CC" # Let the user override the test.
3012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3016 test -z "$as_dir" && as_dir=.
3017 for ac_exec_ext in '' $ac_executable_extensions; do
3018 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3019 ac_cv_prog_CC="${ac_tool_prefix}cc"
3020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3030 if test -n "$CC"; then
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3032 $as_echo "$CC" >&6; }
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3035 $as_echo "no" >&6; }
3041 if test -z "$CC"; then
3042 # Extract the first word of "cc", so it can be a program name with args.
3043 set dummy cc; ac_word=$2
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3045 $as_echo_n "checking for $ac_word... " >&6; }
3046 if ${ac_cv_prog_CC+:} false; then :
3047 $as_echo_n "(cached) " >&6
3049 if test -n "$CC"; then
3050 ac_cv_prog_CC="$CC" # Let the user override the test.
3053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3057 test -z "$as_dir" && as_dir=.
3058 for ac_exec_ext in '' $ac_executable_extensions; do
3059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3060 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3061 ac_prog_rejected=yes
3065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3072 if test $ac_prog_rejected = yes; then
3073 # We found a bogon in the path, so make sure we never use it.
3074 set dummy $ac_cv_prog_CC
3076 if test $# != 0; then
3077 # We chose a different compiler from the bogus one.
3078 # However, it has the same basename, so the bogon will be chosen
3079 # first if we set CC to just the basename; use the full file name.
3081 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3087 if test -n "$CC"; then
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3089 $as_echo "$CC" >&6; }
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3092 $as_echo "no" >&6; }
3097 if test -z "$CC"; then
3098 if test -n "$ac_tool_prefix"; then
3099 for ac_prog in cl.exe
3101 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3102 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3104 $as_echo_n "checking for $ac_word... " >&6; }
3105 if ${ac_cv_prog_CC+:} false; then :
3106 $as_echo_n "(cached) " >&6
3108 if test -n "$CC"; then
3109 ac_cv_prog_CC="$CC" # Let the user override the test.
3111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3115 test -z "$as_dir" && as_dir=.
3116 for ac_exec_ext in '' $ac_executable_extensions; do
3117 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3118 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3129 if test -n "$CC"; then
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3131 $as_echo "$CC" >&6; }
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3134 $as_echo "no" >&6; }
3138 test -n "$CC" && break
3141 if test -z "$CC"; then
3143 for ac_prog in cl.exe
3145 # Extract the first word of "$ac_prog", so it can be a program name with args.
3146 set dummy $ac_prog; ac_word=$2
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3148 $as_echo_n "checking for $ac_word... " >&6; }
3149 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3150 $as_echo_n "(cached) " >&6
3152 if test -n "$ac_ct_CC"; then
3153 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3159 test -z "$as_dir" && as_dir=.
3160 for ac_exec_ext in '' $ac_executable_extensions; do
3161 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3162 ac_cv_prog_ac_ct_CC="$ac_prog"
3163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3172 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3173 if test -n "$ac_ct_CC"; then
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3175 $as_echo "$ac_ct_CC" >&6; }
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3178 $as_echo "no" >&6; }
3182 test -n "$ac_ct_CC" && break
3185 if test "x$ac_ct_CC" = x; then
3188 case $cross_compiling:$ac_tool_warned in
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3191 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3192 ac_tool_warned=yes ;;
3201 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3202 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3203 as_fn_error $? "no acceptable C compiler found in \$PATH
3204 See \`config.log' for more details" "$LINENO" 5; }
3206 # Provide some information about the compiler.
3207 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3210 for ac_option in --version -v -V -qversion; do
3211 { { ac_try="$ac_compiler $ac_option >&5"
3213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3214 *) ac_try_echo=$ac_try;;
3216 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3217 $as_echo "$ac_try_echo"; } >&5
3218 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3220 if test -s conftest.err; then
3222 ... rest of stderr output deleted ...
3223 10q' conftest.err >conftest.er1
3224 cat conftest.er1 >&5
3226 rm -f conftest.er1 conftest.err
3227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3228 test $ac_status = 0; }
3231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3232 /* end confdefs.h. */
3242 ac_clean_files_save=$ac_clean_files
3243 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3244 # Try to create an executable without -o first, disregard a.out.
3245 # It will help us diagnose broken compilers, and finding out an intuition
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3248 $as_echo_n "checking whether the C compiler works... " >&6; }
3249 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3251 # The possible output files:
3252 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3255 for ac_file in $ac_files
3258 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3259 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3264 if { { ac_try="$ac_link_default"
3266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3267 *) ac_try_echo=$ac_try;;
3269 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3270 $as_echo "$ac_try_echo"; } >&5
3271 (eval "$ac_link_default") 2>&5
3273 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3274 test $ac_status = 0; }; then :
3275 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3276 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3277 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3278 # so that the user can short-circuit this test for compilers unknown to
3280 for ac_file in $ac_files ''
3282 test -f "$ac_file" || continue
3284 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3287 # We found the default executable, but exeext='' is most
3291 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3293 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3295 # We set ac_cv_exeext here because the later test for it is not
3296 # safe: cross compilers may not add the suffix if given an `-o'
3297 # argument, so we may need to know it at that point already.
3298 # Even if this section looks crufty: it has the advantage of
3305 test "$ac_cv_exeext" = no && ac_cv_exeext=
3310 if test -z "$ac_file"; then :
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3312 $as_echo "no" >&6; }
3313 $as_echo "$as_me: failed program was:" >&5
3314 sed 's/^/| /' conftest.$ac_ext >&5
3316 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3317 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3318 as_fn_error 77 "C compiler cannot create executables
3319 See \`config.log' for more details" "$LINENO" 5; }
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3322 $as_echo "yes" >&6; }
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3325 $as_echo_n "checking for C compiler default output file name... " >&6; }
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3327 $as_echo "$ac_file" >&6; }
3328 ac_exeext=$ac_cv_exeext
3330 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3331 ac_clean_files=$ac_clean_files_save
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3333 $as_echo_n "checking for suffix of executables... " >&6; }
3334 if { { ac_try="$ac_link"
3336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3337 *) ac_try_echo=$ac_try;;
3339 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3340 $as_echo "$ac_try_echo"; } >&5
3341 (eval "$ac_link") 2>&5
3343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3344 test $ac_status = 0; }; then :
3345 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3346 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3347 # work properly (i.e., refer to `conftest.exe'), while it won't with
3349 for ac_file in conftest.exe conftest conftest.*; do
3350 test -f "$ac_file" || continue
3352 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3353 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3359 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3360 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3361 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3362 See \`config.log' for more details" "$LINENO" 5; }
3364 rm -f conftest conftest$ac_cv_exeext
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3366 $as_echo "$ac_cv_exeext" >&6; }
3368 rm -f conftest.$ac_ext
3369 EXEEXT=$ac_cv_exeext
3371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3372 /* end confdefs.h. */
3377 FILE *f = fopen ("conftest.out", "w");
3378 return ferror (f) || fclose (f) != 0;
3384 ac_clean_files="$ac_clean_files conftest.out"
3385 # Check that the compiler produces executables we can run. If not, either
3386 # the compiler is broken, or we cross compile.
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3388 $as_echo_n "checking whether we are cross compiling... " >&6; }
3389 if test "$cross_compiling" != yes; then
3390 { { ac_try="$ac_link"
3392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3393 *) ac_try_echo=$ac_try;;
3395 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3396 $as_echo "$ac_try_echo"; } >&5
3397 (eval "$ac_link") 2>&5
3399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3400 test $ac_status = 0; }
3401 if { ac_try='./conftest$ac_cv_exeext'
3402 { { case "(($ac_try" in
3403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3404 *) ac_try_echo=$ac_try;;
3406 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3407 $as_echo "$ac_try_echo"; } >&5
3408 (eval "$ac_try") 2>&5
3410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3411 test $ac_status = 0; }; }; then
3414 if test "$cross_compiling" = maybe; then
3417 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3418 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3419 as_fn_error $? "cannot run C compiled programs.
3420 If you meant to cross compile, use \`--host'.
3421 See \`config.log' for more details" "$LINENO" 5; }
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3426 $as_echo "$cross_compiling" >&6; }
3428 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3429 ac_clean_files=$ac_clean_files_save
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3431 $as_echo_n "checking for suffix of object files... " >&6; }
3432 if ${ac_cv_objext+:} false; then :
3433 $as_echo_n "(cached) " >&6
3435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3436 /* end confdefs.h. */
3446 rm -f conftest.o conftest.obj
3447 if { { ac_try="$ac_compile"
3449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3450 *) ac_try_echo=$ac_try;;
3452 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3453 $as_echo "$ac_try_echo"; } >&5
3454 (eval "$ac_compile") 2>&5
3456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3457 test $ac_status = 0; }; then :
3458 for ac_file in conftest.o conftest.obj conftest.*; do
3459 test -f "$ac_file" || continue;
3461 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3462 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3467 $as_echo "$as_me: failed program was:" >&5
3468 sed 's/^/| /' conftest.$ac_ext >&5
3470 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3471 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3472 as_fn_error $? "cannot compute suffix of object files: cannot compile
3473 See \`config.log' for more details" "$LINENO" 5; }
3475 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3478 $as_echo "$ac_cv_objext" >&6; }
3479 OBJEXT=$ac_cv_objext
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3482 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3483 if ${ac_cv_c_compiler_gnu+:} false; then :
3484 $as_echo_n "(cached) " >&6
3486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3487 /* end confdefs.h. */
3500 if ac_fn_c_try_compile "$LINENO"; then :
3505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3506 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3510 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3511 if test $ac_compiler_gnu = yes; then
3516 ac_test_CFLAGS=${CFLAGS+set}
3517 ac_save_CFLAGS=$CFLAGS
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3519 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3520 if ${ac_cv_prog_cc_g+:} false; then :
3521 $as_echo_n "(cached) " >&6
3523 ac_save_c_werror_flag=$ac_c_werror_flag
3524 ac_c_werror_flag=yes
3527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3528 /* end confdefs.h. */
3538 if ac_fn_c_try_compile "$LINENO"; then :
3542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3543 /* end confdefs.h. */
3553 if ac_fn_c_try_compile "$LINENO"; then :
3556 ac_c_werror_flag=$ac_save_c_werror_flag
3558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3559 /* end confdefs.h. */
3569 if ac_fn_c_try_compile "$LINENO"; then :
3572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3577 ac_c_werror_flag=$ac_save_c_werror_flag
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3580 $as_echo "$ac_cv_prog_cc_g" >&6; }
3581 if test "$ac_test_CFLAGS" = set; then
3582 CFLAGS=$ac_save_CFLAGS
3583 elif test $ac_cv_prog_cc_g = yes; then
3584 if test "$GCC" = yes; then
3590 if test "$GCC" = yes; then
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3597 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3598 if ${ac_cv_prog_cc_c89+:} false; then :
3599 $as_echo_n "(cached) " >&6
3601 ac_cv_prog_cc_c89=no
3603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3604 /* end confdefs.h. */
3608 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3609 struct buf { int x; };
3610 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3611 static char *e (p, i)
3617 static char *f (char * (*g) (char **, int), char **p, ...)
3622 s = g (p, va_arg (v,int));
3627 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3628 function prototypes and stuff, but not '\xHH' hex character constants.
3629 These don't provoke an error unfortunately, instead are silently treated
3630 as 'x'. The following induces an error, until -std is added to get
3631 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3632 array size at least. It's necessary to write '\x00'==0 to get something
3633 that's true only with -std. */
3634 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3636 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3637 inside strings and character constants. */
3639 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3641 int test (int i, double x);
3642 struct s1 {int (*f) (int a);};
3643 struct s2 {int (*f) (double a);};
3644 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3650 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3655 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3656 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3658 CC="$ac_save_CC $ac_arg"
3659 if ac_fn_c_try_compile "$LINENO"; then :
3660 ac_cv_prog_cc_c89=$ac_arg
3662 rm -f core conftest.err conftest.$ac_objext
3663 test "x$ac_cv_prog_cc_c89" != "xno" && break
3665 rm -f conftest.$ac_ext
3670 case "x$ac_cv_prog_cc_c89" in
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3673 $as_echo "none needed" >&6; } ;;
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3676 $as_echo "unsupported" >&6; } ;;
3678 CC="$CC $ac_cv_prog_cc_c89"
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3680 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3682 if test "x$ac_cv_prog_cc_c89" != xno; then :
3687 ac_cpp='$CPP $CPPFLAGS'
3688 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3689 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3690 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3691 DEPDIR="${am__leading_dot}deps"
3693 ac_config_commands="$ac_config_commands depfiles"
3696 am_make=${MAKE-make}
3697 cat > confinc << 'END'
3699 @echo this is the am__doit target
3702 # If we don't find an include directive, just comment out the code.
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3704 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3708 # First try GNU make style include.
3709 echo "include confinc" > confmf
3710 # Ignore all kinds of additional output from `make'.
3711 case `$am_make -s -f confmf 2> /dev/null` in #(
3712 *the\ am__doit\ target*)
3718 # Now try BSD make style include.
3719 if test "$am__include" = "#"; then
3720 echo '.include "confinc"' > confmf
3721 case `$am_make -s -f confmf 2> /dev/null` in #(
3722 *the\ am__doit\ target*)
3723 am__include=.include
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3732 $as_echo "$_am_result" >&6; }
3733 rm -f confinc confmf
3735 # Check whether --enable-dependency-tracking was given.
3736 if test "${enable_dependency_tracking+set}" = set; then :
3737 enableval=$enable_dependency_tracking;
3740 if test "x$enable_dependency_tracking" != xno; then
3741 am_depcomp="$ac_aux_dir/depcomp"
3745 if test "x$enable_dependency_tracking" != xno; then
3755 depcc="$CC" am_compiler_list=
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3758 $as_echo_n "checking dependency style of $depcc... " >&6; }
3759 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3760 $as_echo_n "(cached) " >&6
3762 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3763 # We make a subdir and do the tests there. Otherwise we can end up
3764 # making bogus files that we don't know about and never remove. For
3765 # instance it was reported that on HP-UX the gcc test will end up
3766 # making a dummy file named `D' -- because `-MD' means `put the output
3770 # Copy depcomp to subdir because otherwise we won't find it if we're
3771 # using a relative directory.
3772 cp "$am_depcomp" conftest.dir
3774 # We will build objects and dependencies in a subdirectory because
3775 # it helps to detect inapplicable dependency modes. For instance
3776 # both Tru64's cc and ICC support -MD to output dependencies as a
3777 # side effect of compilation, but ICC will put the dependencies in
3778 # the current directory while Tru64 will put them in the object
3782 am_cv_CC_dependencies_compiler_type=none
3783 if test "$am_compiler_list" = ""; then
3784 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3787 case " $depcc " in #(
3788 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3791 for depmode in $am_compiler_list; do
3792 # Setup a source with many dependencies, because some compilers
3793 # like to wrap large dependency lists on column 80 (with \), and
3794 # we should not choose a depcomp mode which is confused by this.
3796 # We need to recreate these files for each test, as the compiler may
3797 # overwrite some of them when testing with obscure command lines.
3798 # This happens at least with the AIX C compiler.
3800 for i in 1 2 3 4 5 6; do
3801 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3802 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3803 # Solaris 8's {/usr,}/bin/sh.
3804 touch sub/conftst$i.h
3806 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3808 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3809 # mode. It turns out that the SunPro C++ compiler does not properly
3810 # handle `-M -o', and we need to detect this. Also, some Intel
3811 # versions had trouble with output in subdirs
3812 am__obj=sub/conftest.${OBJEXT-o}
3813 am__minus_obj="-o $am__obj"
3816 # This depmode causes a compiler race in universal mode.
3817 test "$am__universal" = false || continue
3820 # after this tag, mechanisms are not by side-effect, so they'll
3821 # only be used when explicitly requested
3822 if test "x$enable_dependency_tracking" = xyes; then
3828 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3829 # This compiler won't grok `-c -o', but also, the minuso test has
3830 # not run yet. These depmodes are late enough in the game, and
3831 # so weak that their functioning should not be impacted.
3832 am__obj=conftest.${OBJEXT-o}
3837 if depmode=$depmode \
3838 source=sub/conftest.c object=$am__obj \
3839 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3840 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3841 >/dev/null 2>conftest.err &&
3842 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3843 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3844 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3845 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3846 # icc doesn't choke on unknown options, it will just issue warnings
3847 # or remarks (even with -Werror). So we grep stderr for any message
3848 # that says an option was ignored or not supported.
3849 # When given -MP, icc 7.0 and 7.1 complain thusly:
3850 # icc: Command line warning: ignoring option '-M'; no argument required
3851 # The diagnosis changed in icc 8.0:
3852 # icc: Command line remark: option '-MP' not supported
3853 if (grep 'ignoring option' conftest.err ||
3854 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3855 am_cv_CC_dependencies_compiler_type=$depmode
3864 am_cv_CC_dependencies_compiler_type=none
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3869 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3870 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3873 test "x$enable_dependency_tracking" != xno \
3874 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3876 am__fastdepCC_FALSE='#'
3878 am__fastdepCC_TRUE='#'
3879 am__fastdepCC_FALSE=
3883 if test "x$CC" != xcc; then
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
3885 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
3888 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
3890 set dummy $CC; ac_cc=`$as_echo "$2" |
3891 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3892 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
3893 $as_echo_n "(cached) " >&6
3895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3896 /* end confdefs.h. */
3906 # Make sure it works both with $CC and with simple cc.
3907 # We do the test twice because some compilers refuse to overwrite an
3908 # existing .o file with -o, though they will create one.
3909 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3911 if { { case "(($ac_try" in
3912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3913 *) ac_try_echo=$ac_try;;
3915 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3916 $as_echo "$ac_try_echo"; } >&5
3917 (eval "$ac_try") 2>&5
3919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3920 test $ac_status = 0; } &&
3921 test -f conftest2.$ac_objext && { { case "(($ac_try" in
3922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3923 *) ac_try_echo=$ac_try;;
3925 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3926 $as_echo "$ac_try_echo"; } >&5
3927 (eval "$ac_try") 2>&5
3929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3930 test $ac_status = 0; };
3932 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3933 if test "x$CC" != xcc; then
3934 # Test first that cc exists at all.
3935 if { ac_try='cc -c conftest.$ac_ext >&5'
3936 { { case "(($ac_try" in
3937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3938 *) ac_try_echo=$ac_try;;
3940 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3941 $as_echo "$ac_try_echo"; } >&5
3942 (eval "$ac_try") 2>&5
3944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3945 test $ac_status = 0; }; }; then
3946 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3948 if { { case "(($ac_try" in
3949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3950 *) ac_try_echo=$ac_try;;
3952 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3953 $as_echo "$ac_try_echo"; } >&5
3954 (eval "$ac_try") 2>&5
3956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3957 test $ac_status = 0; } &&
3958 test -f conftest2.$ac_objext && { { case "(($ac_try" in
3959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3960 *) ac_try_echo=$ac_try;;
3962 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3963 $as_echo "$ac_try_echo"; } >&5
3964 (eval "$ac_try") 2>&5
3966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3967 test $ac_status = 0; };
3972 # cc exists but doesn't like -o.
3973 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3978 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3980 rm -f core conftest*
3983 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3985 $as_echo "yes" >&6; }
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3988 $as_echo "no" >&6; }
3990 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
3994 # FIXME: we rely on the cache variable name because
3995 # there is no other way.
3997 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3998 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
3999 if test "$am_t" != yes; then
4000 # Losing compiler, so override with the script.
4001 # FIXME: It is wrong to rewrite CC.
4002 # But if we don't then we get into trouble of one sort or another.
4003 # A longer-term fix would be to have automake use am__CC in this case,
4004 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4005 CC="$am_aux_dir/compile $CC"
4011 if test -n "$ac_tool_prefix"; then
4012 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4013 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4015 $as_echo_n "checking for $ac_word... " >&6; }
4016 if ${ac_cv_prog_RANLIB+:} false; then :
4017 $as_echo_n "(cached) " >&6
4019 if test -n "$RANLIB"; then
4020 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4026 test -z "$as_dir" && as_dir=.
4027 for ac_exec_ext in '' $ac_executable_extensions; do
4028 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4029 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4039 RANLIB=$ac_cv_prog_RANLIB
4040 if test -n "$RANLIB"; then
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4042 $as_echo "$RANLIB" >&6; }
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4045 $as_echo "no" >&6; }
4050 if test -z "$ac_cv_prog_RANLIB"; then
4051 ac_ct_RANLIB=$RANLIB
4052 # Extract the first word of "ranlib", so it can be a program name with args.
4053 set dummy ranlib; ac_word=$2
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4055 $as_echo_n "checking for $ac_word... " >&6; }
4056 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4057 $as_echo_n "(cached) " >&6
4059 if test -n "$ac_ct_RANLIB"; then
4060 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4066 test -z "$as_dir" && as_dir=.
4067 for ac_exec_ext in '' $ac_executable_extensions; do
4068 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4069 ac_cv_prog_ac_ct_RANLIB="ranlib"
4070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4079 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4080 if test -n "$ac_ct_RANLIB"; then
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4082 $as_echo "$ac_ct_RANLIB" >&6; }
4084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4085 $as_echo "no" >&6; }
4088 if test "x$ac_ct_RANLIB" = x; then
4091 case $cross_compiling:$ac_tool_warned in
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4094 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4095 ac_tool_warned=yes ;;
4097 RANLIB=$ac_ct_RANLIB
4100 RANLIB="$ac_cv_prog_RANLIB"
4104 # Checks for header files.
4107 ac_cpp='$CPP $CPPFLAGS'
4108 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4109 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4110 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4112 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4113 # On Suns, sometimes $CPP names a directory.
4114 if test -n "$CPP" && test -d "$CPP"; then
4117 if test -z "$CPP"; then
4118 if ${ac_cv_prog_CPP+:} false; then :
4119 $as_echo_n "(cached) " >&6
4121 # Double quotes because CPP needs to be expanded
4122 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4125 for ac_c_preproc_warn_flag in '' yes
4127 # Use a header file that comes with gcc, so configuring glibc
4128 # with a fresh cross-compiler works.
4129 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4130 # <limits.h> exists even on freestanding compilers.
4131 # On the NeXT, cc -E runs the code through the compiler's parser,
4132 # not just through cpp. "Syntax error" is here to catch this case.
4133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4134 /* end confdefs.h. */
4136 # include <limits.h>
4138 # include <assert.h>
4142 if ac_fn_c_try_cpp "$LINENO"; then :
4145 # Broken: fails on valid input.
4148 rm -f conftest.err conftest.i conftest.$ac_ext
4150 # OK, works on sane cases. Now check whether nonexistent headers
4151 # can be detected and how.
4152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4153 /* end confdefs.h. */
4154 #include <ac_nonexistent.h>
4156 if ac_fn_c_try_cpp "$LINENO"; then :
4157 # Broken: success on invalid input.
4160 # Passes both tests.
4164 rm -f conftest.err conftest.i conftest.$ac_ext
4167 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4168 rm -f conftest.i conftest.err conftest.$ac_ext
4169 if $ac_preproc_ok; then :
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4182 $as_echo "$CPP" >&6; }
4184 for ac_c_preproc_warn_flag in '' yes
4186 # Use a header file that comes with gcc, so configuring glibc
4187 # with a fresh cross-compiler works.
4188 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4189 # <limits.h> exists even on freestanding compilers.
4190 # On the NeXT, cc -E runs the code through the compiler's parser,
4191 # not just through cpp. "Syntax error" is here to catch this case.
4192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4193 /* end confdefs.h. */
4195 # include <limits.h>
4197 # include <assert.h>
4201 if ac_fn_c_try_cpp "$LINENO"; then :
4204 # Broken: fails on valid input.
4207 rm -f conftest.err conftest.i conftest.$ac_ext
4209 # OK, works on sane cases. Now check whether nonexistent headers
4210 # can be detected and how.
4211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4212 /* end confdefs.h. */
4213 #include <ac_nonexistent.h>
4215 if ac_fn_c_try_cpp "$LINENO"; then :
4216 # Broken: success on invalid input.
4219 # Passes both tests.
4223 rm -f conftest.err conftest.i conftest.$ac_ext
4226 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4227 rm -f conftest.i conftest.err conftest.$ac_ext
4228 if $ac_preproc_ok; then :
4231 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4232 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4233 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4234 See \`config.log' for more details" "$LINENO" 5; }
4238 ac_cpp='$CPP $CPPFLAGS'
4239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
4245 $as_echo_n "checking for X... " >&6; }
4248 # Check whether --with-x was given.
4249 if test "${with_x+set}" = set; then :
4253 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4254 if test "x$with_x" = xno; then
4255 # The user explicitly disabled X.
4258 case $x_includes,$x_libraries in #(
4259 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
4260 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
4261 $as_echo_n "(cached) " >&6
4263 # One or both of the vars are not set, and there is no cached value.
4264 ac_x_includes=no ac_x_libraries=no
4265 rm -f -r conftest.dir
4266 if mkdir conftest.dir; then
4268 cat >Imakefile <<'_ACEOF'
4270 @echo incroot='${INCROOT}'
4272 @echo usrlibdir='${USRLIBDIR}'
4274 @echo libdir='${LIBDIR}'
4276 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
4277 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4278 for ac_var in incroot usrlibdir libdir; do
4279 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
4281 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4282 for ac_extension in a so sl dylib la dll; do
4283 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
4284 test -f "$ac_im_libdir/libX11.$ac_extension"; then
4285 ac_im_usrlibdir=$ac_im_libdir; break
4288 # Screen out bogus values from the imake configuration. They are
4289 # bogus both because they are the default anyway, and because
4290 # using them would break gcc on systems where it needs fixed includes.
4291 case $ac_im_incroot in
4292 /usr/include) ac_x_includes= ;;
4293 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4295 case $ac_im_usrlibdir in
4296 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
4297 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4301 rm -f -r conftest.dir
4304 # Standard set of common directories for X headers.
4305 # Check X11 before X11Rn because it is often a symlink to the current release.
4319 /usr/local/X11/include
4320 /usr/local/X11R7/include
4321 /usr/local/X11R6/include
4322 /usr/local/X11R5/include
4323 /usr/local/X11R4/include
4325 /usr/local/include/X11
4326 /usr/local/include/X11R7
4327 /usr/local/include/X11R6
4328 /usr/local/include/X11R5
4329 /usr/local/include/X11R4
4333 /usr/XFree86/include/X11
4337 /usr/unsupported/include
4339 /usr/local/x11r5/include
4340 /usr/lpp/Xamples/include
4342 /usr/openwin/include
4343 /usr/openwin/share/include'
4345 if test "$ac_x_includes" = no; then
4346 # Guess where to find include files, by looking for Xlib.h.
4347 # First, try using that file with no special directory specified.
4348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4349 /* end confdefs.h. */
4350 #include <X11/Xlib.h>
4352 if ac_fn_c_try_cpp "$LINENO"; then :
4353 # We can compile using X headers with no special include directory.
4356 for ac_dir in $ac_x_header_dirs; do
4357 if test -r "$ac_dir/X11/Xlib.h"; then
4358 ac_x_includes=$ac_dir
4363 rm -f conftest.err conftest.i conftest.$ac_ext
4364 fi # $ac_x_includes = no
4366 if test "$ac_x_libraries" = no; then
4367 # Check for the libraries.
4368 # See if we find them without any special options.
4369 # Don't add to $LIBS permanently.
4372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4373 /* end confdefs.h. */
4374 #include <X11/Xlib.h>
4383 if ac_fn_c_try_link "$LINENO"; then :
4385 # We can link X programs with no special library path.
4389 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4391 # Don't even attempt the hair of trying to link an X program!
4392 for ac_extension in a so sl dylib la dll; do
4393 if test -r "$ac_dir/libX11.$ac_extension"; then
4394 ac_x_libraries=$ac_dir
4400 rm -f core conftest.err conftest.$ac_objext \
4401 conftest$ac_exeext conftest.$ac_ext
4402 fi # $ac_x_libraries = no
4404 case $ac_x_includes,$ac_x_libraries in #(
4406 # Didn't find X, or a directory has "'" in its name.
4407 ac_cv_have_x="have_x=no";; #(
4409 # Record where we found X for the cache.
4410 ac_cv_have_x="have_x=yes\
4411 ac_x_includes='$ac_x_includes'\
4412 ac_x_libraries='$ac_x_libraries'"
4418 eval "$ac_cv_have_x"
4421 if test "$have_x" != yes; then
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
4423 $as_echo "$have_x" >&6; }
4426 # If each of the values was on the command line, it overrides each guess.
4427 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4428 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4429 # Update the cache value to reflect the command line values.
4430 ac_cv_have_x="have_x=yes\
4431 ac_x_includes='$x_includes'\
4432 ac_x_libraries='$x_libraries'"
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
4434 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4438 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4439 if ${ac_cv_path_GREP+:} false; then :
4440 $as_echo_n "(cached) " >&6
4442 if test -z "$GREP"; then
4443 ac_path_GREP_found=false
4444 # Loop through the user's path and test for each of PROGNAME-LIST
4445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4446 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4449 test -z "$as_dir" && as_dir=.
4450 for ac_prog in grep ggrep; do
4451 for ac_exec_ext in '' $ac_executable_extensions; do
4452 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4453 as_fn_executable_p "$ac_path_GREP" || continue
4454 # Check for GNU ac_path_GREP and select it if it is found.
4455 # Check for GNU $ac_path_GREP
4456 case `"$ac_path_GREP" --version 2>&1` in
4458 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4461 $as_echo_n 0123456789 >"conftest.in"
4464 cat "conftest.in" "conftest.in" >"conftest.tmp"
4465 mv "conftest.tmp" "conftest.in"
4466 cp "conftest.in" "conftest.nl"
4467 $as_echo 'GREP' >> "conftest.nl"
4468 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4469 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4470 as_fn_arith $ac_count + 1 && ac_count=$as_val
4471 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4472 # Best one so far, save it but keep looking for a better one
4473 ac_cv_path_GREP="$ac_path_GREP"
4474 ac_path_GREP_max=$ac_count
4476 # 10*(2^10) chars as input seems more than enough
4477 test $ac_count -gt 10 && break
4479 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4482 $ac_path_GREP_found && break 3
4487 if test -z "$ac_cv_path_GREP"; then
4488 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4491 ac_cv_path_GREP=$GREP
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4496 $as_echo "$ac_cv_path_GREP" >&6; }
4497 GREP="$ac_cv_path_GREP"
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4501 $as_echo_n "checking for egrep... " >&6; }
4502 if ${ac_cv_path_EGREP+:} false; then :
4503 $as_echo_n "(cached) " >&6
4505 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4506 then ac_cv_path_EGREP="$GREP -E"
4508 if test -z "$EGREP"; then
4509 ac_path_EGREP_found=false
4510 # Loop through the user's path and test for each of PROGNAME-LIST
4511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4512 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4515 test -z "$as_dir" && as_dir=.
4516 for ac_prog in egrep; do
4517 for ac_exec_ext in '' $ac_executable_extensions; do
4518 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4519 as_fn_executable_p "$ac_path_EGREP" || continue
4520 # Check for GNU ac_path_EGREP and select it if it is found.
4521 # Check for GNU $ac_path_EGREP
4522 case `"$ac_path_EGREP" --version 2>&1` in
4524 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4527 $as_echo_n 0123456789 >"conftest.in"
4530 cat "conftest.in" "conftest.in" >"conftest.tmp"
4531 mv "conftest.tmp" "conftest.in"
4532 cp "conftest.in" "conftest.nl"
4533 $as_echo 'EGREP' >> "conftest.nl"
4534 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4535 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4536 as_fn_arith $ac_count + 1 && ac_count=$as_val
4537 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4538 # Best one so far, save it but keep looking for a better one
4539 ac_cv_path_EGREP="$ac_path_EGREP"
4540 ac_path_EGREP_max=$ac_count
4542 # 10*(2^10) chars as input seems more than enough
4543 test $ac_count -gt 10 && break
4545 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4548 $ac_path_EGREP_found && break 3
4553 if test -z "$ac_cv_path_EGREP"; then
4554 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4557 ac_cv_path_EGREP=$EGREP
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4563 $as_echo "$ac_cv_path_EGREP" >&6; }
4564 EGREP="$ac_cv_path_EGREP"
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4568 $as_echo_n "checking for ANSI C header files... " >&6; }
4569 if ${ac_cv_header_stdc+:} false; then :
4570 $as_echo_n "(cached) " >&6
4572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4573 /* end confdefs.h. */
4587 if ac_fn_c_try_compile "$LINENO"; then :
4588 ac_cv_header_stdc=yes
4590 ac_cv_header_stdc=no
4592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4594 if test $ac_cv_header_stdc = yes; then
4595 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4597 /* end confdefs.h. */
4601 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4602 $EGREP "memchr" >/dev/null 2>&1; then :
4605 ac_cv_header_stdc=no
4611 if test $ac_cv_header_stdc = yes; then
4612 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4614 /* end confdefs.h. */
4618 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4619 $EGREP "free" >/dev/null 2>&1; then :
4622 ac_cv_header_stdc=no
4628 if test $ac_cv_header_stdc = yes; then
4629 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4630 if test "$cross_compiling" = yes; then :
4633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4634 /* end confdefs.h. */
4637 #if ((' ' & 0x0FF) == 0x020)
4638 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4639 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4641 # define ISLOWER(c) \
4642 (('a' <= (c) && (c) <= 'i') \
4643 || ('j' <= (c) && (c) <= 'r') \
4644 || ('s' <= (c) && (c) <= 'z'))
4645 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4648 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4653 for (i = 0; i < 256; i++)
4654 if (XOR (islower (i), ISLOWER (i))
4655 || toupper (i) != TOUPPER (i))
4660 if ac_fn_c_try_run "$LINENO"; then :
4663 ac_cv_header_stdc=no
4665 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4666 conftest.$ac_objext conftest.beam conftest.$ac_ext
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4672 $as_echo "$ac_cv_header_stdc" >&6; }
4673 if test $ac_cv_header_stdc = yes; then
4675 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4679 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4680 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4681 inttypes.h stdint.h unistd.h
4683 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4684 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4686 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4687 cat >>confdefs.h <<_ACEOF
4688 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4696 for ac_header in stdbool.h
4698 ac_fn_c_check_header_mongrel "$LINENO" "stdbool.h" "ac_cv_header_stdbool_h" "$ac_includes_default"
4699 if test "x$ac_cv_header_stdbool_h" = xyes; then :
4700 cat >>confdefs.h <<_ACEOF
4701 #define HAVE_STDBOOL_H 1
4709 # Checks for typedefs, structures, and compiler characteristics.
4710 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
4711 if test "x$ac_cv_type_size_t" = xyes; then :
4715 cat >>confdefs.h <<_ACEOF
4716 #define size_t unsigned int
4721 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
4722 if test "x$ac_cv_type_ssize_t" = xyes; then :
4726 cat >>confdefs.h <<_ACEOF
4733 # Checks for library functions.
4734 for ac_header in stdlib.h
4736 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
4737 if test "x$ac_cv_header_stdlib_h" = xyes; then :
4738 cat >>confdefs.h <<_ACEOF
4739 #define HAVE_STDLIB_H 1
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
4747 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
4748 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
4749 $as_echo_n "(cached) " >&6
4751 if test "$cross_compiling" = yes; then :
4752 ac_cv_func_malloc_0_nonnull=no
4754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4755 /* end confdefs.h. */
4756 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
4757 # include <stdlib.h>
4765 return ! malloc (0);
4770 if ac_fn_c_try_run "$LINENO"; then :
4771 ac_cv_func_malloc_0_nonnull=yes
4773 ac_cv_func_malloc_0_nonnull=no
4775 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4776 conftest.$ac_objext conftest.beam conftest.$ac_ext
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
4781 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
4782 if test $ac_cv_func_malloc_0_nonnull = yes; then :
4784 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
4787 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
4789 case " $LIBOBJS " in
4790 *" malloc.$ac_objext "* ) ;;
4791 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
4796 $as_echo "#define malloc rpl_malloc" >>confdefs.h
4801 for ac_header in stdlib.h
4803 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
4804 if test "x$ac_cv_header_stdlib_h" = xyes; then :
4805 cat >>confdefs.h <<_ACEOF
4806 #define HAVE_STDLIB_H 1
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
4814 $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
4815 if ${ac_cv_func_realloc_0_nonnull+:} false; then :
4816 $as_echo_n "(cached) " >&6
4818 if test "$cross_compiling" = yes; then :
4819 ac_cv_func_realloc_0_nonnull=no
4821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4822 /* end confdefs.h. */
4823 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
4824 # include <stdlib.h>
4832 return ! realloc (0, 0);
4837 if ac_fn_c_try_run "$LINENO"; then :
4838 ac_cv_func_realloc_0_nonnull=yes
4840 ac_cv_func_realloc_0_nonnull=no
4842 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4843 conftest.$ac_objext conftest.beam conftest.$ac_ext
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
4848 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
4849 if test $ac_cv_func_realloc_0_nonnull = yes; then :
4851 $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
4854 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
4856 case " $LIBOBJS " in
4857 *" realloc.$ac_objext "* ) ;;
4858 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
4863 $as_echo "#define realloc rpl_realloc" >>confdefs.h
4868 for ac_func in gettimeofday memmove socket strdup strtol
4870 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4871 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4872 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
4873 cat >>confdefs.h <<_ACEOF
4874 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
4884 $as_echo_n "checking whether NLS is requested... " >&6; }
4885 # Check whether --enable-nls was given.
4886 if test "${enable_nls+set}" = set; then :
4887 enableval=$enable_nls; USE_NLS=$enableval
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
4893 $as_echo "$USE_NLS" >&6; }
4898 GETTEXT_MACRO_VERSION=0.18
4903 # Prepare PATH_SEPARATOR.
4904 # The user is always right.
4905 if test "${PATH_SEPARATOR+set}" != set; then
4906 echo "#! /bin/sh" >conf$$.sh
4907 echo "exit 0" >>conf$$.sh
4909 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4917 # Find out how to test for executable files. Don't use a zero-byte file,
4918 # as systems may use methods other than mode bits to determine executability.
4919 cat >conf$$.file <<_ASEOF
4923 chmod +x conf$$.file
4924 if test -x conf$$.file >/dev/null 2>&1; then
4925 ac_executable_p="test -x"
4927 ac_executable_p="test -f"
4931 # Extract the first word of "msgfmt", so it can be a program name with args.
4932 set dummy msgfmt; ac_word=$2
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4934 $as_echo_n "checking for $ac_word... " >&6; }
4935 if ${ac_cv_path_MSGFMT+:} false; then :
4936 $as_echo_n "(cached) " >&6
4940 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4943 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4944 for ac_dir in $PATH; do
4946 test -z "$ac_dir" && ac_dir=.
4947 for ac_exec_ext in '' $ac_executable_extensions; do
4948 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4949 echo "$as_me: trying $ac_dir/$ac_word..." >&5
4950 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
4951 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4952 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4959 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4963 MSGFMT="$ac_cv_path_MSGFMT"
4964 if test "$MSGFMT" != ":"; then
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
4966 $as_echo "$MSGFMT" >&6; }
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4969 $as_echo "no" >&6; }
4972 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4973 set dummy gmsgfmt; ac_word=$2
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4975 $as_echo_n "checking for $ac_word... " >&6; }
4976 if ${ac_cv_path_GMSGFMT+:} false; then :
4977 $as_echo_n "(cached) " >&6
4981 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4988 test -z "$as_dir" && as_dir=.
4989 for ac_exec_ext in '' $ac_executable_extensions; do
4990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4991 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4999 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5003 GMSGFMT=$ac_cv_path_GMSGFMT
5004 if test -n "$GMSGFMT"; then
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
5006 $as_echo "$GMSGFMT" >&6; }
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5009 $as_echo "no" >&6; }
5014 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5015 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
5016 *) MSGFMT_015=$MSGFMT ;;
5019 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5020 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
5021 *) GMSGFMT_015=$GMSGFMT ;;
5026 # Prepare PATH_SEPARATOR.
5027 # The user is always right.
5028 if test "${PATH_SEPARATOR+set}" != set; then
5029 echo "#! /bin/sh" >conf$$.sh
5030 echo "exit 0" >>conf$$.sh
5032 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5040 # Find out how to test for executable files. Don't use a zero-byte file,
5041 # as systems may use methods other than mode bits to determine executability.
5042 cat >conf$$.file <<_ASEOF
5046 chmod +x conf$$.file
5047 if test -x conf$$.file >/dev/null 2>&1; then
5048 ac_executable_p="test -x"
5050 ac_executable_p="test -f"
5054 # Extract the first word of "xgettext", so it can be a program name with args.
5055 set dummy xgettext; ac_word=$2
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5057 $as_echo_n "checking for $ac_word... " >&6; }
5058 if ${ac_cv_path_XGETTEXT+:} false; then :
5059 $as_echo_n "(cached) " >&6
5063 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5066 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5067 for ac_dir in $PATH; do
5069 test -z "$ac_dir" && ac_dir=.
5070 for ac_exec_ext in '' $ac_executable_extensions; do
5071 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5072 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5073 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
5074 (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
5075 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5082 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5086 XGETTEXT="$ac_cv_path_XGETTEXT"
5087 if test "$XGETTEXT" != ":"; then
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
5089 $as_echo "$XGETTEXT" >&6; }
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5092 $as_echo "no" >&6; }
5097 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5098 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
5099 *) XGETTEXT_015=$XGETTEXT ;;
5104 # Prepare PATH_SEPARATOR.
5105 # The user is always right.
5106 if test "${PATH_SEPARATOR+set}" != set; then
5107 echo "#! /bin/sh" >conf$$.sh
5108 echo "exit 0" >>conf$$.sh
5110 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5118 # Find out how to test for executable files. Don't use a zero-byte file,
5119 # as systems may use methods other than mode bits to determine executability.
5120 cat >conf$$.file <<_ASEOF
5124 chmod +x conf$$.file
5125 if test -x conf$$.file >/dev/null 2>&1; then
5126 ac_executable_p="test -x"
5128 ac_executable_p="test -f"
5132 # Extract the first word of "msgmerge", so it can be a program name with args.
5133 set dummy msgmerge; ac_word=$2
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5135 $as_echo_n "checking for $ac_word... " >&6; }
5136 if ${ac_cv_path_MSGMERGE+:} false; then :
5137 $as_echo_n "(cached) " >&6
5141 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5144 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5145 for ac_dir in $PATH; do
5147 test -z "$ac_dir" && ac_dir=.
5148 for ac_exec_ext in '' $ac_executable_extensions; do
5149 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5150 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5151 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
5152 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5159 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5163 MSGMERGE="$ac_cv_path_MSGMERGE"
5164 if test "$MSGMERGE" != ":"; then
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
5166 $as_echo "$MSGMERGE" >&6; }
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5169 $as_echo "no" >&6; }
5173 test -n "$localedir" || localedir='${datadir}/locale'
5176 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
5179 ac_config_commands="$ac_config_commands po-directories"
5183 if test "X$prefix" = "XNONE"; then
5184 acl_final_prefix="$ac_default_prefix"
5186 acl_final_prefix="$prefix"
5188 if test "X$exec_prefix" = "XNONE"; then
5189 acl_final_exec_prefix='${prefix}'
5191 acl_final_exec_prefix="$exec_prefix"
5193 acl_save_prefix="$prefix"
5194 prefix="$acl_final_prefix"
5195 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5196 prefix="$acl_save_prefix"
5198 # Make sure we can run config.sub.
5199 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5200 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5203 $as_echo_n "checking build system type... " >&6; }
5204 if ${ac_cv_build+:} false; then :
5205 $as_echo_n "(cached) " >&6
5207 ac_build_alias=$build_alias
5208 test "x$ac_build_alias" = x &&
5209 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5210 test "x$ac_build_alias" = x &&
5211 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5212 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5213 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5217 $as_echo "$ac_cv_build" >&6; }
5218 case $ac_cv_build in
5220 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5223 ac_save_IFS=$IFS; IFS='-'
5229 # Remember, the first character of IFS is used to create $*,
5230 # except with old shells:
5233 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5237 $as_echo_n "checking host system type... " >&6; }
5238 if ${ac_cv_host+:} false; then :
5239 $as_echo_n "(cached) " >&6
5241 if test "x$host_alias" = x; then
5242 ac_cv_host=$ac_cv_build
5244 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5245 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5250 $as_echo "$ac_cv_host" >&6; }
5253 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5256 ac_save_IFS=$IFS; IFS='-'
5262 # Remember, the first character of IFS is used to create $*,
5263 # except with old shells:
5266 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5270 # Check whether --with-gnu-ld was given.
5271 if test "${with_gnu_ld+set}" = set; then :
5272 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5277 # Prepare PATH_SEPARATOR.
5278 # The user is always right.
5279 if test "${PATH_SEPARATOR+set}" != set; then
5280 echo "#! /bin/sh" >conf$$.sh
5281 echo "exit 0" >>conf$$.sh
5283 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5291 if test "$GCC" = yes; then
5292 # Check if gcc -print-prog-name=ld gives a path.
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
5294 $as_echo_n "checking for ld used by GCC... " >&6; }
5297 # gcc leaves a trailing carriage return which upsets mingw
5298 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5300 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5303 # Accept absolute paths.
5304 [\\/]* | [A-Za-z]:[\\/]*)
5305 re_direlt='/[^/][^/]*/\.\./'
5306 # Canonicalize the path of ld
5307 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5308 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5309 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5311 test -z "$LD" && LD="$ac_prog"
5314 # If it fails, then pretend we aren't using GCC.
5318 # If it is relative, then search for the first ld in PATH.
5322 elif test "$with_gnu_ld" = yes; then
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5324 $as_echo_n "checking for GNU ld... " >&6; }
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5327 $as_echo_n "checking for non-GNU ld... " >&6; }
5329 if ${acl_cv_path_LD+:} false; then :
5330 $as_echo_n "(cached) " >&6
5332 if test -z "$LD"; then
5333 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5334 for ac_dir in $PATH; do
5335 test -z "$ac_dir" && ac_dir=.
5336 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5337 acl_cv_path_LD="$ac_dir/$ac_prog"
5338 # Check to see if the program is GNU ld. I'd rather use --version,
5339 # but apparently some GNU ld's only accept -v.
5340 # Break only if it was the GNU/non-GNU ld that we prefer.
5341 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
5342 *GNU* | *'with BFD'*)
5343 test "$with_gnu_ld" != no && break ;;
5345 test "$with_gnu_ld" != yes && break ;;
5351 acl_cv_path_LD="$LD" # Let the user override the test with a path.
5355 LD="$acl_cv_path_LD"
5356 if test -n "$LD"; then
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5358 $as_echo "$LD" >&6; }
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5361 $as_echo "no" >&6; }
5363 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5365 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5366 if ${acl_cv_prog_gnu_ld+:} false; then :
5367 $as_echo_n "(cached) " >&6
5369 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5370 case `$LD -v 2>&1 </dev/null` in
5371 *GNU* | *'with BFD'*)
5372 acl_cv_prog_gnu_ld=yes ;;
5374 acl_cv_prog_gnu_ld=no ;;
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
5378 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
5379 with_gnu_ld=$acl_cv_prog_gnu_ld
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
5385 $as_echo_n "checking for shared library run path origin... " >&6; }
5386 if ${acl_cv_rpath+:} false; then :
5387 $as_echo_n "(cached) " >&6
5390 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5391 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
5398 $as_echo "$acl_cv_rpath" >&6; }
5400 acl_libext="$acl_cv_libext"
5401 acl_shlibext="$acl_cv_shlibext"
5402 acl_libname_spec="$acl_cv_libname_spec"
5403 acl_library_names_spec="$acl_cv_library_names_spec"
5404 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5405 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5406 acl_hardcode_direct="$acl_cv_hardcode_direct"
5407 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
5408 # Check whether --enable-rpath was given.
5409 if test "${enable_rpath+set}" = set; then :
5410 enableval=$enable_rpath; :
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
5423 $as_echo_n "checking for 64-bit host... " >&6; }
5424 if ${gl_cv_solaris_64bit+:} false; then :
5425 $as_echo_n "(cached) " >&6
5427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5428 /* end confdefs.h. */
5435 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5436 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
5437 gl_cv_solaris_64bit=yes
5439 gl_cv_solaris_64bit=no
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
5446 $as_echo "$gl_cv_solaris_64bit" >&6; }
5447 if test $gl_cv_solaris_64bit = yes; then
5448 acl_libdirstem=lib/64
5450 sparc*) acl_libdirstem2=lib/sparcv9 ;;
5451 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
5456 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
5457 if test -n "$searchpath"; then
5458 acl_save_IFS="${IFS= }"; IFS=":"
5459 for searchdir in $searchpath; do
5460 if test -d "$searchdir"; then
5461 case "$searchdir" in
5462 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
5464 # Better ignore directories of this form. They are misleading.
5466 *) searchdir=`cd "$searchdir" && pwd`
5467 case "$searchdir" in
5468 */lib64 ) acl_libdirstem=lib64 ;;
5477 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
5492 acl_save_prefix="$prefix"
5493 prefix="$acl_final_prefix"
5494 acl_save_exec_prefix="$exec_prefix"
5495 exec_prefix="$acl_final_exec_prefix"
5497 eval additional_includedir=\"$includedir\"
5498 eval additional_libdir=\"$libdir\"
5500 exec_prefix="$acl_save_exec_prefix"
5501 prefix="$acl_save_prefix"
5504 # Check whether --with-libiconv-prefix was given.
5505 if test "${with_libiconv_prefix+set}" = set; then :
5506 withval=$with_libiconv_prefix;
5507 if test "X$withval" = "Xno"; then
5510 if test "X$withval" = "X"; then
5512 acl_save_prefix="$prefix"
5513 prefix="$acl_final_prefix"
5514 acl_save_exec_prefix="$exec_prefix"
5515 exec_prefix="$acl_final_exec_prefix"
5517 eval additional_includedir=\"$includedir\"
5518 eval additional_libdir=\"$libdir\"
5520 exec_prefix="$acl_save_exec_prefix"
5521 prefix="$acl_save_prefix"
5524 additional_includedir="$withval/include"
5525 additional_libdir="$withval/$acl_libdirstem"
5526 if test "$acl_libdirstem2" != "$acl_libdirstem" \
5527 && ! test -d "$withval/$acl_libdirstem"; then
5528 additional_libdir="$withval/$acl_libdirstem2"
5542 names_already_handled=
5543 names_next_round='iconv '
5544 while test -n "$names_next_round"; do
5545 names_this_round="$names_next_round"
5547 for name in $names_this_round; do
5549 for n in $names_already_handled; do
5550 if test "$n" = "$name"; then
5555 if test -z "$already_handled"; then
5556 names_already_handled="$names_already_handled $name"
5557 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5558 eval value=\"\$HAVE_LIB$uppername\"
5559 if test -n "$value"; then
5560 if test "$value" = yes; then
5561 eval value=\"\$LIB$uppername\"
5562 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
5563 eval value=\"\$LTLIB$uppername\"
5564 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
5573 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
5574 if test -n "$acl_shlibext"; then
5575 shrext=".$acl_shlibext" # typically: shrext=.so
5579 if test $use_additional = yes; then
5580 dir="$additional_libdir"
5581 if test -n "$acl_shlibext"; then
5582 if test -f "$dir/$libname$shrext"; then
5584 found_so="$dir/$libname$shrext"
5586 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5587 ver=`(cd "$dir" && \
5588 for f in "$libname$shrext".*; do echo "$f"; done \
5589 | sed -e "s,^$libname$shrext\\\\.,," \
5590 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5591 | sed 1q ) 2>/dev/null`
5592 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5594 found_so="$dir/$libname$shrext.$ver"
5597 eval library_names=\"$acl_library_names_spec\"
5598 for f in $library_names; do
5599 if test -f "$dir/$f"; then
5608 if test "X$found_dir" = "X"; then
5609 if test -f "$dir/$libname.$acl_libext"; then
5611 found_a="$dir/$libname.$acl_libext"
5614 if test "X$found_dir" != "X"; then
5615 if test -f "$dir/$libname.la"; then
5616 found_la="$dir/$libname.la"
5620 if test "X$found_dir" = "X"; then
5621 for x in $LDFLAGS $LTLIBICONV; do
5623 acl_save_prefix="$prefix"
5624 prefix="$acl_final_prefix"
5625 acl_save_exec_prefix="$exec_prefix"
5626 exec_prefix="$acl_final_exec_prefix"
5628 exec_prefix="$acl_save_exec_prefix"
5629 prefix="$acl_save_prefix"
5633 dir=`echo "X$x" | sed -e 's/^X-L//'`
5634 if test -n "$acl_shlibext"; then
5635 if test -f "$dir/$libname$shrext"; then
5637 found_so="$dir/$libname$shrext"
5639 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5640 ver=`(cd "$dir" && \
5641 for f in "$libname$shrext".*; do echo "$f"; done \
5642 | sed -e "s,^$libname$shrext\\\\.,," \
5643 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5644 | sed 1q ) 2>/dev/null`
5645 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5647 found_so="$dir/$libname$shrext.$ver"
5650 eval library_names=\"$acl_library_names_spec\"
5651 for f in $library_names; do
5652 if test -f "$dir/$f"; then
5661 if test "X$found_dir" = "X"; then
5662 if test -f "$dir/$libname.$acl_libext"; then
5664 found_a="$dir/$libname.$acl_libext"
5667 if test "X$found_dir" != "X"; then
5668 if test -f "$dir/$libname.la"; then
5669 found_la="$dir/$libname.la"
5674 if test "X$found_dir" != "X"; then
5679 if test "X$found_dir" != "X"; then
5680 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
5681 if test "X$found_so" != "X"; then
5682 if test "$enable_rpath" = no \
5683 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
5684 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
5685 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5688 for x in $ltrpathdirs; do
5689 if test "X$x" = "X$found_dir"; then
5694 if test -z "$haveit"; then
5695 ltrpathdirs="$ltrpathdirs $found_dir"
5697 if test "$acl_hardcode_direct" = yes; then
5698 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5700 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
5701 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5703 for x in $rpathdirs; do
5704 if test "X$x" = "X$found_dir"; then
5709 if test -z "$haveit"; then
5710 rpathdirs="$rpathdirs $found_dir"
5714 for x in $LDFLAGS $LIBICONV; do
5716 acl_save_prefix="$prefix"
5717 prefix="$acl_final_prefix"
5718 acl_save_exec_prefix="$exec_prefix"
5719 exec_prefix="$acl_final_exec_prefix"
5721 exec_prefix="$acl_save_exec_prefix"
5722 prefix="$acl_save_prefix"
5724 if test "X$x" = "X-L$found_dir"; then
5729 if test -z "$haveit"; then
5730 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
5732 if test "$acl_hardcode_minus_L" != no; then
5733 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5735 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5741 if test "X$found_a" != "X"; then
5742 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
5744 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
5747 additional_includedir=
5748 case "$found_dir" in
5749 */$acl_libdirstem | */$acl_libdirstem/)
5750 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
5751 if test "$name" = 'iconv'; then
5752 LIBICONV_PREFIX="$basedir"
5754 additional_includedir="$basedir/include"
5756 */$acl_libdirstem2 | */$acl_libdirstem2/)
5757 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
5758 if test "$name" = 'iconv'; then
5759 LIBICONV_PREFIX="$basedir"
5761 additional_includedir="$basedir/include"
5764 if test "X$additional_includedir" != "X"; then
5765 if test "X$additional_includedir" != "X/usr/include"; then
5767 if test "X$additional_includedir" = "X/usr/local/include"; then
5768 if test -n "$GCC"; then
5770 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5774 if test -z "$haveit"; then
5775 for x in $CPPFLAGS $INCICONV; do
5777 acl_save_prefix="$prefix"
5778 prefix="$acl_final_prefix"
5779 acl_save_exec_prefix="$exec_prefix"
5780 exec_prefix="$acl_final_exec_prefix"
5782 exec_prefix="$acl_save_exec_prefix"
5783 prefix="$acl_save_prefix"
5785 if test "X$x" = "X-I$additional_includedir"; then
5790 if test -z "$haveit"; then
5791 if test -d "$additional_includedir"; then
5792 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
5798 if test -n "$found_la"; then
5799 save_libdir="$libdir"
5801 */* | *\\*) . "$found_la" ;;
5802 *) . "./$found_la" ;;
5804 libdir="$save_libdir"
5805 for dep in $dependency_libs; do
5808 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5809 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
5810 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
5812 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
5813 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
5814 if test -n "$GCC"; then
5816 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5820 if test -z "$haveit"; then
5822 for x in $LDFLAGS $LIBICONV; do
5824 acl_save_prefix="$prefix"
5825 prefix="$acl_final_prefix"
5826 acl_save_exec_prefix="$exec_prefix"
5827 exec_prefix="$acl_final_exec_prefix"
5829 exec_prefix="$acl_save_exec_prefix"
5830 prefix="$acl_save_prefix"
5832 if test "X$x" = "X-L$additional_libdir"; then
5837 if test -z "$haveit"; then
5838 if test -d "$additional_libdir"; then
5839 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
5843 for x in $LDFLAGS $LTLIBICONV; do
5845 acl_save_prefix="$prefix"
5846 prefix="$acl_final_prefix"
5847 acl_save_exec_prefix="$exec_prefix"
5848 exec_prefix="$acl_final_exec_prefix"
5850 exec_prefix="$acl_save_exec_prefix"
5851 prefix="$acl_save_prefix"
5853 if test "X$x" = "X-L$additional_libdir"; then
5858 if test -z "$haveit"; then
5859 if test -d "$additional_libdir"; then
5860 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
5867 dir=`echo "X$dep" | sed -e 's/^X-R//'`
5868 if test "$enable_rpath" != no; then
5870 for x in $rpathdirs; do
5871 if test "X$x" = "X$dir"; then
5876 if test -z "$haveit"; then
5877 rpathdirs="$rpathdirs $dir"
5880 for x in $ltrpathdirs; do
5881 if test "X$x" = "X$dir"; then
5886 if test -z "$haveit"; then
5887 ltrpathdirs="$ltrpathdirs $dir"
5892 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5895 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5898 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
5899 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
5905 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5906 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
5912 if test "X$rpathdirs" != "X"; then
5913 if test -n "$acl_hardcode_libdir_separator"; then
5915 for found_dir in $rpathdirs; do
5916 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
5918 acl_save_libdir="$libdir"
5920 eval flag=\"$acl_hardcode_libdir_flag_spec\"
5921 libdir="$acl_save_libdir"
5922 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5924 for found_dir in $rpathdirs; do
5925 acl_save_libdir="$libdir"
5927 eval flag=\"$acl_hardcode_libdir_flag_spec\"
5928 libdir="$acl_save_libdir"
5929 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5933 if test "X$ltrpathdirs" != "X"; then
5934 for found_dir in $ltrpathdirs; do
5935 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
5970 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
5971 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
5972 $as_echo_n "(cached) " >&6
5974 gt_save_LIBS="$LIBS"
5975 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
5976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5977 /* end confdefs.h. */
5978 #include <CoreFoundation/CFPreferences.h>
5982 CFPreferencesCopyAppValue(NULL, NULL)
5987 if ac_fn_c_try_link "$LINENO"; then :
5988 gt_cv_func_CFPreferencesCopyAppValue=yes
5990 gt_cv_func_CFPreferencesCopyAppValue=no
5992 rm -f core conftest.err conftest.$ac_objext \
5993 conftest$ac_exeext conftest.$ac_ext
5994 LIBS="$gt_save_LIBS"
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
5997 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
5998 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
6000 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
6004 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
6005 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
6006 $as_echo_n "(cached) " >&6
6008 gt_save_LIBS="$LIBS"
6009 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
6010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6011 /* end confdefs.h. */
6012 #include <CoreFoundation/CFLocale.h>
6016 CFLocaleCopyCurrent();
6021 if ac_fn_c_try_link "$LINENO"; then :
6022 gt_cv_func_CFLocaleCopyCurrent=yes
6024 gt_cv_func_CFLocaleCopyCurrent=no
6026 rm -f core conftest.err conftest.$ac_objext \
6027 conftest$ac_exeext conftest.$ac_ext
6028 LIBS="$gt_save_LIBS"
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
6031 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
6032 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6034 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
6038 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6039 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
6051 case " $gt_needs " in
6052 *" need-formatstring-macros "*) gt_api_version=3 ;;
6053 *" need-ngettext "*) gt_api_version=2 ;;
6054 *) gt_api_version=1 ;;
6056 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
6057 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
6059 if test "$USE_NLS" = "yes"; then
6060 gt_use_preinstalled_gnugettext=no
6063 if test $gt_api_version -ge 3; then
6064 gt_revision_test_code='
6065 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
6066 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
6068 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
6071 gt_revision_test_code=
6073 if test $gt_api_version -ge 2; then
6074 gt_expression_test_code=' + * ngettext ("", "", 0)'
6076 gt_expression_test_code=
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
6080 $as_echo_n "checking for GNU gettext in libc... " >&6; }
6081 if eval \${$gt_func_gnugettext_libc+:} false; then :
6082 $as_echo_n "(cached) " >&6
6084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6085 /* end confdefs.h. */
6086 #include <libintl.h>
6087 $gt_revision_test_code
6088 extern int _nl_msg_cat_cntr;
6089 extern int *_nl_domain_bindings;
6093 bindtextdomain ("", "");
6094 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
6099 if ac_fn_c_try_link "$LINENO"; then :
6100 eval "$gt_func_gnugettext_libc=yes"
6102 eval "$gt_func_gnugettext_libc=no"
6104 rm -f core conftest.err conftest.$ac_objext \
6105 conftest$ac_exeext conftest.$ac_ext
6107 eval ac_res=\$$gt_func_gnugettext_libc
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6109 $as_echo "$ac_res" >&6; }
6111 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
6117 am_save_CPPFLAGS="$CPPFLAGS"
6119 for element in $INCICONV; do
6121 for x in $CPPFLAGS; do
6123 acl_save_prefix="$prefix"
6124 prefix="$acl_final_prefix"
6125 acl_save_exec_prefix="$exec_prefix"
6126 exec_prefix="$acl_final_exec_prefix"
6128 exec_prefix="$acl_save_exec_prefix"
6129 prefix="$acl_save_prefix"
6131 if test "X$x" = "X$element"; then
6136 if test -z "$haveit"; then
6137 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
6143 $as_echo_n "checking for iconv... " >&6; }
6144 if ${am_cv_func_iconv+:} false; then :
6145 $as_echo_n "(cached) " >&6
6148 am_cv_func_iconv="no, consider installing GNU libiconv"
6150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6151 /* end confdefs.h. */
6157 iconv_t cd = iconv_open("","");
6158 iconv(cd,NULL,NULL,NULL,NULL);
6164 if ac_fn_c_try_link "$LINENO"; then :
6165 am_cv_func_iconv=yes
6167 rm -f core conftest.err conftest.$ac_objext \
6168 conftest$ac_exeext conftest.$ac_ext
6169 if test "$am_cv_func_iconv" != yes; then
6170 am_save_LIBS="$LIBS"
6171 LIBS="$LIBS $LIBICONV"
6172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6173 /* end confdefs.h. */
6179 iconv_t cd = iconv_open("","");
6180 iconv(cd,NULL,NULL,NULL,NULL);
6186 if ac_fn_c_try_link "$LINENO"; then :
6188 am_cv_func_iconv=yes
6190 rm -f core conftest.err conftest.$ac_objext \
6191 conftest$ac_exeext conftest.$ac_ext
6192 LIBS="$am_save_LIBS"
6196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
6197 $as_echo "$am_cv_func_iconv" >&6; }
6198 if test "$am_cv_func_iconv" = yes; then
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
6200 $as_echo_n "checking for working iconv... " >&6; }
6201 if ${am_cv_func_iconv_works+:} false; then :
6202 $as_echo_n "(cached) " >&6
6205 am_save_LIBS="$LIBS"
6206 if test $am_cv_lib_iconv = yes; then
6207 LIBS="$LIBS $LIBICONV"
6209 if test "$cross_compiling" = yes; then :
6211 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
6212 *) am_cv_func_iconv_works="guessing yes" ;;
6215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6216 /* end confdefs.h. */
6222 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
6225 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
6226 if (cd_utf8_to_88591 != (iconv_t)(-1))
6228 static const char input[] = "\342\202\254"; /* EURO SIGN */
6230 const char *inptr = input;
6231 size_t inbytesleft = strlen (input);
6233 size_t outbytesleft = sizeof (buf);
6234 size_t res = iconv (cd_utf8_to_88591,
6235 (char **) &inptr, &inbytesleft,
6236 &outptr, &outbytesleft);
6241 /* Test against Solaris 10 bug: Failures are not distinguishable from
6242 successful returns. */
6244 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
6245 if (cd_ascii_to_88591 != (iconv_t)(-1))
6247 static const char input[] = "\263";
6249 const char *inptr = input;
6250 size_t inbytesleft = strlen (input);
6252 size_t outbytesleft = sizeof (buf);
6253 size_t res = iconv (cd_ascii_to_88591,
6254 (char **) &inptr, &inbytesleft,
6255 &outptr, &outbytesleft);
6260 #if 0 /* This bug could be worked around by the caller. */
6261 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
6263 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
6264 if (cd_88591_to_utf8 != (iconv_t)(-1))
6266 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
6268 const char *inptr = input;
6269 size_t inbytesleft = strlen (input);
6271 size_t outbytesleft = sizeof (buf);
6272 size_t res = iconv (cd_88591_to_utf8,
6273 (char **) &inptr, &inbytesleft,
6274 &outptr, &outbytesleft);
6280 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
6282 if (/* Try standardized names. */
6283 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
6284 /* Try IRIX, OSF/1 names. */
6285 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
6286 /* Try AIX names. */
6287 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
6288 /* Try HP-UX names. */
6289 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
6294 if ac_fn_c_try_run "$LINENO"; then :
6295 am_cv_func_iconv_works=yes
6297 am_cv_func_iconv_works=no
6299 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6300 conftest.$ac_objext conftest.beam conftest.$ac_ext
6303 LIBS="$am_save_LIBS"
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
6307 $as_echo "$am_cv_func_iconv_works" >&6; }
6308 case "$am_cv_func_iconv_works" in
6309 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
6310 *) am_func_iconv=yes ;;
6313 am_func_iconv=no am_cv_lib_iconv=no
6315 if test "$am_func_iconv" = yes; then
6317 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
6320 if test "$am_cv_lib_iconv" = yes; then
6321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
6322 $as_echo_n "checking how to link with libiconv... " >&6; }
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
6324 $as_echo "$LIBICONV" >&6; }
6326 CPPFLAGS="$am_save_CPPFLAGS"
6343 acl_save_prefix="$prefix"
6344 prefix="$acl_final_prefix"
6345 acl_save_exec_prefix="$exec_prefix"
6346 exec_prefix="$acl_final_exec_prefix"
6348 eval additional_includedir=\"$includedir\"
6349 eval additional_libdir=\"$libdir\"
6351 exec_prefix="$acl_save_exec_prefix"
6352 prefix="$acl_save_prefix"
6355 # Check whether --with-libintl-prefix was given.
6356 if test "${with_libintl_prefix+set}" = set; then :
6357 withval=$with_libintl_prefix;
6358 if test "X$withval" = "Xno"; then
6361 if test "X$withval" = "X"; then
6363 acl_save_prefix="$prefix"
6364 prefix="$acl_final_prefix"
6365 acl_save_exec_prefix="$exec_prefix"
6366 exec_prefix="$acl_final_exec_prefix"
6368 eval additional_includedir=\"$includedir\"
6369 eval additional_libdir=\"$libdir\"
6371 exec_prefix="$acl_save_exec_prefix"
6372 prefix="$acl_save_prefix"
6375 additional_includedir="$withval/include"
6376 additional_libdir="$withval/$acl_libdirstem"
6377 if test "$acl_libdirstem2" != "$acl_libdirstem" \
6378 && ! test -d "$withval/$acl_libdirstem"; then
6379 additional_libdir="$withval/$acl_libdirstem2"
6393 names_already_handled=
6394 names_next_round='intl '
6395 while test -n "$names_next_round"; do
6396 names_this_round="$names_next_round"
6398 for name in $names_this_round; do
6400 for n in $names_already_handled; do
6401 if test "$n" = "$name"; then
6406 if test -z "$already_handled"; then
6407 names_already_handled="$names_already_handled $name"
6408 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6409 eval value=\"\$HAVE_LIB$uppername\"
6410 if test -n "$value"; then
6411 if test "$value" = yes; then
6412 eval value=\"\$LIB$uppername\"
6413 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
6414 eval value=\"\$LTLIB$uppername\"
6415 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
6424 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
6425 if test -n "$acl_shlibext"; then
6426 shrext=".$acl_shlibext" # typically: shrext=.so
6430 if test $use_additional = yes; then
6431 dir="$additional_libdir"
6432 if test -n "$acl_shlibext"; then
6433 if test -f "$dir/$libname$shrext"; then
6435 found_so="$dir/$libname$shrext"
6437 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6438 ver=`(cd "$dir" && \
6439 for f in "$libname$shrext".*; do echo "$f"; done \
6440 | sed -e "s,^$libname$shrext\\\\.,," \
6441 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6442 | sed 1q ) 2>/dev/null`
6443 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6445 found_so="$dir/$libname$shrext.$ver"
6448 eval library_names=\"$acl_library_names_spec\"
6449 for f in $library_names; do
6450 if test -f "$dir/$f"; then
6459 if test "X$found_dir" = "X"; then
6460 if test -f "$dir/$libname.$acl_libext"; then
6462 found_a="$dir/$libname.$acl_libext"
6465 if test "X$found_dir" != "X"; then
6466 if test -f "$dir/$libname.la"; then
6467 found_la="$dir/$libname.la"
6471 if test "X$found_dir" = "X"; then
6472 for x in $LDFLAGS $LTLIBINTL; do
6474 acl_save_prefix="$prefix"
6475 prefix="$acl_final_prefix"
6476 acl_save_exec_prefix="$exec_prefix"
6477 exec_prefix="$acl_final_exec_prefix"
6479 exec_prefix="$acl_save_exec_prefix"
6480 prefix="$acl_save_prefix"
6484 dir=`echo "X$x" | sed -e 's/^X-L//'`
6485 if test -n "$acl_shlibext"; then
6486 if test -f "$dir/$libname$shrext"; then
6488 found_so="$dir/$libname$shrext"
6490 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6491 ver=`(cd "$dir" && \
6492 for f in "$libname$shrext".*; do echo "$f"; done \
6493 | sed -e "s,^$libname$shrext\\\\.,," \
6494 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6495 | sed 1q ) 2>/dev/null`
6496 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6498 found_so="$dir/$libname$shrext.$ver"
6501 eval library_names=\"$acl_library_names_spec\"
6502 for f in $library_names; do
6503 if test -f "$dir/$f"; then
6512 if test "X$found_dir" = "X"; then
6513 if test -f "$dir/$libname.$acl_libext"; then
6515 found_a="$dir/$libname.$acl_libext"
6518 if test "X$found_dir" != "X"; then
6519 if test -f "$dir/$libname.la"; then
6520 found_la="$dir/$libname.la"
6525 if test "X$found_dir" != "X"; then
6530 if test "X$found_dir" != "X"; then
6531 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
6532 if test "X$found_so" != "X"; then
6533 if test "$enable_rpath" = no \
6534 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
6535 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
6536 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6539 for x in $ltrpathdirs; do
6540 if test "X$x" = "X$found_dir"; then
6545 if test -z "$haveit"; then
6546 ltrpathdirs="$ltrpathdirs $found_dir"
6548 if test "$acl_hardcode_direct" = yes; then
6549 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6551 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
6552 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6554 for x in $rpathdirs; do
6555 if test "X$x" = "X$found_dir"; then
6560 if test -z "$haveit"; then
6561 rpathdirs="$rpathdirs $found_dir"
6565 for x in $LDFLAGS $LIBINTL; do
6567 acl_save_prefix="$prefix"
6568 prefix="$acl_final_prefix"
6569 acl_save_exec_prefix="$exec_prefix"
6570 exec_prefix="$acl_final_exec_prefix"
6572 exec_prefix="$acl_save_exec_prefix"
6573 prefix="$acl_save_prefix"
6575 if test "X$x" = "X-L$found_dir"; then
6580 if test -z "$haveit"; then
6581 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
6583 if test "$acl_hardcode_minus_L" != no; then
6584 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6586 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6592 if test "X$found_a" != "X"; then
6593 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
6595 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
6598 additional_includedir=
6599 case "$found_dir" in
6600 */$acl_libdirstem | */$acl_libdirstem/)
6601 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
6602 if test "$name" = 'intl'; then
6603 LIBINTL_PREFIX="$basedir"
6605 additional_includedir="$basedir/include"
6607 */$acl_libdirstem2 | */$acl_libdirstem2/)
6608 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
6609 if test "$name" = 'intl'; then
6610 LIBINTL_PREFIX="$basedir"
6612 additional_includedir="$basedir/include"
6615 if test "X$additional_includedir" != "X"; then
6616 if test "X$additional_includedir" != "X/usr/include"; then
6618 if test "X$additional_includedir" = "X/usr/local/include"; then
6619 if test -n "$GCC"; then
6621 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6625 if test -z "$haveit"; then
6626 for x in $CPPFLAGS $INCINTL; do
6628 acl_save_prefix="$prefix"
6629 prefix="$acl_final_prefix"
6630 acl_save_exec_prefix="$exec_prefix"
6631 exec_prefix="$acl_final_exec_prefix"
6633 exec_prefix="$acl_save_exec_prefix"
6634 prefix="$acl_save_prefix"
6636 if test "X$x" = "X-I$additional_includedir"; then
6641 if test -z "$haveit"; then
6642 if test -d "$additional_includedir"; then
6643 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
6649 if test -n "$found_la"; then
6650 save_libdir="$libdir"
6652 */* | *\\*) . "$found_la" ;;
6653 *) . "./$found_la" ;;
6655 libdir="$save_libdir"
6656 for dep in $dependency_libs; do
6659 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6660 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
6661 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
6663 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
6664 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
6665 if test -n "$GCC"; then
6667 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6671 if test -z "$haveit"; then
6673 for x in $LDFLAGS $LIBINTL; do
6675 acl_save_prefix="$prefix"
6676 prefix="$acl_final_prefix"
6677 acl_save_exec_prefix="$exec_prefix"
6678 exec_prefix="$acl_final_exec_prefix"
6680 exec_prefix="$acl_save_exec_prefix"
6681 prefix="$acl_save_prefix"
6683 if test "X$x" = "X-L$additional_libdir"; then
6688 if test -z "$haveit"; then
6689 if test -d "$additional_libdir"; then
6690 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
6694 for x in $LDFLAGS $LTLIBINTL; do
6696 acl_save_prefix="$prefix"
6697 prefix="$acl_final_prefix"
6698 acl_save_exec_prefix="$exec_prefix"
6699 exec_prefix="$acl_final_exec_prefix"
6701 exec_prefix="$acl_save_exec_prefix"
6702 prefix="$acl_save_prefix"
6704 if test "X$x" = "X-L$additional_libdir"; then
6709 if test -z "$haveit"; then
6710 if test -d "$additional_libdir"; then
6711 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
6718 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6719 if test "$enable_rpath" != no; then
6721 for x in $rpathdirs; do
6722 if test "X$x" = "X$dir"; then
6727 if test -z "$haveit"; then
6728 rpathdirs="$rpathdirs $dir"
6731 for x in $ltrpathdirs; do
6732 if test "X$x" = "X$dir"; then
6737 if test -z "$haveit"; then
6738 ltrpathdirs="$ltrpathdirs $dir"
6743 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6746 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6749 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
6750 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
6756 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6757 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
6763 if test "X$rpathdirs" != "X"; then
6764 if test -n "$acl_hardcode_libdir_separator"; then
6766 for found_dir in $rpathdirs; do
6767 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
6769 acl_save_libdir="$libdir"
6771 eval flag=\"$acl_hardcode_libdir_flag_spec\"
6772 libdir="$acl_save_libdir"
6773 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6775 for found_dir in $rpathdirs; do
6776 acl_save_libdir="$libdir"
6778 eval flag=\"$acl_hardcode_libdir_flag_spec\"
6779 libdir="$acl_save_libdir"
6780 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6784 if test "X$ltrpathdirs" != "X"; then
6785 for found_dir in $ltrpathdirs; do
6786 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
6796 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
6797 if eval \${$gt_func_gnugettext_libintl+:} false; then :
6798 $as_echo_n "(cached) " >&6
6800 gt_save_CPPFLAGS="$CPPFLAGS"
6801 CPPFLAGS="$CPPFLAGS $INCINTL"
6802 gt_save_LIBS="$LIBS"
6803 LIBS="$LIBS $LIBINTL"
6804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6805 /* end confdefs.h. */
6806 #include <libintl.h>
6807 $gt_revision_test_code
6808 extern int _nl_msg_cat_cntr;
6813 const char *_nl_expand_alias (const char *);
6817 bindtextdomain ("", "");
6818 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6823 if ac_fn_c_try_link "$LINENO"; then :
6824 eval "$gt_func_gnugettext_libintl=yes"
6826 eval "$gt_func_gnugettext_libintl=no"
6828 rm -f core conftest.err conftest.$ac_objext \
6829 conftest$ac_exeext conftest.$ac_ext
6830 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
6831 LIBS="$LIBS $LIBICONV"
6832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6833 /* end confdefs.h. */
6834 #include <libintl.h>
6835 $gt_revision_test_code
6836 extern int _nl_msg_cat_cntr;
6841 const char *_nl_expand_alias (const char *);
6845 bindtextdomain ("", "");
6846 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6851 if ac_fn_c_try_link "$LINENO"; then :
6852 LIBINTL="$LIBINTL $LIBICONV"
6853 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
6854 eval "$gt_func_gnugettext_libintl=yes"
6857 rm -f core conftest.err conftest.$ac_objext \
6858 conftest$ac_exeext conftest.$ac_ext
6860 CPPFLAGS="$gt_save_CPPFLAGS"
6861 LIBS="$gt_save_LIBS"
6863 eval ac_res=\$$gt_func_gnugettext_libintl
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6865 $as_echo "$ac_res" >&6; }
6868 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
6869 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
6870 && test "$PACKAGE" != gettext-runtime \
6871 && test "$PACKAGE" != gettext-tools; }; then
6872 gt_use_preinstalled_gnugettext=yes
6881 if test -n "$INTL_MACOSX_LIBS"; then
6882 if test "$gt_use_preinstalled_gnugettext" = "yes" \
6883 || test "$nls_cv_use_gnu_gettext" = "yes"; then
6884 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
6885 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
6889 if test "$gt_use_preinstalled_gnugettext" = "yes" \
6890 || test "$nls_cv_use_gnu_gettext" = "yes"; then
6892 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
6900 $as_echo_n "checking whether to use NLS... " >&6; }
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6902 $as_echo "$USE_NLS" >&6; }
6903 if test "$USE_NLS" = "yes"; then
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
6905 $as_echo_n "checking where the gettext function comes from... " >&6; }
6906 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6907 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
6908 gt_source="external libintl"
6913 gt_source="included intl directory"
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
6916 $as_echo "$gt_source" >&6; }
6919 if test "$USE_NLS" = "yes"; then
6921 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6922 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
6924 $as_echo_n "checking how to link with libintl... " >&6; }
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
6926 $as_echo "$LIBINTL" >&6; }
6928 for element in $INCINTL; do
6930 for x in $CPPFLAGS; do
6932 acl_save_prefix="$prefix"
6933 prefix="$acl_final_prefix"
6934 acl_save_exec_prefix="$exec_prefix"
6935 exec_prefix="$acl_final_exec_prefix"
6937 exec_prefix="$acl_save_exec_prefix"
6938 prefix="$acl_save_prefix"
6940 if test "X$x" = "X$element"; then
6945 if test -z "$haveit"; then
6946 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6953 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
6956 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
6974 # Extract the first word of "gconftool-2", so it can be a program name with args.
6975 set dummy gconftool-2; ac_word=$2
6976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6977 $as_echo_n "checking for $ac_word... " >&6; }
6978 if ${ac_cv_path_GCONFTOOL+:} false; then :
6979 $as_echo_n "(cached) " >&6
6983 ac_cv_path_GCONFTOOL="$GCONFTOOL" # Let the user override the test with a path.
6986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6990 test -z "$as_dir" && as_dir=.
6991 for ac_exec_ext in '' $ac_executable_extensions; do
6992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6993 ac_cv_path_GCONFTOOL="$as_dir/$ac_word$ac_exec_ext"
6994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7001 test -z "$ac_cv_path_GCONFTOOL" && ac_cv_path_GCONFTOOL="no"
7005 GCONFTOOL=$ac_cv_path_GCONFTOOL
7006 if test -n "$GCONFTOOL"; then
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONFTOOL" >&5
7008 $as_echo "$GCONFTOOL" >&6; }
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7011 $as_echo "no" >&6; }
7016 if test "x$GCONF_SCHEMA_INSTALL_SOURCE" = "x"; then
7017 GCONF_SCHEMA_CONFIG_SOURCE=`gconftool-2 --get-default-source`
7019 GCONF_SCHEMA_CONFIG_SOURCE=$GCONF_SCHEMA_INSTALL_SOURCE
7023 # Check whether --with-gconf-source was given.
7024 if test "${with_gconf_source+set}" = set; then :
7025 withval=$with_gconf_source; GCONF_SCHEMA_CONFIG_SOURCE="$withval"
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using config source $GCONF_SCHEMA_CONFIG_SOURCE for schema installation" >&5
7031 $as_echo "Using config source $GCONF_SCHEMA_CONFIG_SOURCE for schema installation" >&6; }
7033 if test "x$GCONF_SCHEMA_FILE_DIR" = "x"; then
7034 GCONF_SCHEMA_FILE_DIR='$(sysconfdir)/gconf/schemas'
7038 # Check whether --with-gconf-schema-file-dir was given.
7039 if test "${with_gconf_schema_file_dir+set}" = set; then :
7040 withval=$with_gconf_schema_file_dir; GCONF_SCHEMA_FILE_DIR="$withval"
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using $GCONF_SCHEMA_FILE_DIR as install directory for schema files" >&5
7046 $as_echo "Using $GCONF_SCHEMA_FILE_DIR as install directory for schema files" >&6; }
7048 # Check whether --enable-schemas-install was given.
7049 if test "${enable_schemas_install+set}" = set; then :
7050 enableval=$enable_schemas_install; case ${enableval} in
7052 *) as_fn_error $? "bad value ${enableval} for --enable-schemas-install" "$LINENO" 5 ;;
7056 if test "$enable_schemas_install" != no; then
7057 GCONF_SCHEMAS_INSTALL_TRUE=
7058 GCONF_SCHEMAS_INSTALL_FALSE='#'
7060 GCONF_SCHEMAS_INSTALL_TRUE='#'
7061 GCONF_SCHEMAS_INSTALL_FALSE=
7066 ############### common
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
7070 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
7071 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
7072 $as_echo_n "(cached) " >&6
7074 ac_check_lib_save_LIBS=$LIBS
7075 LIBS="-lpthread $LIBS"
7076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7077 /* end confdefs.h. */
7079 /* Override any GCC internal prototype to avoid an error.
7080 Use char because int might match the return type of a GCC
7081 builtin and then its argument prototype would still apply. */
7085 char pthread_create ();
7089 return pthread_create ();
7094 if ac_fn_c_try_link "$LINENO"; then :
7095 ac_cv_lib_pthread_pthread_create=yes
7097 ac_cv_lib_pthread_pthread_create=no
7099 rm -f core conftest.err conftest.$ac_objext \
7100 conftest$ac_exeext conftest.$ac_ext
7101 LIBS=$ac_check_lib_save_LIBS
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
7104 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
7105 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
7106 cat >>confdefs.h <<_ACEOF
7107 #define HAVE_LIBPTHREAD 1
7110 LIBS="-lpthread $LIBS"
7114 PTHREAD_LIBS=-pthread
7117 # Checks sensors, required by psensor and psensor-server
7118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sensors_init in -lsensors" >&5
7119 $as_echo_n "checking for sensors_init in -lsensors... " >&6; }
7120 if ${ac_cv_lib_sensors_sensors_init+:} false; then :
7121 $as_echo_n "(cached) " >&6
7123 ac_check_lib_save_LIBS=$LIBS
7124 LIBS="-lsensors $LIBS"
7125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7126 /* end confdefs.h. */
7128 /* Override any GCC internal prototype to avoid an error.
7129 Use char because int might match the return type of a GCC
7130 builtin and then its argument prototype would still apply. */
7134 char sensors_init ();
7138 return sensors_init ();
7143 if ac_fn_c_try_link "$LINENO"; then :
7144 ac_cv_lib_sensors_sensors_init=yes
7146 ac_cv_lib_sensors_sensors_init=no
7148 rm -f core conftest.err conftest.$ac_objext \
7149 conftest$ac_exeext conftest.$ac_ext
7150 LIBS=$ac_check_lib_save_LIBS
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sensors_sensors_init" >&5
7153 $as_echo "$ac_cv_lib_sensors_sensors_init" >&6; }
7154 if test "x$ac_cv_lib_sensors_sensors_init" = xyes; then :
7155 cat >>confdefs.h <<_ACEOF
7156 #define HAVE_LIBSENSORS 1
7159 LIBS="-lsensors $LIBS"
7163 for ac_header in sensors/sensors.h sensors/errors.h
7165 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7166 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7167 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7168 cat >>confdefs.h <<_ACEOF
7169 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7176 SENSORS_LIBS=-lsensors
7179 ############### psensor
7190 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7191 if test -n "$ac_tool_prefix"; then
7192 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7193 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7195 $as_echo_n "checking for $ac_word... " >&6; }
7196 if ${ac_cv_path_PKG_CONFIG+:} false; then :
7197 $as_echo_n "(cached) " >&6
7201 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7208 test -z "$as_dir" && as_dir=.
7209 for ac_exec_ext in '' $ac_executable_extensions; do
7210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7211 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7222 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7223 if test -n "$PKG_CONFIG"; then
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7225 $as_echo "$PKG_CONFIG" >&6; }
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7228 $as_echo "no" >&6; }
7233 if test -z "$ac_cv_path_PKG_CONFIG"; then
7234 ac_pt_PKG_CONFIG=$PKG_CONFIG
7235 # Extract the first word of "pkg-config", so it can be a program name with args.
7236 set dummy pkg-config; ac_word=$2
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7238 $as_echo_n "checking for $ac_word... " >&6; }
7239 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
7240 $as_echo_n "(cached) " >&6
7242 case $ac_pt_PKG_CONFIG in
7244 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7251 test -z "$as_dir" && as_dir=.
7252 for ac_exec_ext in '' $ac_executable_extensions; do
7253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7254 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7265 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7266 if test -n "$ac_pt_PKG_CONFIG"; then
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7268 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7271 $as_echo "no" >&6; }
7274 if test "x$ac_pt_PKG_CONFIG" = x; then
7277 case $cross_compiling:$ac_tool_warned in
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7280 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7281 ac_tool_warned=yes ;;
7283 PKG_CONFIG=$ac_pt_PKG_CONFIG
7286 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7290 if test -n "$PKG_CONFIG"; then
7291 _pkg_min_version=0.9.0
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7293 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7294 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7296 $as_echo "yes" >&6; }
7298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7299 $as_echo "no" >&6; }
7305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
7306 $as_echo_n "checking for X11... " >&6; }
7308 if test -n "$X11_CFLAGS"; then
7309 pkg_cv_X11_CFLAGS="$X11_CFLAGS"
7310 elif test -n "$PKG_CONFIG"; then
7311 if test -n "$PKG_CONFIG" && \
7312 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
7313 ($PKG_CONFIG --exists --print-errors "x11") 2>&5
7315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7316 test $ac_status = 0; }; then
7317 pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
7318 test "x$?" != "x0" && pkg_failed=yes
7325 if test -n "$X11_LIBS"; then
7326 pkg_cv_X11_LIBS="$X11_LIBS"
7327 elif test -n "$PKG_CONFIG"; then
7328 if test -n "$PKG_CONFIG" && \
7329 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
7330 ($PKG_CONFIG --exists --print-errors "x11") 2>&5
7332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7333 test $ac_status = 0; }; then
7334 pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
7335 test "x$?" != "x0" && pkg_failed=yes
7345 if test $pkg_failed = yes; then
7346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7347 $as_echo "no" >&6; }
7349 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7350 _pkg_short_errors_supported=yes
7352 _pkg_short_errors_supported=no
7354 if test $_pkg_short_errors_supported = yes; then
7355 X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11" 2>&1`
7357 X11_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11" 2>&1`
7359 # Put the nasty error message in config.log where it belongs
7360 echo "$X11_PKG_ERRORS" >&5
7362 as_fn_error $? "Package requirements (x11) were not met:
7366 Consider adjusting the PKG_CONFIG_PATH environment variable if you
7367 installed software in a non-standard prefix.
7369 Alternatively, you may set the environment variables X11_CFLAGS
7370 and X11_LIBS to avoid the need to call pkg-config.
7371 See the pkg-config man page for more details." "$LINENO" 5
7372 elif test $pkg_failed = untried; then
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7374 $as_echo "no" >&6; }
7375 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7376 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7377 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
7378 is in your PATH or set the PKG_CONFIG environment variable to the full
7381 Alternatively, you may set the environment variables X11_CFLAGS
7382 and X11_LIBS to avoid the need to call pkg-config.
7383 See the pkg-config man page for more details.
7385 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7386 See \`config.log' for more details" "$LINENO" 5; }
7388 X11_CFLAGS=$pkg_cv_X11_CFLAGS
7389 X11_LIBS=$pkg_cv_X11_LIBS
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7391 $as_echo "yes" >&6; }
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5
7400 $as_echo_n "checking for XEXT... " >&6; }
7402 if test -n "$XEXT_CFLAGS"; then
7403 pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
7404 elif test -n "$PKG_CONFIG"; then
7405 if test -n "$PKG_CONFIG" && \
7406 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5
7407 ($PKG_CONFIG --exists --print-errors "xext") 2>&5
7409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7410 test $ac_status = 0; }; then
7411 pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xext" 2>/dev/null`
7412 test "x$?" != "x0" && pkg_failed=yes
7419 if test -n "$XEXT_LIBS"; then
7420 pkg_cv_XEXT_LIBS="$XEXT_LIBS"
7421 elif test -n "$PKG_CONFIG"; then
7422 if test -n "$PKG_CONFIG" && \
7423 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5
7424 ($PKG_CONFIG --exists --print-errors "xext") 2>&5
7426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7427 test $ac_status = 0; }; then
7428 pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xext" 2>/dev/null`
7429 test "x$?" != "x0" && pkg_failed=yes
7439 if test $pkg_failed = yes; then
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7441 $as_echo "no" >&6; }
7443 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7444 _pkg_short_errors_supported=yes
7446 _pkg_short_errors_supported=no
7448 if test $_pkg_short_errors_supported = yes; then
7449 XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xext" 2>&1`
7451 XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xext" 2>&1`
7453 # Put the nasty error message in config.log where it belongs
7454 echo "$XEXT_PKG_ERRORS" >&5
7456 as_fn_error $? "Package requirements (xext) were not met:
7460 Consider adjusting the PKG_CONFIG_PATH environment variable if you
7461 installed software in a non-standard prefix.
7463 Alternatively, you may set the environment variables XEXT_CFLAGS
7464 and XEXT_LIBS to avoid the need to call pkg-config.
7465 See the pkg-config man page for more details." "$LINENO" 5
7466 elif test $pkg_failed = untried; then
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7468 $as_echo "no" >&6; }
7469 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7470 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7471 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
7472 is in your PATH or set the PKG_CONFIG environment variable to the full
7475 Alternatively, you may set the environment variables XEXT_CFLAGS
7476 and XEXT_LIBS to avoid the need to call pkg-config.
7477 See the pkg-config man page for more details.
7479 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7480 See \`config.log' for more details" "$LINENO" 5; }
7482 XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
7483 XEXT_LIBS=$pkg_cv_XEXT_LIBS
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7485 $as_echo "yes" >&6; }
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5
7495 $as_echo_n "checking for GTK... " >&6; }
7497 if test -n "$GTK_CFLAGS"; then
7498 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
7499 elif test -n "$PKG_CONFIG"; then
7500 if test -n "$PKG_CONFIG" && \
7501 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0\""; } >&5
7502 ($PKG_CONFIG --exists --print-errors "gtk+-3.0") 2>&5
7504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7505 test $ac_status = 0; }; then
7506 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-3.0" 2>/dev/null`
7507 test "x$?" != "x0" && pkg_failed=yes
7514 if test -n "$GTK_LIBS"; then
7515 pkg_cv_GTK_LIBS="$GTK_LIBS"
7516 elif test -n "$PKG_CONFIG"; then
7517 if test -n "$PKG_CONFIG" && \
7518 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0\""; } >&5
7519 ($PKG_CONFIG --exists --print-errors "gtk+-3.0") 2>&5
7521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7522 test $ac_status = 0; }; then
7523 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-3.0" 2>/dev/null`
7524 test "x$?" != "x0" && pkg_failed=yes
7534 if test $pkg_failed = yes; then
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7536 $as_echo "no" >&6; }
7538 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7539 _pkg_short_errors_supported=yes
7541 _pkg_short_errors_supported=no
7543 if test $_pkg_short_errors_supported = yes; then
7544 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-3.0" 2>&1`
7546 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-3.0" 2>&1`
7548 # Put the nasty error message in config.log where it belongs
7549 echo "$GTK_PKG_ERRORS" >&5
7551 as_fn_error $? "Package requirements (gtk+-3.0) were not met:
7555 Consider adjusting the PKG_CONFIG_PATH environment variable if you
7556 installed software in a non-standard prefix.
7558 Alternatively, you may set the environment variables GTK_CFLAGS
7559 and GTK_LIBS to avoid the need to call pkg-config.
7560 See the pkg-config man page for more details." "$LINENO" 5
7561 elif test $pkg_failed = untried; then
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7563 $as_echo "no" >&6; }
7564 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7565 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7566 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
7567 is in your PATH or set the PKG_CONFIG environment variable to the full
7570 Alternatively, you may set the environment variables GTK_CFLAGS
7571 and GTK_LIBS to avoid the need to call pkg-config.
7572 See the pkg-config man page for more details.
7574 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7575 See \`config.log' for more details" "$LINENO" 5; }
7577 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
7578 GTK_LIBS=$pkg_cv_GTK_LIBS
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7580 $as_echo "yes" >&6; }
7583 # ensure that only allowed headers are included
7584 GTK_CFLAGS+=" -DGTK_DISABLE_SINGLE_INCLUDES "
7585 # ensure that no gtk deprecated symbols are used
7586 GTK_CFLAGS+=" -DGDK_DISABLE_DEPRECATED "
7587 GTK_CFLAGS+=" -DGTK_DISABLE_DEPRECATED "
7588 # ensure use of accessors
7589 GTK_CFLAGS+=" -DGSEAL_ENABLE "
7596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCONF" >&5
7597 $as_echo_n "checking for GCONF... " >&6; }
7599 if test -n "$GCONF_CFLAGS"; then
7600 pkg_cv_GCONF_CFLAGS="$GCONF_CFLAGS"
7601 elif test -n "$PKG_CONFIG"; then
7602 if test -n "$PKG_CONFIG" && \
7603 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gconf-2.0\""; } >&5
7604 ($PKG_CONFIG --exists --print-errors "gconf-2.0") 2>&5
7606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7607 test $ac_status = 0; }; then
7608 pkg_cv_GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0" 2>/dev/null`
7609 test "x$?" != "x0" && pkg_failed=yes
7616 if test -n "$GCONF_LIBS"; then
7617 pkg_cv_GCONF_LIBS="$GCONF_LIBS"
7618 elif test -n "$PKG_CONFIG"; then
7619 if test -n "$PKG_CONFIG" && \
7620 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gconf-2.0\""; } >&5
7621 ($PKG_CONFIG --exists --print-errors "gconf-2.0") 2>&5
7623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7624 test $ac_status = 0; }; then
7625 pkg_cv_GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0" 2>/dev/null`
7626 test "x$?" != "x0" && pkg_failed=yes
7636 if test $pkg_failed = yes; then
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7638 $as_echo "no" >&6; }
7640 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7641 _pkg_short_errors_supported=yes
7643 _pkg_short_errors_supported=no
7645 if test $_pkg_short_errors_supported = yes; then
7646 GCONF_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gconf-2.0" 2>&1`
7648 GCONF_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gconf-2.0" 2>&1`
7650 # Put the nasty error message in config.log where it belongs
7651 echo "$GCONF_PKG_ERRORS" >&5
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"gconf2 not present\"" >&5
7654 $as_echo "$as_me: WARNING: \"gconf2 not present\"" >&2;}
7655 elif test $pkg_failed = untried; then
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7657 $as_echo "no" >&6; }
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"gconf2 not present\"" >&5
7659 $as_echo "$as_me: WARNING: \"gconf2 not present\"" >&2;}
7661 GCONF_CFLAGS=$pkg_cv_GCONF_CFLAGS
7662 GCONF_LIBS=$pkg_cv_GCONF_LIBS
7663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7664 $as_echo "yes" >&6; }
7666 $as_echo "#define HAVE_GCON2 1" >>confdefs.h
7669 if test -n "$GCONF_LIBS"; then
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ATASMART" >&5
7686 $as_echo_n "checking for ATASMART... " >&6; }
7688 if test -n "$ATASMART_CFLAGS"; then
7689 pkg_cv_ATASMART_CFLAGS="$ATASMART_CFLAGS"
7690 elif test -n "$PKG_CONFIG"; then
7691 if test -n "$PKG_CONFIG" && \
7692 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libatasmart\""; } >&5
7693 ($PKG_CONFIG --exists --print-errors "libatasmart") 2>&5
7695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7696 test $ac_status = 0; }; then
7697 pkg_cv_ATASMART_CFLAGS=`$PKG_CONFIG --cflags "libatasmart" 2>/dev/null`
7698 test "x$?" != "x0" && pkg_failed=yes
7705 if test -n "$ATASMART_LIBS"; then
7706 pkg_cv_ATASMART_LIBS="$ATASMART_LIBS"
7707 elif test -n "$PKG_CONFIG"; then
7708 if test -n "$PKG_CONFIG" && \
7709 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libatasmart\""; } >&5
7710 ($PKG_CONFIG --exists --print-errors "libatasmart") 2>&5
7712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7713 test $ac_status = 0; }; then
7714 pkg_cv_ATASMART_LIBS=`$PKG_CONFIG --libs "libatasmart" 2>/dev/null`
7715 test "x$?" != "x0" && pkg_failed=yes
7725 if test $pkg_failed = yes; then
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7727 $as_echo "no" >&6; }
7729 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7730 _pkg_short_errors_supported=yes
7732 _pkg_short_errors_supported=no
7734 if test $_pkg_short_errors_supported = yes; then
7735 ATASMART_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libatasmart" 2>&1`
7737 ATASMART_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libatasmart" 2>&1`
7739 # Put the nasty error message in config.log where it belongs
7740 echo "$ATASMART_PKG_ERRORS" >&5
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Library atasmart not present\"" >&5
7743 $as_echo "$as_me: WARNING: \"Library atasmart not present\"" >&2;}
7744 elif test $pkg_failed = untried; then
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7746 $as_echo "no" >&6; }
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Library atasmart not present\"" >&5
7748 $as_echo "$as_me: WARNING: \"Library atasmart not present\"" >&2;}
7750 ATASMART_CFLAGS=$pkg_cv_ATASMART_CFLAGS
7751 ATASMART_LIBS=$pkg_cv_ATASMART_LIBS
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7753 $as_echo "yes" >&6; }
7755 $as_echo "#define HAVE_ATASMART 1" >>confdefs.h
7759 if test -n "$ATASMART_LIBS"; then
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBNOTIFY" >&5
7775 $as_echo_n "checking for LIBNOTIFY... " >&6; }
7777 if test -n "$LIBNOTIFY_CFLAGS"; then
7778 pkg_cv_LIBNOTIFY_CFLAGS="$LIBNOTIFY_CFLAGS"
7779 elif test -n "$PKG_CONFIG"; then
7780 if test -n "$PKG_CONFIG" && \
7781 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnotify\""; } >&5
7782 ($PKG_CONFIG --exists --print-errors "libnotify") 2>&5
7784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7785 test $ac_status = 0; }; then
7786 pkg_cv_LIBNOTIFY_CFLAGS=`$PKG_CONFIG --cflags "libnotify" 2>/dev/null`
7787 test "x$?" != "x0" && pkg_failed=yes
7794 if test -n "$LIBNOTIFY_LIBS"; then
7795 pkg_cv_LIBNOTIFY_LIBS="$LIBNOTIFY_LIBS"
7796 elif test -n "$PKG_CONFIG"; then
7797 if test -n "$PKG_CONFIG" && \
7798 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnotify\""; } >&5
7799 ($PKG_CONFIG --exists --print-errors "libnotify") 2>&5
7801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7802 test $ac_status = 0; }; then
7803 pkg_cv_LIBNOTIFY_LIBS=`$PKG_CONFIG --libs "libnotify" 2>/dev/null`
7804 test "x$?" != "x0" && pkg_failed=yes
7814 if test $pkg_failed = yes; then
7815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7816 $as_echo "no" >&6; }
7818 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7819 _pkg_short_errors_supported=yes
7821 _pkg_short_errors_supported=no
7823 if test $_pkg_short_errors_supported = yes; then
7824 LIBNOTIFY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libnotify" 2>&1`
7826 LIBNOTIFY_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libnotify" 2>&1`
7828 # Put the nasty error message in config.log where it belongs
7829 echo "$LIBNOTIFY_PKG_ERRORS" >&5
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Desktop notification disabled\"" >&5
7832 $as_echo "$as_me: WARNING: \"Desktop notification disabled\"" >&2;}
7833 elif test $pkg_failed = untried; then
7834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7835 $as_echo "no" >&6; }
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Desktop notification disabled\"" >&5
7837 $as_echo "$as_me: WARNING: \"Desktop notification disabled\"" >&2;}
7839 LIBNOTIFY_CFLAGS=$pkg_cv_LIBNOTIFY_CFLAGS
7840 LIBNOTIFY_LIBS=$pkg_cv_LIBNOTIFY_LIBS
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7842 $as_echo "yes" >&6; }
7844 $as_echo "#define HAVE_LIBNOTIFY 1" >>confdefs.h
7847 if test -n "$LIBNOTIFY_LIBS"; then
7858 # Checks AppIndicator
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 \"appindicator3-0.1\""; } >&5
7871 ($PKG_CONFIG --exists --print-errors "appindicator3-0.1") 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 "appindicator3-0.1" 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 \"appindicator3-0.1\""; } >&5
7888 ($PKG_CONFIG --exists --print-errors "appindicator3-0.1") 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 "appindicator3-0.1" 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 "appindicator3-0.1" 2>&1`
7915 APPINDICATOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "appindicator3-0.1" 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 3-0.1 not present\"" >&5
7921 $as_echo "$as_me: WARNING: AppIndicator 3-0.1 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 3-0.1 not present\"" >&5
7926 $as_echo "$as_me: WARNING: AppIndicator 3-0.1 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 "$APPINDICATOR_LIBS" == ""; then
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APPINDICATOR" >&5
7941 $as_echo_n "checking for APPINDICATOR... " >&6; }
7943 if test -n "$APPINDICATOR_CFLAGS"; then
7944 pkg_cv_APPINDICATOR_CFLAGS="$APPINDICATOR_CFLAGS"
7945 elif test -n "$PKG_CONFIG"; then
7946 if test -n "$PKG_CONFIG" && \
7947 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"appindicator-0.1 <= 0.2.9 \""; } >&5
7948 ($PKG_CONFIG --exists --print-errors "appindicator-0.1 <= 0.2.9 ") 2>&5
7950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7951 test $ac_status = 0; }; then
7952 pkg_cv_APPINDICATOR_CFLAGS=`$PKG_CONFIG --cflags "appindicator-0.1 <= 0.2.9 " 2>/dev/null`
7953 test "x$?" != "x0" && pkg_failed=yes
7960 if test -n "$APPINDICATOR_LIBS"; then
7961 pkg_cv_APPINDICATOR_LIBS="$APPINDICATOR_LIBS"
7962 elif test -n "$PKG_CONFIG"; then
7963 if test -n "$PKG_CONFIG" && \
7964 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"appindicator-0.1 <= 0.2.9 \""; } >&5
7965 ($PKG_CONFIG --exists --print-errors "appindicator-0.1 <= 0.2.9 ") 2>&5
7967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7968 test $ac_status = 0; }; then
7969 pkg_cv_APPINDICATOR_LIBS=`$PKG_CONFIG --libs "appindicator-0.1 <= 0.2.9 " 2>/dev/null`
7970 test "x$?" != "x0" && pkg_failed=yes
7980 if test $pkg_failed = yes; then
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7982 $as_echo "no" >&6; }
7984 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7985 _pkg_short_errors_supported=yes
7987 _pkg_short_errors_supported=no
7989 if test $_pkg_short_errors_supported = yes; then
7990 APPINDICATOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "appindicator-0.1 <= 0.2.9 " 2>&1`
7992 APPINDICATOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "appindicator-0.1 <= 0.2.9 " 2>&1`
7994 # Put the nasty error message in config.log where it belongs
7995 echo "$APPINDICATOR_PKG_ERRORS" >&5
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: AppIndicator 0.2.9 not present\"" >&5
7998 $as_echo "$as_me: WARNING: AppIndicator 0.2.9 not present\"" >&2;}
7999 elif test $pkg_failed = untried; then
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8001 $as_echo "no" >&6; }
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: AppIndicator 0.2.9 not present\"" >&5
8003 $as_echo "$as_me: WARNING: AppIndicator 0.2.9 not present\"" >&2;}
8005 APPINDICATOR_CFLAGS=$pkg_cv_APPINDICATOR_CFLAGS
8006 APPINDICATOR_LIBS=$pkg_cv_APPINDICATOR_LIBS
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8008 $as_echo "yes" >&6; }
8010 $as_echo "#define HAVE_APPINDICATOR 1" >>confdefs.h
8013 $as_echo "#define HAVE_APPINDICATOR_029 1" >>confdefs.h
8019 if test "$APPINDICATOR_LIBS" == ""; then
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APPINDICATOR" >&5
8023 $as_echo_n "checking for APPINDICATOR... " >&6; }
8025 if test -n "$APPINDICATOR_CFLAGS"; then
8026 pkg_cv_APPINDICATOR_CFLAGS="$APPINDICATOR_CFLAGS"
8027 elif test -n "$PKG_CONFIG"; then
8028 if test -n "$PKG_CONFIG" && \
8029 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"appindicator-0.1 > 0.2.9\""; } >&5
8030 ($PKG_CONFIG --exists --print-errors "appindicator-0.1 > 0.2.9") 2>&5
8032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8033 test $ac_status = 0; }; then
8034 pkg_cv_APPINDICATOR_CFLAGS=`$PKG_CONFIG --cflags "appindicator-0.1 > 0.2.9" 2>/dev/null`
8035 test "x$?" != "x0" && pkg_failed=yes
8042 if test -n "$APPINDICATOR_LIBS"; then
8043 pkg_cv_APPINDICATOR_LIBS="$APPINDICATOR_LIBS"
8044 elif test -n "$PKG_CONFIG"; then
8045 if test -n "$PKG_CONFIG" && \
8046 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"appindicator-0.1 > 0.2.9\""; } >&5
8047 ($PKG_CONFIG --exists --print-errors "appindicator-0.1 > 0.2.9") 2>&5
8049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8050 test $ac_status = 0; }; then
8051 pkg_cv_APPINDICATOR_LIBS=`$PKG_CONFIG --libs "appindicator-0.1 > 0.2.9" 2>/dev/null`
8052 test "x$?" != "x0" && pkg_failed=yes
8062 if test $pkg_failed = yes; then
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8064 $as_echo "no" >&6; }
8066 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8067 _pkg_short_errors_supported=yes
8069 _pkg_short_errors_supported=no
8071 if test $_pkg_short_errors_supported = yes; then
8072 APPINDICATOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "appindicator-0.1 > 0.2.9" 2>&1`
8074 APPINDICATOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "appindicator-0.1 > 0.2.9" 2>&1`
8076 # Put the nasty error message in config.log where it belongs
8077 echo "$APPINDICATOR_PKG_ERRORS" >&5
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"AppIndicator > 0.2.9 not present\"" >&5
8080 $as_echo "$as_me: WARNING: \"AppIndicator > 0.2.9 not present\"" >&2;}
8081 elif test $pkg_failed = untried; then
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8083 $as_echo "no" >&6; }
8084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"AppIndicator > 0.2.9 not present\"" >&5
8085 $as_echo "$as_me: WARNING: \"AppIndicator > 0.2.9 not present\"" >&2;}
8087 APPINDICATOR_CFLAGS=$pkg_cv_APPINDICATOR_CFLAGS
8088 APPINDICATOR_LIBS=$pkg_cv_APPINDICATOR_LIBS
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8090 $as_echo "yes" >&6; }
8092 $as_echo "#define HAVE_APPINDICATOR 1" >>confdefs.h
8096 if test -n "$APPINDICATOR_LIBS"; then
8098 APPINDICATOR_FALSE='#'
8100 APPINDICATOR_TRUE='#'
8107 # Check CURL, needed for remote monitoring
8111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CURL" >&5
8112 $as_echo_n "checking for CURL... " >&6; }
8114 if test -n "$CURL_CFLAGS"; then
8115 pkg_cv_CURL_CFLAGS="$CURL_CFLAGS"
8116 elif test -n "$PKG_CONFIG"; then
8117 if test -n "$PKG_CONFIG" && \
8118 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl\""; } >&5
8119 ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5
8121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8122 test $ac_status = 0; }; then
8123 pkg_cv_CURL_CFLAGS=`$PKG_CONFIG --cflags "libcurl" 2>/dev/null`
8124 test "x$?" != "x0" && pkg_failed=yes
8131 if test -n "$CURL_LIBS"; then
8132 pkg_cv_CURL_LIBS="$CURL_LIBS"
8133 elif test -n "$PKG_CONFIG"; then
8134 if test -n "$PKG_CONFIG" && \
8135 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl\""; } >&5
8136 ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5
8138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8139 test $ac_status = 0; }; then
8140 pkg_cv_CURL_LIBS=`$PKG_CONFIG --libs "libcurl" 2>/dev/null`
8141 test "x$?" != "x0" && pkg_failed=yes
8151 if test $pkg_failed = yes; then
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8153 $as_echo "no" >&6; }
8155 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8156 _pkg_short_errors_supported=yes
8158 _pkg_short_errors_supported=no
8160 if test $_pkg_short_errors_supported = yes; then
8161 CURL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcurl" 2>&1`
8163 CURL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcurl" 2>&1`
8165 # Put the nasty error message in config.log where it belongs
8166 echo "$CURL_PKG_ERRORS" >&5
8168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Remote monitoring disabled" >&5
8169 $as_echo "$as_me: WARNING: \"Remote monitoring disabled" >&2;}
8170 elif test $pkg_failed = untried; then
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8172 $as_echo "no" >&6; }
8173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Remote monitoring disabled" >&5
8174 $as_echo "$as_me: WARNING: \"Remote monitoring disabled" >&2;}
8176 CURL_CFLAGS=$pkg_cv_CURL_CFLAGS
8177 CURL_LIBS=$pkg_cv_CURL_LIBS
8178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8179 $as_echo "yes" >&6; }
8181 $as_echo "#define HAVE_CURL 1" >>confdefs.h
8184 if test -n "$CURL_LIBS"; then
8195 # Check JSON, needed for remote monitoring
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JSON" >&5
8200 $as_echo_n "checking for JSON... " >&6; }
8202 if test -n "$JSON_CFLAGS"; then
8203 pkg_cv_JSON_CFLAGS="$JSON_CFLAGS"
8204 elif test -n "$PKG_CONFIG"; then
8205 if test -n "$PKG_CONFIG" && \
8206 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json\""; } >&5
8207 ($PKG_CONFIG --exists --print-errors "json") 2>&5
8209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8210 test $ac_status = 0; }; then
8211 pkg_cv_JSON_CFLAGS=`$PKG_CONFIG --cflags "json" 2>/dev/null`
8212 test "x$?" != "x0" && pkg_failed=yes
8219 if test -n "$JSON_LIBS"; then
8220 pkg_cv_JSON_LIBS="$JSON_LIBS"
8221 elif test -n "$PKG_CONFIG"; then
8222 if test -n "$PKG_CONFIG" && \
8223 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json\""; } >&5
8224 ($PKG_CONFIG --exists --print-errors "json") 2>&5
8226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8227 test $ac_status = 0; }; then
8228 pkg_cv_JSON_LIBS=`$PKG_CONFIG --libs "json" 2>/dev/null`
8229 test "x$?" != "x0" && pkg_failed=yes
8239 if test $pkg_failed = yes; then
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8241 $as_echo "no" >&6; }
8243 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8244 _pkg_short_errors_supported=yes
8246 _pkg_short_errors_supported=no
8248 if test $_pkg_short_errors_supported = yes; then
8249 JSON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "json" 2>&1`
8251 JSON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "json" 2>&1`
8253 # Put the nasty error message in config.log where it belongs
8254 echo "$JSON_PKG_ERRORS" >&5
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Remote monitoring disabled" >&5
8257 $as_echo "$as_me: WARNING: \"Remote monitoring disabled" >&2;}
8258 elif test $pkg_failed = untried; then
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8260 $as_echo "no" >&6; }
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Remote monitoring disabled" >&5
8262 $as_echo "$as_me: WARNING: \"Remote monitoring disabled" >&2;}
8264 JSON_CFLAGS=$pkg_cv_JSON_CFLAGS
8265 JSON_LIBS=$pkg_cv_JSON_LIBS
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8267 $as_echo "yes" >&6; }
8269 $as_echo "#define HAVE_JSON 1" >>confdefs.h
8272 if test -n "$JSON_LIBS"; then
8283 # Enables remote monitoring if JSON and CURL is present
8284 if test -n "$JSON_LIBS"; then
8285 if test -n "$CURL_LIBS"; then
8287 $as_echo "#define HAVE_REMOTE_SUPPORT 1" >>confdefs.h
8293 # following code from sensors-applet
8294 # sensors-applet.sourceforge.net/
8295 for ac_header in NVCtrl/NVCtrl.h NVCtrl/NVCtrlLib.h
8297 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8298 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
8299 #include <X11/Xlib.h>
8302 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8303 cat >>confdefs.h <<_ACEOF
8304 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8311 if test -n "${X11_LIBS}"; then
8312 LIBS="${LIBS} -lX11 -lXext"
8314 if test "${HAVE_NVIDIA}" = "true"; then
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XNVCTRLQueryExtension in -lXNVCtrl" >&5
8316 $as_echo_n "checking for XNVCTRLQueryExtension in -lXNVCtrl... " >&6; }
8317 if ${ac_cv_lib_XNVCtrl_XNVCTRLQueryExtension+:} false; then :
8318 $as_echo_n "(cached) " >&6
8320 ac_check_lib_save_LIBS=$LIBS
8321 LIBS="-lXNVCtrl $LIBS"
8322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8323 /* end confdefs.h. */
8325 /* Override any GCC internal prototype to avoid an error.
8326 Use char because int might match the return type of a GCC
8327 builtin and then its argument prototype would still apply. */
8331 char XNVCTRLQueryExtension ();
8335 return XNVCTRLQueryExtension ();
8340 if ac_fn_c_try_link "$LINENO"; then :
8341 ac_cv_lib_XNVCtrl_XNVCTRLQueryExtension=yes
8343 ac_cv_lib_XNVCtrl_XNVCTRLQueryExtension=no
8345 rm -f core conftest.err conftest.$ac_objext \
8346 conftest$ac_exeext conftest.$ac_ext
8347 LIBS=$ac_check_lib_save_LIBS
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_XNVCtrl_XNVCTRLQueryExtension" >&5
8350 $as_echo "$ac_cv_lib_XNVCtrl_XNVCTRLQueryExtension" >&6; }
8351 if test "x$ac_cv_lib_XNVCtrl_XNVCTRLQueryExtension" = xyes; then :
8352 NVIDIA_LIBS="-lXNVCtrl -lX11 -lXext"
8354 $as_echo "#define HAVE_NVIDIA 1" >>confdefs.h
8361 if test -n "$NVIDIA_LIBS"; then
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNITY" >&5
8376 $as_echo_n "checking for UNITY... " >&6; }
8378 if test -n "$UNITY_CFLAGS"; then
8379 pkg_cv_UNITY_CFLAGS="$UNITY_CFLAGS"
8380 elif test -n "$PKG_CONFIG"; then
8381 if test -n "$PKG_CONFIG" && \
8382 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"unity >= 3.4.2\""; } >&5
8383 ($PKG_CONFIG --exists --print-errors "unity >= 3.4.2") 2>&5
8385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8386 test $ac_status = 0; }; then
8387 pkg_cv_UNITY_CFLAGS=`$PKG_CONFIG --cflags "unity >= 3.4.2" 2>/dev/null`
8388 test "x$?" != "x0" && pkg_failed=yes
8395 if test -n "$UNITY_LIBS"; then
8396 pkg_cv_UNITY_LIBS="$UNITY_LIBS"
8397 elif test -n "$PKG_CONFIG"; then
8398 if test -n "$PKG_CONFIG" && \
8399 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"unity >= 3.4.2\""; } >&5
8400 ($PKG_CONFIG --exists --print-errors "unity >= 3.4.2") 2>&5
8402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8403 test $ac_status = 0; }; then
8404 pkg_cv_UNITY_LIBS=`$PKG_CONFIG --libs "unity >= 3.4.2" 2>/dev/null`
8405 test "x$?" != "x0" && pkg_failed=yes
8415 if test $pkg_failed = yes; then
8416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8417 $as_echo "no" >&6; }
8419 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8420 _pkg_short_errors_supported=yes
8422 _pkg_short_errors_supported=no
8424 if test $_pkg_short_errors_supported = yes; then
8425 UNITY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "unity >= 3.4.2" 2>&1`
8427 UNITY_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "unity >= 3.4.2" 2>&1`
8429 # Put the nasty error message in config.log where it belongs
8430 echo "$UNITY_PKG_ERRORS" >&5
8432 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unity not present" >&5
8433 $as_echo "$as_me: WARNING: Unity not present" >&2;}
8434 elif test $pkg_failed = untried; then
8435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8436 $as_echo "no" >&6; }
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unity not present" >&5
8438 $as_echo "$as_me: WARNING: Unity not present" >&2;}
8440 UNITY_CFLAGS=$pkg_cv_UNITY_CFLAGS
8441 UNITY_LIBS=$pkg_cv_UNITY_LIBS
8442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8443 $as_echo "yes" >&6; }
8445 $as_echo "#define HAVE_UNITY 1" >>confdefs.h
8450 if test -n "$UNITY_LIBS"; then
8461 # Check whether --with-libatiadl was given.
8462 if test "${with_libatiadl+set}" = set; then :
8463 withval=$with_libatiadl;
8464 ATIADL_DIR=${withval}
8465 CPPFLAGS="${CPPFLAGS} -I${ATIADL_DIR}/include"
8466 LIBS="$LIBS -L/usr/lib/fglrx -L/usr/lib64/fglrx -L/usr/lib/catalyst -L/usr/lib64/catalyst"
8472 for ac_header in adl_defines.h
8474 ac_fn_c_check_header_mongrel "$LINENO" "adl_defines.h" "ac_cv_header_adl_defines_h" "$ac_includes_default"
8475 if test "x$ac_cv_header_adl_defines_h" = xyes; then :
8476 cat >>confdefs.h <<_ACEOF
8477 #define HAVE_ADL_DEFINES_H 1
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ADL_Main_Control_Refresh in -latiadlxx" >&5
8480 $as_echo_n "checking for ADL_Main_Control_Refresh in -latiadlxx... " >&6; }
8481 if ${ac_cv_lib_atiadlxx_ADL_Main_Control_Refresh+:} false; then :
8482 $as_echo_n "(cached) " >&6
8484 ac_check_lib_save_LIBS=$LIBS
8485 LIBS="-latiadlxx $LIBS"
8486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8487 /* end confdefs.h. */
8489 /* Override any GCC internal prototype to avoid an error.
8490 Use char because int might match the return type of a GCC
8491 builtin and then its argument prototype would still apply. */
8495 char ADL_Main_Control_Refresh ();
8499 return ADL_Main_Control_Refresh ();
8504 if ac_fn_c_try_link "$LINENO"; then :
8505 ac_cv_lib_atiadlxx_ADL_Main_Control_Refresh=yes
8507 ac_cv_lib_atiadlxx_ADL_Main_Control_Refresh=no
8509 rm -f core conftest.err conftest.$ac_objext \
8510 conftest$ac_exeext conftest.$ac_ext
8511 LIBS=$ac_check_lib_save_LIBS
8513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_atiadlxx_ADL_Main_Control_Refresh" >&5
8514 $as_echo "$ac_cv_lib_atiadlxx_ADL_Main_Control_Refresh" >&6; }
8515 if test "x$ac_cv_lib_atiadlxx_ADL_Main_Control_Refresh" = xyes; then :
8518 $as_echo "#define HAVE_LIBATIADL 1" >>confdefs.h
8520 LIBATIADL_CFLAGS="-I${ATIADL_DIR}/include"
8521 LIBATIADL_LIBS="-L/usr/lib/fglrx -L/usr/lib64/fglrx -L/usr/lib/catalyst -L/usr/lib64/catalyst -latiadlxx -ldl"
8530 if test -n "$LIBATIADL_LIBS"; then
8541 ############### psensor-server
8543 # libmicrohttpd, mandatory for psensor-server
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBMICROHTTPD" >&5
8548 $as_echo_n "checking for LIBMICROHTTPD... " >&6; }
8550 if test -n "$LIBMICROHTTPD_CFLAGS"; then
8551 pkg_cv_LIBMICROHTTPD_CFLAGS="$LIBMICROHTTPD_CFLAGS"
8552 elif test -n "$PKG_CONFIG"; then
8553 if test -n "$PKG_CONFIG" && \
8554 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmicrohttpd\""; } >&5
8555 ($PKG_CONFIG --exists --print-errors "libmicrohttpd") 2>&5
8557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8558 test $ac_status = 0; }; then
8559 pkg_cv_LIBMICROHTTPD_CFLAGS=`$PKG_CONFIG --cflags "libmicrohttpd" 2>/dev/null`
8560 test "x$?" != "x0" && pkg_failed=yes
8567 if test -n "$LIBMICROHTTPD_LIBS"; then
8568 pkg_cv_LIBMICROHTTPD_LIBS="$LIBMICROHTTPD_LIBS"
8569 elif test -n "$PKG_CONFIG"; then
8570 if test -n "$PKG_CONFIG" && \
8571 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmicrohttpd\""; } >&5
8572 ($PKG_CONFIG --exists --print-errors "libmicrohttpd") 2>&5
8574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8575 test $ac_status = 0; }; then
8576 pkg_cv_LIBMICROHTTPD_LIBS=`$PKG_CONFIG --libs "libmicrohttpd" 2>/dev/null`
8577 test "x$?" != "x0" && pkg_failed=yes
8587 if test $pkg_failed = yes; then
8588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8589 $as_echo "no" >&6; }
8591 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8592 _pkg_short_errors_supported=yes
8594 _pkg_short_errors_supported=no
8596 if test $_pkg_short_errors_supported = yes; then
8597 LIBMICROHTTPD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libmicrohttpd" 2>&1`
8599 LIBMICROHTTPD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libmicrohttpd" 2>&1`
8601 # Put the nasty error message in config.log where it belongs
8602 echo "$LIBMICROHTTPD_PKG_ERRORS" >&5
8604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"libmicrohttpd not present" >&5
8605 $as_echo "$as_me: WARNING: \"libmicrohttpd not present" >&2;}
8606 elif test $pkg_failed = untried; then
8607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8608 $as_echo "no" >&6; }
8609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"libmicrohttpd not present" >&5
8610 $as_echo "$as_me: WARNING: \"libmicrohttpd not present" >&2;}
8612 LIBMICROHTTPD_CFLAGS=$pkg_cv_LIBMICROHTTPD_CFLAGS
8613 LIBMICROHTTPD_LIBS=$pkg_cv_LIBMICROHTTPD_LIBS
8614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8615 $as_echo "yes" >&6; }
8617 $as_echo "#define HAVE_LIBMICROHTTPD 1" >>confdefs.h
8620 if test -n "$LIBMICROHTTPD_LIBS"; then
8622 LIBMICROHTTPD_FALSE='#'
8624 LIBMICROHTTPD_TRUE='#'
8625 LIBMICROHTTPD_FALSE=
8634 # Check whether --with-gtop was given.
8635 if test "${with_gtop+set}" = set; then :
8646 if test "$with_gtop" = "yes"; then
8649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTOP" >&5
8650 $as_echo_n "checking for GTOP... " >&6; }
8652 if test -n "$GTOP_CFLAGS"; then
8653 pkg_cv_GTOP_CFLAGS="$GTOP_CFLAGS"
8654 elif test -n "$PKG_CONFIG"; then
8655 if test -n "$PKG_CONFIG" && \
8656 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgtop-2.0\""; } >&5
8657 ($PKG_CONFIG --exists --print-errors "libgtop-2.0") 2>&5
8659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8660 test $ac_status = 0; }; then
8661 pkg_cv_GTOP_CFLAGS=`$PKG_CONFIG --cflags "libgtop-2.0" 2>/dev/null`
8662 test "x$?" != "x0" && pkg_failed=yes
8669 if test -n "$GTOP_LIBS"; then
8670 pkg_cv_GTOP_LIBS="$GTOP_LIBS"
8671 elif test -n "$PKG_CONFIG"; then
8672 if test -n "$PKG_CONFIG" && \
8673 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgtop-2.0\""; } >&5
8674 ($PKG_CONFIG --exists --print-errors "libgtop-2.0") 2>&5
8676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8677 test $ac_status = 0; }; then
8678 pkg_cv_GTOP_LIBS=`$PKG_CONFIG --libs "libgtop-2.0" 2>/dev/null`
8679 test "x$?" != "x0" && pkg_failed=yes
8689 if test $pkg_failed = yes; then
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8691 $as_echo "no" >&6; }
8693 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8694 _pkg_short_errors_supported=yes
8696 _pkg_short_errors_supported=no
8698 if test $_pkg_short_errors_supported = yes; then
8699 GTOP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libgtop-2.0" 2>&1`
8701 GTOP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libgtop-2.0" 2>&1`
8703 # Put the nasty error message in config.log where it belongs
8704 echo "$GTOP_PKG_ERRORS" >&5
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"gtop not present" >&5
8707 $as_echo "$as_me: WARNING: \"gtop not present" >&2;}
8708 elif test $pkg_failed = untried; then
8709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8710 $as_echo "no" >&6; }
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"gtop not present" >&5
8712 $as_echo "$as_me: WARNING: \"gtop not present" >&2;}
8714 GTOP_CFLAGS=$pkg_cv_GTOP_CFLAGS
8715 GTOP_LIBS=$pkg_cv_GTOP_LIBS
8716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8717 $as_echo "yes" >&6; }
8719 $as_echo "#define HAVE_GTOP 1" >>confdefs.h
8723 if test -n "$GTOP_LIBS"; then
8734 ac_config_files="$ac_config_files Makefile doc/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"
8737 for ac_prog in help2man
8739 # Extract the first word of "$ac_prog", so it can be a program name with args.
8740 set dummy $ac_prog; ac_word=$2
8741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8742 $as_echo_n "checking for $ac_word... " >&6; }
8743 if ${ac_cv_prog_HELP2MAN+:} false; then :
8744 $as_echo_n "(cached) " >&6
8746 if test -n "$HELP2MAN"; then
8747 ac_cv_prog_HELP2MAN="$HELP2MAN" # Let the user override the test.
8749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8753 test -z "$as_dir" && as_dir=.
8754 for ac_exec_ext in '' $ac_executable_extensions; do
8755 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8756 ac_cv_prog_HELP2MAN="$ac_prog"
8757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8766 HELP2MAN=$ac_cv_prog_HELP2MAN
8767 if test -n "$HELP2MAN"; then
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HELP2MAN" >&5
8769 $as_echo "$HELP2MAN" >&6; }
8771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8772 $as_echo "no" >&6; }
8776 test -n "$HELP2MAN" && break
8780 # Extract the first word of "cppcheck", so it can be a program name with args.
8781 set dummy cppcheck; ac_word=$2
8782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8783 $as_echo_n "checking for $ac_word... " >&6; }
8784 if ${ac_cv_prog_HAVE_CPPCHECK+:} false; then :
8785 $as_echo_n "(cached) " >&6
8787 if test -n "$HAVE_CPPCHECK"; then
8788 ac_cv_prog_HAVE_CPPCHECK="$HAVE_CPPCHECK" # Let the user override the test.
8790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8794 test -z "$as_dir" && as_dir=.
8795 for ac_exec_ext in '' $ac_executable_extensions; do
8796 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8797 ac_cv_prog_HAVE_CPPCHECK="yes"
8798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8807 HAVE_CPPCHECK=$ac_cv_prog_HAVE_CPPCHECK
8808 if test -n "$HAVE_CPPCHECK"; then
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_CPPCHECK" >&5
8810 $as_echo "$HAVE_CPPCHECK" >&6; }
8812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8813 $as_echo "no" >&6; }
8817 if test -n "$HAVE_CPPCHECK"; then
8826 cat >confcache <<\_ACEOF
8827 # This file is a shell script that caches the results of configure
8828 # tests run on this system so they can be shared between configure
8829 # scripts and configure runs, see configure's option --config-cache.
8830 # It is not useful on other systems. If it contains results you don't
8831 # want to keep, you may remove or edit it.
8833 # config.status only pays attention to the cache file if you give it
8834 # the --recheck option to rerun configure.
8836 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8837 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8842 # The following way of writing the cache mishandles newlines in values,
8843 # but we know of no workaround that is simple, portable, and efficient.
8844 # So, we kill variables containing newlines.
8845 # Ultrix sh set writes to stderr and can't be redirected directly,
8846 # and sets the high bit in the cache file unless we assign to the vars.
8848 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8849 eval ac_val=\$$ac_var
8853 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8854 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8857 _ | IFS | as_nl) ;; #(
8858 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8859 *) { eval $ac_var=; unset $ac_var;} ;;
8865 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8866 *${as_nl}ac_space=\ *)
8867 # `set' does not quote correctly, so add quotes: double-quote
8868 # substitution turns \\\\ into \\, and sed turns \\ into \.
8871 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8874 # `set' quotes correctly as required by POSIX, so do not add quotes.
8875 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8884 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8886 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8888 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8889 if test -w "$cache_file"; then
8890 if test "x$cache_file" != "x/dev/null"; then
8891 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8892 $as_echo "$as_me: updating cache $cache_file" >&6;}
8893 if test ! -f "$cache_file" || test -h "$cache_file"; then
8894 cat confcache >"$cache_file"
8896 case $cache_file in #(
8898 mv -f confcache "$cache_file"$$ &&
8899 mv -f "$cache_file"$$ "$cache_file" ;; #(
8901 mv -f confcache "$cache_file" ;;
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8907 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8912 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8913 # Let make expand exec_prefix.
8914 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8916 DEFS=-DHAVE_CONFIG_H
8921 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8922 # 1. Remove the extension, and $U if already installed.
8923 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8924 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
8925 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8926 # will be set to the directory where LIBOBJS objects are built.
8927 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8928 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
8932 LTLIBOBJS=$ac_ltlibobjs
8935 if test -n "$EXEEXT"; then
8937 am__EXEEXT_FALSE='#'
8943 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
8944 as_fn_error $? "conditional \"AMDEP\" was never defined.
8945 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8947 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8948 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
8949 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8951 if test -z "${GCONF_SCHEMAS_INSTALL_TRUE}" && test -z "${GCONF_SCHEMAS_INSTALL_FALSE}"; then
8952 as_fn_error $? "conditional \"GCONF_SCHEMAS_INSTALL\" was never defined.
8953 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8955 if test -z "${GCONF_TRUE}" && test -z "${GCONF_FALSE}"; then
8956 as_fn_error $? "conditional \"GCONF\" was never defined.
8957 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8959 if test -z "${ATASMART_TRUE}" && test -z "${ATASMART_FALSE}"; then
8960 as_fn_error $? "conditional \"ATASMART\" was never defined.
8961 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8963 if test -z "${LIBNOTIFY_TRUE}" && test -z "${LIBNOTIFY_FALSE}"; then
8964 as_fn_error $? "conditional \"LIBNOTIFY\" was never defined.
8965 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8967 if test -z "${APPINDICATOR_TRUE}" && test -z "${APPINDICATOR_FALSE}"; then
8968 as_fn_error $? "conditional \"APPINDICATOR\" was never defined.
8969 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8971 if test -z "${CURL_TRUE}" && test -z "${CURL_FALSE}"; then
8972 as_fn_error $? "conditional \"CURL\" was never defined.
8973 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8975 if test -z "${JSON_TRUE}" && test -z "${JSON_FALSE}"; then
8976 as_fn_error $? "conditional \"JSON\" was never defined.
8977 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8979 if test -z "${NVIDIA_TRUE}" && test -z "${NVIDIA_FALSE}"; then
8980 as_fn_error $? "conditional \"NVIDIA\" was never defined.
8981 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8983 if test -z "${UNITY_TRUE}" && test -z "${UNITY_FALSE}"; then
8984 as_fn_error $? "conditional \"UNITY\" was never defined.
8985 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8987 if test -z "${LIBATIADL_TRUE}" && test -z "${LIBATIADL_FALSE}"; then
8988 as_fn_error $? "conditional \"LIBATIADL\" was never defined.
8989 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8991 if test -z "${LIBMICROHTTPD_TRUE}" && test -z "${LIBMICROHTTPD_FALSE}"; then
8992 as_fn_error $? "conditional \"LIBMICROHTTPD\" was never defined.
8993 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8995 if test -z "${GTOP_TRUE}" && test -z "${GTOP_FALSE}"; then
8996 as_fn_error $? "conditional \"GTOP\" was never defined.
8997 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8999 if test -z "${CPPCHECK_TRUE}" && test -z "${CPPCHECK_FALSE}"; then
9000 as_fn_error $? "conditional \"CPPCHECK\" was never defined.
9001 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9004 : "${CONFIG_STATUS=./config.status}"
9006 ac_clean_files_save=$ac_clean_files
9007 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9008 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
9009 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
9011 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
9013 # Generated by $as_me.
9014 # Run this file to recreate the current configuration.
9015 # Compiler output produced by configure, useful for debugging
9016 # configure, is in config.log if it exists.
9022 SHELL=\${CONFIG_SHELL-$SHELL}
9025 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
9026 ## -------------------- ##
9027 ## M4sh Initialization. ##
9028 ## -------------------- ##
9030 # Be more Bourne compatible
9031 DUALCASE=1; export DUALCASE # for MKS sh
9032 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
9035 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9036 # is contrary to our usage. Disable this feature.
9037 alias -g '${1+"$@"}'='"$@"'
9038 setopt NO_GLOB_SUBST
9040 case `(set -o) 2>/dev/null` in #(
9052 # Printing a long string crashes Solaris 7 /usr/bin/printf.
9053 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9054 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
9055 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
9056 # Prefer a ksh shell builtin over an external printf program on Solaris,
9057 # but without wasting forks for bash or zsh.
9058 if test -z "$BASH_VERSION$ZSH_VERSION" \
9059 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
9060 as_echo='print -r --'
9061 as_echo_n='print -rn --'
9062 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
9063 as_echo='printf %s\n'
9064 as_echo_n='printf %s'
9066 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9067 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
9068 as_echo_n='/usr/ucb/echo -n'
9070 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9071 as_echo_n_body='eval
9075 expr "X$arg" : "X\\(.*\\)$as_nl";
9076 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9078 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
9080 export as_echo_n_body
9081 as_echo_n='sh -c $as_echo_n_body as_echo'
9084 as_echo='sh -c $as_echo_body as_echo'
9087 # The user is always right.
9088 if test "${PATH_SEPARATOR+set}" != set; then
9090 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9091 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9098 # We need space, tab and new line, in precisely that order. Quoting is
9099 # there to prevent editors from complaining about space-tab.
9100 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9101 # splitting by setting IFS to empty value.)
9104 # Find who we are. Look in the path if we contain no directory separator.
9107 *[\\/]* ) as_myself=$0 ;;
9108 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9112 test -z "$as_dir" && as_dir=.
9113 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9119 # We did not find ourselves, most probably we were run as `sh COMMAND'
9120 # in which case we are not to be found in the path.
9121 if test "x$as_myself" = x; then
9124 if test ! -f "$as_myself"; then
9125 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9129 # Unset variables that we do not need and which cause bugs (e.g. in
9130 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
9131 # suppresses any "Segmentation fault" message there. '((' could
9132 # trigger a bug in pdksh 5.2.14.
9133 for as_var in BASH_ENV ENV MAIL MAILPATH
9134 do eval test x\${$as_var+set} = xset \
9135 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
9148 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9151 # as_fn_error STATUS ERROR [LINENO LOG_FD]
9152 # ----------------------------------------
9153 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9154 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
9155 # script with STATUS, using 1 if that was 0.
9158 as_status=$1; test $as_status -eq 0 && as_status=1
9160 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9161 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
9163 $as_echo "$as_me: error: $2" >&2
9164 as_fn_exit $as_status
9168 # as_fn_set_status STATUS
9169 # -----------------------
9170 # Set $? to STATUS, without forking.
9174 } # as_fn_set_status
9178 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
9188 # Portably unset VAR.
9191 { eval $1=; unset $1;}
9193 as_unset=as_fn_unset
9194 # as_fn_append VAR VALUE
9195 # ----------------------
9196 # Append the text in VALUE to the end of the definition contained in VAR. Take
9197 # advantage of any shell optimizations that allow amortized linear growth over
9198 # repeated appends, instead of the typical quadratic growth present in naive
9200 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
9201 eval 'as_fn_append ()
9212 # as_fn_arith ARG...
9213 # ------------------
9214 # Perform arithmetic evaluation on the ARGs, and store the result in the
9215 # global $as_val. Take advantage of shells that can avoid forks. The arguments
9216 # must be portable across $(()) and expr.
9217 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
9218 eval 'as_fn_arith ()
9225 as_val=`expr "$@" || test $? -eq 1`
9230 if expr a : '\(a\)' >/dev/null 2>&1 &&
9231 test "X`expr 00001 : '.*\(...\)'`" = X001; then
9237 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9238 as_basename=basename
9243 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9249 as_me=`$as_basename -- "$0" ||
9250 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9251 X"$0" : 'X\(//\)$' \| \
9252 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9254 sed '/^.*\/\([^/][^/]*\)\/*$/{
9268 # Avoid depending upon Character Ranges.
9269 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9270 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9271 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9272 as_cr_digits='0123456789'
9273 as_cr_alnum=$as_cr_Letters$as_cr_digits
9275 ECHO_C= ECHO_N= ECHO_T=
9276 case `echo -n x` in #(((((
9278 case `echo 'xy\c'` in
9279 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
9281 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
9288 rm -f conf$$ conf$$.exe conf$$.file
9289 if test -d conf$$.dir; then
9290 rm -f conf$$.dir/conf$$.file
9293 mkdir conf$$.dir 2>/dev/null
9295 if (echo >conf$$.file) 2>/dev/null; then
9296 if ln -s conf$$.file conf$$ 2>/dev/null; then
9298 # ... but there are two gotchas:
9299 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9300 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9301 # In both cases, we have to default to `cp -pR'.
9302 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9304 elif ln conf$$.file conf$$ 2>/dev/null; then
9312 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9313 rmdir conf$$.dir 2>/dev/null
9318 # Create "$as_dir" as a directory, including parents if necessary.
9323 -*) as_dir=./$as_dir;;
9325 test -d "$as_dir" || eval $as_mkdir_p || {
9329 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9330 *) as_qdir=$as_dir;;
9332 as_dirs="'$as_qdir' $as_dirs"
9333 as_dir=`$as_dirname -- "$as_dir" ||
9334 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9335 X"$as_dir" : 'X\(//\)[^/]' \| \
9336 X"$as_dir" : 'X\(//\)$' \| \
9337 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9338 $as_echo X"$as_dir" |
9339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9356 test -d "$as_dir" && break
9358 test -z "$as_dirs" || eval "mkdir $as_dirs"
9359 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
9363 if mkdir -p . 2>/dev/null; then
9364 as_mkdir_p='mkdir -p "$as_dir"'
9366 test -d ./-p && rmdir ./-p
9371 # as_fn_executable_p FILE
9372 # -----------------------
9373 # Test if FILE is an executable regular file.
9374 as_fn_executable_p ()
9376 test -f "$1" && test -x "$1"
9377 } # as_fn_executable_p
9379 as_executable_p=as_fn_executable_p
9381 # Sed expression to map a string onto a valid CPP name.
9382 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9384 # Sed expression to map a string onto a valid variable name.
9385 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9389 ## ----------------------------------- ##
9390 ## Main body of $CONFIG_STATUS script. ##
9391 ## ----------------------------------- ##
9393 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
9395 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9396 # Save the log message, to keep $0 and so on meaningful, and to
9397 # report actual input values of CONFIG_FILES etc. instead of their
9398 # values after options handling.
9400 This file was extended by psensor $as_me 0.8.0.x, which was
9401 generated by GNU Autoconf 2.69. Invocation command line was
9403 CONFIG_FILES = $CONFIG_FILES
9404 CONFIG_HEADERS = $CONFIG_HEADERS
9405 CONFIG_LINKS = $CONFIG_LINKS
9406 CONFIG_COMMANDS = $CONFIG_COMMANDS
9409 on `(hostname || uname -n) 2>/dev/null | sed 1q`
9414 case $ac_config_files in *"
9415 "*) set x $ac_config_files; shift; ac_config_files=$*;;
9418 case $ac_config_headers in *"
9419 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
9423 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9424 # Files that config.status was made for.
9425 config_files="$ac_config_files"
9426 config_headers="$ac_config_headers"
9427 config_commands="$ac_config_commands"
9431 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9433 \`$as_me' instantiates files and other configuration actions
9434 from templates according to the current configuration. Unless the files
9435 and actions are specified as TAGs, all are instantiated by default.
9437 Usage: $0 [OPTION]... [TAG]...
9439 -h, --help print this help, then exit
9440 -V, --version print version number and configuration settings, then exit
9441 --config print configuration, then exit
9442 -q, --quiet, --silent
9443 do not print progress messages
9444 -d, --debug don't remove temporary files
9445 --recheck update $as_me by reconfiguring in the same conditions
9446 --file=FILE[:TEMPLATE]
9447 instantiate the configuration file FILE
9448 --header=FILE[:TEMPLATE]
9449 instantiate the configuration header FILE
9451 Configuration files:
9454 Configuration headers:
9457 Configuration commands:
9460 Report bugs to <jeanfi@gmail.com>.
9461 psensor home page: <http://wpitchoune.net/psensor>."
9464 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9465 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
9467 psensor config.status 0.8.0.x
9468 configured by $0, generated by GNU Autoconf 2.69,
9469 with options \\"\$ac_cs_config\\"
9471 Copyright (C) 2012 Free Software Foundation, Inc.
9472 This config.status script is free software; the Free Software Foundation
9473 gives unlimited permission to copy, distribute and modify it."
9480 test -n "\$AWK" || AWK=awk
9483 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9484 # The default lists apply if the user does not specify any file.
9490 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9491 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9495 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9507 # Handling of the options.
9508 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9510 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9511 $as_echo "$ac_cs_version"; exit ;;
9512 --config | --confi | --conf | --con | --co | --c )
9513 $as_echo "$ac_cs_config"; exit ;;
9514 --debug | --debu | --deb | --de | --d | -d )
9516 --file | --fil | --fi | --f )
9519 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9520 '') as_fn_error $? "missing file argument" ;;
9522 as_fn_append CONFIG_FILES " '$ac_optarg'"
9523 ac_need_defaults=false;;
9524 --header | --heade | --head | --hea )
9527 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9529 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
9530 ac_need_defaults=false;;
9532 # Conflict between --help and --header
9533 as_fn_error $? "ambiguous option: \`$1'
9534 Try \`$0 --help' for more information.";;
9535 --help | --hel | -h )
9536 $as_echo "$ac_cs_usage"; exit ;;
9537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9538 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9542 -*) as_fn_error $? "unrecognized option: \`$1'
9543 Try \`$0 --help' for more information." ;;
9545 *) as_fn_append ac_config_targets " $1"
9546 ac_need_defaults=false ;;
9552 ac_configure_extra_args=
9554 if $ac_cs_silent; then
9556 ac_configure_extra_args="$ac_configure_extra_args --silent"
9560 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9561 if \$ac_cs_recheck; then
9562 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9564 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
9565 CONFIG_SHELL='$SHELL'
9571 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9575 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9576 ## Running $as_me. ##
9582 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9586 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9587 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
9588 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
9589 # from automake < 1.5.
9590 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
9591 # Capture the value of LINGUAS because we need it to compute CATALOGS.
9592 LINGUAS="${LINGUAS-%UNSET%}"
9597 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9599 # Handling of arguments.
9600 for ac_config_target in $ac_config_targets
9602 case $ac_config_target in
9603 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
9604 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9605 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
9606 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9607 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
9608 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
9609 "src/glade/Makefile") CONFIG_FILES="$CONFIG_FILES src/glade/Makefile" ;;
9610 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
9611 "src/server/Makefile") CONFIG_FILES="$CONFIG_FILES src/server/Makefile" ;;
9612 "icons/hicolor/scalable/Makefile") CONFIG_FILES="$CONFIG_FILES icons/hicolor/scalable/Makefile" ;;
9613 "icons/hicolor/14x14/Makefile") CONFIG_FILES="$CONFIG_FILES icons/hicolor/14x14/Makefile" ;;
9614 "icons/hicolor/16x16/Makefile") CONFIG_FILES="$CONFIG_FILES icons/hicolor/16x16/Makefile" ;;
9615 "icons/hicolor/22x22/Makefile") CONFIG_FILES="$CONFIG_FILES icons/hicolor/22x22/Makefile" ;;
9616 "icons/hicolor/24x24/Makefile") CONFIG_FILES="$CONFIG_FILES icons/hicolor/24x24/Makefile" ;;
9617 "icons/hicolor/32x32/Makefile") CONFIG_FILES="$CONFIG_FILES icons/hicolor/32x32/Makefile" ;;
9618 "icons/hicolor/48x48/Makefile") CONFIG_FILES="$CONFIG_FILES icons/hicolor/48x48/Makefile" ;;
9619 "icons/hicolor/64x64/Makefile") CONFIG_FILES="$CONFIG_FILES icons/hicolor/64x64/Makefile" ;;
9620 "icons/ubuntu-mono-dark/status/22/Makefile") CONFIG_FILES="$CONFIG_FILES icons/ubuntu-mono-dark/status/22/Makefile" ;;
9621 "icons/ubuntu-mono-light/status/22/Makefile") CONFIG_FILES="$CONFIG_FILES icons/ubuntu-mono-light/status/22/Makefile" ;;
9622 "icons/ubuntu-mono-dark/apps/22/Makefile") CONFIG_FILES="$CONFIG_FILES icons/ubuntu-mono-dark/apps/22/Makefile" ;;
9623 "www/Makefile") CONFIG_FILES="$CONFIG_FILES www/Makefile" ;;
9624 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
9625 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
9627 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
9632 # If the user did not use the arguments to specify the items to instantiate,
9633 # then the envvar interface is used. Set only those that are not.
9634 # We use the long form for the default assignment because of an extremely
9635 # bizarre bug on SunOS 4.1.3.
9636 if $ac_need_defaults; then
9637 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9638 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9639 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9642 # Have a temporary directory for convenience. Make it in the build tree
9643 # simply because there is no reason against having it here, and in addition,
9644 # creating and moving files from /tmp can sometimes cause problems.
9645 # Hook for its removal unless debugging.
9646 # Note that there is a small window in which the directory will not be cleaned:
9647 # after its creation but before its name has been assigned to `$tmp'.
9651 trap 'exit_status=$?
9653 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
9655 trap 'as_fn_exit 1' 1 2 13 15
9657 # Create a (secure) tmp directory for tmp files.
9660 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9664 tmp=./conf$$-$RANDOM
9665 (umask 077 && mkdir "$tmp")
9666 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
9669 # Set up the scripts for CONFIG_FILES section.
9670 # No need to generate them if there are no CONFIG_FILES.
9671 # This happens for instance with `./config.status config.h'.
9672 if test -n "$CONFIG_FILES"; then
9675 ac_cr=`echo X | tr X '\015'`
9676 # On cygwin, bash can eat \r inside `` if the user requested igncr.
9677 # But we know of no other shell where ac_cr would be empty at this
9678 # point, so we can use a bashism as a fallback.
9679 if test "x$ac_cr" = x; then
9680 eval ac_cr=\$\'\\r\'
9682 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
9683 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
9689 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
9694 echo "cat >conf$$subs.awk <<_ACEOF" &&
9695 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
9698 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9699 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
9701 for ac_last_try in false false false false false :; do
9702 . ./conf$$subs.sh ||
9703 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9705 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
9706 if test $ac_delim_n = $ac_delim_num; then
9708 elif $ac_last_try; then
9709 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9711 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9716 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9717 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
9721 s/^/S["/; s/!.*/"]=/
9731 s/\(.\{148\}\)..*/\1/
9733 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
9738 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9745 s/\(.\{148\}\)..*/\1/
9747 s/["\\]/\\&/g; s/^/"/; s/$/"/
9751 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9756 ' <conf$$subs.awk | sed '
9761 ' >>$CONFIG_STATUS || ac_write_fail=1
9762 rm -f conf$$subs.awk
9763 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9765 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
9766 for (key in S) S_is_set[key] = 1
9772 nfields = split(line, field, "@")
9774 len = length(field[1])
9775 for (i = 2; i < nfields; i++) {
9777 keylen = length(key)
9778 if (S_is_set[key]) {
9780 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
9781 len += length(value) + length(field[++i])
9792 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9793 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9794 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
9797 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
9798 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
9801 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
9802 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
9803 # trailing colons and then remove the whole line if VPATH becomes empty
9804 # (actually we leave an empty line to preserve line numbers).
9805 if test "x$srcdir" = x.; then
9806 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
9824 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9825 fi # test -n "$CONFIG_FILES"
9827 # Set up the scripts for CONFIG_HEADERS section.
9828 # No need to generate them if there are no CONFIG_HEADERS.
9829 # This happens for instance with `./config.status Makefile'.
9830 if test -n "$CONFIG_HEADERS"; then
9831 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
9835 # Transform confdefs.h into an awk script `defines.awk', embedded as
9836 # here-document in config.status, that substitutes the proper values into
9837 # config.h.in to produce config.h.
9839 # Create a delimiter string that does not exist in confdefs.h, to ease
9840 # handling of long lines.
9842 for ac_last_try in false false :; do
9843 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
9844 if test -z "$ac_tt"; then
9846 elif $ac_last_try; then
9847 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
9849 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9853 # For the awk script, D is an array of macro values keyed by name,
9854 # likewise P contains macro parameters if any. Preserve backslash
9855 # newline sequences.
9857 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9859 s/.\{148\}/&'"$ac_delim"'/g
9862 s/^[ ]*#[ ]*define[ ][ ]*/ /
9869 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9871 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
9875 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9876 D["\1"]=" \3\\\\\\n"\\/p
9878 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
9883 s/.\{148\}/&'"$ac_delim"'/g
9888 s/["\\]/\\&/g; s/^/"/; s/$/"/p
9891 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
9893 ' <confdefs.h | sed '
9894 s/'"$ac_delim"'/"\\\
9895 "/g' >>$CONFIG_STATUS || ac_write_fail=1
9897 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9898 for (key in D) D_is_set[key] = 1
9901 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
9903 split(line, arg, " ")
9904 if (arg[1] == "#") {
9908 defundef = substr(arg[1], 2)
9911 split(mac1, mac2, "(") #)
9913 prefix = substr(line, 1, index(line, defundef) - 1)
9914 if (D_is_set[macro]) {
9915 # Preserve the white space surrounding the "#".
9916 print prefix "define", macro P[macro] D[macro]
9919 # Replace #undef with comments. This is necessary, for example,
9920 # in the case of _POSIX_SOURCE, which is predefined and required
9921 # on some systems where configure will not decide to define it.
9922 if (defundef == "undef") {
9923 print "/*", prefix defundef, macro, "*/"
9931 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9932 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
9933 fi # test -n "$CONFIG_HEADERS"
9936 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
9941 :[FHLC]) ac_mode=$ac_tag; continue;;
9943 case $ac_mode$ac_tag in
9945 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
9946 :[FH]-) ac_tag=-:-;;
9947 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9964 -) ac_f="$ac_tmp/stdin";;
9965 *) # Look for the file first in the build tree, then in the source tree
9966 # (if the path is not absolute). The absolute path cannot be DOS-style,
9967 # because $ac_f cannot contain `:'.
9971 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9973 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
9975 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9976 as_fn_append ac_file_inputs " '$ac_f'"
9979 # Let's still pretend it is `configure' which instantiates (i.e., don't
9980 # use $as_me), people would be surprised to read:
9981 # /* config.h. Generated by config.status. */
9982 configure_input='Generated from '`
9983 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9985 if test x"$ac_file" != x-; then
9986 configure_input="$ac_file. $configure_input"
9987 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
9988 $as_echo "$as_me: creating $ac_file" >&6;}
9990 # Neutralize special characters interpreted by sed in replacement strings.
9991 case $configure_input in #(
9992 *\&* | *\|* | *\\* )
9993 ac_sed_conf_input=`$as_echo "$configure_input" |
9994 sed 's/[\\\\&|]/\\\\&/g'`;; #(
9995 *) ac_sed_conf_input=$configure_input;;
9999 *:-:* | *:-) cat >"$ac_tmp/stdin" \
10000 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
10005 ac_dir=`$as_dirname -- "$ac_file" ||
10006 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10007 X"$ac_file" : 'X\(//\)[^/]' \| \
10008 X"$ac_file" : 'X\(//\)$' \| \
10009 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10010 $as_echo X"$ac_file" |
10011 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10015 /^X\(\/\/\)[^/].*/{
10028 as_dir="$ac_dir"; as_fn_mkdir_p
10032 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10034 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10035 # A ".." for each directory in $ac_dir_suffix.
10036 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10037 case $ac_top_builddir_sub in
10038 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10039 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10042 ac_abs_top_builddir=$ac_pwd
10043 ac_abs_builddir=$ac_pwd$ac_dir_suffix
10044 # for backward compatibility:
10045 ac_top_builddir=$ac_top_build_prefix
10048 .) # We are building in place.
10050 ac_top_srcdir=$ac_top_builddir_sub
10051 ac_abs_top_srcdir=$ac_pwd ;;
10052 [\\/]* | ?:[\\/]* ) # Absolute name.
10053 ac_srcdir=$srcdir$ac_dir_suffix;
10054 ac_top_srcdir=$srcdir
10055 ac_abs_top_srcdir=$srcdir ;;
10056 *) # Relative name.
10057 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10058 ac_top_srcdir=$ac_top_build_prefix$srcdir
10059 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10061 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10071 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10072 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
10074 ac_MKDIR_P=$MKDIR_P
10076 [\\/$]* | ?:[\\/]* ) ;;
10077 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
10081 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10082 # If the template does not know about datarootdir, expand it.
10083 # FIXME: This hack should be removed a few years after 2.60.
10084 ac_datarootdir_hack=; ac_datarootdir_seen=
10095 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
10096 *datarootdir*) ac_datarootdir_seen=yes;;
10097 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10099 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10101 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10102 ac_datarootdir_hack='
10103 s&@datadir@&$datadir&g
10104 s&@docdir@&$docdir&g
10105 s&@infodir@&$infodir&g
10106 s&@localedir@&$localedir&g
10107 s&@mandir@&$mandir&g
10108 s&\\\${datarootdir}&$datarootdir&g' ;;
10112 # Neutralize VPATH when `$srcdir' = `.'.
10113 # Shell code in configure.ac might set extrasub.
10114 # FIXME: do we really want to maintain this feature?
10115 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10116 ac_sed_extra="$ac_vpsub
10119 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10121 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10122 s|@configure_input@|$ac_sed_conf_input|;t t
10123 s&@top_builddir@&$ac_top_builddir_sub&;t t
10124 s&@top_build_prefix@&$ac_top_build_prefix&;t t
10125 s&@srcdir@&$ac_srcdir&;t t
10126 s&@abs_srcdir@&$ac_abs_srcdir&;t t
10127 s&@top_srcdir@&$ac_top_srcdir&;t t
10128 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10129 s&@builddir@&$ac_builddir&;t t
10130 s&@abs_builddir@&$ac_abs_builddir&;t t
10131 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10132 s&@INSTALL@&$ac_INSTALL&;t t
10133 s&@MKDIR_P@&$ac_MKDIR_P&;t t
10134 $ac_datarootdir_hack
10136 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
10137 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10139 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10140 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
10141 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
10142 "$ac_tmp/out"`; test -z "$ac_out"; } &&
10143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10144 which seems to be undefined. Please make sure it is defined" >&5
10145 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10146 which seems to be undefined. Please make sure it is defined" >&2;}
10148 rm -f "$ac_tmp/stdin"
10150 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
10151 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
10153 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10159 if test x"$ac_file" != x-; then
10161 $as_echo "/* $configure_input */" \
10162 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
10163 } >"$ac_tmp/config.h" \
10164 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10165 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
10166 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
10167 $as_echo "$as_me: $ac_file is unchanged" >&6;}
10170 mv "$ac_tmp/config.h" "$ac_file" \
10171 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10174 $as_echo "/* $configure_input */" \
10175 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
10176 || as_fn_error $? "could not create -" "$LINENO" 5
10178 # Compute "$ac_file"'s index in $config_headers.
10181 for _am_header in $config_headers :; do
10182 case $_am_header in
10183 $_am_arg | $_am_arg:* )
10186 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10189 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
10190 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10191 X"$_am_arg" : 'X\(//\)[^/]' \| \
10192 X"$_am_arg" : 'X\(//\)$' \| \
10193 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
10194 $as_echo X"$_am_arg" |
10195 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10199 /^X\(\/\/\)[^/].*/{
10211 s/.*/./; q'`/stamp-h$_am_stamp_count
10214 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
10215 $as_echo "$as_me: executing $ac_file commands" >&6;}
10220 case $ac_file$ac_mode in
10221 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
10222 # Autoconf 2.62 quotes --file arguments for eval, but not when files
10223 # are listed without --file. Let's play safe and only enable the eval
10224 # if we detect the quoting.
10225 case $CONFIG_FILES in
10226 *\'*) eval set x "$CONFIG_FILES" ;;
10227 *) set x $CONFIG_FILES ;;
10232 # Strip MF so we end up with the name of the file.
10233 mf=`echo "$mf" | sed -e 's/:.*$//'`
10234 # Check whether this is an Automake generated Makefile or not.
10235 # We used to match only the files named `Makefile.in', but
10236 # some people rename them; so instead we look at the file content.
10237 # Grep'ing the first line is not enough: some people post-process
10238 # each Makefile.in and add a new line on top of each file to say so.
10239 # Grep'ing the whole file is not good either: AIX grep has a line
10240 # limit of 2048, but all sed's we know have understand at least 4000.
10241 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
10242 dirpart=`$as_dirname -- "$mf" ||
10243 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10244 X"$mf" : 'X\(//\)[^/]' \| \
10245 X"$mf" : 'X\(//\)$' \| \
10246 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
10248 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10252 /^X\(\/\/\)[^/].*/{
10268 # Extract the definition of DEPDIR, am__include, and am__quote
10269 # from the Makefile without running `make'.
10270 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
10271 test -z "$DEPDIR" && continue
10272 am__include=`sed -n 's/^am__include = //p' < "$mf"`
10273 test -z "am__include" && continue
10274 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
10275 # When using ansi2knr, U may be empty or an underscore; expand it
10276 U=`sed -n 's/^U = //p' < "$mf"`
10277 # Find all dependency output files, they are included files with
10278 # $(DEPDIR) in their names. We invoke sed twice because it is the
10279 # simplest approach to changing $(DEPDIR) to its actual value in the
10281 for file in `sed -n "
10282 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
10283 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10284 # Make sure the directory exists.
10285 test -f "$dirpart/$file" && continue
10286 fdir=`$as_dirname -- "$file" ||
10287 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10288 X"$file" : 'X\(//\)[^/]' \| \
10289 X"$file" : 'X\(//\)$' \| \
10290 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
10291 $as_echo X"$file" |
10292 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10296 /^X\(\/\/\)[^/].*/{
10309 as_dir=$dirpart/$fdir; as_fn_mkdir_p
10310 # echo "creating $dirpart/$file"
10311 echo '# dummy' > "$dirpart/$file"
10316 "po-directories":C)
10317 for ac_file in $CONFIG_FILES; do
10318 # Support "outfile[:infile[:infile...]]"
10320 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10322 # PO directories have a Makefile.in generated from Makefile.in.in.
10323 case "$ac_file" in */Makefile.in)
10324 # Adjust a relative srcdir.
10325 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
10326 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
10327 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
10328 # In autoconf-2.13 it is called $ac_given_srcdir.
10329 # In autoconf-2.50 it is called $srcdir.
10330 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
10331 case "$ac_given_srcdir" in
10332 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
10333 /*) top_srcdir="$ac_given_srcdir" ;;
10334 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
10336 # Treat a directory as a PO directory if and only if it has a
10337 # POTFILES.in file. This allows packages to have multiple PO
10338 # directories under different names or in different locations.
10339 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
10340 rm -f "$ac_dir/POTFILES"
10341 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
10342 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
10343 POMAKEFILEDEPS="POTFILES.in"
10344 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
10345 # on $ac_dir but don't depend on user-specified configuration
10347 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
10348 # The LINGUAS file contains the set of available languages.
10349 if test -n "$OBSOLETE_ALL_LINGUAS"; then
10350 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
10352 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
10353 # Hide the ALL_LINGUAS assigment from automake < 1.5.
10354 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
10355 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
10357 # The set of available languages was given in configure.in.
10358 # Hide the ALL_LINGUAS assigment from automake < 1.5.
10359 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
10362 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
10363 # Compute UPDATEPOFILES
10364 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
10365 # Compute DUMMYPOFILES
10366 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
10368 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
10369 case "$ac_given_srcdir" in
10371 *) srcdirpre='$(srcdir)/' ;;
10377 for lang in $ALL_LINGUAS; do
10378 POFILES="$POFILES $srcdirpre$lang.po"
10379 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
10380 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
10381 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
10383 # CATALOGS depends on both $ac_dir and the user's LINGUAS
10384 # environment variable.
10386 if test -n "$ALL_LINGUAS"; then
10387 for presentlang in $ALL_LINGUAS; do
10389 if test "%UNSET%" != "$LINGUAS"; then
10390 desiredlanguages="$LINGUAS"
10392 desiredlanguages="$ALL_LINGUAS"
10394 for desiredlang in $desiredlanguages; do
10395 # Use the presentlang catalog if desiredlang is
10396 # a. equal to presentlang, or
10397 # b. a variant of presentlang (because in this case,
10398 # presentlang can be used as a fallback for messages
10399 # which are not translated in the desiredlang catalog).
10400 case "$desiredlang" in
10401 "$presentlang"*) useit=yes;;
10404 if test $useit = yes; then
10405 INST_LINGUAS="$INST_LINGUAS $presentlang"
10410 if test -n "$INST_LINGUAS"; then
10411 for lang in $INST_LINGUAS; do
10412 CATALOGS="$CATALOGS $lang.gmo"
10415 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
10416 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"
10417 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
10418 if test -f "$f"; then
10420 *.orig | *.bak | *~) ;;
10421 *) cat "$f" >> "$ac_dir/Makefile" ;;
10436 ac_clean_files=$ac_clean_files_save
10438 test $ac_write_fail = 0 ||
10439 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
10442 # configure is writing to config.log, and then calls config.status.
10443 # config.status does its own redirection, appending to config.log.
10444 # Unfortunately, on DOS this fails, as config.log is still kept open
10445 # by configure, so config.status won't be able to write to it; its
10446 # output is simply discarded. So we exec the FD to /dev/null,
10447 # effectively closing config.log, so it can be properly (re)opened and
10448 # appended to by config.status. When coming back to configure, we
10449 # need to make the FD available again.
10450 if test "$no_create" != yes; then
10452 ac_config_status_args=
10453 test "$silent" = yes &&
10454 ac_config_status_args="$ac_config_status_args --quiet"
10456 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10458 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10459 # would make configure fail if this is the last instruction.
10460 $ac_cs_success || as_fn_exit 1
10462 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
10463 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10464 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}