2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for psensor 1.1.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='1.1.0.x'
584 PACKAGE_STRING='psensor 1.1.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
700 GSETTINGS_DISABLE_SCHEMAS_COMPILE
761 INSTALL_STRIP_PROGRAM
803 program_transform_name
816 enable_option_checking
818 enable_dependency_tracking
826 enable_schemas_compile
830 ac_precious_vars='build_alias
869 # Initialize some variables set by options.
871 ac_init_version=false
872 ac_unrecognized_opts=
874 # The variables have the same names as the options, with
875 # dashes changed to underlines.
883 program_transform_name=s,x,x,
891 # Installation directory options.
892 # These are left unexpanded so users can "make install exec_prefix=/foo"
893 # and all the variables that are supposed to be based on exec_prefix
894 # by default will actually change.
895 # Use braces instead of parens because sh, perl, etc. also accept them.
896 # (The list follows the same order as the GNU Coding Standards.)
897 bindir='${exec_prefix}/bin'
898 sbindir='${exec_prefix}/sbin'
899 libexecdir='${exec_prefix}/libexec'
900 datarootdir='${prefix}/share'
901 datadir='${datarootdir}'
902 sysconfdir='${prefix}/etc'
903 sharedstatedir='${prefix}/com'
904 localstatedir='${prefix}/var'
905 includedir='${prefix}/include'
906 oldincludedir='/usr/include'
907 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
908 infodir='${datarootdir}/info'
913 libdir='${exec_prefix}/lib'
914 localedir='${datarootdir}/locale'
915 mandir='${datarootdir}/man'
921 # If the previous option needs an argument, assign it.
922 if test -n "$ac_prev"; then
923 eval $ac_prev=\$ac_option
929 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
934 # Accept the important Cygnus configure options, so we can diagnose typos.
936 case $ac_dashdash$ac_option in
940 -bindir | --bindir | --bindi | --bind | --bin | --bi)
942 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
945 -build | --build | --buil | --bui | --bu)
946 ac_prev=build_alias ;;
947 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
948 build_alias=$ac_optarg ;;
950 -cache-file | --cache-file | --cache-fil | --cache-fi \
951 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
952 ac_prev=cache_file ;;
953 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
954 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
955 cache_file=$ac_optarg ;;
958 cache_file=config.cache ;;
960 -datadir | --datadir | --datadi | --datad)
962 -datadir=* | --datadir=* | --datadi=* | --datad=*)
963 datadir=$ac_optarg ;;
965 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
966 | --dataroo | --dataro | --datar)
967 ac_prev=datarootdir ;;
968 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
969 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
970 datarootdir=$ac_optarg ;;
972 -disable-* | --disable-*)
973 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
974 # Reject names that are not valid shell variable names.
975 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
976 as_fn_error $? "invalid feature name: $ac_useropt"
977 ac_useropt_orig=$ac_useropt
978 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
979 case $ac_user_opts in
983 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
984 ac_unrecognized_sep=', ';;
986 eval enable_$ac_useropt=no ;;
988 -docdir | --docdir | --docdi | --doc | --do)
990 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
993 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
995 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
998 -enable-* | --enable-*)
999 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1000 # Reject names that are not valid shell variable names.
1001 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1002 as_fn_error $? "invalid feature name: $ac_useropt"
1003 ac_useropt_orig=$ac_useropt
1004 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1005 case $ac_user_opts in
1007 "enable_$ac_useropt"
1009 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1010 ac_unrecognized_sep=', ';;
1012 eval enable_$ac_useropt=\$ac_optarg ;;
1014 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1015 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1016 | --exec | --exe | --ex)
1017 ac_prev=exec_prefix ;;
1018 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1019 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1020 | --exec=* | --exe=* | --ex=*)
1021 exec_prefix=$ac_optarg ;;
1023 -gas | --gas | --ga | --g)
1024 # Obsolete; use --with-gas.
1027 -help | --help | --hel | --he | -h)
1028 ac_init_help=long ;;
1029 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1030 ac_init_help=recursive ;;
1031 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1032 ac_init_help=short ;;
1034 -host | --host | --hos | --ho)
1035 ac_prev=host_alias ;;
1036 -host=* | --host=* | --hos=* | --ho=*)
1037 host_alias=$ac_optarg ;;
1039 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1041 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1043 htmldir=$ac_optarg ;;
1045 -includedir | --includedir | --includedi | --included | --include \
1046 | --includ | --inclu | --incl | --inc)
1047 ac_prev=includedir ;;
1048 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1049 | --includ=* | --inclu=* | --incl=* | --inc=*)
1050 includedir=$ac_optarg ;;
1052 -infodir | --infodir | --infodi | --infod | --info | --inf)
1054 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1055 infodir=$ac_optarg ;;
1057 -libdir | --libdir | --libdi | --libd)
1059 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1060 libdir=$ac_optarg ;;
1062 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1063 | --libexe | --libex | --libe)
1064 ac_prev=libexecdir ;;
1065 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1066 | --libexe=* | --libex=* | --libe=*)
1067 libexecdir=$ac_optarg ;;
1069 -localedir | --localedir | --localedi | --localed | --locale)
1070 ac_prev=localedir ;;
1071 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1072 localedir=$ac_optarg ;;
1074 -localstatedir | --localstatedir | --localstatedi | --localstated \
1075 | --localstate | --localstat | --localsta | --localst | --locals)
1076 ac_prev=localstatedir ;;
1077 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1078 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1079 localstatedir=$ac_optarg ;;
1081 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1083 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1084 mandir=$ac_optarg ;;
1086 -nfp | --nfp | --nf)
1087 # Obsolete; use --without-fp.
1090 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1091 | --no-cr | --no-c | -n)
1094 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1095 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1098 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1099 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1100 | --oldin | --oldi | --old | --ol | --o)
1101 ac_prev=oldincludedir ;;
1102 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1103 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1104 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1105 oldincludedir=$ac_optarg ;;
1107 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1109 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1110 prefix=$ac_optarg ;;
1112 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1113 | --program-pre | --program-pr | --program-p)
1114 ac_prev=program_prefix ;;
1115 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1116 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1117 program_prefix=$ac_optarg ;;
1119 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1120 | --program-suf | --program-su | --program-s)
1121 ac_prev=program_suffix ;;
1122 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1123 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1124 program_suffix=$ac_optarg ;;
1126 -program-transform-name | --program-transform-name \
1127 | --program-transform-nam | --program-transform-na \
1128 | --program-transform-n | --program-transform- \
1129 | --program-transform | --program-transfor \
1130 | --program-transfo | --program-transf \
1131 | --program-trans | --program-tran \
1132 | --progr-tra | --program-tr | --program-t)
1133 ac_prev=program_transform_name ;;
1134 -program-transform-name=* | --program-transform-name=* \
1135 | --program-transform-nam=* | --program-transform-na=* \
1136 | --program-transform-n=* | --program-transform-=* \
1137 | --program-transform=* | --program-transfor=* \
1138 | --program-transfo=* | --program-transf=* \
1139 | --program-trans=* | --program-tran=* \
1140 | --progr-tra=* | --program-tr=* | --program-t=*)
1141 program_transform_name=$ac_optarg ;;
1143 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1145 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1146 pdfdir=$ac_optarg ;;
1148 -psdir | --psdir | --psdi | --psd | --ps)
1150 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1153 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1154 | -silent | --silent | --silen | --sile | --sil)
1157 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1159 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1161 sbindir=$ac_optarg ;;
1163 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1164 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1165 | --sharedst | --shareds | --shared | --share | --shar \
1167 ac_prev=sharedstatedir ;;
1168 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1169 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1170 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1172 sharedstatedir=$ac_optarg ;;
1174 -site | --site | --sit)
1176 -site=* | --site=* | --sit=*)
1179 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1181 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1182 srcdir=$ac_optarg ;;
1184 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1185 | --syscon | --sysco | --sysc | --sys | --sy)
1186 ac_prev=sysconfdir ;;
1187 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1188 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1189 sysconfdir=$ac_optarg ;;
1191 -target | --target | --targe | --targ | --tar | --ta | --t)
1192 ac_prev=target_alias ;;
1193 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1194 target_alias=$ac_optarg ;;
1196 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1199 -version | --version | --versio | --versi | --vers | -V)
1200 ac_init_version=: ;;
1203 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1204 # Reject names that are not valid shell variable names.
1205 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1206 as_fn_error $? "invalid package name: $ac_useropt"
1207 ac_useropt_orig=$ac_useropt
1208 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1209 case $ac_user_opts in
1213 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1214 ac_unrecognized_sep=', ';;
1216 eval with_$ac_useropt=\$ac_optarg ;;
1218 -without-* | --without-*)
1219 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1220 # Reject names that are not valid shell variable names.
1221 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1222 as_fn_error $? "invalid package name: $ac_useropt"
1223 ac_useropt_orig=$ac_useropt
1224 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1225 case $ac_user_opts in
1229 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1230 ac_unrecognized_sep=', ';;
1232 eval with_$ac_useropt=no ;;
1235 # Obsolete; use --with-x.
1238 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1239 | --x-incl | --x-inc | --x-in | --x-i)
1240 ac_prev=x_includes ;;
1241 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1242 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1243 x_includes=$ac_optarg ;;
1245 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1246 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1247 ac_prev=x_libraries ;;
1248 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1249 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1250 x_libraries=$ac_optarg ;;
1252 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1253 Try \`$0 --help' for more information"
1257 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1258 # Reject names that are not valid shell variable names.
1259 case $ac_envvar in #(
1260 '' | [0-9]* | *[!_$as_cr_alnum]* )
1261 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1263 eval $ac_envvar=\$ac_optarg
1264 export $ac_envvar ;;
1267 # FIXME: should be removed in autoconf 3.0.
1268 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1269 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1270 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1271 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1277 if test -n "$ac_prev"; then
1278 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1279 as_fn_error $? "missing argument to $ac_option"
1282 if test -n "$ac_unrecognized_opts"; then
1283 case $enable_option_checking in
1285 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1286 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1290 # Check all directory arguments for consistency.
1291 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1292 datadir sysconfdir sharedstatedir localstatedir includedir \
1293 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1294 libdir localedir mandir
1296 eval ac_val=\$$ac_var
1297 # Remove trailing slashes.
1300 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1301 eval $ac_var=\$ac_val;;
1303 # Be sure to have absolute directory names.
1305 [\\/$]* | ?:[\\/]* ) continue;;
1306 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1308 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1311 # There might be people who depend on the old broken behavior: `$host'
1312 # used to hold the argument of --host etc.
1313 # FIXME: To remove some day.
1316 target=$target_alias
1318 # FIXME: To remove some day.
1319 if test "x$host_alias" != x; then
1320 if test "x$build_alias" = x; then
1321 cross_compiling=maybe
1322 elif test "x$build_alias" != "x$host_alias"; then
1328 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1330 test "$silent" = yes && exec 6>/dev/null
1333 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1334 ac_ls_di=`ls -di .` &&
1335 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1336 as_fn_error $? "working directory cannot be determined"
1337 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1338 as_fn_error $? "pwd does not report name of working directory"
1341 # Find the source files, if location was not specified.
1342 if test -z "$srcdir"; then
1343 ac_srcdir_defaulted=yes
1344 # Try the directory containing this script, then the parent directory.
1345 ac_confdir=`$as_dirname -- "$as_myself" ||
1346 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1347 X"$as_myself" : 'X\(//\)[^/]' \| \
1348 X"$as_myself" : 'X\(//\)$' \| \
1349 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1350 $as_echo X"$as_myself" |
1351 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1369 if test ! -r "$srcdir/$ac_unique_file"; then
1373 ac_srcdir_defaulted=no
1375 if test ! -r "$srcdir/$ac_unique_file"; then
1376 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1377 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1379 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1381 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1383 # When building in place, set srcdir=.
1384 if test "$ac_abs_confdir" = "$ac_pwd"; then
1387 # Remove unnecessary trailing slashes from srcdir.
1388 # Double slashes in file names in object file debugging info
1389 # mess up M-x gdb in Emacs.
1391 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1393 for ac_var in $ac_precious_vars; do
1394 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1395 eval ac_env_${ac_var}_value=\$${ac_var}
1396 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1397 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1401 # Report the --help message.
1403 if test "$ac_init_help" = "long"; then
1404 # Omit some internal or obsolete options to make the list less imposing.
1405 # This message is too long to be a string in the A/UX 3.1 sh.
1407 \`configure' configures psensor 1.1.0.x to adapt to many kinds of systems.
1409 Usage: $0 [OPTION]... [VAR=VALUE]...
1411 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1412 VAR=VALUE. See below for descriptions of some of the useful variables.
1414 Defaults for the options are specified in brackets.
1417 -h, --help display this help and exit
1418 --help=short display options specific to this package
1419 --help=recursive display the short help of all the included packages
1420 -V, --version display version information and exit
1421 -q, --quiet, --silent do not print \`checking ...' messages
1422 --cache-file=FILE cache test results in FILE [disabled]
1423 -C, --config-cache alias for \`--cache-file=config.cache'
1424 -n, --no-create do not create output files
1425 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1427 Installation directories:
1428 --prefix=PREFIX install architecture-independent files in PREFIX
1429 [$ac_default_prefix]
1430 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1433 By default, \`make install' will install all the files in
1434 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1435 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1436 for instance \`--prefix=\$HOME'.
1438 For better control, use the options below.
1440 Fine tuning of the installation directories:
1441 --bindir=DIR user executables [EPREFIX/bin]
1442 --sbindir=DIR system admin executables [EPREFIX/sbin]
1443 --libexecdir=DIR program executables [EPREFIX/libexec]
1444 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1445 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1446 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1447 --libdir=DIR object code libraries [EPREFIX/lib]
1448 --includedir=DIR C header files [PREFIX/include]
1449 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1450 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1451 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1452 --infodir=DIR info documentation [DATAROOTDIR/info]
1453 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1454 --mandir=DIR man documentation [DATAROOTDIR/man]
1455 --docdir=DIR documentation root [DATAROOTDIR/doc/psensor]
1456 --htmldir=DIR html documentation [DOCDIR]
1457 --dvidir=DIR dvi documentation [DOCDIR]
1458 --pdfdir=DIR pdf documentation [DOCDIR]
1459 --psdir=DIR ps documentation [DOCDIR]
1465 --program-prefix=PREFIX prepend PREFIX to installed program names
1466 --program-suffix=SUFFIX append SUFFIX to installed program names
1467 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1470 --x-includes=DIR X include files are in DIR
1471 --x-libraries=DIR X library files are in DIR
1474 --build=BUILD configure for building on BUILD [guessed]
1475 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1479 if test -n "$ac_init_help"; then
1480 case $ac_init_help in
1481 short | recursive ) echo "Configuration of psensor 1.1.0.x:";;
1486 --disable-option-checking ignore unrecognized --enable/--with options
1487 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1488 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1489 --enable-silent-rules less verbose build output (undo: "make V=1")
1490 --disable-silent-rules verbose build output (undo: "make V=0")
1491 --enable-dependency-tracking
1492 do not reject slow dependency extractors
1493 --disable-dependency-tracking
1494 speeds up one-time build
1495 --disable-largefile omit support for large files
1496 --disable-nls do not use Native Language Support
1497 --disable-rpath do not hardcode runtime library paths
1498 --disable-schemas-compile
1499 Disable regeneration of gschemas.compiled on install
1502 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1503 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1504 --with-x use the X Window System
1505 --with-gnu-ld assume the C compiler uses GNU ld default=no
1506 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1507 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1508 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1509 --without-libintl-prefix don't search for libintl in includedir and libdir
1510 --with-libatiadl=DIR use libatiadlxx in DIR
1511 --with-gtop=yes|no use gtop
1513 Some influential environment variables:
1514 CC C compiler command
1515 CFLAGS C compiler flags
1516 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1517 nonstandard directory <lib dir>
1518 LIBS libraries to pass to the linker, e.g. -l<library>
1519 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1520 you have headers in a nonstandard directory <include dir>
1521 XMKMF Path to xmkmf, Makefile generator for X Window System
1523 PKG_CONFIG path to pkg-config utility
1525 directories to add to pkg-config's search path
1527 path overriding pkg-config's built-in search path
1528 X11_CFLAGS C compiler flags for X11, overriding pkg-config
1529 X11_LIBS linker flags for X11, overriding pkg-config
1530 XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
1531 XEXT_LIBS linker flags for XEXT, overriding pkg-config
1532 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config
1533 GTK_LIBS linker flags for GTK, overriding pkg-config
1535 C compiler flags for LIBUDISKS2, overriding pkg-config
1537 linker flags for LIBUDISKS2, overriding pkg-config
1539 C compiler flags for ATASMART, overriding pkg-config
1541 linker flags for ATASMART, overriding pkg-config
1543 C compiler flags for LIBNOTIFY, overriding pkg-config
1545 linker flags for LIBNOTIFY, overriding pkg-config
1547 C compiler flags for APPINDICATOR, overriding pkg-config
1549 linker flags for APPINDICATOR, overriding pkg-config
1550 CURL_CFLAGS C compiler flags for CURL, overriding pkg-config
1551 CURL_LIBS linker flags for CURL, overriding pkg-config
1552 JSON_CFLAGS C compiler flags for JSON, overriding pkg-config
1553 JSON_LIBS linker flags for JSON, overriding pkg-config
1555 C compiler flags for UNITY, overriding pkg-config
1556 UNITY_LIBS linker flags for UNITY, overriding pkg-config
1557 LIBMICROHTTPD_CFLAGS
1558 C compiler flags for LIBMICROHTTPD, overriding pkg-config
1560 linker flags for LIBMICROHTTPD, overriding pkg-config
1561 GTOP_CFLAGS C compiler flags for GTOP, overriding pkg-config
1562 GTOP_LIBS linker flags for GTOP, overriding pkg-config
1564 Use these variables to override the choices made by `configure' or to help
1565 it to find libraries and programs with nonstandard names/locations.
1567 Report bugs to <jeanfi@gmail.com>.
1568 psensor home page: <http://wpitchoune.net/psensor>.
1573 if test "$ac_init_help" = "recursive"; then
1574 # If there are subdirs, report their specific --help.
1575 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1576 test -d "$ac_dir" ||
1577 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1582 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1584 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1585 # A ".." for each directory in $ac_dir_suffix.
1586 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1587 case $ac_top_builddir_sub in
1588 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1589 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1592 ac_abs_top_builddir=$ac_pwd
1593 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1594 # for backward compatibility:
1595 ac_top_builddir=$ac_top_build_prefix
1598 .) # We are building in place.
1600 ac_top_srcdir=$ac_top_builddir_sub
1601 ac_abs_top_srcdir=$ac_pwd ;;
1602 [\\/]* | ?:[\\/]* ) # Absolute name.
1603 ac_srcdir=$srcdir$ac_dir_suffix;
1604 ac_top_srcdir=$srcdir
1605 ac_abs_top_srcdir=$srcdir ;;
1607 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1608 ac_top_srcdir=$ac_top_build_prefix$srcdir
1609 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1611 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1613 cd "$ac_dir" || { ac_status=$?; continue; }
1614 # Check for guested configure.
1615 if test -f "$ac_srcdir/configure.gnu"; then
1617 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1618 elif test -f "$ac_srcdir/configure"; then
1620 $SHELL "$ac_srcdir/configure" --help=recursive
1622 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1624 cd "$ac_pwd" || { ac_status=$?; break; }
1628 test -n "$ac_init_help" && exit $ac_status
1629 if $ac_init_version; then
1631 psensor configure 1.1.0.x
1632 generated by GNU Autoconf 2.69
1634 Copyright (C) 2012 Free Software Foundation, Inc.
1635 This configure script is free software; the Free Software Foundation
1636 gives unlimited permission to copy, distribute and modify it.
1641 ## ------------------------ ##
1642 ## Autoconf initialization. ##
1643 ## ------------------------ ##
1645 # ac_fn_c_try_compile LINENO
1646 # --------------------------
1647 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1648 ac_fn_c_try_compile ()
1650 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1651 rm -f conftest.$ac_objext
1652 if { { ac_try="$ac_compile"
1654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1655 *) ac_try_echo=$ac_try;;
1657 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1658 $as_echo "$ac_try_echo"; } >&5
1659 (eval "$ac_compile") 2>conftest.err
1661 if test -s conftest.err; then
1662 grep -v '^ *+' conftest.err >conftest.er1
1663 cat conftest.er1 >&5
1664 mv -f conftest.er1 conftest.err
1666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1667 test $ac_status = 0; } && {
1668 test -z "$ac_c_werror_flag" ||
1669 test ! -s conftest.err
1670 } && test -s conftest.$ac_objext; then :
1673 $as_echo "$as_me: failed program was:" >&5
1674 sed 's/^/| /' conftest.$ac_ext >&5
1678 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1679 as_fn_set_status $ac_retval
1681 } # ac_fn_c_try_compile
1683 # ac_fn_c_try_cpp LINENO
1684 # ----------------------
1685 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1688 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1689 if { { ac_try="$ac_cpp conftest.$ac_ext"
1691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1692 *) ac_try_echo=$ac_try;;
1694 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1695 $as_echo "$ac_try_echo"; } >&5
1696 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1698 if test -s conftest.err; then
1699 grep -v '^ *+' conftest.err >conftest.er1
1700 cat conftest.er1 >&5
1701 mv -f conftest.er1 conftest.err
1703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1704 test $ac_status = 0; } > conftest.i && {
1705 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1706 test ! -s conftest.err
1710 $as_echo "$as_me: failed program was:" >&5
1711 sed 's/^/| /' conftest.$ac_ext >&5
1715 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1716 as_fn_set_status $ac_retval
1720 # ac_fn_c_try_link LINENO
1721 # -----------------------
1722 # Try to link conftest.$ac_ext, and return whether this succeeded.
1725 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1726 rm -f conftest.$ac_objext conftest$ac_exeext
1727 if { { ac_try="$ac_link"
1729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1730 *) ac_try_echo=$ac_try;;
1732 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1733 $as_echo "$ac_try_echo"; } >&5
1734 (eval "$ac_link") 2>conftest.err
1736 if test -s conftest.err; then
1737 grep -v '^ *+' conftest.err >conftest.er1
1738 cat conftest.er1 >&5
1739 mv -f conftest.er1 conftest.err
1741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1742 test $ac_status = 0; } && {
1743 test -z "$ac_c_werror_flag" ||
1744 test ! -s conftest.err
1745 } && test -s conftest$ac_exeext && {
1746 test "$cross_compiling" = yes ||
1747 test -x conftest$ac_exeext
1751 $as_echo "$as_me: failed program was:" >&5
1752 sed 's/^/| /' conftest.$ac_ext >&5
1756 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1757 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1758 # interfere with the next link command; also delete a directory that is
1759 # left behind by Apple's compiler. We do this before executing the actions.
1760 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1761 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1762 as_fn_set_status $ac_retval
1764 } # ac_fn_c_try_link
1766 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1767 # -------------------------------------------------------
1768 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1769 # the include files in INCLUDES and setting the cache variable VAR
1771 ac_fn_c_check_header_mongrel ()
1773 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1774 if eval \${$3+:} false; then :
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1776 $as_echo_n "checking for $2... " >&6; }
1777 if eval \${$3+:} false; then :
1778 $as_echo_n "(cached) " >&6
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1782 $as_echo "$ac_res" >&6; }
1784 # Is the header compilable?
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1786 $as_echo_n "checking $2 usability... " >&6; }
1787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1788 /* end confdefs.h. */
1792 if ac_fn_c_try_compile "$LINENO"; then :
1793 ac_header_compiler=yes
1795 ac_header_compiler=no
1797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1799 $as_echo "$ac_header_compiler" >&6; }
1801 # Is the header present?
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1803 $as_echo_n "checking $2 presence... " >&6; }
1804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1805 /* end confdefs.h. */
1808 if ac_fn_c_try_cpp "$LINENO"; then :
1809 ac_header_preproc=yes
1811 ac_header_preproc=no
1813 rm -f conftest.err conftest.i conftest.$ac_ext
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1815 $as_echo "$ac_header_preproc" >&6; }
1817 # So? What about this header?
1818 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1821 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1823 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1827 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1829 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1831 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1833 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1835 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1836 ( $as_echo "## ------------------------------- ##
1837 ## Report this to jeanfi@gmail.com ##
1838 ## ------------------------------- ##"
1839 ) | sed "s/^/$as_me: WARNING: /" >&2
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1843 $as_echo_n "checking for $2... " >&6; }
1844 if eval \${$3+:} false; then :
1845 $as_echo_n "(cached) " >&6
1847 eval "$3=\$ac_header_compiler"
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1851 $as_echo "$ac_res" >&6; }
1853 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1855 } # ac_fn_c_check_header_mongrel
1857 # ac_fn_c_try_run LINENO
1858 # ----------------------
1859 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1860 # that executables *can* be run.
1863 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1864 if { { ac_try="$ac_link"
1866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1867 *) ac_try_echo=$ac_try;;
1869 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1870 $as_echo "$ac_try_echo"; } >&5
1871 (eval "$ac_link") 2>&5
1873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1874 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1875 { { case "(($ac_try" in
1876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1877 *) ac_try_echo=$ac_try;;
1879 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1880 $as_echo "$ac_try_echo"; } >&5
1881 (eval "$ac_try") 2>&5
1883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1884 test $ac_status = 0; }; }; then :
1887 $as_echo "$as_me: program exited with status $ac_status" >&5
1888 $as_echo "$as_me: failed program was:" >&5
1889 sed 's/^/| /' conftest.$ac_ext >&5
1891 ac_retval=$ac_status
1893 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1894 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1895 as_fn_set_status $ac_retval
1899 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1900 # -------------------------------------------------------
1901 # Tests whether HEADER exists and can be compiled using the include files in
1902 # INCLUDES, setting the cache variable VAR accordingly.
1903 ac_fn_c_check_header_compile ()
1905 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1907 $as_echo_n "checking for $2... " >&6; }
1908 if eval \${$3+:} false; then :
1909 $as_echo_n "(cached) " >&6
1911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1912 /* end confdefs.h. */
1916 if ac_fn_c_try_compile "$LINENO"; then :
1921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1925 $as_echo "$ac_res" >&6; }
1926 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1928 } # ac_fn_c_check_header_compile
1930 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1931 # -------------------------------------------
1932 # Tests whether TYPE exists after having included INCLUDES, setting cache
1933 # variable VAR accordingly.
1934 ac_fn_c_check_type ()
1936 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1938 $as_echo_n "checking for $2... " >&6; }
1939 if eval \${$3+:} false; then :
1940 $as_echo_n "(cached) " >&6
1943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1944 /* end confdefs.h. */
1955 if ac_fn_c_try_compile "$LINENO"; then :
1956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1957 /* end confdefs.h. */
1968 if ac_fn_c_try_compile "$LINENO"; then :
1973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1979 $as_echo "$ac_res" >&6; }
1980 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1982 } # ac_fn_c_check_type
1984 # ac_fn_c_check_func LINENO FUNC VAR
1985 # ----------------------------------
1986 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1987 ac_fn_c_check_func ()
1989 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1991 $as_echo_n "checking for $2... " >&6; }
1992 if eval \${$3+:} false; then :
1993 $as_echo_n "(cached) " >&6
1995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1996 /* end confdefs.h. */
1997 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1998 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1999 #define $2 innocuous_$2
2001 /* System header to define __stub macros and hopefully few prototypes,
2002 which can conflict with char $2 (); below.
2003 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2004 <limits.h> exists even on freestanding compilers. */
2007 # include <limits.h>
2009 # include <assert.h>
2014 /* Override any GCC internal prototype to avoid an error.
2015 Use char because int might match the return type of a GCC
2016 builtin and then its argument prototype would still apply. */
2021 /* The GNU C library defines this for functions which it implements
2022 to always fail with ENOSYS. Some functions are actually named
2023 something starting with __ and the normal name is an alias. */
2024 #if defined __stub_$2 || defined __stub___$2
2036 if ac_fn_c_try_link "$LINENO"; then :
2041 rm -f core conftest.err conftest.$ac_objext \
2042 conftest$ac_exeext conftest.$ac_ext
2045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2046 $as_echo "$ac_res" >&6; }
2047 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2049 } # ac_fn_c_check_func
2050 cat >config.log <<_ACEOF
2051 This file contains any messages produced by compilers while
2052 running configure, to aid debugging if configure makes a mistake.
2054 It was created by psensor $as_me 1.1.0.x, which was
2055 generated by GNU Autoconf 2.69. Invocation command line was
2067 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2068 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2069 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2070 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2071 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2073 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2074 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2076 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2077 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2078 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2079 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2080 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2081 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2082 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2090 test -z "$as_dir" && as_dir=.
2091 $as_echo "PATH: $as_dir"
2107 # Keep a trace of the command line.
2108 # Strip out --no-create and --no-recursion so they do not pile up.
2109 # Strip out --silent because we don't want to record it for future runs.
2110 # Also quote any args containing shell meta-characters.
2111 # Make two passes to allow for proper duplicate-argument suppression.
2115 ac_must_keep_next=false
2121 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2122 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2123 | -silent | --silent | --silen | --sile | --sil)
2126 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2129 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2131 as_fn_append ac_configure_args1 " '$ac_arg'"
2132 if test $ac_must_keep_next = true; then
2133 ac_must_keep_next=false # Got value, back to normal.
2136 *=* | --config-cache | -C | -disable-* | --disable-* \
2137 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2138 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2139 | -with-* | --with-* | -without-* | --without-* | --x)
2140 case "$ac_configure_args0 " in
2141 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2144 -* ) ac_must_keep_next=true ;;
2147 as_fn_append ac_configure_args " '$ac_arg'"
2152 { ac_configure_args0=; unset ac_configure_args0;}
2153 { ac_configure_args1=; unset ac_configure_args1;}
2155 # When interrupted or exit'd, cleanup temporary files, and complete
2156 # config.log. We remove comments because anyway the quotes in there
2157 # would cause problems or look ugly.
2158 # WARNING: Use '\'' to represent an apostrophe within the trap.
2159 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2160 trap 'exit_status=$?
2161 # Save into config.log some information that might help in debugging.
2165 $as_echo "## ---------------- ##
2166 ## Cache variables. ##
2167 ## ---------------- ##"
2169 # The following way of writing the cache mishandles newlines in values,
2171 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2172 eval ac_val=\$$ac_var
2176 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2177 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2180 _ | IFS | as_nl) ;; #(
2181 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2182 *) { eval $ac_var=; unset $ac_var;} ;;
2187 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2188 *${as_nl}ac_space=\ *)
2190 "s/'\''/'\''\\\\'\'''\''/g;
2191 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2194 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2201 $as_echo "## ----------------- ##
2202 ## Output variables. ##
2203 ## ----------------- ##"
2205 for ac_var in $ac_subst_vars
2207 eval ac_val=\$$ac_var
2209 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2211 $as_echo "$ac_var='\''$ac_val'\''"
2215 if test -n "$ac_subst_files"; then
2216 $as_echo "## ------------------- ##
2217 ## File substitutions. ##
2218 ## ------------------- ##"
2220 for ac_var in $ac_subst_files
2222 eval ac_val=\$$ac_var
2224 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2226 $as_echo "$ac_var='\''$ac_val'\''"
2231 if test -s confdefs.h; then
2232 $as_echo "## ----------- ##
2239 test "$ac_signal" != 0 &&
2240 $as_echo "$as_me: caught signal $ac_signal"
2241 $as_echo "$as_me: exit $exit_status"
2243 rm -f core *.core core.conftest.* &&
2244 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2247 for ac_signal in 1 2 13 15; do
2248 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2252 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2253 rm -f -r conftest* confdefs.h
2255 $as_echo "/* confdefs.h */" > confdefs.h
2257 # Predefined preprocessor variables.
2259 cat >>confdefs.h <<_ACEOF
2260 #define PACKAGE_NAME "$PACKAGE_NAME"
2263 cat >>confdefs.h <<_ACEOF
2264 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2267 cat >>confdefs.h <<_ACEOF
2268 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2271 cat >>confdefs.h <<_ACEOF
2272 #define PACKAGE_STRING "$PACKAGE_STRING"
2275 cat >>confdefs.h <<_ACEOF
2276 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2279 cat >>confdefs.h <<_ACEOF
2280 #define PACKAGE_URL "$PACKAGE_URL"
2284 # Let the site file select an alternate cache file if it wants to.
2285 # Prefer an explicitly selected file to automatically selected ones.
2288 if test -n "$CONFIG_SITE"; then
2289 # We do not want a PATH search for config.site.
2290 case $CONFIG_SITE in #((
2291 -*) ac_site_file1=./$CONFIG_SITE;;
2292 */*) ac_site_file1=$CONFIG_SITE;;
2293 *) ac_site_file1=./$CONFIG_SITE;;
2295 elif test "x$prefix" != xNONE; then
2296 ac_site_file1=$prefix/share/config.site
2297 ac_site_file2=$prefix/etc/config.site
2299 ac_site_file1=$ac_default_prefix/share/config.site
2300 ac_site_file2=$ac_default_prefix/etc/config.site
2302 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2304 test "x$ac_site_file" = xNONE && continue
2305 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2307 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2308 sed 's/^/| /' "$ac_site_file" >&5
2310 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2311 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2312 as_fn_error $? "failed to load site script $ac_site_file
2313 See \`config.log' for more details" "$LINENO" 5; }
2317 if test -r "$cache_file"; then
2318 # Some versions of bash will fail to source /dev/null (special files
2319 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2320 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2322 $as_echo "$as_me: loading cache $cache_file" >&6;}
2324 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2325 *) . "./$cache_file";;
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2330 $as_echo "$as_me: creating cache $cache_file" >&6;}
2334 gt_needs="$gt_needs "
2335 # Check that the precious variables saved in the cache have kept the same
2337 ac_cache_corrupted=false
2338 for ac_var in $ac_precious_vars; do
2339 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2340 eval ac_new_set=\$ac_env_${ac_var}_set
2341 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2342 eval ac_new_val=\$ac_env_${ac_var}_value
2343 case $ac_old_set,$ac_new_set in
2345 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2346 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2347 ac_cache_corrupted=: ;;
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2350 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2351 ac_cache_corrupted=: ;;
2354 if test "x$ac_old_val" != "x$ac_new_val"; then
2355 # differences in whitespace do not lead to failure.
2356 ac_old_val_w=`echo x $ac_old_val`
2357 ac_new_val_w=`echo x $ac_new_val`
2358 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2359 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2360 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2361 ac_cache_corrupted=:
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2364 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2365 eval $ac_var=\$ac_old_val
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2368 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2370 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2373 # Pass precious variables to config.status.
2374 if test "$ac_new_set" = set; then
2376 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2377 *) ac_arg=$ac_var=$ac_new_val ;;
2379 case " $ac_configure_args " in
2380 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2381 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2385 if $ac_cache_corrupted; then
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2387 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2389 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2390 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2392 ## -------------------- ##
2393 ## Main body of script. ##
2394 ## -------------------- ##
2397 ac_cpp='$CPP $CPPFLAGS'
2398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2404 am__api_version='1.14'
2407 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2408 if test -f "$ac_dir/install-sh"; then
2410 ac_install_sh="$ac_aux_dir/install-sh -c"
2412 elif test -f "$ac_dir/install.sh"; then
2414 ac_install_sh="$ac_aux_dir/install.sh -c"
2416 elif test -f "$ac_dir/shtool"; then
2418 ac_install_sh="$ac_aux_dir/shtool install -c"
2422 if test -z "$ac_aux_dir"; then
2423 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2426 # These three variables are undocumented and unsupported,
2427 # and are intended to be withdrawn in a future Autoconf release.
2428 # They can cause serious problems if a builder's source tree is in a directory
2429 # whose full name contains unusual characters.
2430 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2431 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2432 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2435 # Find a good install program. We prefer a C program (faster),
2436 # so one script is as good as another. But avoid the broken or
2437 # incompatible versions:
2438 # SysV /etc/install, /usr/sbin/install
2439 # SunOS /usr/etc/install
2440 # IRIX /sbin/install
2442 # AmigaOS /C/install, which installs bootblocks on floppy discs
2443 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2444 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2445 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2446 # OS/2's system install, which has a completely different semantic
2447 # ./install, which can be erroneously created by make from ./install.sh.
2448 # Reject install programs that cannot install multiple files.
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2450 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2451 if test -z "$INSTALL"; then
2452 if ${ac_cv_path_install+:} false; then :
2453 $as_echo_n "(cached) " >&6
2455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2459 test -z "$as_dir" && as_dir=.
2460 # Account for people who put trailing slashes in PATH elements.
2461 case $as_dir/ in #((
2462 ./ | .// | /[cC]/* | \
2463 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2464 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2467 # OSF1 and SCO ODT 3.0 have their own names for install.
2468 # Don't use installbsd from OSF since it installs stuff as root
2470 for ac_prog in ginstall scoinst install; do
2471 for ac_exec_ext in '' $ac_executable_extensions; do
2472 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2473 if test $ac_prog = install &&
2474 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2475 # AIX install. It has an incompatible calling convention.
2477 elif test $ac_prog = install &&
2478 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2479 # program-specific install script used by HP pwplus--don't use.
2482 rm -rf conftest.one conftest.two conftest.dir
2483 echo one > conftest.one
2484 echo two > conftest.two
2486 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2487 test -s conftest.one && test -s conftest.two &&
2488 test -s conftest.dir/conftest.one &&
2489 test -s conftest.dir/conftest.two
2491 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2504 rm -rf conftest.one conftest.two conftest.dir
2507 if test "${ac_cv_path_install+set}" = set; then
2508 INSTALL=$ac_cv_path_install
2510 # As a last resort, use the slow shell script. Don't cache a
2511 # value for INSTALL within a source directory, because that will
2512 # break other packages using the cache if that directory is
2513 # removed, or if the value is a relative name.
2514 INSTALL=$ac_install_sh
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2518 $as_echo "$INSTALL" >&6; }
2520 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2521 # It thinks the first close brace ends the variable substitution.
2522 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2524 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2526 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2529 $as_echo_n "checking whether build environment is sane... " >&6; }
2530 # Reject unsafe characters in $srcdir or the absolute working directory
2531 # name. Accept space and tab only in the latter.
2535 *[\\\"\#\$\&\'\`$am_lf]*)
2536 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2539 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2540 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2543 # Do 'set' in a subshell so we don't clobber the current shell's
2544 # arguments. Must try -L first in case configure is actually a
2545 # symlink; some systems play weird games with the mod time of symlinks
2546 # (eg FreeBSD returns the mod time of the symlink's containing
2550 for am_try in 1 2; do
2551 echo "timestamp, slept: $am_has_slept" > conftest.file
2552 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2553 if test "$*" = "X"; then
2555 set X `ls -t "$srcdir/configure" conftest.file`
2557 if test "$*" != "X $srcdir/configure conftest.file" \
2558 && test "$*" != "X conftest.file $srcdir/configure"; then
2560 # If neither matched, then we have a broken ls. This can happen
2561 # if, for instance, CONFIG_SHELL is bash and it inherits a
2562 # broken ls alias from the environment. This has actually
2563 # happened. Such a system could not be considered "sane".
2564 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2565 alias in your environment" "$LINENO" 5
2567 if test "$2" = conftest.file || test $am_try -eq 2; then
2574 test "$2" = conftest.file
2580 as_fn_error $? "newly created file is older than distributed files!
2581 Check your system clock" "$LINENO" 5
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2584 $as_echo "yes" >&6; }
2585 # If we didn't sleep, we still need to ensure time stamps of config.status and
2586 # generated files are strictly newer.
2588 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2595 test "$program_prefix" != NONE &&
2596 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2597 # Use a double $ so make ignores it.
2598 test "$program_suffix" != NONE &&
2599 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2600 # Double any \ or $.
2601 # By default was `s,x,x', remove it if useless.
2602 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2603 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2605 # expand $ac_aux_dir to an absolute path
2606 am_aux_dir=`cd $ac_aux_dir && pwd`
2608 if test x"${MISSING+set}" != xset; then
2611 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2613 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2616 # Use eval to expand $SHELL
2617 if eval "$MISSING --is-lightweight"; then
2618 am_missing_run="$MISSING "
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2622 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2625 if test x"${install_sh}" != xset; then
2628 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2630 install_sh="\${SHELL} $am_aux_dir/install-sh"
2634 # Installed binaries are usually stripped using 'strip' when the user
2635 # run "make install-strip". However 'strip' might not be the right
2636 # tool to use in cross-compilation environments, therefore Automake
2637 # will honor the 'STRIP' environment variable to overrule this program.
2638 if test "$cross_compiling" != no; then
2639 if test -n "$ac_tool_prefix"; then
2640 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2641 set dummy ${ac_tool_prefix}strip; ac_word=$2
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2643 $as_echo_n "checking for $ac_word... " >&6; }
2644 if ${ac_cv_prog_STRIP+:} false; then :
2645 $as_echo_n "(cached) " >&6
2647 if test -n "$STRIP"; then
2648 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2654 test -z "$as_dir" && as_dir=.
2655 for ac_exec_ext in '' $ac_executable_extensions; do
2656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2657 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2667 STRIP=$ac_cv_prog_STRIP
2668 if test -n "$STRIP"; then
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2670 $as_echo "$STRIP" >&6; }
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2673 $as_echo "no" >&6; }
2678 if test -z "$ac_cv_prog_STRIP"; then
2680 # Extract the first word of "strip", so it can be a program name with args.
2681 set dummy strip; ac_word=$2
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2683 $as_echo_n "checking for $ac_word... " >&6; }
2684 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2685 $as_echo_n "(cached) " >&6
2687 if test -n "$ac_ct_STRIP"; then
2688 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2694 test -z "$as_dir" && as_dir=.
2695 for ac_exec_ext in '' $ac_executable_extensions; do
2696 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2697 ac_cv_prog_ac_ct_STRIP="strip"
2698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2707 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2708 if test -n "$ac_ct_STRIP"; then
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2710 $as_echo "$ac_ct_STRIP" >&6; }
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2713 $as_echo "no" >&6; }
2716 if test "x$ac_ct_STRIP" = x; then
2719 case $cross_compiling:$ac_tool_warned in
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2722 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2723 ac_tool_warned=yes ;;
2728 STRIP="$ac_cv_prog_STRIP"
2732 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2735 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2736 if test -z "$MKDIR_P"; then
2737 if ${ac_cv_path_mkdir+:} false; then :
2738 $as_echo_n "(cached) " >&6
2740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2741 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2744 test -z "$as_dir" && as_dir=.
2745 for ac_prog in mkdir gmkdir; do
2746 for ac_exec_ext in '' $ac_executable_extensions; do
2747 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2748 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2749 'mkdir (GNU coreutils) '* | \
2750 'mkdir (coreutils) '* | \
2751 'mkdir (fileutils) '4.1*)
2752 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2762 test -d ./--version && rmdir ./--version
2763 if test "${ac_cv_path_mkdir+set}" = set; then
2764 MKDIR_P="$ac_cv_path_mkdir -p"
2766 # As a last resort, use the slow shell script. Don't cache a
2767 # value for MKDIR_P within a source directory, because that will
2768 # break other packages using the cache if that directory is
2769 # removed, or if the value is a relative name.
2770 MKDIR_P="$ac_install_sh -d"
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2774 $as_echo "$MKDIR_P" >&6; }
2776 for ac_prog in gawk mawk nawk awk
2778 # Extract the first word of "$ac_prog", so it can be a program name with args.
2779 set dummy $ac_prog; ac_word=$2
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2781 $as_echo_n "checking for $ac_word... " >&6; }
2782 if ${ac_cv_prog_AWK+:} false; then :
2783 $as_echo_n "(cached) " >&6
2785 if test -n "$AWK"; then
2786 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2792 test -z "$as_dir" && as_dir=.
2793 for ac_exec_ext in '' $ac_executable_extensions; do
2794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2795 ac_cv_prog_AWK="$ac_prog"
2796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2806 if test -n "$AWK"; then
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2808 $as_echo "$AWK" >&6; }
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2811 $as_echo "no" >&6; }
2815 test -n "$AWK" && break
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2819 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2821 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2822 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2823 $as_echo_n "(cached) " >&6
2825 cat >conftest.make <<\_ACEOF
2828 @echo '@@@%%%=$(MAKE)=@@@%%%'
2830 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2831 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2833 eval ac_cv_prog_make_${ac_make}_set=yes;;
2835 eval ac_cv_prog_make_${ac_make}_set=no;;
2839 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2841 $as_echo "yes" >&6; }
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2845 $as_echo "no" >&6; }
2846 SET_MAKE="MAKE=${MAKE-make}"
2849 rm -rf .tst 2>/dev/null
2850 mkdir .tst 2>/dev/null
2851 if test -d .tst; then
2856 rmdir .tst 2>/dev/null
2858 # Check whether --enable-silent-rules was given.
2859 if test "${enable_silent_rules+set}" = set; then :
2860 enableval=$enable_silent_rules;
2863 case $enable_silent_rules in # (((
2864 yes) AM_DEFAULT_VERBOSITY=0;;
2865 no) AM_DEFAULT_VERBOSITY=1;;
2866 *) AM_DEFAULT_VERBOSITY=1;;
2868 am_make=${MAKE-make}
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2870 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2871 if ${am_cv_make_support_nested_variables+:} false; then :
2872 $as_echo_n "(cached) " >&6
2874 if $as_echo 'TRUE=$(BAR$(V))
2880 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2881 am_cv_make_support_nested_variables=yes
2883 am_cv_make_support_nested_variables=no
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2887 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2888 if test $am_cv_make_support_nested_variables = yes; then
2890 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2892 AM_V=$AM_DEFAULT_VERBOSITY
2893 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2897 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2898 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2899 # is not polluted with repeated "-I."
2900 am__isrc=' -I$(srcdir)'
2901 # test to see if srcdir already configured
2902 if test -f $srcdir/config.status; then
2903 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2907 # test whether we have cygpath
2908 if test -z "$CYGPATH_W"; then
2909 if (cygpath --version) >/dev/null 2>/dev/null; then
2910 CYGPATH_W='cygpath -w'
2917 # Define the identity of the package.
2922 cat >>confdefs.h <<_ACEOF
2923 #define PACKAGE "$PACKAGE"
2927 cat >>confdefs.h <<_ACEOF
2928 #define VERSION "$VERSION"
2931 # Some tools Automake needs.
2933 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2936 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2939 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2942 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2945 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2947 # For better backward compatibility. To be removed once Automake 1.9.x
2948 # dies out for good. For more background, see:
2949 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2950 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2951 mkdir_p='$(MKDIR_P)'
2953 # We need awk for the "check" target. The system "awk" is bad on
2955 # Always define AMTAR for backward compatibility. Yes, it's still used
2956 # in the wild :-( We should find a proper way to deprecate it ...
2960 # We'll loop over all known methods to create a tar archive until one works.
2961 _am_tools='gnutar pax cpio none'
2963 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2970 # POSIX will say in a future version that running "rm -f" with no argument
2971 # is OK; and we want to be able to make that assumption in our Makefile
2972 # recipes. So use an aggressive probe to check that the usage we want is
2973 # actually supported "in the wild" to an acceptable degree.
2974 # See automake bug#10828.
2975 # To make any issue more visible, cause the running configure to be aborted
2976 # by default if the 'rm' program in use doesn't match our expectations; the
2977 # user can still override this though.
2978 if rm -f && rm -fr && rm -rf; then : OK; else
2982 Your 'rm' program seems unable to run without file operands specified
2983 on the command line, even when the '-f' option is present. This is contrary
2984 to the behaviour of most rm programs out there, and not conforming with
2985 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2987 Please tell bug-automake@gnu.org about your system, including the value
2988 of your $PATH and any error possibly output before this message. This
2989 can help us improve future automake versions.
2992 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2993 echo 'Configuration will proceed anyway, since you have set the' >&2
2994 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2998 Aborting the configuration process, to ensure you take notice of the issue.
3000 You can download and install GNU coreutils to get an 'rm' implementation
3001 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3003 If you want to complete the configuration process using your problematic
3004 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3005 to "yes", and re-run configure.
3008 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3013 ac_config_headers="$ac_config_headers config.h"
3019 # Checks for programs.
3021 ac_cpp='$CPP $CPPFLAGS'
3022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3025 if test -n "$ac_tool_prefix"; then
3026 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3027 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3029 $as_echo_n "checking for $ac_word... " >&6; }
3030 if ${ac_cv_prog_CC+:} false; then :
3031 $as_echo_n "(cached) " >&6
3033 if test -n "$CC"; then
3034 ac_cv_prog_CC="$CC" # Let the user override the test.
3036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3040 test -z "$as_dir" && as_dir=.
3041 for ac_exec_ext in '' $ac_executable_extensions; do
3042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3043 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3054 if test -n "$CC"; then
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3056 $as_echo "$CC" >&6; }
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3059 $as_echo "no" >&6; }
3064 if test -z "$ac_cv_prog_CC"; then
3066 # Extract the first word of "gcc", so it can be a program name with args.
3067 set dummy gcc; ac_word=$2
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3069 $as_echo_n "checking for $ac_word... " >&6; }
3070 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3071 $as_echo_n "(cached) " >&6
3073 if test -n "$ac_ct_CC"; then
3074 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3080 test -z "$as_dir" && as_dir=.
3081 for ac_exec_ext in '' $ac_executable_extensions; do
3082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3083 ac_cv_prog_ac_ct_CC="gcc"
3084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3093 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3094 if test -n "$ac_ct_CC"; then
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3096 $as_echo "$ac_ct_CC" >&6; }
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3099 $as_echo "no" >&6; }
3102 if test "x$ac_ct_CC" = x; then
3105 case $cross_compiling:$ac_tool_warned in
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3108 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3109 ac_tool_warned=yes ;;
3117 if test -z "$CC"; then
3118 if test -n "$ac_tool_prefix"; then
3119 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3120 set dummy ${ac_tool_prefix}cc; ac_word=$2
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3122 $as_echo_n "checking for $ac_word... " >&6; }
3123 if ${ac_cv_prog_CC+:} false; then :
3124 $as_echo_n "(cached) " >&6
3126 if test -n "$CC"; then
3127 ac_cv_prog_CC="$CC" # Let the user override the test.
3129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3133 test -z "$as_dir" && as_dir=.
3134 for ac_exec_ext in '' $ac_executable_extensions; do
3135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3136 ac_cv_prog_CC="${ac_tool_prefix}cc"
3137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3147 if test -n "$CC"; then
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3149 $as_echo "$CC" >&6; }
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3152 $as_echo "no" >&6; }
3158 if test -z "$CC"; then
3159 # Extract the first word of "cc", so it can be a program name with args.
3160 set dummy cc; ac_word=$2
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3162 $as_echo_n "checking for $ac_word... " >&6; }
3163 if ${ac_cv_prog_CC+:} false; then :
3164 $as_echo_n "(cached) " >&6
3166 if test -n "$CC"; then
3167 ac_cv_prog_CC="$CC" # Let the user override the test.
3170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3174 test -z "$as_dir" && as_dir=.
3175 for ac_exec_ext in '' $ac_executable_extensions; do
3176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3177 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3178 ac_prog_rejected=yes
3182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3189 if test $ac_prog_rejected = yes; then
3190 # We found a bogon in the path, so make sure we never use it.
3191 set dummy $ac_cv_prog_CC
3193 if test $# != 0; then
3194 # We chose a different compiler from the bogus one.
3195 # However, it has the same basename, so the bogon will be chosen
3196 # first if we set CC to just the basename; use the full file name.
3198 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3204 if test -n "$CC"; then
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3206 $as_echo "$CC" >&6; }
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3209 $as_echo "no" >&6; }
3214 if test -z "$CC"; then
3215 if test -n "$ac_tool_prefix"; then
3216 for ac_prog in cl.exe
3218 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3219 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3221 $as_echo_n "checking for $ac_word... " >&6; }
3222 if ${ac_cv_prog_CC+:} false; then :
3223 $as_echo_n "(cached) " >&6
3225 if test -n "$CC"; then
3226 ac_cv_prog_CC="$CC" # Let the user override the test.
3228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3232 test -z "$as_dir" && as_dir=.
3233 for ac_exec_ext in '' $ac_executable_extensions; do
3234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3235 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3246 if test -n "$CC"; then
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3248 $as_echo "$CC" >&6; }
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3251 $as_echo "no" >&6; }
3255 test -n "$CC" && break
3258 if test -z "$CC"; then
3260 for ac_prog in cl.exe
3262 # Extract the first word of "$ac_prog", so it can be a program name with args.
3263 set dummy $ac_prog; ac_word=$2
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3265 $as_echo_n "checking for $ac_word... " >&6; }
3266 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3267 $as_echo_n "(cached) " >&6
3269 if test -n "$ac_ct_CC"; then
3270 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3276 test -z "$as_dir" && as_dir=.
3277 for ac_exec_ext in '' $ac_executable_extensions; do
3278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3279 ac_cv_prog_ac_ct_CC="$ac_prog"
3280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3289 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3290 if test -n "$ac_ct_CC"; then
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3292 $as_echo "$ac_ct_CC" >&6; }
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3295 $as_echo "no" >&6; }
3299 test -n "$ac_ct_CC" && break
3302 if test "x$ac_ct_CC" = x; then
3305 case $cross_compiling:$ac_tool_warned in
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3308 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3309 ac_tool_warned=yes ;;
3318 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3319 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3320 as_fn_error $? "no acceptable C compiler found in \$PATH
3321 See \`config.log' for more details" "$LINENO" 5; }
3323 # Provide some information about the compiler.
3324 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3327 for ac_option in --version -v -V -qversion; do
3328 { { ac_try="$ac_compiler $ac_option >&5"
3330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3331 *) ac_try_echo=$ac_try;;
3333 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3334 $as_echo "$ac_try_echo"; } >&5
3335 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3337 if test -s conftest.err; then
3339 ... rest of stderr output deleted ...
3340 10q' conftest.err >conftest.er1
3341 cat conftest.er1 >&5
3343 rm -f conftest.er1 conftest.err
3344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3345 test $ac_status = 0; }
3348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3349 /* end confdefs.h. */
3359 ac_clean_files_save=$ac_clean_files
3360 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3361 # Try to create an executable without -o first, disregard a.out.
3362 # It will help us diagnose broken compilers, and finding out an intuition
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3365 $as_echo_n "checking whether the C compiler works... " >&6; }
3366 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3368 # The possible output files:
3369 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3372 for ac_file in $ac_files
3375 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3376 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3381 if { { ac_try="$ac_link_default"
3383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3384 *) ac_try_echo=$ac_try;;
3386 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3387 $as_echo "$ac_try_echo"; } >&5
3388 (eval "$ac_link_default") 2>&5
3390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3391 test $ac_status = 0; }; then :
3392 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3393 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3394 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3395 # so that the user can short-circuit this test for compilers unknown to
3397 for ac_file in $ac_files ''
3399 test -f "$ac_file" || continue
3401 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3404 # We found the default executable, but exeext='' is most
3408 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3410 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3412 # We set ac_cv_exeext here because the later test for it is not
3413 # safe: cross compilers may not add the suffix if given an `-o'
3414 # argument, so we may need to know it at that point already.
3415 # Even if this section looks crufty: it has the advantage of
3422 test "$ac_cv_exeext" = no && ac_cv_exeext=
3427 if test -z "$ac_file"; then :
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3429 $as_echo "no" >&6; }
3430 $as_echo "$as_me: failed program was:" >&5
3431 sed 's/^/| /' conftest.$ac_ext >&5
3433 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3434 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3435 as_fn_error 77 "C compiler cannot create executables
3436 See \`config.log' for more details" "$LINENO" 5; }
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3439 $as_echo "yes" >&6; }
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3442 $as_echo_n "checking for C compiler default output file name... " >&6; }
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3444 $as_echo "$ac_file" >&6; }
3445 ac_exeext=$ac_cv_exeext
3447 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3448 ac_clean_files=$ac_clean_files_save
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3450 $as_echo_n "checking for suffix of executables... " >&6; }
3451 if { { ac_try="$ac_link"
3453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3454 *) ac_try_echo=$ac_try;;
3456 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3457 $as_echo "$ac_try_echo"; } >&5
3458 (eval "$ac_link") 2>&5
3460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3461 test $ac_status = 0; }; then :
3462 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3463 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3464 # work properly (i.e., refer to `conftest.exe'), while it won't with
3466 for ac_file in conftest.exe conftest conftest.*; do
3467 test -f "$ac_file" || continue
3469 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3470 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3476 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3477 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3478 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3479 See \`config.log' for more details" "$LINENO" 5; }
3481 rm -f conftest conftest$ac_cv_exeext
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3483 $as_echo "$ac_cv_exeext" >&6; }
3485 rm -f conftest.$ac_ext
3486 EXEEXT=$ac_cv_exeext
3488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3489 /* end confdefs.h. */
3494 FILE *f = fopen ("conftest.out", "w");
3495 return ferror (f) || fclose (f) != 0;
3501 ac_clean_files="$ac_clean_files conftest.out"
3502 # Check that the compiler produces executables we can run. If not, either
3503 # the compiler is broken, or we cross compile.
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3505 $as_echo_n "checking whether we are cross compiling... " >&6; }
3506 if test "$cross_compiling" != yes; then
3507 { { ac_try="$ac_link"
3509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3510 *) ac_try_echo=$ac_try;;
3512 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3513 $as_echo "$ac_try_echo"; } >&5
3514 (eval "$ac_link") 2>&5
3516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3517 test $ac_status = 0; }
3518 if { ac_try='./conftest$ac_cv_exeext'
3519 { { case "(($ac_try" in
3520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3521 *) ac_try_echo=$ac_try;;
3523 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3524 $as_echo "$ac_try_echo"; } >&5
3525 (eval "$ac_try") 2>&5
3527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3528 test $ac_status = 0; }; }; then
3531 if test "$cross_compiling" = maybe; then
3534 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3535 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3536 as_fn_error $? "cannot run C compiled programs.
3537 If you meant to cross compile, use \`--host'.
3538 See \`config.log' for more details" "$LINENO" 5; }
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3543 $as_echo "$cross_compiling" >&6; }
3545 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3546 ac_clean_files=$ac_clean_files_save
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3548 $as_echo_n "checking for suffix of object files... " >&6; }
3549 if ${ac_cv_objext+:} false; then :
3550 $as_echo_n "(cached) " >&6
3552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3553 /* end confdefs.h. */
3563 rm -f conftest.o conftest.obj
3564 if { { ac_try="$ac_compile"
3566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3567 *) ac_try_echo=$ac_try;;
3569 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3570 $as_echo "$ac_try_echo"; } >&5
3571 (eval "$ac_compile") 2>&5
3573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3574 test $ac_status = 0; }; then :
3575 for ac_file in conftest.o conftest.obj conftest.*; do
3576 test -f "$ac_file" || continue;
3578 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3579 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3584 $as_echo "$as_me: failed program was:" >&5
3585 sed 's/^/| /' conftest.$ac_ext >&5
3587 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3588 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3589 as_fn_error $? "cannot compute suffix of object files: cannot compile
3590 See \`config.log' for more details" "$LINENO" 5; }
3592 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3595 $as_echo "$ac_cv_objext" >&6; }
3596 OBJEXT=$ac_cv_objext
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3599 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3600 if ${ac_cv_c_compiler_gnu+:} false; then :
3601 $as_echo_n "(cached) " >&6
3603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3604 /* end confdefs.h. */
3617 if ac_fn_c_try_compile "$LINENO"; then :
3622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3623 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3627 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3628 if test $ac_compiler_gnu = yes; then
3633 ac_test_CFLAGS=${CFLAGS+set}
3634 ac_save_CFLAGS=$CFLAGS
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3636 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3637 if ${ac_cv_prog_cc_g+:} false; then :
3638 $as_echo_n "(cached) " >&6
3640 ac_save_c_werror_flag=$ac_c_werror_flag
3641 ac_c_werror_flag=yes
3644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3645 /* end confdefs.h. */
3655 if ac_fn_c_try_compile "$LINENO"; then :
3659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3660 /* end confdefs.h. */
3670 if ac_fn_c_try_compile "$LINENO"; then :
3673 ac_c_werror_flag=$ac_save_c_werror_flag
3675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3676 /* end confdefs.h. */
3686 if ac_fn_c_try_compile "$LINENO"; then :
3689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3694 ac_c_werror_flag=$ac_save_c_werror_flag
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3697 $as_echo "$ac_cv_prog_cc_g" >&6; }
3698 if test "$ac_test_CFLAGS" = set; then
3699 CFLAGS=$ac_save_CFLAGS
3700 elif test $ac_cv_prog_cc_g = yes; then
3701 if test "$GCC" = yes; then
3707 if test "$GCC" = yes; then
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3714 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3715 if ${ac_cv_prog_cc_c89+:} false; then :
3716 $as_echo_n "(cached) " >&6
3718 ac_cv_prog_cc_c89=no
3720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3721 /* end confdefs.h. */
3725 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3726 struct buf { int x; };
3727 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3728 static char *e (p, i)
3734 static char *f (char * (*g) (char **, int), char **p, ...)
3739 s = g (p, va_arg (v,int));
3744 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3745 function prototypes and stuff, but not '\xHH' hex character constants.
3746 These don't provoke an error unfortunately, instead are silently treated
3747 as 'x'. The following induces an error, until -std is added to get
3748 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3749 array size at least. It's necessary to write '\x00'==0 to get something
3750 that's true only with -std. */
3751 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3753 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3754 inside strings and character constants. */
3756 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3758 int test (int i, double x);
3759 struct s1 {int (*f) (int a);};
3760 struct s2 {int (*f) (double a);};
3761 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3767 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3772 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3773 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3775 CC="$ac_save_CC $ac_arg"
3776 if ac_fn_c_try_compile "$LINENO"; then :
3777 ac_cv_prog_cc_c89=$ac_arg
3779 rm -f core conftest.err conftest.$ac_objext
3780 test "x$ac_cv_prog_cc_c89" != "xno" && break
3782 rm -f conftest.$ac_ext
3787 case "x$ac_cv_prog_cc_c89" in
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3790 $as_echo "none needed" >&6; } ;;
3792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3793 $as_echo "unsupported" >&6; } ;;
3795 CC="$CC $ac_cv_prog_cc_c89"
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3797 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3799 if test "x$ac_cv_prog_cc_c89" != xno; then :
3804 ac_cpp='$CPP $CPPFLAGS'
3805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3810 ac_cpp='$CPP $CPPFLAGS'
3811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3815 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3816 if ${am_cv_prog_cc_c_o+:} false; then :
3817 $as_echo_n "(cached) " >&6
3819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3820 /* end confdefs.h. */
3830 # Make sure it works both with $CC and with simple cc.
3831 # Following AC_PROG_CC_C_O, we do the test twice because some
3832 # compilers refuse to overwrite an existing .o file with -o,
3833 # though they will create one.
3834 am_cv_prog_cc_c_o=yes
3836 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3837 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3840 (exit $ac_status); } \
3841 && test -f conftest2.$ac_objext; then
3844 am_cv_prog_cc_c_o=no
3848 rm -f core conftest*
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3852 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3853 if test "$am_cv_prog_cc_c_o" != yes; then
3854 # Losing compiler, so override with the script.
3855 # FIXME: It is wrong to rewrite CC.
3856 # But if we don't then we get into trouble of one sort or another.
3857 # A longer-term fix would be to have automake use am__CC in this case,
3858 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3859 CC="$am_aux_dir/compile $CC"
3862 ac_cpp='$CPP $CPPFLAGS'
3863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3867 DEPDIR="${am__leading_dot}deps"
3869 ac_config_commands="$ac_config_commands depfiles"
3872 am_make=${MAKE-make}
3873 cat > confinc << 'END'
3875 @echo this is the am__doit target
3878 # If we don't find an include directive, just comment out the code.
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3880 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3884 # First try GNU make style include.
3885 echo "include confinc" > confmf
3886 # Ignore all kinds of additional output from 'make'.
3887 case `$am_make -s -f confmf 2> /dev/null` in #(
3888 *the\ am__doit\ target*)
3894 # Now try BSD make style include.
3895 if test "$am__include" = "#"; then
3896 echo '.include "confinc"' > confmf
3897 case `$am_make -s -f confmf 2> /dev/null` in #(
3898 *the\ am__doit\ target*)
3899 am__include=.include
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3908 $as_echo "$_am_result" >&6; }
3909 rm -f confinc confmf
3911 # Check whether --enable-dependency-tracking was given.
3912 if test "${enable_dependency_tracking+set}" = set; then :
3913 enableval=$enable_dependency_tracking;
3916 if test "x$enable_dependency_tracking" != xno; then
3917 am_depcomp="$ac_aux_dir/depcomp"
3921 if test "x$enable_dependency_tracking" != xno; then
3931 depcc="$CC" am_compiler_list=
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3934 $as_echo_n "checking dependency style of $depcc... " >&6; }
3935 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3936 $as_echo_n "(cached) " >&6
3938 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3939 # We make a subdir and do the tests there. Otherwise we can end up
3940 # making bogus files that we don't know about and never remove. For
3941 # instance it was reported that on HP-UX the gcc test will end up
3942 # making a dummy file named 'D' -- because '-MD' means "put the output
3946 # Copy depcomp to subdir because otherwise we won't find it if we're
3947 # using a relative directory.
3948 cp "$am_depcomp" conftest.dir
3950 # We will build objects and dependencies in a subdirectory because
3951 # it helps to detect inapplicable dependency modes. For instance
3952 # both Tru64's cc and ICC support -MD to output dependencies as a
3953 # side effect of compilation, but ICC will put the dependencies in
3954 # the current directory while Tru64 will put them in the object
3958 am_cv_CC_dependencies_compiler_type=none
3959 if test "$am_compiler_list" = ""; then
3960 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3963 case " $depcc " in #(
3964 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3967 for depmode in $am_compiler_list; do
3968 # Setup a source with many dependencies, because some compilers
3969 # like to wrap large dependency lists on column 80 (with \), and
3970 # we should not choose a depcomp mode which is confused by this.
3972 # We need to recreate these files for each test, as the compiler may
3973 # overwrite some of them when testing with obscure command lines.
3974 # This happens at least with the AIX C compiler.
3976 for i in 1 2 3 4 5 6; do
3977 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3978 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3979 # Solaris 10 /bin/sh.
3980 echo '/* dummy */' > sub/conftst$i.h
3982 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3984 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3985 # mode. It turns out that the SunPro C++ compiler does not properly
3986 # handle '-M -o', and we need to detect this. Also, some Intel
3987 # versions had trouble with output in subdirs.
3988 am__obj=sub/conftest.${OBJEXT-o}
3989 am__minus_obj="-o $am__obj"
3992 # This depmode causes a compiler race in universal mode.
3993 test "$am__universal" = false || continue
3996 # After this tag, mechanisms are not by side-effect, so they'll
3997 # only be used when explicitly requested.
3998 if test "x$enable_dependency_tracking" = xyes; then
4004 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4005 # This compiler won't grok '-c -o', but also, the minuso test has
4006 # not run yet. These depmodes are late enough in the game, and
4007 # so weak that their functioning should not be impacted.
4008 am__obj=conftest.${OBJEXT-o}
4013 if depmode=$depmode \
4014 source=sub/conftest.c object=$am__obj \
4015 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4016 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4017 >/dev/null 2>conftest.err &&
4018 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4019 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4020 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4021 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4022 # icc doesn't choke on unknown options, it will just issue warnings
4023 # or remarks (even with -Werror). So we grep stderr for any message
4024 # that says an option was ignored or not supported.
4025 # When given -MP, icc 7.0 and 7.1 complain thusly:
4026 # icc: Command line warning: ignoring option '-M'; no argument required
4027 # The diagnosis changed in icc 8.0:
4028 # icc: Command line remark: option '-MP' not supported
4029 if (grep 'ignoring option' conftest.err ||
4030 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4031 am_cv_CC_dependencies_compiler_type=$depmode
4040 am_cv_CC_dependencies_compiler_type=none
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4045 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4046 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4049 test "x$enable_dependency_tracking" != xno \
4050 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4052 am__fastdepCC_FALSE='#'
4054 am__fastdepCC_TRUE='#'
4055 am__fastdepCC_FALSE=
4062 # Check whether --enable-largefile was given.
4063 if test "${enable_largefile+set}" = set; then :
4064 enableval=$enable_largefile;
4067 if test "$enable_largefile" != no; then
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4070 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4071 if ${ac_cv_sys_largefile_CC+:} false; then :
4072 $as_echo_n "(cached) " >&6
4074 ac_cv_sys_largefile_CC=no
4075 if test "$GCC" != yes; then
4078 # IRIX 6.2 and later do not support large files by default,
4079 # so use the C compiler's -n32 option if that helps.
4080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4081 /* end confdefs.h. */
4082 #include <sys/types.h>
4083 /* Check that off_t can represent 2**63 - 1 correctly.
4084 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4085 since some C++ compilers masquerading as C compilers
4086 incorrectly reject 9223372036854775807. */
4087 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4088 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4089 && LARGE_OFF_T % 2147483647 == 1)
4099 if ac_fn_c_try_compile "$LINENO"; then :
4102 rm -f core conftest.err conftest.$ac_objext
4104 if ac_fn_c_try_compile "$LINENO"; then :
4105 ac_cv_sys_largefile_CC=' -n32'; break
4107 rm -f core conftest.err conftest.$ac_objext
4111 rm -f conftest.$ac_ext
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4115 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4116 if test "$ac_cv_sys_largefile_CC" != no; then
4117 CC=$CC$ac_cv_sys_largefile_CC
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4121 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4122 if ${ac_cv_sys_file_offset_bits+:} false; then :
4123 $as_echo_n "(cached) " >&6
4126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4127 /* end confdefs.h. */
4128 #include <sys/types.h>
4129 /* Check that off_t can represent 2**63 - 1 correctly.
4130 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4131 since some C++ compilers masquerading as C compilers
4132 incorrectly reject 9223372036854775807. */
4133 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4134 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4135 && LARGE_OFF_T % 2147483647 == 1)
4145 if ac_fn_c_try_compile "$LINENO"; then :
4146 ac_cv_sys_file_offset_bits=no; break
4148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4150 /* end confdefs.h. */
4151 #define _FILE_OFFSET_BITS 64
4152 #include <sys/types.h>
4153 /* Check that off_t can represent 2**63 - 1 correctly.
4154 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4155 since some C++ compilers masquerading as C compilers
4156 incorrectly reject 9223372036854775807. */
4157 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4158 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4159 && LARGE_OFF_T % 2147483647 == 1)
4169 if ac_fn_c_try_compile "$LINENO"; then :
4170 ac_cv_sys_file_offset_bits=64; break
4172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4173 ac_cv_sys_file_offset_bits=unknown
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4178 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4179 case $ac_cv_sys_file_offset_bits in #(
4182 cat >>confdefs.h <<_ACEOF
4183 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4188 if test $ac_cv_sys_file_offset_bits = unknown; then
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4190 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4191 if ${ac_cv_sys_large_files+:} false; then :
4192 $as_echo_n "(cached) " >&6
4195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4196 /* end confdefs.h. */
4197 #include <sys/types.h>
4198 /* Check that off_t can represent 2**63 - 1 correctly.
4199 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4200 since some C++ compilers masquerading as C compilers
4201 incorrectly reject 9223372036854775807. */
4202 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4203 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4204 && LARGE_OFF_T % 2147483647 == 1)
4214 if ac_fn_c_try_compile "$LINENO"; then :
4215 ac_cv_sys_large_files=no; break
4217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4219 /* end confdefs.h. */
4220 #define _LARGE_FILES 1
4221 #include <sys/types.h>
4222 /* Check that off_t can represent 2**63 - 1 correctly.
4223 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4224 since some C++ compilers masquerading as C compilers
4225 incorrectly reject 9223372036854775807. */
4226 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4227 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4228 && LARGE_OFF_T % 2147483647 == 1)
4238 if ac_fn_c_try_compile "$LINENO"; then :
4239 ac_cv_sys_large_files=1; break
4241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4242 ac_cv_sys_large_files=unknown
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4247 $as_echo "$ac_cv_sys_large_files" >&6; }
4248 case $ac_cv_sys_large_files in #(
4251 cat >>confdefs.h <<_ACEOF
4252 #define _LARGE_FILES $ac_cv_sys_large_files
4264 if test -n "$ac_tool_prefix"; then
4265 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4266 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4268 $as_echo_n "checking for $ac_word... " >&6; }
4269 if ${ac_cv_prog_RANLIB+:} false; then :
4270 $as_echo_n "(cached) " >&6
4272 if test -n "$RANLIB"; then
4273 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4279 test -z "$as_dir" && as_dir=.
4280 for ac_exec_ext in '' $ac_executable_extensions; do
4281 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4282 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4292 RANLIB=$ac_cv_prog_RANLIB
4293 if test -n "$RANLIB"; then
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4295 $as_echo "$RANLIB" >&6; }
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4298 $as_echo "no" >&6; }
4303 if test -z "$ac_cv_prog_RANLIB"; then
4304 ac_ct_RANLIB=$RANLIB
4305 # Extract the first word of "ranlib", so it can be a program name with args.
4306 set dummy ranlib; ac_word=$2
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4308 $as_echo_n "checking for $ac_word... " >&6; }
4309 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4310 $as_echo_n "(cached) " >&6
4312 if test -n "$ac_ct_RANLIB"; then
4313 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4319 test -z "$as_dir" && as_dir=.
4320 for ac_exec_ext in '' $ac_executable_extensions; do
4321 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4322 ac_cv_prog_ac_ct_RANLIB="ranlib"
4323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4332 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4333 if test -n "$ac_ct_RANLIB"; then
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4335 $as_echo "$ac_ct_RANLIB" >&6; }
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4338 $as_echo "no" >&6; }
4341 if test "x$ac_ct_RANLIB" = x; then
4344 case $cross_compiling:$ac_tool_warned in
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4347 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4348 ac_tool_warned=yes ;;
4350 RANLIB=$ac_ct_RANLIB
4353 RANLIB="$ac_cv_prog_RANLIB"
4356 if test -n "$ac_tool_prefix"; then
4357 for ac_prog in ar lib "link -lib"
4359 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4360 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4362 $as_echo_n "checking for $ac_word... " >&6; }
4363 if ${ac_cv_prog_AR+:} false; then :
4364 $as_echo_n "(cached) " >&6
4366 if test -n "$AR"; then
4367 ac_cv_prog_AR="$AR" # Let the user override the test.
4369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4373 test -z "$as_dir" && as_dir=.
4374 for ac_exec_ext in '' $ac_executable_extensions; do
4375 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4376 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4387 if test -n "$AR"; then
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4389 $as_echo "$AR" >&6; }
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4392 $as_echo "no" >&6; }
4396 test -n "$AR" && break
4399 if test -z "$AR"; then
4401 for ac_prog in ar lib "link -lib"
4403 # Extract the first word of "$ac_prog", so it can be a program name with args.
4404 set dummy $ac_prog; ac_word=$2
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4406 $as_echo_n "checking for $ac_word... " >&6; }
4407 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4408 $as_echo_n "(cached) " >&6
4410 if test -n "$ac_ct_AR"; then
4411 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4417 test -z "$as_dir" && as_dir=.
4418 for ac_exec_ext in '' $ac_executable_extensions; do
4419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4420 ac_cv_prog_ac_ct_AR="$ac_prog"
4421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4430 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4431 if test -n "$ac_ct_AR"; then
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4433 $as_echo "$ac_ct_AR" >&6; }
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4436 $as_echo "no" >&6; }
4440 test -n "$ac_ct_AR" && break
4443 if test "x$ac_ct_AR" = x; then
4446 case $cross_compiling:$ac_tool_warned in
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4449 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4450 ac_tool_warned=yes ;;
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4459 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
4460 if ${am_cv_ar_interface+:} false; then :
4461 $as_echo_n "(cached) " >&6
4464 ac_cpp='$CPP $CPPFLAGS'
4465 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4466 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4467 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4469 am_cv_ar_interface=ar
4470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4471 /* end confdefs.h. */
4472 int some_variable = 0;
4474 if ac_fn_c_try_compile "$LINENO"; then :
4475 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4476 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4477 (eval $am_ar_try) 2>&5
4479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4480 test $ac_status = 0; }
4481 if test "$ac_status" -eq 0; then
4482 am_cv_ar_interface=ar
4484 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4485 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4486 (eval $am_ar_try) 2>&5
4488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4489 test $ac_status = 0; }
4490 if test "$ac_status" -eq 0; then
4491 am_cv_ar_interface=lib
4493 am_cv_ar_interface=unknown
4496 rm -f conftest.lib libconftest.a
4499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4501 ac_cpp='$CPP $CPPFLAGS'
4502 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4503 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4504 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4508 $as_echo "$am_cv_ar_interface" >&6; }
4510 case $am_cv_ar_interface in
4514 # Microsoft lib, so override with the ar-lib wrapper script.
4515 # FIXME: It is wrong to rewrite AR.
4516 # But if we don't then we get into trouble of one sort or another.
4517 # A longer-term fix would be to have automake use am__AR in this case,
4518 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4520 AR="$am_aux_dir/ar-lib $AR"
4523 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4528 # Checks for header files.
4530 ac_cpp='$CPP $CPPFLAGS'
4531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4535 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4536 # On Suns, sometimes $CPP names a directory.
4537 if test -n "$CPP" && test -d "$CPP"; then
4540 if test -z "$CPP"; then
4541 if ${ac_cv_prog_CPP+:} false; then :
4542 $as_echo_n "(cached) " >&6
4544 # Double quotes because CPP needs to be expanded
4545 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4548 for ac_c_preproc_warn_flag in '' yes
4550 # Use a header file that comes with gcc, so configuring glibc
4551 # with a fresh cross-compiler works.
4552 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4553 # <limits.h> exists even on freestanding compilers.
4554 # On the NeXT, cc -E runs the code through the compiler's parser,
4555 # not just through cpp. "Syntax error" is here to catch this case.
4556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4557 /* end confdefs.h. */
4559 # include <limits.h>
4561 # include <assert.h>
4565 if ac_fn_c_try_cpp "$LINENO"; then :
4568 # Broken: fails on valid input.
4571 rm -f conftest.err conftest.i conftest.$ac_ext
4573 # OK, works on sane cases. Now check whether nonexistent headers
4574 # can be detected and how.
4575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4576 /* end confdefs.h. */
4577 #include <ac_nonexistent.h>
4579 if ac_fn_c_try_cpp "$LINENO"; then :
4580 # Broken: success on invalid input.
4583 # Passes both tests.
4587 rm -f conftest.err conftest.i conftest.$ac_ext
4590 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4591 rm -f conftest.i conftest.err conftest.$ac_ext
4592 if $ac_preproc_ok; then :
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4605 $as_echo "$CPP" >&6; }
4607 for ac_c_preproc_warn_flag in '' yes
4609 # Use a header file that comes with gcc, so configuring glibc
4610 # with a fresh cross-compiler works.
4611 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4612 # <limits.h> exists even on freestanding compilers.
4613 # On the NeXT, cc -E runs the code through the compiler's parser,
4614 # not just through cpp. "Syntax error" is here to catch this case.
4615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4616 /* end confdefs.h. */
4618 # include <limits.h>
4620 # include <assert.h>
4624 if ac_fn_c_try_cpp "$LINENO"; then :
4627 # Broken: fails on valid input.
4630 rm -f conftest.err conftest.i conftest.$ac_ext
4632 # OK, works on sane cases. Now check whether nonexistent headers
4633 # can be detected and how.
4634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4635 /* end confdefs.h. */
4636 #include <ac_nonexistent.h>
4638 if ac_fn_c_try_cpp "$LINENO"; then :
4639 # Broken: success on invalid input.
4642 # Passes both tests.
4646 rm -f conftest.err conftest.i conftest.$ac_ext
4649 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4650 rm -f conftest.i conftest.err conftest.$ac_ext
4651 if $ac_preproc_ok; then :
4654 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4655 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4656 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4657 See \`config.log' for more details" "$LINENO" 5; }
4661 ac_cpp='$CPP $CPPFLAGS'
4662 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4663 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4664 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
4668 $as_echo_n "checking for X... " >&6; }
4671 # Check whether --with-x was given.
4672 if test "${with_x+set}" = set; then :
4676 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4677 if test "x$with_x" = xno; then
4678 # The user explicitly disabled X.
4681 case $x_includes,$x_libraries in #(
4682 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
4683 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
4684 $as_echo_n "(cached) " >&6
4686 # One or both of the vars are not set, and there is no cached value.
4687 ac_x_includes=no ac_x_libraries=no
4688 rm -f -r conftest.dir
4689 if mkdir conftest.dir; then
4691 cat >Imakefile <<'_ACEOF'
4693 @echo incroot='${INCROOT}'
4695 @echo usrlibdir='${USRLIBDIR}'
4697 @echo libdir='${LIBDIR}'
4699 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
4700 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4701 for ac_var in incroot usrlibdir libdir; do
4702 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
4704 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4705 for ac_extension in a so sl dylib la dll; do
4706 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
4707 test -f "$ac_im_libdir/libX11.$ac_extension"; then
4708 ac_im_usrlibdir=$ac_im_libdir; break
4711 # Screen out bogus values from the imake configuration. They are
4712 # bogus both because they are the default anyway, and because
4713 # using them would break gcc on systems where it needs fixed includes.
4714 case $ac_im_incroot in
4715 /usr/include) ac_x_includes= ;;
4716 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4718 case $ac_im_usrlibdir in
4719 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
4720 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4724 rm -f -r conftest.dir
4727 # Standard set of common directories for X headers.
4728 # Check X11 before X11Rn because it is often a symlink to the current release.
4742 /usr/local/X11/include
4743 /usr/local/X11R7/include
4744 /usr/local/X11R6/include
4745 /usr/local/X11R5/include
4746 /usr/local/X11R4/include
4748 /usr/local/include/X11
4749 /usr/local/include/X11R7
4750 /usr/local/include/X11R6
4751 /usr/local/include/X11R5
4752 /usr/local/include/X11R4
4756 /usr/XFree86/include/X11
4760 /usr/unsupported/include
4762 /usr/local/x11r5/include
4763 /usr/lpp/Xamples/include
4765 /usr/openwin/include
4766 /usr/openwin/share/include'
4768 if test "$ac_x_includes" = no; then
4769 # Guess where to find include files, by looking for Xlib.h.
4770 # First, try using that file with no special directory specified.
4771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4772 /* end confdefs.h. */
4773 #include <X11/Xlib.h>
4775 if ac_fn_c_try_cpp "$LINENO"; then :
4776 # We can compile using X headers with no special include directory.
4779 for ac_dir in $ac_x_header_dirs; do
4780 if test -r "$ac_dir/X11/Xlib.h"; then
4781 ac_x_includes=$ac_dir
4786 rm -f conftest.err conftest.i conftest.$ac_ext
4787 fi # $ac_x_includes = no
4789 if test "$ac_x_libraries" = no; then
4790 # Check for the libraries.
4791 # See if we find them without any special options.
4792 # Don't add to $LIBS permanently.
4795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4796 /* end confdefs.h. */
4797 #include <X11/Xlib.h>
4806 if ac_fn_c_try_link "$LINENO"; then :
4808 # We can link X programs with no special library path.
4812 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4814 # Don't even attempt the hair of trying to link an X program!
4815 for ac_extension in a so sl dylib la dll; do
4816 if test -r "$ac_dir/libX11.$ac_extension"; then
4817 ac_x_libraries=$ac_dir
4823 rm -f core conftest.err conftest.$ac_objext \
4824 conftest$ac_exeext conftest.$ac_ext
4825 fi # $ac_x_libraries = no
4827 case $ac_x_includes,$ac_x_libraries in #(
4829 # Didn't find X, or a directory has "'" in its name.
4830 ac_cv_have_x="have_x=no";; #(
4832 # Record where we found X for the cache.
4833 ac_cv_have_x="have_x=yes\
4834 ac_x_includes='$ac_x_includes'\
4835 ac_x_libraries='$ac_x_libraries'"
4841 eval "$ac_cv_have_x"
4844 if test "$have_x" != yes; then
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
4846 $as_echo "$have_x" >&6; }
4849 # If each of the values was on the command line, it overrides each guess.
4850 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4851 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4852 # Update the cache value to reflect the command line values.
4853 ac_cv_have_x="have_x=yes\
4854 ac_x_includes='$x_includes'\
4855 ac_x_libraries='$x_libraries'"
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
4857 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4861 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4862 if ${ac_cv_path_GREP+:} false; then :
4863 $as_echo_n "(cached) " >&6
4865 if test -z "$GREP"; then
4866 ac_path_GREP_found=false
4867 # Loop through the user's path and test for each of PROGNAME-LIST
4868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4869 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4872 test -z "$as_dir" && as_dir=.
4873 for ac_prog in grep ggrep; do
4874 for ac_exec_ext in '' $ac_executable_extensions; do
4875 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4876 as_fn_executable_p "$ac_path_GREP" || continue
4877 # Check for GNU ac_path_GREP and select it if it is found.
4878 # Check for GNU $ac_path_GREP
4879 case `"$ac_path_GREP" --version 2>&1` in
4881 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4884 $as_echo_n 0123456789 >"conftest.in"
4887 cat "conftest.in" "conftest.in" >"conftest.tmp"
4888 mv "conftest.tmp" "conftest.in"
4889 cp "conftest.in" "conftest.nl"
4890 $as_echo 'GREP' >> "conftest.nl"
4891 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4892 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4893 as_fn_arith $ac_count + 1 && ac_count=$as_val
4894 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4895 # Best one so far, save it but keep looking for a better one
4896 ac_cv_path_GREP="$ac_path_GREP"
4897 ac_path_GREP_max=$ac_count
4899 # 10*(2^10) chars as input seems more than enough
4900 test $ac_count -gt 10 && break
4902 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4905 $ac_path_GREP_found && break 3
4910 if test -z "$ac_cv_path_GREP"; then
4911 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4914 ac_cv_path_GREP=$GREP
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4919 $as_echo "$ac_cv_path_GREP" >&6; }
4920 GREP="$ac_cv_path_GREP"
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4924 $as_echo_n "checking for egrep... " >&6; }
4925 if ${ac_cv_path_EGREP+:} false; then :
4926 $as_echo_n "(cached) " >&6
4928 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4929 then ac_cv_path_EGREP="$GREP -E"
4931 if test -z "$EGREP"; then
4932 ac_path_EGREP_found=false
4933 # Loop through the user's path and test for each of PROGNAME-LIST
4934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4935 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4938 test -z "$as_dir" && as_dir=.
4939 for ac_prog in egrep; do
4940 for ac_exec_ext in '' $ac_executable_extensions; do
4941 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4942 as_fn_executable_p "$ac_path_EGREP" || continue
4943 # Check for GNU ac_path_EGREP and select it if it is found.
4944 # Check for GNU $ac_path_EGREP
4945 case `"$ac_path_EGREP" --version 2>&1` in
4947 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4950 $as_echo_n 0123456789 >"conftest.in"
4953 cat "conftest.in" "conftest.in" >"conftest.tmp"
4954 mv "conftest.tmp" "conftest.in"
4955 cp "conftest.in" "conftest.nl"
4956 $as_echo 'EGREP' >> "conftest.nl"
4957 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4958 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4959 as_fn_arith $ac_count + 1 && ac_count=$as_val
4960 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4961 # Best one so far, save it but keep looking for a better one
4962 ac_cv_path_EGREP="$ac_path_EGREP"
4963 ac_path_EGREP_max=$ac_count
4965 # 10*(2^10) chars as input seems more than enough
4966 test $ac_count -gt 10 && break
4968 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4971 $ac_path_EGREP_found && break 3
4976 if test -z "$ac_cv_path_EGREP"; then
4977 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4980 ac_cv_path_EGREP=$EGREP
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4986 $as_echo "$ac_cv_path_EGREP" >&6; }
4987 EGREP="$ac_cv_path_EGREP"
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4991 $as_echo_n "checking for ANSI C header files... " >&6; }
4992 if ${ac_cv_header_stdc+:} false; then :
4993 $as_echo_n "(cached) " >&6
4995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4996 /* end confdefs.h. */
5010 if ac_fn_c_try_compile "$LINENO"; then :
5011 ac_cv_header_stdc=yes
5013 ac_cv_header_stdc=no
5015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5017 if test $ac_cv_header_stdc = yes; then
5018 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5020 /* end confdefs.h. */
5024 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5025 $EGREP "memchr" >/dev/null 2>&1; then :
5028 ac_cv_header_stdc=no
5034 if test $ac_cv_header_stdc = yes; then
5035 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5037 /* end confdefs.h. */
5041 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5042 $EGREP "free" >/dev/null 2>&1; then :
5045 ac_cv_header_stdc=no
5051 if test $ac_cv_header_stdc = yes; then
5052 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5053 if test "$cross_compiling" = yes; then :
5056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5057 /* end confdefs.h. */
5060 #if ((' ' & 0x0FF) == 0x020)
5061 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5062 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5064 # define ISLOWER(c) \
5065 (('a' <= (c) && (c) <= 'i') \
5066 || ('j' <= (c) && (c) <= 'r') \
5067 || ('s' <= (c) && (c) <= 'z'))
5068 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5071 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5076 for (i = 0; i < 256; i++)
5077 if (XOR (islower (i), ISLOWER (i))
5078 || toupper (i) != TOUPPER (i))
5083 if ac_fn_c_try_run "$LINENO"; then :
5086 ac_cv_header_stdc=no
5088 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5089 conftest.$ac_objext conftest.beam conftest.$ac_ext
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5095 $as_echo "$ac_cv_header_stdc" >&6; }
5096 if test $ac_cv_header_stdc = yes; then
5098 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5102 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5103 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5104 inttypes.h stdint.h unistd.h
5106 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5107 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5109 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5110 cat >>confdefs.h <<_ACEOF
5111 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5119 for ac_header in stdbool.h
5121 ac_fn_c_check_header_mongrel "$LINENO" "stdbool.h" "ac_cv_header_stdbool_h" "$ac_includes_default"
5122 if test "x$ac_cv_header_stdbool_h" = xyes; then :
5123 cat >>confdefs.h <<_ACEOF
5124 #define HAVE_STDBOOL_H 1
5132 # Checks for typedefs, structures, and compiler characteristics.
5133 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5134 if test "x$ac_cv_type_size_t" = xyes; then :
5138 cat >>confdefs.h <<_ACEOF
5139 #define size_t unsigned int
5144 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
5145 if test "x$ac_cv_type_ssize_t" = xyes; then :
5149 cat >>confdefs.h <<_ACEOF
5156 # Checks for library functions.
5157 for ac_header in stdlib.h
5159 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
5160 if test "x$ac_cv_header_stdlib_h" = xyes; then :
5161 cat >>confdefs.h <<_ACEOF
5162 #define HAVE_STDLIB_H 1
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
5170 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
5171 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
5172 $as_echo_n "(cached) " >&6
5174 if test "$cross_compiling" = yes; then :
5175 ac_cv_func_malloc_0_nonnull=no
5177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5178 /* end confdefs.h. */
5179 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
5180 # include <stdlib.h>
5188 return ! malloc (0);
5193 if ac_fn_c_try_run "$LINENO"; then :
5194 ac_cv_func_malloc_0_nonnull=yes
5196 ac_cv_func_malloc_0_nonnull=no
5198 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5199 conftest.$ac_objext conftest.beam conftest.$ac_ext
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
5204 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
5205 if test $ac_cv_func_malloc_0_nonnull = yes; then :
5207 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
5210 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
5212 case " $LIBOBJS " in
5213 *" malloc.$ac_objext "* ) ;;
5214 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
5219 $as_echo "#define malloc rpl_malloc" >>confdefs.h
5224 for ac_header in stdlib.h
5226 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
5227 if test "x$ac_cv_header_stdlib_h" = xyes; then :
5228 cat >>confdefs.h <<_ACEOF
5229 #define HAVE_STDLIB_H 1
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
5237 $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
5238 if ${ac_cv_func_realloc_0_nonnull+:} false; then :
5239 $as_echo_n "(cached) " >&6
5241 if test "$cross_compiling" = yes; then :
5242 ac_cv_func_realloc_0_nonnull=no
5244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5245 /* end confdefs.h. */
5246 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
5247 # include <stdlib.h>
5255 return ! realloc (0, 0);
5260 if ac_fn_c_try_run "$LINENO"; then :
5261 ac_cv_func_realloc_0_nonnull=yes
5263 ac_cv_func_realloc_0_nonnull=no
5265 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5266 conftest.$ac_objext conftest.beam conftest.$ac_ext
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
5271 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
5272 if test $ac_cv_func_realloc_0_nonnull = yes; then :
5274 $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
5277 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
5279 case " $LIBOBJS " in
5280 *" realloc.$ac_objext "* ) ;;
5281 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
5286 $as_echo "#define realloc rpl_realloc" >>confdefs.h
5291 for ac_func in gettimeofday memmove socket strdup strtol
5293 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5294 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5295 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5296 cat >>confdefs.h <<_ACEOF
5297 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5308 [\\/$]* | ?:[\\/]*) ;;
5309 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5314 $as_echo_n "checking whether NLS is requested... " >&6; }
5315 # Check whether --enable-nls was given.
5316 if test "${enable_nls+set}" = set; then :
5317 enableval=$enable_nls; USE_NLS=$enableval
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
5323 $as_echo "$USE_NLS" >&6; }
5330 # Prepare PATH_SEPARATOR.
5331 # The user is always right.
5332 if test "${PATH_SEPARATOR+set}" != set; then
5333 echo "#! /bin/sh" >conf$$.sh
5334 echo "exit 0" >>conf$$.sh
5336 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5344 # Find out how to test for executable files. Don't use a zero-byte file,
5345 # as systems may use methods other than mode bits to determine executability.
5346 cat >conf$$.file <<_ASEOF
5350 chmod +x conf$$.file
5351 if test -x conf$$.file >/dev/null 2>&1; then
5352 ac_executable_p="test -x"
5354 ac_executable_p="test -f"
5358 # Extract the first word of "msgfmt", so it can be a program name with args.
5359 set dummy msgfmt; ac_word=$2
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5361 $as_echo_n "checking for $ac_word... " >&6; }
5362 if ${ac_cv_path_MSGFMT+:} false; then :
5363 $as_echo_n "(cached) " >&6
5367 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5370 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5371 for ac_dir in $PATH; do
5373 test -z "$ac_dir" && ac_dir=.
5374 for ac_exec_ext in '' $ac_executable_extensions; do
5375 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5376 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5377 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
5378 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5379 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5386 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5390 MSGFMT="$ac_cv_path_MSGFMT"
5391 if test "$MSGFMT" != ":"; then
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5393 $as_echo "$MSGFMT" >&6; }
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5396 $as_echo "no" >&6; }
5399 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5400 set dummy gmsgfmt; ac_word=$2
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5402 $as_echo_n "checking for $ac_word... " >&6; }
5403 if ${ac_cv_path_GMSGFMT+:} false; then :
5404 $as_echo_n "(cached) " >&6
5408 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5415 test -z "$as_dir" && as_dir=.
5416 for ac_exec_ext in '' $ac_executable_extensions; do
5417 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5418 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5426 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5430 GMSGFMT=$ac_cv_path_GMSGFMT
5431 if test -n "$GMSGFMT"; then
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
5433 $as_echo "$GMSGFMT" >&6; }
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5436 $as_echo "no" >&6; }
5441 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5442 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
5443 *) MSGFMT_015=$MSGFMT ;;
5446 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5447 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
5448 *) GMSGFMT_015=$GMSGFMT ;;
5453 # Prepare PATH_SEPARATOR.
5454 # The user is always right.
5455 if test "${PATH_SEPARATOR+set}" != set; then
5456 echo "#! /bin/sh" >conf$$.sh
5457 echo "exit 0" >>conf$$.sh
5459 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5467 # Find out how to test for executable files. Don't use a zero-byte file,
5468 # as systems may use methods other than mode bits to determine executability.
5469 cat >conf$$.file <<_ASEOF
5473 chmod +x conf$$.file
5474 if test -x conf$$.file >/dev/null 2>&1; then
5475 ac_executable_p="test -x"
5477 ac_executable_p="test -f"
5481 # Extract the first word of "xgettext", so it can be a program name with args.
5482 set dummy xgettext; ac_word=$2
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5484 $as_echo_n "checking for $ac_word... " >&6; }
5485 if ${ac_cv_path_XGETTEXT+:} false; then :
5486 $as_echo_n "(cached) " >&6
5490 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5493 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5494 for ac_dir in $PATH; do
5496 test -z "$ac_dir" && ac_dir=.
5497 for ac_exec_ext in '' $ac_executable_extensions; do
5498 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5499 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5500 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
5501 (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
5502 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5509 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5513 XGETTEXT="$ac_cv_path_XGETTEXT"
5514 if test "$XGETTEXT" != ":"; then
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
5516 $as_echo "$XGETTEXT" >&6; }
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5519 $as_echo "no" >&6; }
5524 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5525 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
5526 *) XGETTEXT_015=$XGETTEXT ;;
5531 # Prepare PATH_SEPARATOR.
5532 # The user is always right.
5533 if test "${PATH_SEPARATOR+set}" != set; then
5534 echo "#! /bin/sh" >conf$$.sh
5535 echo "exit 0" >>conf$$.sh
5537 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5545 # Find out how to test for executable files. Don't use a zero-byte file,
5546 # as systems may use methods other than mode bits to determine executability.
5547 cat >conf$$.file <<_ASEOF
5551 chmod +x conf$$.file
5552 if test -x conf$$.file >/dev/null 2>&1; then
5553 ac_executable_p="test -x"
5555 ac_executable_p="test -f"
5559 # Extract the first word of "msgmerge", so it can be a program name with args.
5560 set dummy msgmerge; ac_word=$2
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5562 $as_echo_n "checking for $ac_word... " >&6; }
5563 if ${ac_cv_path_MSGMERGE+:} false; then :
5564 $as_echo_n "(cached) " >&6
5568 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5571 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5572 for ac_dir in $PATH; do
5574 test -z "$ac_dir" && ac_dir=.
5575 for ac_exec_ext in '' $ac_executable_extensions; do
5576 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5577 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5578 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
5579 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5586 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5590 MSGMERGE="$ac_cv_path_MSGMERGE"
5591 if test "$MSGMERGE" != ":"; then
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
5593 $as_echo "$MSGMERGE" >&6; }
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5596 $as_echo "no" >&6; }
5600 test -n "$localedir" || localedir='${datadir}/locale'
5603 ac_config_commands="$ac_config_commands po-directories"
5607 if test "X$prefix" = "XNONE"; then
5608 acl_final_prefix="$ac_default_prefix"
5610 acl_final_prefix="$prefix"
5612 if test "X$exec_prefix" = "XNONE"; then
5613 acl_final_exec_prefix='${prefix}'
5615 acl_final_exec_prefix="$exec_prefix"
5617 acl_save_prefix="$prefix"
5618 prefix="$acl_final_prefix"
5619 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5620 prefix="$acl_save_prefix"
5622 # Make sure we can run config.sub.
5623 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5624 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5627 $as_echo_n "checking build system type... " >&6; }
5628 if ${ac_cv_build+:} false; then :
5629 $as_echo_n "(cached) " >&6
5631 ac_build_alias=$build_alias
5632 test "x$ac_build_alias" = x &&
5633 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5634 test "x$ac_build_alias" = x &&
5635 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5636 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5637 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5641 $as_echo "$ac_cv_build" >&6; }
5642 case $ac_cv_build in
5644 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5647 ac_save_IFS=$IFS; IFS='-'
5653 # Remember, the first character of IFS is used to create $*,
5654 # except with old shells:
5657 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5661 $as_echo_n "checking host system type... " >&6; }
5662 if ${ac_cv_host+:} false; then :
5663 $as_echo_n "(cached) " >&6
5665 if test "x$host_alias" = x; then
5666 ac_cv_host=$ac_cv_build
5668 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5669 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5674 $as_echo "$ac_cv_host" >&6; }
5677 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5680 ac_save_IFS=$IFS; IFS='-'
5686 # Remember, the first character of IFS is used to create $*,
5687 # except with old shells:
5690 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5694 # Check whether --with-gnu-ld was given.
5695 if test "${with_gnu_ld+set}" = set; then :
5696 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5701 # Prepare PATH_SEPARATOR.
5702 # The user is always right.
5703 if test "${PATH_SEPARATOR+set}" != set; then
5704 echo "#! /bin/sh" >conf$$.sh
5705 echo "exit 0" >>conf$$.sh
5707 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5715 if test "$GCC" = yes; then
5716 # Check if gcc -print-prog-name=ld gives a path.
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
5718 $as_echo_n "checking for ld used by GCC... " >&6; }
5721 # gcc leaves a trailing carriage return which upsets mingw
5722 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5724 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5727 # Accept absolute paths.
5728 [\\/]* | [A-Za-z]:[\\/]*)
5729 re_direlt='/[^/][^/]*/\.\./'
5730 # Canonicalize the path of ld
5731 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5732 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5733 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5735 test -z "$LD" && LD="$ac_prog"
5738 # If it fails, then pretend we aren't using GCC.
5742 # If it is relative, then search for the first ld in PATH.
5746 elif test "$with_gnu_ld" = yes; then
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5748 $as_echo_n "checking for GNU ld... " >&6; }
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5751 $as_echo_n "checking for non-GNU ld... " >&6; }
5753 if ${acl_cv_path_LD+:} false; then :
5754 $as_echo_n "(cached) " >&6
5756 if test -z "$LD"; then
5757 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5758 for ac_dir in $PATH; do
5759 test -z "$ac_dir" && ac_dir=.
5760 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5761 acl_cv_path_LD="$ac_dir/$ac_prog"
5762 # Check to see if the program is GNU ld. I'd rather use --version,
5763 # but apparently some GNU ld's only accept -v.
5764 # Break only if it was the GNU/non-GNU ld that we prefer.
5765 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
5766 *GNU* | *'with BFD'*)
5767 test "$with_gnu_ld" != no && break ;;
5769 test "$with_gnu_ld" != yes && break ;;
5775 acl_cv_path_LD="$LD" # Let the user override the test with a path.
5779 LD="$acl_cv_path_LD"
5780 if test -n "$LD"; then
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5782 $as_echo "$LD" >&6; }
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5785 $as_echo "no" >&6; }
5787 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5789 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5790 if ${acl_cv_prog_gnu_ld+:} false; then :
5791 $as_echo_n "(cached) " >&6
5793 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5794 case `$LD -v 2>&1 </dev/null` in
5795 *GNU* | *'with BFD'*)
5796 acl_cv_prog_gnu_ld=yes ;;
5798 acl_cv_prog_gnu_ld=no ;;
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
5802 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
5803 with_gnu_ld=$acl_cv_prog_gnu_ld
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
5809 $as_echo_n "checking for shared library run path origin... " >&6; }
5810 if ${acl_cv_rpath+:} false; then :
5811 $as_echo_n "(cached) " >&6
5814 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5815 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
5822 $as_echo "$acl_cv_rpath" >&6; }
5824 libext="$acl_cv_libext"
5825 shlibext="$acl_cv_shlibext"
5826 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5827 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5828 hardcode_direct="$acl_cv_hardcode_direct"
5829 hardcode_minus_L="$acl_cv_hardcode_minus_L"
5830 # Check whether --enable-rpath was given.
5831 if test "${enable_rpath+set}" = set; then :
5832 enableval=$enable_rpath; :
5840 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
5841 if test -n "$searchpath"; then
5842 acl_save_IFS="${IFS= }"; IFS=":"
5843 for searchdir in $searchpath; do
5844 if test -d "$searchdir"; then
5845 case "$searchdir" in
5846 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
5847 *) searchdir=`cd "$searchdir" && pwd`
5848 case "$searchdir" in
5849 */lib64 ) acl_libdirstem=lib64 ;;
5866 acl_save_prefix="$prefix"
5867 prefix="$acl_final_prefix"
5868 acl_save_exec_prefix="$exec_prefix"
5869 exec_prefix="$acl_final_exec_prefix"
5871 eval additional_includedir=\"$includedir\"
5872 eval additional_libdir=\"$libdir\"
5874 exec_prefix="$acl_save_exec_prefix"
5875 prefix="$acl_save_prefix"
5878 # Check whether --with-libiconv-prefix was given.
5879 if test "${with_libiconv_prefix+set}" = set; then :
5880 withval=$with_libiconv_prefix;
5881 if test "X$withval" = "Xno"; then
5884 if test "X$withval" = "X"; then
5886 acl_save_prefix="$prefix"
5887 prefix="$acl_final_prefix"
5888 acl_save_exec_prefix="$exec_prefix"
5889 exec_prefix="$acl_final_exec_prefix"
5891 eval additional_includedir=\"$includedir\"
5892 eval additional_libdir=\"$libdir\"
5894 exec_prefix="$acl_save_exec_prefix"
5895 prefix="$acl_save_prefix"
5898 additional_includedir="$withval/include"
5899 additional_libdir="$withval/$acl_libdirstem"
5910 names_already_handled=
5911 names_next_round='iconv '
5912 while test -n "$names_next_round"; do
5913 names_this_round="$names_next_round"
5915 for name in $names_this_round; do
5917 for n in $names_already_handled; do
5918 if test "$n" = "$name"; then
5923 if test -z "$already_handled"; then
5924 names_already_handled="$names_already_handled $name"
5925 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5926 eval value=\"\$HAVE_LIB$uppername\"
5927 if test -n "$value"; then
5928 if test "$value" = yes; then
5929 eval value=\"\$LIB$uppername\"
5930 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
5931 eval value=\"\$LTLIB$uppername\"
5932 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
5941 if test $use_additional = yes; then
5942 if test -n "$shlibext" \
5943 && { test -f "$additional_libdir/lib$name.$shlibext" \
5944 || { test "$shlibext" = dll \
5945 && test -f "$additional_libdir/lib$name.dll.a"; }; }; then
5946 found_dir="$additional_libdir"
5947 if test -f "$additional_libdir/lib$name.$shlibext"; then
5948 found_so="$additional_libdir/lib$name.$shlibext"
5950 found_so="$additional_libdir/lib$name.dll.a"
5952 if test -f "$additional_libdir/lib$name.la"; then
5953 found_la="$additional_libdir/lib$name.la"
5956 if test -f "$additional_libdir/lib$name.$libext"; then
5957 found_dir="$additional_libdir"
5958 found_a="$additional_libdir/lib$name.$libext"
5959 if test -f "$additional_libdir/lib$name.la"; then
5960 found_la="$additional_libdir/lib$name.la"
5965 if test "X$found_dir" = "X"; then
5966 for x in $LDFLAGS $LTLIBICONV; do
5968 acl_save_prefix="$prefix"
5969 prefix="$acl_final_prefix"
5970 acl_save_exec_prefix="$exec_prefix"
5971 exec_prefix="$acl_final_exec_prefix"
5973 exec_prefix="$acl_save_exec_prefix"
5974 prefix="$acl_save_prefix"
5978 dir=`echo "X$x" | sed -e 's/^X-L//'`
5979 if test -n "$shlibext" \
5980 && { test -f "$dir/lib$name.$shlibext" \
5981 || { test "$shlibext" = dll \
5982 && test -f "$dir/lib$name.dll.a"; }; }; then
5984 if test -f "$dir/lib$name.$shlibext"; then
5985 found_so="$dir/lib$name.$shlibext"
5987 found_so="$dir/lib$name.dll.a"
5989 if test -f "$dir/lib$name.la"; then
5990 found_la="$dir/lib$name.la"
5993 if test -f "$dir/lib$name.$libext"; then
5995 found_a="$dir/lib$name.$libext"
5996 if test -f "$dir/lib$name.la"; then
5997 found_la="$dir/lib$name.la"
6003 if test "X$found_dir" != "X"; then
6008 if test "X$found_dir" != "X"; then
6009 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6010 if test "X$found_so" != "X"; then
6011 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
6012 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6015 for x in $ltrpathdirs; do
6016 if test "X$x" = "X$found_dir"; then
6021 if test -z "$haveit"; then
6022 ltrpathdirs="$ltrpathdirs $found_dir"
6024 if test "$hardcode_direct" = yes; then
6025 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6027 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6028 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6030 for x in $rpathdirs; do
6031 if test "X$x" = "X$found_dir"; then
6036 if test -z "$haveit"; then
6037 rpathdirs="$rpathdirs $found_dir"
6041 for x in $LDFLAGS $LIBICONV; do
6043 acl_save_prefix="$prefix"
6044 prefix="$acl_final_prefix"
6045 acl_save_exec_prefix="$exec_prefix"
6046 exec_prefix="$acl_final_exec_prefix"
6048 exec_prefix="$acl_save_exec_prefix"
6049 prefix="$acl_save_prefix"
6051 if test "X$x" = "X-L$found_dir"; then
6056 if test -z "$haveit"; then
6057 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
6059 if test "$hardcode_minus_L" != no; then
6060 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6062 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6068 if test "X$found_a" != "X"; then
6069 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
6071 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
6074 additional_includedir=
6075 case "$found_dir" in
6076 */$acl_libdirstem | */$acl_libdirstem/)
6077 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
6078 additional_includedir="$basedir/include"
6081 if test "X$additional_includedir" != "X"; then
6082 if test "X$additional_includedir" != "X/usr/include"; then
6084 if test "X$additional_includedir" = "X/usr/local/include"; then
6085 if test -n "$GCC"; then
6087 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6091 if test -z "$haveit"; then
6092 for x in $CPPFLAGS $INCICONV; do
6094 acl_save_prefix="$prefix"
6095 prefix="$acl_final_prefix"
6096 acl_save_exec_prefix="$exec_prefix"
6097 exec_prefix="$acl_final_exec_prefix"
6099 exec_prefix="$acl_save_exec_prefix"
6100 prefix="$acl_save_prefix"
6102 if test "X$x" = "X-I$additional_includedir"; then
6107 if test -z "$haveit"; then
6108 if test -d "$additional_includedir"; then
6109 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
6115 if test -n "$found_la"; then
6116 save_libdir="$libdir"
6118 */* | *\\*) . "$found_la" ;;
6119 *) . "./$found_la" ;;
6121 libdir="$save_libdir"
6122 for dep in $dependency_libs; do
6125 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6126 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
6128 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
6129 if test -n "$GCC"; then
6131 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6135 if test -z "$haveit"; then
6137 for x in $LDFLAGS $LIBICONV; do
6139 acl_save_prefix="$prefix"
6140 prefix="$acl_final_prefix"
6141 acl_save_exec_prefix="$exec_prefix"
6142 exec_prefix="$acl_final_exec_prefix"
6144 exec_prefix="$acl_save_exec_prefix"
6145 prefix="$acl_save_prefix"
6147 if test "X$x" = "X-L$additional_libdir"; then
6152 if test -z "$haveit"; then
6153 if test -d "$additional_libdir"; then
6154 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
6158 for x in $LDFLAGS $LTLIBICONV; do
6160 acl_save_prefix="$prefix"
6161 prefix="$acl_final_prefix"
6162 acl_save_exec_prefix="$exec_prefix"
6163 exec_prefix="$acl_final_exec_prefix"
6165 exec_prefix="$acl_save_exec_prefix"
6166 prefix="$acl_save_prefix"
6168 if test "X$x" = "X-L$additional_libdir"; then
6173 if test -z "$haveit"; then
6174 if test -d "$additional_libdir"; then
6175 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
6182 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6183 if test "$enable_rpath" != no; then
6185 for x in $rpathdirs; do
6186 if test "X$x" = "X$dir"; then
6191 if test -z "$haveit"; then
6192 rpathdirs="$rpathdirs $dir"
6195 for x in $ltrpathdirs; do
6196 if test "X$x" = "X$dir"; then
6201 if test -z "$haveit"; then
6202 ltrpathdirs="$ltrpathdirs $dir"
6207 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6210 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6213 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
6214 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
6220 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6221 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
6227 if test "X$rpathdirs" != "X"; then
6228 if test -n "$hardcode_libdir_separator"; then
6230 for found_dir in $rpathdirs; do
6231 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6233 acl_save_libdir="$libdir"
6235 eval flag=\"$hardcode_libdir_flag_spec\"
6236 libdir="$acl_save_libdir"
6237 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6239 for found_dir in $rpathdirs; do
6240 acl_save_libdir="$libdir"
6242 eval flag=\"$hardcode_libdir_flag_spec\"
6243 libdir="$acl_save_libdir"
6244 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6248 if test "X$ltrpathdirs" != "X"; then
6249 for found_dir in $ltrpathdirs; do
6250 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
6279 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
6280 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
6281 $as_echo_n "(cached) " >&6
6283 gt_save_LIBS="$LIBS"
6284 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
6285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6286 /* end confdefs.h. */
6287 #include <CoreFoundation/CFPreferences.h>
6291 CFPreferencesCopyAppValue(NULL, NULL)
6296 if ac_fn_c_try_link "$LINENO"; then :
6297 gt_cv_func_CFPreferencesCopyAppValue=yes
6299 gt_cv_func_CFPreferencesCopyAppValue=no
6301 rm -f core conftest.err conftest.$ac_objext \
6302 conftest$ac_exeext conftest.$ac_ext
6303 LIBS="$gt_save_LIBS"
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
6306 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
6307 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
6309 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
6313 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
6314 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
6315 $as_echo_n "(cached) " >&6
6317 gt_save_LIBS="$LIBS"
6318 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
6319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6320 /* end confdefs.h. */
6321 #include <CoreFoundation/CFLocale.h>
6325 CFLocaleCopyCurrent();
6330 if ac_fn_c_try_link "$LINENO"; then :
6331 gt_cv_func_CFLocaleCopyCurrent=yes
6333 gt_cv_func_CFLocaleCopyCurrent=no
6335 rm -f core conftest.err conftest.$ac_objext \
6336 conftest$ac_exeext conftest.$ac_ext
6337 LIBS="$gt_save_LIBS"
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
6340 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
6341 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6343 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
6347 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6348 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
6360 case " $gt_needs " in
6361 *" need-formatstring-macros "*) gt_api_version=3 ;;
6362 *" need-ngettext "*) gt_api_version=2 ;;
6363 *) gt_api_version=1 ;;
6365 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
6366 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
6368 if test "$USE_NLS" = "yes"; then
6369 gt_use_preinstalled_gnugettext=no
6372 if test $gt_api_version -ge 3; then
6373 gt_revision_test_code='[
6374 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
6375 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
6377 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
6380 gt_revision_test_code=
6382 if test $gt_api_version -ge 2; then
6383 gt_expression_test_code=' + * ngettext ("", "", 0)'
6385 gt_expression_test_code=
6388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
6389 $as_echo_n "checking for GNU gettext in libc... " >&6; }
6390 if eval \${$gt_func_gnugettext_libc+:} false; then :
6391 $as_echo_n "(cached) " >&6
6393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6394 /* end confdefs.h. */
6395 #include <libintl.h>
6396 $gt_revision_test_code
6397 extern int _nl_msg_cat_cntr;
6398 extern int *_nl_domain_bindings;
6402 bindtextdomain ("", "");
6403 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
6408 if ac_fn_c_try_link "$LINENO"; then :
6409 eval "$gt_func_gnugettext_libc=yes"
6411 eval "$gt_func_gnugettext_libc=no"
6413 rm -f core conftest.err conftest.$ac_objext \
6414 conftest$ac_exeext conftest.$ac_ext
6416 eval ac_res=\$$gt_func_gnugettext_libc
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6418 $as_echo "$ac_res" >&6; }
6420 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
6426 am_save_CPPFLAGS="$CPPFLAGS"
6428 for element in $INCICONV; do
6430 for x in $CPPFLAGS; do
6432 acl_save_prefix="$prefix"
6433 prefix="$acl_final_prefix"
6434 acl_save_exec_prefix="$exec_prefix"
6435 exec_prefix="$acl_final_exec_prefix"
6437 exec_prefix="$acl_save_exec_prefix"
6438 prefix="$acl_save_prefix"
6440 if test "X$x" = "X$element"; then
6445 if test -z "$haveit"; then
6446 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
6452 $as_echo_n "checking for iconv... " >&6; }
6453 if ${am_cv_func_iconv+:} false; then :
6454 $as_echo_n "(cached) " >&6
6457 am_cv_func_iconv="no, consider installing GNU libiconv"
6459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6460 /* end confdefs.h. */
6466 iconv_t cd = iconv_open("","");
6467 iconv(cd,NULL,NULL,NULL,NULL);
6473 if ac_fn_c_try_link "$LINENO"; then :
6474 am_cv_func_iconv=yes
6476 rm -f core conftest.err conftest.$ac_objext \
6477 conftest$ac_exeext conftest.$ac_ext
6478 if test "$am_cv_func_iconv" != yes; then
6479 am_save_LIBS="$LIBS"
6480 LIBS="$LIBS $LIBICONV"
6481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6482 /* end confdefs.h. */
6488 iconv_t cd = iconv_open("","");
6489 iconv(cd,NULL,NULL,NULL,NULL);
6495 if ac_fn_c_try_link "$LINENO"; then :
6497 am_cv_func_iconv=yes
6499 rm -f core conftest.err conftest.$ac_objext \
6500 conftest$ac_exeext conftest.$ac_ext
6501 LIBS="$am_save_LIBS"
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
6506 $as_echo "$am_cv_func_iconv" >&6; }
6507 if test "$am_cv_func_iconv" = yes; then
6509 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
6512 if test "$am_cv_lib_iconv" = yes; then
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
6514 $as_echo_n "checking how to link with libiconv... " >&6; }
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
6516 $as_echo "$LIBICONV" >&6; }
6518 CPPFLAGS="$am_save_CPPFLAGS"
6531 acl_save_prefix="$prefix"
6532 prefix="$acl_final_prefix"
6533 acl_save_exec_prefix="$exec_prefix"
6534 exec_prefix="$acl_final_exec_prefix"
6536 eval additional_includedir=\"$includedir\"
6537 eval additional_libdir=\"$libdir\"
6539 exec_prefix="$acl_save_exec_prefix"
6540 prefix="$acl_save_prefix"
6543 # Check whether --with-libintl-prefix was given.
6544 if test "${with_libintl_prefix+set}" = set; then :
6545 withval=$with_libintl_prefix;
6546 if test "X$withval" = "Xno"; then
6549 if test "X$withval" = "X"; then
6551 acl_save_prefix="$prefix"
6552 prefix="$acl_final_prefix"
6553 acl_save_exec_prefix="$exec_prefix"
6554 exec_prefix="$acl_final_exec_prefix"
6556 eval additional_includedir=\"$includedir\"
6557 eval additional_libdir=\"$libdir\"
6559 exec_prefix="$acl_save_exec_prefix"
6560 prefix="$acl_save_prefix"
6563 additional_includedir="$withval/include"
6564 additional_libdir="$withval/$acl_libdirstem"
6575 names_already_handled=
6576 names_next_round='intl '
6577 while test -n "$names_next_round"; do
6578 names_this_round="$names_next_round"
6580 for name in $names_this_round; do
6582 for n in $names_already_handled; do
6583 if test "$n" = "$name"; then
6588 if test -z "$already_handled"; then
6589 names_already_handled="$names_already_handled $name"
6590 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6591 eval value=\"\$HAVE_LIB$uppername\"
6592 if test -n "$value"; then
6593 if test "$value" = yes; then
6594 eval value=\"\$LIB$uppername\"
6595 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
6596 eval value=\"\$LTLIB$uppername\"
6597 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
6606 if test $use_additional = yes; then
6607 if test -n "$shlibext" \
6608 && { test -f "$additional_libdir/lib$name.$shlibext" \
6609 || { test "$shlibext" = dll \
6610 && test -f "$additional_libdir/lib$name.dll.a"; }; }; then
6611 found_dir="$additional_libdir"
6612 if test -f "$additional_libdir/lib$name.$shlibext"; then
6613 found_so="$additional_libdir/lib$name.$shlibext"
6615 found_so="$additional_libdir/lib$name.dll.a"
6617 if test -f "$additional_libdir/lib$name.la"; then
6618 found_la="$additional_libdir/lib$name.la"
6621 if test -f "$additional_libdir/lib$name.$libext"; then
6622 found_dir="$additional_libdir"
6623 found_a="$additional_libdir/lib$name.$libext"
6624 if test -f "$additional_libdir/lib$name.la"; then
6625 found_la="$additional_libdir/lib$name.la"
6630 if test "X$found_dir" = "X"; then
6631 for x in $LDFLAGS $LTLIBINTL; do
6633 acl_save_prefix="$prefix"
6634 prefix="$acl_final_prefix"
6635 acl_save_exec_prefix="$exec_prefix"
6636 exec_prefix="$acl_final_exec_prefix"
6638 exec_prefix="$acl_save_exec_prefix"
6639 prefix="$acl_save_prefix"
6643 dir=`echo "X$x" | sed -e 's/^X-L//'`
6644 if test -n "$shlibext" \
6645 && { test -f "$dir/lib$name.$shlibext" \
6646 || { test "$shlibext" = dll \
6647 && test -f "$dir/lib$name.dll.a"; }; }; then
6649 if test -f "$dir/lib$name.$shlibext"; then
6650 found_so="$dir/lib$name.$shlibext"
6652 found_so="$dir/lib$name.dll.a"
6654 if test -f "$dir/lib$name.la"; then
6655 found_la="$dir/lib$name.la"
6658 if test -f "$dir/lib$name.$libext"; then
6660 found_a="$dir/lib$name.$libext"
6661 if test -f "$dir/lib$name.la"; then
6662 found_la="$dir/lib$name.la"
6668 if test "X$found_dir" != "X"; then
6673 if test "X$found_dir" != "X"; then
6674 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
6675 if test "X$found_so" != "X"; then
6676 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
6677 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6680 for x in $ltrpathdirs; do
6681 if test "X$x" = "X$found_dir"; then
6686 if test -z "$haveit"; then
6687 ltrpathdirs="$ltrpathdirs $found_dir"
6689 if test "$hardcode_direct" = yes; then
6690 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6692 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6693 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6695 for x in $rpathdirs; do
6696 if test "X$x" = "X$found_dir"; then
6701 if test -z "$haveit"; then
6702 rpathdirs="$rpathdirs $found_dir"
6706 for x in $LDFLAGS $LIBINTL; do
6708 acl_save_prefix="$prefix"
6709 prefix="$acl_final_prefix"
6710 acl_save_exec_prefix="$exec_prefix"
6711 exec_prefix="$acl_final_exec_prefix"
6713 exec_prefix="$acl_save_exec_prefix"
6714 prefix="$acl_save_prefix"
6716 if test "X$x" = "X-L$found_dir"; then
6721 if test -z "$haveit"; then
6722 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
6724 if test "$hardcode_minus_L" != no; then
6725 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6727 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6733 if test "X$found_a" != "X"; then
6734 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
6736 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
6739 additional_includedir=
6740 case "$found_dir" in
6741 */$acl_libdirstem | */$acl_libdirstem/)
6742 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
6743 additional_includedir="$basedir/include"
6746 if test "X$additional_includedir" != "X"; then
6747 if test "X$additional_includedir" != "X/usr/include"; then
6749 if test "X$additional_includedir" = "X/usr/local/include"; then
6750 if test -n "$GCC"; then
6752 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6756 if test -z "$haveit"; then
6757 for x in $CPPFLAGS $INCINTL; do
6759 acl_save_prefix="$prefix"
6760 prefix="$acl_final_prefix"
6761 acl_save_exec_prefix="$exec_prefix"
6762 exec_prefix="$acl_final_exec_prefix"
6764 exec_prefix="$acl_save_exec_prefix"
6765 prefix="$acl_save_prefix"
6767 if test "X$x" = "X-I$additional_includedir"; then
6772 if test -z "$haveit"; then
6773 if test -d "$additional_includedir"; then
6774 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
6780 if test -n "$found_la"; then
6781 save_libdir="$libdir"
6783 */* | *\\*) . "$found_la" ;;
6784 *) . "./$found_la" ;;
6786 libdir="$save_libdir"
6787 for dep in $dependency_libs; do
6790 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6791 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
6793 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
6794 if test -n "$GCC"; then
6796 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6800 if test -z "$haveit"; then
6802 for x in $LDFLAGS $LIBINTL; do
6804 acl_save_prefix="$prefix"
6805 prefix="$acl_final_prefix"
6806 acl_save_exec_prefix="$exec_prefix"
6807 exec_prefix="$acl_final_exec_prefix"
6809 exec_prefix="$acl_save_exec_prefix"
6810 prefix="$acl_save_prefix"
6812 if test "X$x" = "X-L$additional_libdir"; then
6817 if test -z "$haveit"; then
6818 if test -d "$additional_libdir"; then
6819 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
6823 for x in $LDFLAGS $LTLIBINTL; do
6825 acl_save_prefix="$prefix"
6826 prefix="$acl_final_prefix"
6827 acl_save_exec_prefix="$exec_prefix"
6828 exec_prefix="$acl_final_exec_prefix"
6830 exec_prefix="$acl_save_exec_prefix"
6831 prefix="$acl_save_prefix"
6833 if test "X$x" = "X-L$additional_libdir"; then
6838 if test -z "$haveit"; then
6839 if test -d "$additional_libdir"; then
6840 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
6847 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6848 if test "$enable_rpath" != no; then
6850 for x in $rpathdirs; do
6851 if test "X$x" = "X$dir"; then
6856 if test -z "$haveit"; then
6857 rpathdirs="$rpathdirs $dir"
6860 for x in $ltrpathdirs; do
6861 if test "X$x" = "X$dir"; then
6866 if test -z "$haveit"; then
6867 ltrpathdirs="$ltrpathdirs $dir"
6872 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6875 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6878 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
6879 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
6885 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6886 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
6892 if test "X$rpathdirs" != "X"; then
6893 if test -n "$hardcode_libdir_separator"; then
6895 for found_dir in $rpathdirs; do
6896 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6898 acl_save_libdir="$libdir"
6900 eval flag=\"$hardcode_libdir_flag_spec\"
6901 libdir="$acl_save_libdir"
6902 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6904 for found_dir in $rpathdirs; do
6905 acl_save_libdir="$libdir"
6907 eval flag=\"$hardcode_libdir_flag_spec\"
6908 libdir="$acl_save_libdir"
6909 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6913 if test "X$ltrpathdirs" != "X"; then
6914 for found_dir in $ltrpathdirs; do
6915 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
6920 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
6921 if eval \${$gt_func_gnugettext_libintl+:} false; then :
6922 $as_echo_n "(cached) " >&6
6924 gt_save_CPPFLAGS="$CPPFLAGS"
6925 CPPFLAGS="$CPPFLAGS $INCINTL"
6926 gt_save_LIBS="$LIBS"
6927 LIBS="$LIBS $LIBINTL"
6928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6929 /* end confdefs.h. */
6930 #include <libintl.h>
6931 $gt_revision_test_code
6932 extern int _nl_msg_cat_cntr;
6937 const char *_nl_expand_alias (const char *);
6941 bindtextdomain ("", "");
6942 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6947 if ac_fn_c_try_link "$LINENO"; then :
6948 eval "$gt_func_gnugettext_libintl=yes"
6950 eval "$gt_func_gnugettext_libintl=no"
6952 rm -f core conftest.err conftest.$ac_objext \
6953 conftest$ac_exeext conftest.$ac_ext
6954 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
6955 LIBS="$LIBS $LIBICONV"
6956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6957 /* end confdefs.h. */
6958 #include <libintl.h>
6959 $gt_revision_test_code
6960 extern int _nl_msg_cat_cntr;
6965 const char *_nl_expand_alias (const char *);
6969 bindtextdomain ("", "");
6970 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6975 if ac_fn_c_try_link "$LINENO"; then :
6976 LIBINTL="$LIBINTL $LIBICONV"
6977 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
6978 eval "$gt_func_gnugettext_libintl=yes"
6981 rm -f core conftest.err conftest.$ac_objext \
6982 conftest$ac_exeext conftest.$ac_ext
6984 CPPFLAGS="$gt_save_CPPFLAGS"
6985 LIBS="$gt_save_LIBS"
6987 eval ac_res=\$$gt_func_gnugettext_libintl
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6989 $as_echo "$ac_res" >&6; }
6992 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
6993 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
6994 && test "$PACKAGE" != gettext-runtime \
6995 && test "$PACKAGE" != gettext-tools; }; then
6996 gt_use_preinstalled_gnugettext=yes
7005 if test -n "$INTL_MACOSX_LIBS"; then
7006 if test "$gt_use_preinstalled_gnugettext" = "yes" \
7007 || test "$nls_cv_use_gnu_gettext" = "yes"; then
7008 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
7009 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
7013 if test "$gt_use_preinstalled_gnugettext" = "yes" \
7014 || test "$nls_cv_use_gnu_gettext" = "yes"; then
7016 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
7024 $as_echo_n "checking whether to use NLS... " >&6; }
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
7026 $as_echo "$USE_NLS" >&6; }
7027 if test "$USE_NLS" = "yes"; then
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
7029 $as_echo_n "checking where the gettext function comes from... " >&6; }
7030 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7031 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
7032 gt_source="external libintl"
7037 gt_source="included intl directory"
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
7040 $as_echo "$gt_source" >&6; }
7043 if test "$USE_NLS" = "yes"; then
7045 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7046 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
7048 $as_echo_n "checking how to link with libintl... " >&6; }
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
7050 $as_echo "$LIBINTL" >&6; }
7052 for element in $INCINTL; do
7054 for x in $CPPFLAGS; do
7056 acl_save_prefix="$prefix"
7057 prefix="$acl_final_prefix"
7058 acl_save_exec_prefix="$exec_prefix"
7059 exec_prefix="$acl_final_exec_prefix"
7061 exec_prefix="$acl_save_exec_prefix"
7062 prefix="$acl_save_prefix"
7064 if test "X$x" = "X$element"; then
7069 if test -z "$haveit"; then
7070 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7077 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
7080 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
7100 # Check whether --enable-schemas-compile was given.
7101 if test "${enable_schemas_compile+set}" = set; then :
7102 enableval=$enable_schemas_compile; case ${enableval} in
7103 yes) GSETTINGS_DISABLE_SCHEMAS_COMPILE="" ;;
7104 no) GSETTINGS_DISABLE_SCHEMAS_COMPILE="1" ;;
7105 *) as_fn_error $? "bad value ${enableval} for --enable-schemas-compile" "$LINENO" 5 ;;
7117 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7118 if test -n "$ac_tool_prefix"; then
7119 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7120 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7122 $as_echo_n "checking for $ac_word... " >&6; }
7123 if ${ac_cv_path_PKG_CONFIG+:} false; then :
7124 $as_echo_n "(cached) " >&6
7128 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7135 test -z "$as_dir" && as_dir=.
7136 for ac_exec_ext in '' $ac_executable_extensions; do
7137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7138 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7149 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7150 if test -n "$PKG_CONFIG"; then
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7152 $as_echo "$PKG_CONFIG" >&6; }
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7155 $as_echo "no" >&6; }
7160 if test -z "$ac_cv_path_PKG_CONFIG"; then
7161 ac_pt_PKG_CONFIG=$PKG_CONFIG
7162 # Extract the first word of "pkg-config", so it can be a program name with args.
7163 set dummy pkg-config; ac_word=$2
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7165 $as_echo_n "checking for $ac_word... " >&6; }
7166 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
7167 $as_echo_n "(cached) " >&6
7169 case $ac_pt_PKG_CONFIG in
7171 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7178 test -z "$as_dir" && as_dir=.
7179 for ac_exec_ext in '' $ac_executable_extensions; do
7180 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7181 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7192 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7193 if test -n "$ac_pt_PKG_CONFIG"; then
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7195 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7198 $as_echo "no" >&6; }
7201 if test "x$ac_pt_PKG_CONFIG" = x; then
7204 case $cross_compiling:$ac_tool_warned in
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7207 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7208 ac_tool_warned=yes ;;
7210 PKG_CONFIG=$ac_pt_PKG_CONFIG
7213 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7217 if test -n "$PKG_CONFIG"; then
7218 _pkg_min_version=0.16
7219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7220 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7221 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7223 $as_echo "yes" >&6; }
7225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7226 $as_echo "no" >&6; }
7230 gsettingsschemadir=${datadir}/glib-2.0/schemas
7232 if test x$cross_compiling != xyes; then
7233 GLIB_COMPILE_SCHEMAS=`$PKG_CONFIG --variable glib_compile_schemas gio-2.0`
7235 # Extract the first word of "glib-compile-schemas", so it can be a program name with args.
7236 set dummy glib-compile-schemas; 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_GLIB_COMPILE_SCHEMAS+:} false; then :
7240 $as_echo_n "(cached) " >&6
7242 case $GLIB_COMPILE_SCHEMAS in
7244 ac_cv_path_GLIB_COMPILE_SCHEMAS="$GLIB_COMPILE_SCHEMAS" # 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_GLIB_COMPILE_SCHEMAS="$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 GLIB_COMPILE_SCHEMAS=$ac_cv_path_GLIB_COMPILE_SCHEMAS
7266 if test -n "$GLIB_COMPILE_SCHEMAS"; then
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_COMPILE_SCHEMAS" >&5
7268 $as_echo "$GLIB_COMPILE_SCHEMAS" >&6; }
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7271 $as_echo "no" >&6; }
7277 if test "x$GLIB_COMPILE_SCHEMAS" = "x"; then
7278 as_fn_error $? "glib-compile-schemas not found." "$LINENO" 5
7284 .PHONY : uninstall-gsettings-schemas install-gsettings-schemas clean-gsettings-schemas
7286 mostlyclean-am: clean-gsettings-schemas
7288 gsettings__enum_file = $(addsuffix .enums.xml,$(gsettings_ENUM_NAMESPACE))
7290 %.gschema.valid: %.gschema.xml $(gsettings__enum_file)
7291 $(AM_V_GEN) $(GLIB_COMPILE_SCHEMAS) --strict --dry-run $(addprefix --schema-file=,$(gsettings__enum_file)) --schema-file=$< && mkdir -p $(@D) && touch $@
7293 all-am: $(gsettings_SCHEMAS:.xml=.valid)
7294 uninstall-am: uninstall-gsettings-schemas
7295 install-data-am: install-gsettings-schemas
7297 .SECONDARY: $(gsettings_SCHEMAS)
7299 install-gsettings-schemas: $(gsettings_SCHEMAS) $(gsettings__enum_file)
7301 if test -n "$^"; then \
7302 test -z "$(gsettingsschemadir)" || $(MKDIR_P) "$(DESTDIR)$(gsettingsschemadir)"; \
7303 $(INSTALL_DATA) $^ "$(DESTDIR)$(gsettingsschemadir)"; \
7304 test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir); \
7307 uninstall-gsettings-schemas:
7308 @$(NORMAL_UNINSTALL)
7309 @list='\''$(gsettings_SCHEMAS) $(gsettings__enum_file)'\''; test -n "$(gsettingsschemadir)" || list=; \
7310 files=`for p in $$list; do echo $$p; done | sed -e '\''s|^.*/||'\''`; \
7311 test -n "$$files" || exit 0; \
7312 echo " ( cd '\''$(DESTDIR)$(gsettingsschemadir)'\'' && rm -f" $$files ")"; \
7313 cd "$(DESTDIR)$(gsettingsschemadir)" && rm -f $$files
7314 test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir)
7316 clean-gsettings-schemas:
7317 rm -f $(gsettings_SCHEMAS:.xml=.valid) $(gsettings__enum_file)
7319 ifdef gsettings_ENUM_NAMESPACE
7320 $(gsettings__enum_file): $(gsettings_ENUM_FILES)
7321 $(AM_V_GEN) glib-mkenums --comments '\''<!-- @comment@ -->'\'' --fhead "<schemalist>" --vhead " <@type@ id='\''$(gsettings_ENUM_NAMESPACE).@EnumName@'\''>" --vprod " <value nick='\''@valuenick@'\'' value='\''@valuenum@'\''/>" --vtail " </@type@>" --ftail "</schemalist>" $^ > $@.tmp && mv $@.tmp $@
7331 ############### common
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
7335 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
7336 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
7337 $as_echo_n "(cached) " >&6
7339 ac_check_lib_save_LIBS=$LIBS
7340 LIBS="-lpthread $LIBS"
7341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7342 /* end confdefs.h. */
7344 /* Override any GCC internal prototype to avoid an error.
7345 Use char because int might match the return type of a GCC
7346 builtin and then its argument prototype would still apply. */
7350 char pthread_create ();
7354 return pthread_create ();
7359 if ac_fn_c_try_link "$LINENO"; then :
7360 ac_cv_lib_pthread_pthread_create=yes
7362 ac_cv_lib_pthread_pthread_create=no
7364 rm -f core conftest.err conftest.$ac_objext \
7365 conftest$ac_exeext conftest.$ac_ext
7366 LIBS=$ac_check_lib_save_LIBS
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
7369 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
7370 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
7371 cat >>confdefs.h <<_ACEOF
7372 #define HAVE_LIBPTHREAD 1
7375 LIBS="-lpthread $LIBS"
7379 PTHREAD_LIBS=-pthread
7382 # Checks sensors, required by psensor and psensor-server
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sensors_init in -lsensors" >&5
7384 $as_echo_n "checking for sensors_init in -lsensors... " >&6; }
7385 if ${ac_cv_lib_sensors_sensors_init+:} false; then :
7386 $as_echo_n "(cached) " >&6
7388 ac_check_lib_save_LIBS=$LIBS
7389 LIBS="-lsensors $LIBS"
7390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7391 /* end confdefs.h. */
7393 /* Override any GCC internal prototype to avoid an error.
7394 Use char because int might match the return type of a GCC
7395 builtin and then its argument prototype would still apply. */
7399 char sensors_init ();
7403 return sensors_init ();
7408 if ac_fn_c_try_link "$LINENO"; then :
7409 ac_cv_lib_sensors_sensors_init=yes
7411 ac_cv_lib_sensors_sensors_init=no
7413 rm -f core conftest.err conftest.$ac_objext \
7414 conftest$ac_exeext conftest.$ac_ext
7415 LIBS=$ac_check_lib_save_LIBS
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sensors_sensors_init" >&5
7418 $as_echo "$ac_cv_lib_sensors_sensors_init" >&6; }
7419 if test "x$ac_cv_lib_sensors_sensors_init" = xyes; then :
7420 cat >>confdefs.h <<_ACEOF
7421 #define HAVE_LIBSENSORS 1
7424 LIBS="-lsensors $LIBS"
7428 for ac_header in sensors/sensors.h sensors/error.h
7430 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7431 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7432 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7433 cat >>confdefs.h <<_ACEOF
7434 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7441 SENSORS_LIBS=-lsensors
7444 ############### psensor
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
7451 $as_echo_n "checking for X11... " >&6; }
7453 if test -n "$X11_CFLAGS"; then
7454 pkg_cv_X11_CFLAGS="$X11_CFLAGS"
7455 elif test -n "$PKG_CONFIG"; then
7456 if test -n "$PKG_CONFIG" && \
7457 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
7458 ($PKG_CONFIG --exists --print-errors "x11") 2>&5
7460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7461 test $ac_status = 0; }; then
7462 pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
7463 test "x$?" != "x0" && pkg_failed=yes
7470 if test -n "$X11_LIBS"; then
7471 pkg_cv_X11_LIBS="$X11_LIBS"
7472 elif test -n "$PKG_CONFIG"; then
7473 if test -n "$PKG_CONFIG" && \
7474 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
7475 ($PKG_CONFIG --exists --print-errors "x11") 2>&5
7477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7478 test $ac_status = 0; }; then
7479 pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
7480 test "x$?" != "x0" && pkg_failed=yes
7490 if test $pkg_failed = yes; then
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7492 $as_echo "no" >&6; }
7494 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7495 _pkg_short_errors_supported=yes
7497 _pkg_short_errors_supported=no
7499 if test $_pkg_short_errors_supported = yes; then
7500 X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11" 2>&1`
7502 X11_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11" 2>&1`
7504 # Put the nasty error message in config.log where it belongs
7505 echo "$X11_PKG_ERRORS" >&5
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"x11 missing psensor will not be built\"" >&5
7508 $as_echo "$as_me: WARNING: \"x11 missing psensor will not be built\"" >&2;}
7509 elif test $pkg_failed = untried; then
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7511 $as_echo "no" >&6; }
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"x11 missing psensor will not be built\"" >&5
7513 $as_echo "$as_me: WARNING: \"x11 missing psensor will not be built\"" >&2;}
7515 X11_CFLAGS=$pkg_cv_X11_CFLAGS
7516 X11_LIBS=$pkg_cv_X11_LIBS
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7518 $as_echo "yes" >&6; }
7521 if test -n "$X11_LIBS"; then
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5
7535 $as_echo_n "checking for XEXT... " >&6; }
7537 if test -n "$XEXT_CFLAGS"; then
7538 pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
7539 elif test -n "$PKG_CONFIG"; then
7540 if test -n "$PKG_CONFIG" && \
7541 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5
7542 ($PKG_CONFIG --exists --print-errors "xext") 2>&5
7544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7545 test $ac_status = 0; }; then
7546 pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xext" 2>/dev/null`
7547 test "x$?" != "x0" && pkg_failed=yes
7554 if test -n "$XEXT_LIBS"; then
7555 pkg_cv_XEXT_LIBS="$XEXT_LIBS"
7556 elif test -n "$PKG_CONFIG"; then
7557 if test -n "$PKG_CONFIG" && \
7558 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5
7559 ($PKG_CONFIG --exists --print-errors "xext") 2>&5
7561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7562 test $ac_status = 0; }; then
7563 pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xext" 2>/dev/null`
7564 test "x$?" != "x0" && pkg_failed=yes
7574 if test $pkg_failed = yes; then
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7576 $as_echo "no" >&6; }
7578 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7579 _pkg_short_errors_supported=yes
7581 _pkg_short_errors_supported=no
7583 if test $_pkg_short_errors_supported = yes; then
7584 XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xext" 2>&1`
7586 XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xext" 2>&1`
7588 # Put the nasty error message in config.log where it belongs
7589 echo "$XEXT_PKG_ERRORS" >&5
7591 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"xext missing psensor will not be built\"" >&5
7592 $as_echo "$as_me: WARNING: \"xext missing psensor will not be built\"" >&2;}
7593 elif test $pkg_failed = untried; then
7594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7595 $as_echo "no" >&6; }
7596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"xext missing psensor will not be built\"" >&5
7597 $as_echo "$as_me: WARNING: \"xext missing psensor will not be built\"" >&2;}
7599 XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
7600 XEXT_LIBS=$pkg_cv_XEXT_LIBS
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7602 $as_echo "yes" >&6; }
7605 if test -n "$XEXT_LIBS"; then
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5
7620 $as_echo_n "checking for GTK... " >&6; }
7622 if test -n "$GTK_CFLAGS"; then
7623 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
7624 elif test -n "$PKG_CONFIG"; then
7625 if test -n "$PKG_CONFIG" && \
7626 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0 >= 3.4\""; } >&5
7627 ($PKG_CONFIG --exists --print-errors "gtk+-3.0 >= 3.4") 2>&5
7629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7630 test $ac_status = 0; }; then
7631 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-3.0 >= 3.4" 2>/dev/null`
7632 test "x$?" != "x0" && pkg_failed=yes
7639 if test -n "$GTK_LIBS"; then
7640 pkg_cv_GTK_LIBS="$GTK_LIBS"
7641 elif test -n "$PKG_CONFIG"; then
7642 if test -n "$PKG_CONFIG" && \
7643 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0 >= 3.4\""; } >&5
7644 ($PKG_CONFIG --exists --print-errors "gtk+-3.0 >= 3.4") 2>&5
7646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7647 test $ac_status = 0; }; then
7648 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-3.0 >= 3.4" 2>/dev/null`
7649 test "x$?" != "x0" && pkg_failed=yes
7659 if test $pkg_failed = yes; then
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7661 $as_echo "no" >&6; }
7663 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7664 _pkg_short_errors_supported=yes
7666 _pkg_short_errors_supported=no
7668 if test $_pkg_short_errors_supported = yes; then
7669 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-3.0 >= 3.4" 2>&1`
7671 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-3.0 >= 3.4" 2>&1`
7673 # Put the nasty error message in config.log where it belongs
7674 echo "$GTK_PKG_ERRORS" >&5
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"gtk missing psensor will not be built\"" >&5
7677 $as_echo "$as_me: WARNING: \"gtk missing psensor will not be built\"" >&2;}
7678 elif test $pkg_failed = untried; then
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7680 $as_echo "no" >&6; }
7681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"gtk missing psensor will not be built\"" >&5
7682 $as_echo "$as_me: WARNING: \"gtk missing psensor will not be built\"" >&2;}
7684 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
7685 GTK_LIBS=$pkg_cv_GTK_LIBS
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7687 $as_echo "yes" >&6; }
7690 if test -n "$GTK_LIBS"; then
7698 # ensure that only allowed headers are included
7699 GTK_CFLAGS+=" -DGTK_DISABLE_SINGLE_INCLUDES "
7700 # ensure that no gtk deprecated symbols are used
7701 GTK_CFLAGS+=" -DGDK_DISABLE_DEPRECATED "
7702 GTK_CFLAGS+=" -DGTK_DISABLE_DEPRECATED "
7703 # ensure use of accessors
7704 GTK_CFLAGS+=" -DGSEAL_ENABLE "
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBUDISKS2" >&5
7713 $as_echo_n "checking for LIBUDISKS2... " >&6; }
7715 if test -n "$LIBUDISKS2_CFLAGS"; then
7716 pkg_cv_LIBUDISKS2_CFLAGS="$LIBUDISKS2_CFLAGS"
7717 elif test -n "$PKG_CONFIG"; then
7718 if test -n "$PKG_CONFIG" && \
7719 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"udisks2\""; } >&5
7720 ($PKG_CONFIG --exists --print-errors "udisks2") 2>&5
7722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7723 test $ac_status = 0; }; then
7724 pkg_cv_LIBUDISKS2_CFLAGS=`$PKG_CONFIG --cflags "udisks2" 2>/dev/null`
7725 test "x$?" != "x0" && pkg_failed=yes
7732 if test -n "$LIBUDISKS2_LIBS"; then
7733 pkg_cv_LIBUDISKS2_LIBS="$LIBUDISKS2_LIBS"
7734 elif test -n "$PKG_CONFIG"; then
7735 if test -n "$PKG_CONFIG" && \
7736 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"udisks2\""; } >&5
7737 ($PKG_CONFIG --exists --print-errors "udisks2") 2>&5
7739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7740 test $ac_status = 0; }; then
7741 pkg_cv_LIBUDISKS2_LIBS=`$PKG_CONFIG --libs "udisks2" 2>/dev/null`
7742 test "x$?" != "x0" && pkg_failed=yes
7752 if test $pkg_failed = yes; then
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7754 $as_echo "no" >&6; }
7756 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7757 _pkg_short_errors_supported=yes
7759 _pkg_short_errors_supported=no
7761 if test $_pkg_short_errors_supported = yes; then
7762 LIBUDISKS2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "udisks2" 2>&1`
7764 LIBUDISKS2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "udisks2" 2>&1`
7766 # Put the nasty error message in config.log where it belongs
7767 echo "$LIBUDISKS2_PKG_ERRORS" >&5
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Library udisks2 not present\"" >&5
7770 $as_echo "$as_me: WARNING: \"Library udisks2 not present\"" >&2;}
7771 elif test $pkg_failed = untried; then
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7773 $as_echo "no" >&6; }
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Library udisks2 not present\"" >&5
7775 $as_echo "$as_me: WARNING: \"Library udisks2 not present\"" >&2;}
7777 LIBUDISKS2_CFLAGS=$pkg_cv_LIBUDISKS2_CFLAGS
7778 LIBUDISKS2_LIBS=$pkg_cv_LIBUDISKS2_LIBS
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7780 $as_echo "yes" >&6; }
7782 $as_echo "#define HAVE_LIBUDISKS2 1" >>confdefs.h
7785 if test -n "$LIBUDISKS2_LIBS"; then
7787 LIBUDISKS2_FALSE='#'
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ATASMART" >&5
7800 $as_echo_n "checking for ATASMART... " >&6; }
7802 if test -n "$ATASMART_CFLAGS"; then
7803 pkg_cv_ATASMART_CFLAGS="$ATASMART_CFLAGS"
7804 elif test -n "$PKG_CONFIG"; then
7805 if test -n "$PKG_CONFIG" && \
7806 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libatasmart\""; } >&5
7807 ($PKG_CONFIG --exists --print-errors "libatasmart") 2>&5
7809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7810 test $ac_status = 0; }; then
7811 pkg_cv_ATASMART_CFLAGS=`$PKG_CONFIG --cflags "libatasmart" 2>/dev/null`
7812 test "x$?" != "x0" && pkg_failed=yes
7819 if test -n "$ATASMART_LIBS"; then
7820 pkg_cv_ATASMART_LIBS="$ATASMART_LIBS"
7821 elif test -n "$PKG_CONFIG"; then
7822 if test -n "$PKG_CONFIG" && \
7823 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libatasmart\""; } >&5
7824 ($PKG_CONFIG --exists --print-errors "libatasmart") 2>&5
7826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7827 test $ac_status = 0; }; then
7828 pkg_cv_ATASMART_LIBS=`$PKG_CONFIG --libs "libatasmart" 2>/dev/null`
7829 test "x$?" != "x0" && pkg_failed=yes
7839 if test $pkg_failed = yes; then
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7841 $as_echo "no" >&6; }
7843 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7844 _pkg_short_errors_supported=yes
7846 _pkg_short_errors_supported=no
7848 if test $_pkg_short_errors_supported = yes; then
7849 ATASMART_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libatasmart" 2>&1`
7851 ATASMART_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libatasmart" 2>&1`
7853 # Put the nasty error message in config.log where it belongs
7854 echo "$ATASMART_PKG_ERRORS" >&5
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Library atasmart not present\"" >&5
7857 $as_echo "$as_me: WARNING: \"Library atasmart not present\"" >&2;}
7858 elif test $pkg_failed = untried; then
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7860 $as_echo "no" >&6; }
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Library atasmart not present\"" >&5
7862 $as_echo "$as_me: WARNING: \"Library atasmart not present\"" >&2;}
7864 ATASMART_CFLAGS=$pkg_cv_ATASMART_CFLAGS
7865 ATASMART_LIBS=$pkg_cv_ATASMART_LIBS
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7867 $as_echo "yes" >&6; }
7869 $as_echo "#define HAVE_ATASMART 1" >>confdefs.h
7873 if test -n "$ATASMART_LIBS"; then
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBNOTIFY" >&5
7889 $as_echo_n "checking for LIBNOTIFY... " >&6; }
7891 if test -n "$LIBNOTIFY_CFLAGS"; then
7892 pkg_cv_LIBNOTIFY_CFLAGS="$LIBNOTIFY_CFLAGS"
7893 elif test -n "$PKG_CONFIG"; then
7894 if test -n "$PKG_CONFIG" && \
7895 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnotify\""; } >&5
7896 ($PKG_CONFIG --exists --print-errors "libnotify") 2>&5
7898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7899 test $ac_status = 0; }; then
7900 pkg_cv_LIBNOTIFY_CFLAGS=`$PKG_CONFIG --cflags "libnotify" 2>/dev/null`
7901 test "x$?" != "x0" && pkg_failed=yes
7908 if test -n "$LIBNOTIFY_LIBS"; then
7909 pkg_cv_LIBNOTIFY_LIBS="$LIBNOTIFY_LIBS"
7910 elif test -n "$PKG_CONFIG"; then
7911 if test -n "$PKG_CONFIG" && \
7912 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnotify\""; } >&5
7913 ($PKG_CONFIG --exists --print-errors "libnotify") 2>&5
7915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7916 test $ac_status = 0; }; then
7917 pkg_cv_LIBNOTIFY_LIBS=`$PKG_CONFIG --libs "libnotify" 2>/dev/null`
7918 test "x$?" != "x0" && pkg_failed=yes
7928 if test $pkg_failed = yes; then
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7930 $as_echo "no" >&6; }
7932 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7933 _pkg_short_errors_supported=yes
7935 _pkg_short_errors_supported=no
7937 if test $_pkg_short_errors_supported = yes; then
7938 LIBNOTIFY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libnotify" 2>&1`
7940 LIBNOTIFY_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libnotify" 2>&1`
7942 # Put the nasty error message in config.log where it belongs
7943 echo "$LIBNOTIFY_PKG_ERRORS" >&5
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Desktop notification disabled\"" >&5
7946 $as_echo "$as_me: WARNING: \"Desktop notification disabled\"" >&2;}
7947 elif test $pkg_failed = untried; then
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7949 $as_echo "no" >&6; }
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Desktop notification disabled\"" >&5
7951 $as_echo "$as_me: WARNING: \"Desktop notification disabled\"" >&2;}
7953 LIBNOTIFY_CFLAGS=$pkg_cv_LIBNOTIFY_CFLAGS
7954 LIBNOTIFY_LIBS=$pkg_cv_LIBNOTIFY_LIBS
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7956 $as_echo "yes" >&6; }
7958 $as_echo "#define HAVE_LIBNOTIFY 1" >>confdefs.h
7961 if test -n "$LIBNOTIFY_LIBS"; then
7972 # Checks AppIndicator
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APPINDICATOR" >&5
7978 $as_echo_n "checking for APPINDICATOR... " >&6; }
7980 if test -n "$APPINDICATOR_CFLAGS"; then
7981 pkg_cv_APPINDICATOR_CFLAGS="$APPINDICATOR_CFLAGS"
7982 elif test -n "$PKG_CONFIG"; then
7983 if test -n "$PKG_CONFIG" && \
7984 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"appindicator3-0.1\""; } >&5
7985 ($PKG_CONFIG --exists --print-errors "appindicator3-0.1") 2>&5
7987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7988 test $ac_status = 0; }; then
7989 pkg_cv_APPINDICATOR_CFLAGS=`$PKG_CONFIG --cflags "appindicator3-0.1" 2>/dev/null`
7990 test "x$?" != "x0" && pkg_failed=yes
7997 if test -n "$APPINDICATOR_LIBS"; then
7998 pkg_cv_APPINDICATOR_LIBS="$APPINDICATOR_LIBS"
7999 elif test -n "$PKG_CONFIG"; then
8000 if test -n "$PKG_CONFIG" && \
8001 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"appindicator3-0.1\""; } >&5
8002 ($PKG_CONFIG --exists --print-errors "appindicator3-0.1") 2>&5
8004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8005 test $ac_status = 0; }; then
8006 pkg_cv_APPINDICATOR_LIBS=`$PKG_CONFIG --libs "appindicator3-0.1" 2>/dev/null`
8007 test "x$?" != "x0" && pkg_failed=yes
8017 if test $pkg_failed = yes; then
8018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8019 $as_echo "no" >&6; }
8021 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8022 _pkg_short_errors_supported=yes
8024 _pkg_short_errors_supported=no
8026 if test $_pkg_short_errors_supported = yes; then
8027 APPINDICATOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "appindicator3-0.1" 2>&1`
8029 APPINDICATOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "appindicator3-0.1" 2>&1`
8031 # Put the nasty error message in config.log where it belongs
8032 echo "$APPINDICATOR_PKG_ERRORS" >&5
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: AppIndicator 3-0.1 not present\"" >&5
8035 $as_echo "$as_me: WARNING: AppIndicator 3-0.1 not present\"" >&2;}
8036 elif test $pkg_failed = untried; then
8037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8038 $as_echo "no" >&6; }
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: AppIndicator 3-0.1 not present\"" >&5
8040 $as_echo "$as_me: WARNING: AppIndicator 3-0.1 not present\"" >&2;}
8042 APPINDICATOR_CFLAGS=$pkg_cv_APPINDICATOR_CFLAGS
8043 APPINDICATOR_LIBS=$pkg_cv_APPINDICATOR_LIBS
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8045 $as_echo "yes" >&6; }
8047 $as_echo "#define HAVE_APPINDICATOR 1" >>confdefs.h
8051 if test "$APPINDICATOR_LIBS" == ""; then
8054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APPINDICATOR" >&5
8055 $as_echo_n "checking for APPINDICATOR... " >&6; }
8057 if test -n "$APPINDICATOR_CFLAGS"; then
8058 pkg_cv_APPINDICATOR_CFLAGS="$APPINDICATOR_CFLAGS"
8059 elif test -n "$PKG_CONFIG"; then
8060 if test -n "$PKG_CONFIG" && \
8061 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"appindicator-0.1 <= 0.2.9 \""; } >&5
8062 ($PKG_CONFIG --exists --print-errors "appindicator-0.1 <= 0.2.9 ") 2>&5
8064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8065 test $ac_status = 0; }; then
8066 pkg_cv_APPINDICATOR_CFLAGS=`$PKG_CONFIG --cflags "appindicator-0.1 <= 0.2.9 " 2>/dev/null`
8067 test "x$?" != "x0" && pkg_failed=yes
8074 if test -n "$APPINDICATOR_LIBS"; then
8075 pkg_cv_APPINDICATOR_LIBS="$APPINDICATOR_LIBS"
8076 elif test -n "$PKG_CONFIG"; then
8077 if test -n "$PKG_CONFIG" && \
8078 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"appindicator-0.1 <= 0.2.9 \""; } >&5
8079 ($PKG_CONFIG --exists --print-errors "appindicator-0.1 <= 0.2.9 ") 2>&5
8081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8082 test $ac_status = 0; }; then
8083 pkg_cv_APPINDICATOR_LIBS=`$PKG_CONFIG --libs "appindicator-0.1 <= 0.2.9 " 2>/dev/null`
8084 test "x$?" != "x0" && pkg_failed=yes
8094 if test $pkg_failed = yes; then
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8096 $as_echo "no" >&6; }
8098 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8099 _pkg_short_errors_supported=yes
8101 _pkg_short_errors_supported=no
8103 if test $_pkg_short_errors_supported = yes; then
8104 APPINDICATOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "appindicator-0.1 <= 0.2.9 " 2>&1`
8106 APPINDICATOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "appindicator-0.1 <= 0.2.9 " 2>&1`
8108 # Put the nasty error message in config.log where it belongs
8109 echo "$APPINDICATOR_PKG_ERRORS" >&5
8111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: AppIndicator 0.2.9 not present\"" >&5
8112 $as_echo "$as_me: WARNING: AppIndicator 0.2.9 not present\"" >&2;}
8113 elif test $pkg_failed = untried; then
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8115 $as_echo "no" >&6; }
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: AppIndicator 0.2.9 not present\"" >&5
8117 $as_echo "$as_me: WARNING: AppIndicator 0.2.9 not present\"" >&2;}
8119 APPINDICATOR_CFLAGS=$pkg_cv_APPINDICATOR_CFLAGS
8120 APPINDICATOR_LIBS=$pkg_cv_APPINDICATOR_LIBS
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8122 $as_echo "yes" >&6; }
8124 $as_echo "#define HAVE_APPINDICATOR 1" >>confdefs.h
8127 $as_echo "#define HAVE_APPINDICATOR_029 1" >>confdefs.h
8133 if test "$APPINDICATOR_LIBS" == ""; then
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APPINDICATOR" >&5
8137 $as_echo_n "checking for APPINDICATOR... " >&6; }
8139 if test -n "$APPINDICATOR_CFLAGS"; then
8140 pkg_cv_APPINDICATOR_CFLAGS="$APPINDICATOR_CFLAGS"
8141 elif test -n "$PKG_CONFIG"; then
8142 if test -n "$PKG_CONFIG" && \
8143 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"appindicator-0.1 > 0.2.9\""; } >&5
8144 ($PKG_CONFIG --exists --print-errors "appindicator-0.1 > 0.2.9") 2>&5
8146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8147 test $ac_status = 0; }; then
8148 pkg_cv_APPINDICATOR_CFLAGS=`$PKG_CONFIG --cflags "appindicator-0.1 > 0.2.9" 2>/dev/null`
8149 test "x$?" != "x0" && pkg_failed=yes
8156 if test -n "$APPINDICATOR_LIBS"; then
8157 pkg_cv_APPINDICATOR_LIBS="$APPINDICATOR_LIBS"
8158 elif test -n "$PKG_CONFIG"; then
8159 if test -n "$PKG_CONFIG" && \
8160 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"appindicator-0.1 > 0.2.9\""; } >&5
8161 ($PKG_CONFIG --exists --print-errors "appindicator-0.1 > 0.2.9") 2>&5
8163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8164 test $ac_status = 0; }; then
8165 pkg_cv_APPINDICATOR_LIBS=`$PKG_CONFIG --libs "appindicator-0.1 > 0.2.9" 2>/dev/null`
8166 test "x$?" != "x0" && pkg_failed=yes
8176 if test $pkg_failed = yes; then
8177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8178 $as_echo "no" >&6; }
8180 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8181 _pkg_short_errors_supported=yes
8183 _pkg_short_errors_supported=no
8185 if test $_pkg_short_errors_supported = yes; then
8186 APPINDICATOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "appindicator-0.1 > 0.2.9" 2>&1`
8188 APPINDICATOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "appindicator-0.1 > 0.2.9" 2>&1`
8190 # Put the nasty error message in config.log where it belongs
8191 echo "$APPINDICATOR_PKG_ERRORS" >&5
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"AppIndicator > 0.2.9 not present\"" >&5
8194 $as_echo "$as_me: WARNING: \"AppIndicator > 0.2.9 not present\"" >&2;}
8195 elif test $pkg_failed = untried; then
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8197 $as_echo "no" >&6; }
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"AppIndicator > 0.2.9 not present\"" >&5
8199 $as_echo "$as_me: WARNING: \"AppIndicator > 0.2.9 not present\"" >&2;}
8201 APPINDICATOR_CFLAGS=$pkg_cv_APPINDICATOR_CFLAGS
8202 APPINDICATOR_LIBS=$pkg_cv_APPINDICATOR_LIBS
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8204 $as_echo "yes" >&6; }
8206 $as_echo "#define HAVE_APPINDICATOR 1" >>confdefs.h
8210 if test -n "$APPINDICATOR_LIBS"; then
8212 APPINDICATOR_FALSE='#'
8214 APPINDICATOR_TRUE='#'
8221 # Check CURL, needed for remote monitoring
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CURL" >&5
8226 $as_echo_n "checking for CURL... " >&6; }
8228 if test -n "$CURL_CFLAGS"; then
8229 pkg_cv_CURL_CFLAGS="$CURL_CFLAGS"
8230 elif test -n "$PKG_CONFIG"; then
8231 if test -n "$PKG_CONFIG" && \
8232 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl\""; } >&5
8233 ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5
8235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8236 test $ac_status = 0; }; then
8237 pkg_cv_CURL_CFLAGS=`$PKG_CONFIG --cflags "libcurl" 2>/dev/null`
8238 test "x$?" != "x0" && pkg_failed=yes
8245 if test -n "$CURL_LIBS"; then
8246 pkg_cv_CURL_LIBS="$CURL_LIBS"
8247 elif test -n "$PKG_CONFIG"; then
8248 if test -n "$PKG_CONFIG" && \
8249 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl\""; } >&5
8250 ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5
8252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8253 test $ac_status = 0; }; then
8254 pkg_cv_CURL_LIBS=`$PKG_CONFIG --libs "libcurl" 2>/dev/null`
8255 test "x$?" != "x0" && pkg_failed=yes
8265 if test $pkg_failed = yes; then
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8267 $as_echo "no" >&6; }
8269 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8270 _pkg_short_errors_supported=yes
8272 _pkg_short_errors_supported=no
8274 if test $_pkg_short_errors_supported = yes; then
8275 CURL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcurl" 2>&1`
8277 CURL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcurl" 2>&1`
8279 # Put the nasty error message in config.log where it belongs
8280 echo "$CURL_PKG_ERRORS" >&5
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Remote monitoring disabled" >&5
8283 $as_echo "$as_me: WARNING: \"Remote monitoring disabled" >&2;}
8284 elif test $pkg_failed = untried; then
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8286 $as_echo "no" >&6; }
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Remote monitoring disabled" >&5
8288 $as_echo "$as_me: WARNING: \"Remote monitoring disabled" >&2;}
8290 CURL_CFLAGS=$pkg_cv_CURL_CFLAGS
8291 CURL_LIBS=$pkg_cv_CURL_LIBS
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8293 $as_echo "yes" >&6; }
8295 $as_echo "#define HAVE_CURL 1" >>confdefs.h
8298 if test -n "$CURL_LIBS"; then
8309 # Check JSON, needed for remote monitoring
8313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JSON" >&5
8314 $as_echo_n "checking for JSON... " >&6; }
8316 if test -n "$JSON_CFLAGS"; then
8317 pkg_cv_JSON_CFLAGS="$JSON_CFLAGS"
8318 elif test -n "$PKG_CONFIG"; then
8319 if test -n "$PKG_CONFIG" && \
8320 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c >= 0.11.99\""; } >&5
8321 ($PKG_CONFIG --exists --print-errors "json-c >= 0.11.99") 2>&5
8323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8324 test $ac_status = 0; }; then
8325 pkg_cv_JSON_CFLAGS=`$PKG_CONFIG --cflags "json-c >= 0.11.99" 2>/dev/null`
8326 test "x$?" != "x0" && pkg_failed=yes
8333 if test -n "$JSON_LIBS"; then
8334 pkg_cv_JSON_LIBS="$JSON_LIBS"
8335 elif test -n "$PKG_CONFIG"; then
8336 if test -n "$PKG_CONFIG" && \
8337 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c >= 0.11.99\""; } >&5
8338 ($PKG_CONFIG --exists --print-errors "json-c >= 0.11.99") 2>&5
8340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8341 test $ac_status = 0; }; then
8342 pkg_cv_JSON_LIBS=`$PKG_CONFIG --libs "json-c >= 0.11.99" 2>/dev/null`
8343 test "x$?" != "x0" && pkg_failed=yes
8353 if test $pkg_failed = yes; then
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8355 $as_echo "no" >&6; }
8357 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8358 _pkg_short_errors_supported=yes
8360 _pkg_short_errors_supported=no
8362 if test $_pkg_short_errors_supported = yes; then
8363 JSON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "json-c >= 0.11.99" 2>&1`
8365 JSON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "json-c >= 0.11.99" 2>&1`
8367 # Put the nasty error message in config.log where it belongs
8368 echo "$JSON_PKG_ERRORS" >&5
8370 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"json-c missing\"" >&5
8371 $as_echo "$as_me: WARNING: \"json-c missing\"" >&2;}
8372 elif test $pkg_failed = untried; then
8373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8374 $as_echo "no" >&6; }
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"json-c missing\"" >&5
8376 $as_echo "$as_me: WARNING: \"json-c missing\"" >&2;}
8378 JSON_CFLAGS=$pkg_cv_JSON_CFLAGS
8379 JSON_LIBS=$pkg_cv_JSON_LIBS
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8381 $as_echo "yes" >&6; }
8383 $as_echo "#define HAVE_JSON 1" >>confdefs.h
8387 if test "$JSON_LIBS" == ""; then
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JSON" >&5
8391 $as_echo_n "checking for JSON... " >&6; }
8393 if test -n "$JSON_CFLAGS"; then
8394 pkg_cv_JSON_CFLAGS="$JSON_CFLAGS"
8395 elif test -n "$PKG_CONFIG"; then
8396 if test -n "$PKG_CONFIG" && \
8397 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json >= 0.11.99\""; } >&5
8398 ($PKG_CONFIG --exists --print-errors "json >= 0.11.99") 2>&5
8400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8401 test $ac_status = 0; }; then
8402 pkg_cv_JSON_CFLAGS=`$PKG_CONFIG --cflags "json >= 0.11.99" 2>/dev/null`
8403 test "x$?" != "x0" && pkg_failed=yes
8410 if test -n "$JSON_LIBS"; then
8411 pkg_cv_JSON_LIBS="$JSON_LIBS"
8412 elif test -n "$PKG_CONFIG"; then
8413 if test -n "$PKG_CONFIG" && \
8414 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json >= 0.11.99\""; } >&5
8415 ($PKG_CONFIG --exists --print-errors "json >= 0.11.99") 2>&5
8417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8418 test $ac_status = 0; }; then
8419 pkg_cv_JSON_LIBS=`$PKG_CONFIG --libs "json >= 0.11.99" 2>/dev/null`
8420 test "x$?" != "x0" && pkg_failed=yes
8430 if test $pkg_failed = yes; then
8431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8432 $as_echo "no" >&6; }
8434 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8435 _pkg_short_errors_supported=yes
8437 _pkg_short_errors_supported=no
8439 if test $_pkg_short_errors_supported = yes; then
8440 JSON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "json >= 0.11.99" 2>&1`
8442 JSON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "json >= 0.11.99" 2>&1`
8444 # Put the nasty error message in config.log where it belongs
8445 echo "$JSON_PKG_ERRORS" >&5
8447 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"json0 missing\"" >&5
8448 $as_echo "$as_me: WARNING: \"json0 missing\"" >&2;}
8449 elif test $pkg_failed = untried; then
8450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8451 $as_echo "no" >&6; }
8452 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"json0 missing\"" >&5
8453 $as_echo "$as_me: WARNING: \"json0 missing\"" >&2;}
8455 JSON_CFLAGS=$pkg_cv_JSON_CFLAGS
8456 JSON_LIBS=$pkg_cv_JSON_LIBS
8457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8458 $as_echo "yes" >&6; }
8460 $as_echo "#define HAVE_JSON 1" >>confdefs.h
8463 $as_echo "#define HAVE_JSON_0 1" >>confdefs.h
8468 if test -n "$JSON_LIBS"; then
8479 # Enables remote monitoring if JSON and CURL is present
8480 if test -n "$JSON_LIBS"; then
8481 if test -n "$CURL_LIBS"; then
8483 $as_echo "#define HAVE_REMOTE_SUPPORT 1" >>confdefs.h
8489 # following code from sensors-applet
8490 # sensors-applet.sourceforge.net/
8491 for ac_header in NVCtrl/NVCtrl.h NVCtrl/NVCtrlLib.h
8493 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8494 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
8495 #include <X11/Xlib.h>
8498 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8499 cat >>confdefs.h <<_ACEOF
8500 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8507 if test -n "${X11_LIBS}"; then
8508 LIBS="${LIBS} -lX11 -lXext"
8510 if test "${HAVE_NVIDIA}" = "true"; then
8511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XNVCTRLQueryExtension in -lXNVCtrl" >&5
8512 $as_echo_n "checking for XNVCTRLQueryExtension in -lXNVCtrl... " >&6; }
8513 if ${ac_cv_lib_XNVCtrl_XNVCTRLQueryExtension+:} false; then :
8514 $as_echo_n "(cached) " >&6
8516 ac_check_lib_save_LIBS=$LIBS
8517 LIBS="-lXNVCtrl $LIBS"
8518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8519 /* end confdefs.h. */
8521 /* Override any GCC internal prototype to avoid an error.
8522 Use char because int might match the return type of a GCC
8523 builtin and then its argument prototype would still apply. */
8527 char XNVCTRLQueryExtension ();
8531 return XNVCTRLQueryExtension ();
8536 if ac_fn_c_try_link "$LINENO"; then :
8537 ac_cv_lib_XNVCtrl_XNVCTRLQueryExtension=yes
8539 ac_cv_lib_XNVCtrl_XNVCTRLQueryExtension=no
8541 rm -f core conftest.err conftest.$ac_objext \
8542 conftest$ac_exeext conftest.$ac_ext
8543 LIBS=$ac_check_lib_save_LIBS
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_XNVCtrl_XNVCTRLQueryExtension" >&5
8546 $as_echo "$ac_cv_lib_XNVCtrl_XNVCTRLQueryExtension" >&6; }
8547 if test "x$ac_cv_lib_XNVCtrl_XNVCTRLQueryExtension" = xyes; then :
8548 NVIDIA_LIBS="-lXNVCtrl -lX11 -lXext"
8550 $as_echo "#define HAVE_NVIDIA 1" >>confdefs.h
8557 if test -n "$NVIDIA_LIBS"; then
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNITY" >&5
8572 $as_echo_n "checking for UNITY... " >&6; }
8574 if test -n "$UNITY_CFLAGS"; then
8575 pkg_cv_UNITY_CFLAGS="$UNITY_CFLAGS"
8576 elif test -n "$PKG_CONFIG"; then
8577 if test -n "$PKG_CONFIG" && \
8578 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"unity >= 3.4.2\""; } >&5
8579 ($PKG_CONFIG --exists --print-errors "unity >= 3.4.2") 2>&5
8581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8582 test $ac_status = 0; }; then
8583 pkg_cv_UNITY_CFLAGS=`$PKG_CONFIG --cflags "unity >= 3.4.2" 2>/dev/null`
8584 test "x$?" != "x0" && pkg_failed=yes
8591 if test -n "$UNITY_LIBS"; then
8592 pkg_cv_UNITY_LIBS="$UNITY_LIBS"
8593 elif test -n "$PKG_CONFIG"; then
8594 if test -n "$PKG_CONFIG" && \
8595 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"unity >= 3.4.2\""; } >&5
8596 ($PKG_CONFIG --exists --print-errors "unity >= 3.4.2") 2>&5
8598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8599 test $ac_status = 0; }; then
8600 pkg_cv_UNITY_LIBS=`$PKG_CONFIG --libs "unity >= 3.4.2" 2>/dev/null`
8601 test "x$?" != "x0" && pkg_failed=yes
8611 if test $pkg_failed = yes; then
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8613 $as_echo "no" >&6; }
8615 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8616 _pkg_short_errors_supported=yes
8618 _pkg_short_errors_supported=no
8620 if test $_pkg_short_errors_supported = yes; then
8621 UNITY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "unity >= 3.4.2" 2>&1`
8623 UNITY_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "unity >= 3.4.2" 2>&1`
8625 # Put the nasty error message in config.log where it belongs
8626 echo "$UNITY_PKG_ERRORS" >&5
8628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unity not present" >&5
8629 $as_echo "$as_me: WARNING: Unity not present" >&2;}
8630 elif test $pkg_failed = untried; then
8631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8632 $as_echo "no" >&6; }
8633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unity not present" >&5
8634 $as_echo "$as_me: WARNING: Unity not present" >&2;}
8636 UNITY_CFLAGS=$pkg_cv_UNITY_CFLAGS
8637 UNITY_LIBS=$pkg_cv_UNITY_LIBS
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8639 $as_echo "yes" >&6; }
8641 $as_echo "#define HAVE_UNITY 1" >>confdefs.h
8646 if test -n "$UNITY_LIBS"; then
8657 # Check whether --with-libatiadl was given.
8658 if test "${with_libatiadl+set}" = set; then :
8659 withval=$with_libatiadl;
8660 ATIADL_DIR=${withval}
8661 CPPFLAGS="${CPPFLAGS} -I${ATIADL_DIR}/include"
8662 LIBS="$LIBS -L/usr/lib/fglrx -L/usr/lib64/fglrx -L/usr/lib/catalyst -L/usr/lib64/catalyst"
8668 for ac_header in adl_defines.h
8670 ac_fn_c_check_header_mongrel "$LINENO" "adl_defines.h" "ac_cv_header_adl_defines_h" "$ac_includes_default"
8671 if test "x$ac_cv_header_adl_defines_h" = xyes; then :
8672 cat >>confdefs.h <<_ACEOF
8673 #define HAVE_ADL_DEFINES_H 1
8675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ADL_Main_Control_Refresh in -latiadlxx" >&5
8676 $as_echo_n "checking for ADL_Main_Control_Refresh in -latiadlxx... " >&6; }
8677 if ${ac_cv_lib_atiadlxx_ADL_Main_Control_Refresh+:} false; then :
8678 $as_echo_n "(cached) " >&6
8680 ac_check_lib_save_LIBS=$LIBS
8681 LIBS="-latiadlxx $LIBS"
8682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8683 /* end confdefs.h. */
8685 /* Override any GCC internal prototype to avoid an error.
8686 Use char because int might match the return type of a GCC
8687 builtin and then its argument prototype would still apply. */
8691 char ADL_Main_Control_Refresh ();
8695 return ADL_Main_Control_Refresh ();
8700 if ac_fn_c_try_link "$LINENO"; then :
8701 ac_cv_lib_atiadlxx_ADL_Main_Control_Refresh=yes
8703 ac_cv_lib_atiadlxx_ADL_Main_Control_Refresh=no
8705 rm -f core conftest.err conftest.$ac_objext \
8706 conftest$ac_exeext conftest.$ac_ext
8707 LIBS=$ac_check_lib_save_LIBS
8709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_atiadlxx_ADL_Main_Control_Refresh" >&5
8710 $as_echo "$ac_cv_lib_atiadlxx_ADL_Main_Control_Refresh" >&6; }
8711 if test "x$ac_cv_lib_atiadlxx_ADL_Main_Control_Refresh" = xyes; then :
8714 $as_echo "#define HAVE_LIBATIADL 1" >>confdefs.h
8716 LIBATIADL_CFLAGS="-I${ATIADL_DIR}/include"
8717 LIBATIADL_LIBS="-L/usr/lib/fglrx -L/usr/lib64/fglrx -L/usr/lib/catalyst -L/usr/lib64/catalyst -latiadlxx -ldl"
8726 if test -n "$LIBATIADL_LIBS"; then
8737 ############### psensor-server
8739 # libmicrohttpd, mandatory for psensor-server
8743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBMICROHTTPD" >&5
8744 $as_echo_n "checking for LIBMICROHTTPD... " >&6; }
8746 if test -n "$LIBMICROHTTPD_CFLAGS"; then
8747 pkg_cv_LIBMICROHTTPD_CFLAGS="$LIBMICROHTTPD_CFLAGS"
8748 elif test -n "$PKG_CONFIG"; then
8749 if test -n "$PKG_CONFIG" && \
8750 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmicrohttpd\""; } >&5
8751 ($PKG_CONFIG --exists --print-errors "libmicrohttpd") 2>&5
8753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8754 test $ac_status = 0; }; then
8755 pkg_cv_LIBMICROHTTPD_CFLAGS=`$PKG_CONFIG --cflags "libmicrohttpd" 2>/dev/null`
8756 test "x$?" != "x0" && pkg_failed=yes
8763 if test -n "$LIBMICROHTTPD_LIBS"; then
8764 pkg_cv_LIBMICROHTTPD_LIBS="$LIBMICROHTTPD_LIBS"
8765 elif test -n "$PKG_CONFIG"; then
8766 if test -n "$PKG_CONFIG" && \
8767 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmicrohttpd\""; } >&5
8768 ($PKG_CONFIG --exists --print-errors "libmicrohttpd") 2>&5
8770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8771 test $ac_status = 0; }; then
8772 pkg_cv_LIBMICROHTTPD_LIBS=`$PKG_CONFIG --libs "libmicrohttpd" 2>/dev/null`
8773 test "x$?" != "x0" && pkg_failed=yes
8783 if test $pkg_failed = yes; then
8784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8785 $as_echo "no" >&6; }
8787 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8788 _pkg_short_errors_supported=yes
8790 _pkg_short_errors_supported=no
8792 if test $_pkg_short_errors_supported = yes; then
8793 LIBMICROHTTPD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libmicrohttpd" 2>&1`
8795 LIBMICROHTTPD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libmicrohttpd" 2>&1`
8797 # Put the nasty error message in config.log where it belongs
8798 echo "$LIBMICROHTTPD_PKG_ERRORS" >&5
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"libmicrohttpd not present" >&5
8801 $as_echo "$as_me: WARNING: \"libmicrohttpd not present" >&2;}
8802 elif test $pkg_failed = untried; then
8803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8804 $as_echo "no" >&6; }
8805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"libmicrohttpd not present" >&5
8806 $as_echo "$as_me: WARNING: \"libmicrohttpd not present" >&2;}
8808 LIBMICROHTTPD_CFLAGS=$pkg_cv_LIBMICROHTTPD_CFLAGS
8809 LIBMICROHTTPD_LIBS=$pkg_cv_LIBMICROHTTPD_LIBS
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8811 $as_echo "yes" >&6; }
8813 $as_echo "#define HAVE_LIBMICROHTTPD 1" >>confdefs.h
8816 if test -n "$LIBMICROHTTPD_LIBS"; then
8818 LIBMICROHTTPD_FALSE='#'
8820 LIBMICROHTTPD_TRUE='#'
8821 LIBMICROHTTPD_FALSE=
8830 # Check whether --with-gtop was given.
8831 if test "${with_gtop+set}" = set; then :
8842 if test "$with_gtop" = "yes"; then
8845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTOP" >&5
8846 $as_echo_n "checking for GTOP... " >&6; }
8848 if test -n "$GTOP_CFLAGS"; then
8849 pkg_cv_GTOP_CFLAGS="$GTOP_CFLAGS"
8850 elif test -n "$PKG_CONFIG"; then
8851 if test -n "$PKG_CONFIG" && \
8852 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgtop-2.0\""; } >&5
8853 ($PKG_CONFIG --exists --print-errors "libgtop-2.0") 2>&5
8855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8856 test $ac_status = 0; }; then
8857 pkg_cv_GTOP_CFLAGS=`$PKG_CONFIG --cflags "libgtop-2.0" 2>/dev/null`
8858 test "x$?" != "x0" && pkg_failed=yes
8865 if test -n "$GTOP_LIBS"; then
8866 pkg_cv_GTOP_LIBS="$GTOP_LIBS"
8867 elif test -n "$PKG_CONFIG"; then
8868 if test -n "$PKG_CONFIG" && \
8869 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgtop-2.0\""; } >&5
8870 ($PKG_CONFIG --exists --print-errors "libgtop-2.0") 2>&5
8872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8873 test $ac_status = 0; }; then
8874 pkg_cv_GTOP_LIBS=`$PKG_CONFIG --libs "libgtop-2.0" 2>/dev/null`
8875 test "x$?" != "x0" && pkg_failed=yes
8885 if test $pkg_failed = yes; then
8886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8887 $as_echo "no" >&6; }
8889 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8890 _pkg_short_errors_supported=yes
8892 _pkg_short_errors_supported=no
8894 if test $_pkg_short_errors_supported = yes; then
8895 GTOP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libgtop-2.0" 2>&1`
8897 GTOP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libgtop-2.0" 2>&1`
8899 # Put the nasty error message in config.log where it belongs
8900 echo "$GTOP_PKG_ERRORS" >&5
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"gtop not present" >&5
8903 $as_echo "$as_me: WARNING: \"gtop not present" >&2;}
8904 elif test $pkg_failed = untried; then
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8906 $as_echo "no" >&6; }
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"gtop not present" >&5
8908 $as_echo "$as_me: WARNING: \"gtop not present" >&2;}
8910 GTOP_CFLAGS=$pkg_cv_GTOP_CFLAGS
8911 GTOP_LIBS=$pkg_cv_GTOP_LIBS
8912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8913 $as_echo "yes" >&6; }
8915 $as_echo "#define HAVE_GTOP 1" >>confdefs.h
8919 if test -n "$GTOP_LIBS"; then
8930 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"
8933 for ac_prog in help2man
8935 # Extract the first word of "$ac_prog", so it can be a program name with args.
8936 set dummy $ac_prog; ac_word=$2
8937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8938 $as_echo_n "checking for $ac_word... " >&6; }
8939 if ${ac_cv_prog_HELP2MAN+:} false; then :
8940 $as_echo_n "(cached) " >&6
8942 if test -n "$HELP2MAN"; then
8943 ac_cv_prog_HELP2MAN="$HELP2MAN" # Let the user override the test.
8945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8949 test -z "$as_dir" && as_dir=.
8950 for ac_exec_ext in '' $ac_executable_extensions; do
8951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8952 ac_cv_prog_HELP2MAN="$ac_prog"
8953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8962 HELP2MAN=$ac_cv_prog_HELP2MAN
8963 if test -n "$HELP2MAN"; then
8964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HELP2MAN" >&5
8965 $as_echo "$HELP2MAN" >&6; }
8967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8968 $as_echo "no" >&6; }
8972 test -n "$HELP2MAN" && break
8976 # Extract the first word of "asciidoc", so it can be a program name with args.
8977 set dummy asciidoc; ac_word=$2
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8979 $as_echo_n "checking for $ac_word... " >&6; }
8980 if ${ac_cv_prog_ASCIIDOC+:} false; then :
8981 $as_echo_n "(cached) " >&6
8983 if test -n "$ASCIIDOC"; then
8984 ac_cv_prog_ASCIIDOC="$ASCIIDOC" # Let the user override the test.
8986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8990 test -z "$as_dir" && as_dir=.
8991 for ac_exec_ext in '' $ac_executable_extensions; do
8992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8993 ac_cv_prog_ASCIIDOC="yes"
8994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9003 ASCIIDOC=$ac_cv_prog_ASCIIDOC
9004 if test -n "$ASCIIDOC"; then
9005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ASCIIDOC" >&5
9006 $as_echo "$ASCIIDOC" >&6; }
9008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9009 $as_echo "no" >&6; }
9013 if test -n "$ASCIIDOC"; then
9022 # Extract the first word of "cppcheck", so it can be a program name with args.
9023 set dummy cppcheck; ac_word=$2
9024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9025 $as_echo_n "checking for $ac_word... " >&6; }
9026 if ${ac_cv_prog_HAVE_CPPCHECK+:} false; then :
9027 $as_echo_n "(cached) " >&6
9029 if test -n "$HAVE_CPPCHECK"; then
9030 ac_cv_prog_HAVE_CPPCHECK="$HAVE_CPPCHECK" # Let the user override the test.
9032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9036 test -z "$as_dir" && as_dir=.
9037 for ac_exec_ext in '' $ac_executable_extensions; do
9038 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9039 ac_cv_prog_HAVE_CPPCHECK="yes"
9040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9049 HAVE_CPPCHECK=$ac_cv_prog_HAVE_CPPCHECK
9050 if test -n "$HAVE_CPPCHECK"; then
9051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_CPPCHECK" >&5
9052 $as_echo "$HAVE_CPPCHECK" >&6; }
9054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9055 $as_echo "no" >&6; }
9059 if test -n "$HAVE_CPPCHECK"; then
9068 cat >confcache <<\_ACEOF
9069 # This file is a shell script that caches the results of configure
9070 # tests run on this system so they can be shared between configure
9071 # scripts and configure runs, see configure's option --config-cache.
9072 # It is not useful on other systems. If it contains results you don't
9073 # want to keep, you may remove or edit it.
9075 # config.status only pays attention to the cache file if you give it
9076 # the --recheck option to rerun configure.
9078 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9079 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9084 # The following way of writing the cache mishandles newlines in values,
9085 # but we know of no workaround that is simple, portable, and efficient.
9086 # So, we kill variables containing newlines.
9087 # Ultrix sh set writes to stderr and can't be redirected directly,
9088 # and sets the high bit in the cache file unless we assign to the vars.
9090 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9091 eval ac_val=\$$ac_var
9095 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9096 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9099 _ | IFS | as_nl) ;; #(
9100 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
9101 *) { eval $ac_var=; unset $ac_var;} ;;
9107 case $as_nl`(ac_space=' '; set) 2>&1` in #(
9108 *${as_nl}ac_space=\ *)
9109 # `set' does not quote correctly, so add quotes: double-quote
9110 # substitution turns \\\\ into \\, and sed turns \\ into \.
9113 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9116 # `set' quotes correctly as required by POSIX, so do not add quotes.
9117 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9126 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9128 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9130 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9131 if test -w "$cache_file"; then
9132 if test "x$cache_file" != "x/dev/null"; then
9133 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9134 $as_echo "$as_me: updating cache $cache_file" >&6;}
9135 if test ! -f "$cache_file" || test -h "$cache_file"; then
9136 cat confcache >"$cache_file"
9138 case $cache_file in #(
9140 mv -f confcache "$cache_file"$$ &&
9141 mv -f "$cache_file"$$ "$cache_file" ;; #(
9143 mv -f confcache "$cache_file" ;;
9148 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9149 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9154 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9155 # Let make expand exec_prefix.
9156 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9158 DEFS=-DHAVE_CONFIG_H
9163 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9164 # 1. Remove the extension, and $U if already installed.
9165 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
9166 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
9167 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9168 # will be set to the directory where LIBOBJS objects are built.
9169 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9170 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
9174 LTLIBOBJS=$ac_ltlibobjs
9177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
9178 $as_echo_n "checking that generated files are newer than configure... " >&6; }
9179 if test -n "$am_sleep_pid"; then
9180 # Hide warnings about reused PIDs.
9181 wait $am_sleep_pid 2>/dev/null
9183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
9184 $as_echo "done" >&6; }
9185 if test -n "$EXEEXT"; then
9187 am__EXEEXT_FALSE='#'
9193 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9194 as_fn_error $? "conditional \"AMDEP\" was never defined.
9195 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9197 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9198 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
9199 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9201 if test -z "${X11_TRUE}" && test -z "${X11_FALSE}"; then
9202 as_fn_error $? "conditional \"X11\" was never defined.
9203 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9205 if test -z "${XEXT_TRUE}" && test -z "${XEXT_FALSE}"; then
9206 as_fn_error $? "conditional \"XEXT\" was never defined.
9207 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9209 if test -z "${GTK_TRUE}" && test -z "${GTK_FALSE}"; then
9210 as_fn_error $? "conditional \"GTK\" was never defined.
9211 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9213 if test -z "${LIBUDISKS2_TRUE}" && test -z "${LIBUDISKS2_FALSE}"; then
9214 as_fn_error $? "conditional \"LIBUDISKS2\" was never defined.
9215 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9217 if test -z "${ATASMART_TRUE}" && test -z "${ATASMART_FALSE}"; then
9218 as_fn_error $? "conditional \"ATASMART\" was never defined.
9219 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9221 if test -z "${LIBNOTIFY_TRUE}" && test -z "${LIBNOTIFY_FALSE}"; then
9222 as_fn_error $? "conditional \"LIBNOTIFY\" was never defined.
9223 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9225 if test -z "${APPINDICATOR_TRUE}" && test -z "${APPINDICATOR_FALSE}"; then
9226 as_fn_error $? "conditional \"APPINDICATOR\" was never defined.
9227 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9229 if test -z "${CURL_TRUE}" && test -z "${CURL_FALSE}"; then
9230 as_fn_error $? "conditional \"CURL\" was never defined.
9231 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9233 if test -z "${JSON_TRUE}" && test -z "${JSON_FALSE}"; then
9234 as_fn_error $? "conditional \"JSON\" was never defined.
9235 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9237 if test -z "${NVIDIA_TRUE}" && test -z "${NVIDIA_FALSE}"; then
9238 as_fn_error $? "conditional \"NVIDIA\" was never defined.
9239 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9241 if test -z "${UNITY_TRUE}" && test -z "${UNITY_FALSE}"; then
9242 as_fn_error $? "conditional \"UNITY\" was never defined.
9243 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9245 if test -z "${LIBATIADL_TRUE}" && test -z "${LIBATIADL_FALSE}"; then
9246 as_fn_error $? "conditional \"LIBATIADL\" was never defined.
9247 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9249 if test -z "${LIBMICROHTTPD_TRUE}" && test -z "${LIBMICROHTTPD_FALSE}"; then
9250 as_fn_error $? "conditional \"LIBMICROHTTPD\" was never defined.
9251 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9253 if test -z "${GTOP_TRUE}" && test -z "${GTOP_FALSE}"; then
9254 as_fn_error $? "conditional \"GTOP\" was never defined.
9255 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9257 if test -z "${ASCIIDOC_TRUE}" && test -z "${ASCIIDOC_FALSE}"; then
9258 as_fn_error $? "conditional \"ASCIIDOC\" was never defined.
9259 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9261 if test -z "${CPPCHECK_TRUE}" && test -z "${CPPCHECK_FALSE}"; then
9262 as_fn_error $? "conditional \"CPPCHECK\" was never defined.
9263 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9266 : "${CONFIG_STATUS=./config.status}"
9268 ac_clean_files_save=$ac_clean_files
9269 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9270 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
9271 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
9273 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
9275 # Generated by $as_me.
9276 # Run this file to recreate the current configuration.
9277 # Compiler output produced by configure, useful for debugging
9278 # configure, is in config.log if it exists.
9284 SHELL=\${CONFIG_SHELL-$SHELL}
9287 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
9288 ## -------------------- ##
9289 ## M4sh Initialization. ##
9290 ## -------------------- ##
9292 # Be more Bourne compatible
9293 DUALCASE=1; export DUALCASE # for MKS sh
9294 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
9297 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9298 # is contrary to our usage. Disable this feature.
9299 alias -g '${1+"$@"}'='"$@"'
9300 setopt NO_GLOB_SUBST
9302 case `(set -o) 2>/dev/null` in #(
9314 # Printing a long string crashes Solaris 7 /usr/bin/printf.
9315 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9316 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
9317 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
9318 # Prefer a ksh shell builtin over an external printf program on Solaris,
9319 # but without wasting forks for bash or zsh.
9320 if test -z "$BASH_VERSION$ZSH_VERSION" \
9321 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
9322 as_echo='print -r --'
9323 as_echo_n='print -rn --'
9324 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
9325 as_echo='printf %s\n'
9326 as_echo_n='printf %s'
9328 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9329 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
9330 as_echo_n='/usr/ucb/echo -n'
9332 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9333 as_echo_n_body='eval
9337 expr "X$arg" : "X\\(.*\\)$as_nl";
9338 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9340 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
9342 export as_echo_n_body
9343 as_echo_n='sh -c $as_echo_n_body as_echo'
9346 as_echo='sh -c $as_echo_body as_echo'
9349 # The user is always right.
9350 if test "${PATH_SEPARATOR+set}" != set; then
9352 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9353 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9360 # We need space, tab and new line, in precisely that order. Quoting is
9361 # there to prevent editors from complaining about space-tab.
9362 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9363 # splitting by setting IFS to empty value.)
9366 # Find who we are. Look in the path if we contain no directory separator.
9369 *[\\/]* ) as_myself=$0 ;;
9370 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9374 test -z "$as_dir" && as_dir=.
9375 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9381 # We did not find ourselves, most probably we were run as `sh COMMAND'
9382 # in which case we are not to be found in the path.
9383 if test "x$as_myself" = x; then
9386 if test ! -f "$as_myself"; then
9387 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9391 # Unset variables that we do not need and which cause bugs (e.g. in
9392 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
9393 # suppresses any "Segmentation fault" message there. '((' could
9394 # trigger a bug in pdksh 5.2.14.
9395 for as_var in BASH_ENV ENV MAIL MAILPATH
9396 do eval test x\${$as_var+set} = xset \
9397 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
9410 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9413 # as_fn_error STATUS ERROR [LINENO LOG_FD]
9414 # ----------------------------------------
9415 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9416 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
9417 # script with STATUS, using 1 if that was 0.
9420 as_status=$1; test $as_status -eq 0 && as_status=1
9422 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9423 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
9425 $as_echo "$as_me: error: $2" >&2
9426 as_fn_exit $as_status
9430 # as_fn_set_status STATUS
9431 # -----------------------
9432 # Set $? to STATUS, without forking.
9436 } # as_fn_set_status
9440 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
9450 # Portably unset VAR.
9453 { eval $1=; unset $1;}
9455 as_unset=as_fn_unset
9456 # as_fn_append VAR VALUE
9457 # ----------------------
9458 # Append the text in VALUE to the end of the definition contained in VAR. Take
9459 # advantage of any shell optimizations that allow amortized linear growth over
9460 # repeated appends, instead of the typical quadratic growth present in naive
9462 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
9463 eval 'as_fn_append ()
9474 # as_fn_arith ARG...
9475 # ------------------
9476 # Perform arithmetic evaluation on the ARGs, and store the result in the
9477 # global $as_val. Take advantage of shells that can avoid forks. The arguments
9478 # must be portable across $(()) and expr.
9479 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
9480 eval 'as_fn_arith ()
9487 as_val=`expr "$@" || test $? -eq 1`
9492 if expr a : '\(a\)' >/dev/null 2>&1 &&
9493 test "X`expr 00001 : '.*\(...\)'`" = X001; then
9499 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9500 as_basename=basename
9505 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9511 as_me=`$as_basename -- "$0" ||
9512 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9513 X"$0" : 'X\(//\)$' \| \
9514 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9516 sed '/^.*\/\([^/][^/]*\)\/*$/{
9530 # Avoid depending upon Character Ranges.
9531 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9532 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9533 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9534 as_cr_digits='0123456789'
9535 as_cr_alnum=$as_cr_Letters$as_cr_digits
9537 ECHO_C= ECHO_N= ECHO_T=
9538 case `echo -n x` in #(((((
9540 case `echo 'xy\c'` in
9541 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
9543 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
9550 rm -f conf$$ conf$$.exe conf$$.file
9551 if test -d conf$$.dir; then
9552 rm -f conf$$.dir/conf$$.file
9555 mkdir conf$$.dir 2>/dev/null
9557 if (echo >conf$$.file) 2>/dev/null; then
9558 if ln -s conf$$.file conf$$ 2>/dev/null; then
9560 # ... but there are two gotchas:
9561 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9562 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9563 # In both cases, we have to default to `cp -pR'.
9564 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9566 elif ln conf$$.file conf$$ 2>/dev/null; then
9574 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9575 rmdir conf$$.dir 2>/dev/null
9580 # Create "$as_dir" as a directory, including parents if necessary.
9585 -*) as_dir=./$as_dir;;
9587 test -d "$as_dir" || eval $as_mkdir_p || {
9591 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9592 *) as_qdir=$as_dir;;
9594 as_dirs="'$as_qdir' $as_dirs"
9595 as_dir=`$as_dirname -- "$as_dir" ||
9596 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9597 X"$as_dir" : 'X\(//\)[^/]' \| \
9598 X"$as_dir" : 'X\(//\)$' \| \
9599 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9600 $as_echo X"$as_dir" |
9601 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9618 test -d "$as_dir" && break
9620 test -z "$as_dirs" || eval "mkdir $as_dirs"
9621 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
9625 if mkdir -p . 2>/dev/null; then
9626 as_mkdir_p='mkdir -p "$as_dir"'
9628 test -d ./-p && rmdir ./-p
9633 # as_fn_executable_p FILE
9634 # -----------------------
9635 # Test if FILE is an executable regular file.
9636 as_fn_executable_p ()
9638 test -f "$1" && test -x "$1"
9639 } # as_fn_executable_p
9641 as_executable_p=as_fn_executable_p
9643 # Sed expression to map a string onto a valid CPP name.
9644 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9646 # Sed expression to map a string onto a valid variable name.
9647 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9651 ## ----------------------------------- ##
9652 ## Main body of $CONFIG_STATUS script. ##
9653 ## ----------------------------------- ##
9655 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
9657 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9658 # Save the log message, to keep $0 and so on meaningful, and to
9659 # report actual input values of CONFIG_FILES etc. instead of their
9660 # values after options handling.
9662 This file was extended by psensor $as_me 1.1.0.x, which was
9663 generated by GNU Autoconf 2.69. Invocation command line was
9665 CONFIG_FILES = $CONFIG_FILES
9666 CONFIG_HEADERS = $CONFIG_HEADERS
9667 CONFIG_LINKS = $CONFIG_LINKS
9668 CONFIG_COMMANDS = $CONFIG_COMMANDS
9671 on `(hostname || uname -n) 2>/dev/null | sed 1q`
9676 case $ac_config_files in *"
9677 "*) set x $ac_config_files; shift; ac_config_files=$*;;
9680 case $ac_config_headers in *"
9681 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
9685 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9686 # Files that config.status was made for.
9687 config_files="$ac_config_files"
9688 config_headers="$ac_config_headers"
9689 config_commands="$ac_config_commands"
9693 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9695 \`$as_me' instantiates files and other configuration actions
9696 from templates according to the current configuration. Unless the files
9697 and actions are specified as TAGs, all are instantiated by default.
9699 Usage: $0 [OPTION]... [TAG]...
9701 -h, --help print this help, then exit
9702 -V, --version print version number and configuration settings, then exit
9703 --config print configuration, then exit
9704 -q, --quiet, --silent
9705 do not print progress messages
9706 -d, --debug don't remove temporary files
9707 --recheck update $as_me by reconfiguring in the same conditions
9708 --file=FILE[:TEMPLATE]
9709 instantiate the configuration file FILE
9710 --header=FILE[:TEMPLATE]
9711 instantiate the configuration header FILE
9713 Configuration files:
9716 Configuration headers:
9719 Configuration commands:
9722 Report bugs to <jeanfi@gmail.com>.
9723 psensor home page: <http://wpitchoune.net/psensor>."
9726 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9727 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
9729 psensor config.status 1.1.0.x
9730 configured by $0, generated by GNU Autoconf 2.69,
9731 with options \\"\$ac_cs_config\\"
9733 Copyright (C) 2012 Free Software Foundation, Inc.
9734 This config.status script is free software; the Free Software Foundation
9735 gives unlimited permission to copy, distribute and modify it."
9742 test -n "\$AWK" || AWK=awk
9745 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9746 # The default lists apply if the user does not specify any file.
9752 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9753 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9757 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9769 # Handling of the options.
9770 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9772 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9773 $as_echo "$ac_cs_version"; exit ;;
9774 --config | --confi | --conf | --con | --co | --c )
9775 $as_echo "$ac_cs_config"; exit ;;
9776 --debug | --debu | --deb | --de | --d | -d )
9778 --file | --fil | --fi | --f )
9781 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9782 '') as_fn_error $? "missing file argument" ;;
9784 as_fn_append CONFIG_FILES " '$ac_optarg'"
9785 ac_need_defaults=false;;
9786 --header | --heade | --head | --hea )
9789 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9791 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
9792 ac_need_defaults=false;;
9794 # Conflict between --help and --header
9795 as_fn_error $? "ambiguous option: \`$1'
9796 Try \`$0 --help' for more information.";;
9797 --help | --hel | -h )
9798 $as_echo "$ac_cs_usage"; exit ;;
9799 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9800 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9804 -*) as_fn_error $? "unrecognized option: \`$1'
9805 Try \`$0 --help' for more information." ;;
9807 *) as_fn_append ac_config_targets " $1"
9808 ac_need_defaults=false ;;
9814 ac_configure_extra_args=
9816 if $ac_cs_silent; then
9818 ac_configure_extra_args="$ac_configure_extra_args --silent"
9822 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9823 if \$ac_cs_recheck; then
9824 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9826 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
9827 CONFIG_SHELL='$SHELL'
9833 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9837 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9838 ## Running $as_me. ##
9844 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9848 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9849 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
9850 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
9851 # from automake < 1.5.
9852 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
9853 # Capture the value of LINGUAS because we need it to compute CATALOGS.
9854 LINGUAS="${LINGUAS-%UNSET%}"
9859 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9861 # Handling of arguments.
9862 for ac_config_target in $ac_config_targets
9864 case $ac_config_target in
9865 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
9866 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9867 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
9868 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9869 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
9870 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
9871 "src/glade/Makefile") CONFIG_FILES="$CONFIG_FILES src/glade/Makefile" ;;
9872 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
9873 "src/server/Makefile") CONFIG_FILES="$CONFIG_FILES src/server/Makefile" ;;
9874 "icons/hicolor/scalable/Makefile") CONFIG_FILES="$CONFIG_FILES icons/hicolor/scalable/Makefile" ;;
9875 "icons/hicolor/14x14/Makefile") CONFIG_FILES="$CONFIG_FILES icons/hicolor/14x14/Makefile" ;;
9876 "icons/hicolor/16x16/Makefile") CONFIG_FILES="$CONFIG_FILES icons/hicolor/16x16/Makefile" ;;
9877 "icons/hicolor/22x22/Makefile") CONFIG_FILES="$CONFIG_FILES icons/hicolor/22x22/Makefile" ;;
9878 "icons/hicolor/24x24/Makefile") CONFIG_FILES="$CONFIG_FILES icons/hicolor/24x24/Makefile" ;;
9879 "icons/hicolor/32x32/Makefile") CONFIG_FILES="$CONFIG_FILES icons/hicolor/32x32/Makefile" ;;
9880 "icons/hicolor/48x48/Makefile") CONFIG_FILES="$CONFIG_FILES icons/hicolor/48x48/Makefile" ;;
9881 "icons/hicolor/64x64/Makefile") CONFIG_FILES="$CONFIG_FILES icons/hicolor/64x64/Makefile" ;;
9882 "icons/ubuntu-mono-dark/status/22/Makefile") CONFIG_FILES="$CONFIG_FILES icons/ubuntu-mono-dark/status/22/Makefile" ;;
9883 "icons/ubuntu-mono-light/status/22/Makefile") CONFIG_FILES="$CONFIG_FILES icons/ubuntu-mono-light/status/22/Makefile" ;;
9884 "icons/ubuntu-mono-dark/apps/22/Makefile") CONFIG_FILES="$CONFIG_FILES icons/ubuntu-mono-dark/apps/22/Makefile" ;;
9885 "www/Makefile") CONFIG_FILES="$CONFIG_FILES www/Makefile" ;;
9886 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
9887 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
9889 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
9894 # If the user did not use the arguments to specify the items to instantiate,
9895 # then the envvar interface is used. Set only those that are not.
9896 # We use the long form for the default assignment because of an extremely
9897 # bizarre bug on SunOS 4.1.3.
9898 if $ac_need_defaults; then
9899 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9900 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9901 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9904 # Have a temporary directory for convenience. Make it in the build tree
9905 # simply because there is no reason against having it here, and in addition,
9906 # creating and moving files from /tmp can sometimes cause problems.
9907 # Hook for its removal unless debugging.
9908 # Note that there is a small window in which the directory will not be cleaned:
9909 # after its creation but before its name has been assigned to `$tmp'.
9913 trap 'exit_status=$?
9915 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
9917 trap 'as_fn_exit 1' 1 2 13 15
9919 # Create a (secure) tmp directory for tmp files.
9922 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9926 tmp=./conf$$-$RANDOM
9927 (umask 077 && mkdir "$tmp")
9928 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
9931 # Set up the scripts for CONFIG_FILES section.
9932 # No need to generate them if there are no CONFIG_FILES.
9933 # This happens for instance with `./config.status config.h'.
9934 if test -n "$CONFIG_FILES"; then
9937 ac_cr=`echo X | tr X '\015'`
9938 # On cygwin, bash can eat \r inside `` if the user requested igncr.
9939 # But we know of no other shell where ac_cr would be empty at this
9940 # point, so we can use a bashism as a fallback.
9941 if test "x$ac_cr" = x; then
9942 eval ac_cr=\$\'\\r\'
9944 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
9945 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
9951 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
9956 echo "cat >conf$$subs.awk <<_ACEOF" &&
9957 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
9960 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9961 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
9963 for ac_last_try in false false false false false :; do
9964 . ./conf$$subs.sh ||
9965 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9967 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
9968 if test $ac_delim_n = $ac_delim_num; then
9970 elif $ac_last_try; then
9971 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9973 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9978 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9979 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
9983 s/^/S["/; s/!.*/"]=/
9993 s/\(.\{148\}\)..*/\1/
9995 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10000 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10007 s/\(.\{148\}\)..*/\1/
10009 s/["\\]/\\&/g; s/^/"/; s/$/"/
10013 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10018 ' <conf$$subs.awk | sed '
10023 ' >>$CONFIG_STATUS || ac_write_fail=1
10024 rm -f conf$$subs.awk
10025 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10027 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
10028 for (key in S) S_is_set[key] = 1
10034 nfields = split(line, field, "@")
10036 len = length(field[1])
10037 for (i = 2; i < nfields; i++) {
10039 keylen = length(key)
10040 if (S_is_set[key]) {
10042 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10043 len += length(value) + length(field[++i])
10054 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10055 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10056 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10059 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
10060 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
10063 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
10064 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
10065 # trailing colons and then remove the whole line if VPATH becomes empty
10066 # (actually we leave an empty line to preserve line numbers).
10067 if test "x$srcdir" = x.; then
10068 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
10086 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10087 fi # test -n "$CONFIG_FILES"
10089 # Set up the scripts for CONFIG_HEADERS section.
10090 # No need to generate them if there are no CONFIG_HEADERS.
10091 # This happens for instance with `./config.status Makefile'.
10092 if test -n "$CONFIG_HEADERS"; then
10093 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
10097 # Transform confdefs.h into an awk script `defines.awk', embedded as
10098 # here-document in config.status, that substitutes the proper values into
10099 # config.h.in to produce config.h.
10101 # Create a delimiter string that does not exist in confdefs.h, to ease
10102 # handling of long lines.
10104 for ac_last_try in false false :; do
10105 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
10106 if test -z "$ac_tt"; then
10108 elif $ac_last_try; then
10109 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
10111 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10115 # For the awk script, D is an array of macro values keyed by name,
10116 # likewise P contains macro parameters if any. Preserve backslash
10117 # newline sequences.
10119 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10121 s/.\{148\}/&'"$ac_delim"'/g
10124 s/^[ ]*#[ ]*define[ ][ ]*/ /
10131 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10133 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
10137 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10138 D["\1"]=" \3\\\\\\n"\\/p
10140 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
10145 s/.\{148\}/&'"$ac_delim"'/g
10150 s/["\\]/\\&/g; s/^/"/; s/$/"/p
10153 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
10155 ' <confdefs.h | sed '
10156 s/'"$ac_delim"'/"\\\
10157 "/g' >>$CONFIG_STATUS || ac_write_fail=1
10159 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10160 for (key in D) D_is_set[key] = 1
10163 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10165 split(line, arg, " ")
10166 if (arg[1] == "#") {
10170 defundef = substr(arg[1], 2)
10173 split(mac1, mac2, "(") #)
10175 prefix = substr(line, 1, index(line, defundef) - 1)
10176 if (D_is_set[macro]) {
10177 # Preserve the white space surrounding the "#".
10178 print prefix "define", macro P[macro] D[macro]
10181 # Replace #undef with comments. This is necessary, for example,
10182 # in the case of _POSIX_SOURCE, which is predefined and required
10183 # on some systems where configure will not decide to define it.
10184 if (defundef == "undef") {
10185 print "/*", prefix defundef, macro, "*/"
10193 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10194 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
10195 fi # test -n "$CONFIG_HEADERS"
10198 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
10203 :[FHLC]) ac_mode=$ac_tag; continue;;
10205 case $ac_mode$ac_tag in
10207 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
10208 :[FH]-) ac_tag=-:-;;
10209 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10226 -) ac_f="$ac_tmp/stdin";;
10227 *) # Look for the file first in the build tree, then in the source tree
10228 # (if the path is not absolute). The absolute path cannot be DOS-style,
10229 # because $ac_f cannot contain `:'.
10233 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10235 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
10237 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10238 as_fn_append ac_file_inputs " '$ac_f'"
10241 # Let's still pretend it is `configure' which instantiates (i.e., don't
10242 # use $as_me), people would be surprised to read:
10243 # /* config.h. Generated by config.status. */
10244 configure_input='Generated from '`
10245 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10247 if test x"$ac_file" != x-; then
10248 configure_input="$ac_file. $configure_input"
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10250 $as_echo "$as_me: creating $ac_file" >&6;}
10252 # Neutralize special characters interpreted by sed in replacement strings.
10253 case $configure_input in #(
10254 *\&* | *\|* | *\\* )
10255 ac_sed_conf_input=`$as_echo "$configure_input" |
10256 sed 's/[\\\\&|]/\\\\&/g'`;; #(
10257 *) ac_sed_conf_input=$configure_input;;
10261 *:-:* | *:-) cat >"$ac_tmp/stdin" \
10262 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
10267 ac_dir=`$as_dirname -- "$ac_file" ||
10268 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10269 X"$ac_file" : 'X\(//\)[^/]' \| \
10270 X"$ac_file" : 'X\(//\)$' \| \
10271 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10272 $as_echo X"$ac_file" |
10273 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10277 /^X\(\/\/\)[^/].*/{
10290 as_dir="$ac_dir"; as_fn_mkdir_p
10294 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10296 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10297 # A ".." for each directory in $ac_dir_suffix.
10298 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10299 case $ac_top_builddir_sub in
10300 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10301 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10304 ac_abs_top_builddir=$ac_pwd
10305 ac_abs_builddir=$ac_pwd$ac_dir_suffix
10306 # for backward compatibility:
10307 ac_top_builddir=$ac_top_build_prefix
10310 .) # We are building in place.
10312 ac_top_srcdir=$ac_top_builddir_sub
10313 ac_abs_top_srcdir=$ac_pwd ;;
10314 [\\/]* | ?:[\\/]* ) # Absolute name.
10315 ac_srcdir=$srcdir$ac_dir_suffix;
10316 ac_top_srcdir=$srcdir
10317 ac_abs_top_srcdir=$srcdir ;;
10318 *) # Relative name.
10319 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10320 ac_top_srcdir=$ac_top_build_prefix$srcdir
10321 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10323 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10333 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10334 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
10336 ac_MKDIR_P=$MKDIR_P
10338 [\\/$]* | ?:[\\/]* ) ;;
10339 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
10343 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10344 # If the template does not know about datarootdir, expand it.
10345 # FIXME: This hack should be removed a few years after 2.60.
10346 ac_datarootdir_hack=; ac_datarootdir_seen=
10357 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
10358 *datarootdir*) ac_datarootdir_seen=yes;;
10359 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10360 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10361 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10363 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10364 ac_datarootdir_hack='
10365 s&@datadir@&$datadir&g
10366 s&@docdir@&$docdir&g
10367 s&@infodir@&$infodir&g
10368 s&@localedir@&$localedir&g
10369 s&@mandir@&$mandir&g
10370 s&\\\${datarootdir}&$datarootdir&g' ;;
10374 # Neutralize VPATH when `$srcdir' = `.'.
10375 # Shell code in configure.ac might set extrasub.
10376 # FIXME: do we really want to maintain this feature?
10377 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10378 ac_sed_extra="$ac_vpsub
10381 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10383 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10384 s|@configure_input@|$ac_sed_conf_input|;t t
10385 s&@top_builddir@&$ac_top_builddir_sub&;t t
10386 s&@top_build_prefix@&$ac_top_build_prefix&;t t
10387 s&@srcdir@&$ac_srcdir&;t t
10388 s&@abs_srcdir@&$ac_abs_srcdir&;t t
10389 s&@top_srcdir@&$ac_top_srcdir&;t t
10390 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10391 s&@builddir@&$ac_builddir&;t t
10392 s&@abs_builddir@&$ac_abs_builddir&;t t
10393 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10394 s&@INSTALL@&$ac_INSTALL&;t t
10395 s&@MKDIR_P@&$ac_MKDIR_P&;t t
10396 $ac_datarootdir_hack
10398 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
10399 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10401 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10402 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
10403 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
10404 "$ac_tmp/out"`; test -z "$ac_out"; } &&
10405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10406 which seems to be undefined. Please make sure it is defined" >&5
10407 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10408 which seems to be undefined. Please make sure it is defined" >&2;}
10410 rm -f "$ac_tmp/stdin"
10412 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
10413 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
10415 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10421 if test x"$ac_file" != x-; then
10423 $as_echo "/* $configure_input */" \
10424 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
10425 } >"$ac_tmp/config.h" \
10426 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10427 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
10428 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
10429 $as_echo "$as_me: $ac_file is unchanged" >&6;}
10432 mv "$ac_tmp/config.h" "$ac_file" \
10433 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10436 $as_echo "/* $configure_input */" \
10437 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
10438 || as_fn_error $? "could not create -" "$LINENO" 5
10440 # Compute "$ac_file"'s index in $config_headers.
10443 for _am_header in $config_headers :; do
10444 case $_am_header in
10445 $_am_arg | $_am_arg:* )
10448 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10451 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
10452 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10453 X"$_am_arg" : 'X\(//\)[^/]' \| \
10454 X"$_am_arg" : 'X\(//\)$' \| \
10455 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
10456 $as_echo X"$_am_arg" |
10457 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10461 /^X\(\/\/\)[^/].*/{
10473 s/.*/./; q'`/stamp-h$_am_stamp_count
10476 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
10477 $as_echo "$as_me: executing $ac_file commands" >&6;}
10482 case $ac_file$ac_mode in
10483 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
10484 # Older Autoconf quotes --file arguments for eval, but not when files
10485 # are listed without --file. Let's play safe and only enable the eval
10486 # if we detect the quoting.
10487 case $CONFIG_FILES in
10488 *\'*) eval set x "$CONFIG_FILES" ;;
10489 *) set x $CONFIG_FILES ;;
10494 # Strip MF so we end up with the name of the file.
10495 mf=`echo "$mf" | sed -e 's/:.*$//'`
10496 # Check whether this is an Automake generated Makefile or not.
10497 # We used to match only the files named 'Makefile.in', but
10498 # some people rename them; so instead we look at the file content.
10499 # Grep'ing the first line is not enough: some people post-process
10500 # each Makefile.in and add a new line on top of each file to say so.
10501 # Grep'ing the whole file is not good either: AIX grep has a line
10502 # limit of 2048, but all sed's we know have understand at least 4000.
10503 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
10504 dirpart=`$as_dirname -- "$mf" ||
10505 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10506 X"$mf" : 'X\(//\)[^/]' \| \
10507 X"$mf" : 'X\(//\)$' \| \
10508 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
10510 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10514 /^X\(\/\/\)[^/].*/{
10530 # Extract the definition of DEPDIR, am__include, and am__quote
10531 # from the Makefile without running 'make'.
10532 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
10533 test -z "$DEPDIR" && continue
10534 am__include=`sed -n 's/^am__include = //p' < "$mf"`
10535 test -z "$am__include" && continue
10536 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
10537 # Find all dependency output files, they are included files with
10538 # $(DEPDIR) in their names. We invoke sed twice because it is the
10539 # simplest approach to changing $(DEPDIR) to its actual value in the
10541 for file in `sed -n "
10542 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
10543 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
10544 # Make sure the directory exists.
10545 test -f "$dirpart/$file" && continue
10546 fdir=`$as_dirname -- "$file" ||
10547 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10548 X"$file" : 'X\(//\)[^/]' \| \
10549 X"$file" : 'X\(//\)$' \| \
10550 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
10551 $as_echo X"$file" |
10552 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10556 /^X\(\/\/\)[^/].*/{
10569 as_dir=$dirpart/$fdir; as_fn_mkdir_p
10570 # echo "creating $dirpart/$file"
10571 echo '# dummy' > "$dirpart/$file"
10576 "po-directories":C)
10577 for ac_file in $CONFIG_FILES; do
10578 # Support "outfile[:infile[:infile...]]"
10580 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10582 # PO directories have a Makefile.in generated from Makefile.in.in.
10583 case "$ac_file" in */Makefile.in)
10584 # Adjust a relative srcdir.
10585 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
10586 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
10587 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
10588 # In autoconf-2.13 it is called $ac_given_srcdir.
10589 # In autoconf-2.50 it is called $srcdir.
10590 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
10591 case "$ac_given_srcdir" in
10592 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
10593 /*) top_srcdir="$ac_given_srcdir" ;;
10594 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
10596 # Treat a directory as a PO directory if and only if it has a
10597 # POTFILES.in file. This allows packages to have multiple PO
10598 # directories under different names or in different locations.
10599 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
10600 rm -f "$ac_dir/POTFILES"
10601 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
10602 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
10603 POMAKEFILEDEPS="POTFILES.in"
10604 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
10605 # on $ac_dir but don't depend on user-specified configuration
10607 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
10608 # The LINGUAS file contains the set of available languages.
10609 if test -n "$OBSOLETE_ALL_LINGUAS"; then
10610 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
10612 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
10613 # Hide the ALL_LINGUAS assigment from automake < 1.5.
10614 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
10615 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
10617 # The set of available languages was given in configure.in.
10618 # Hide the ALL_LINGUAS assigment from automake < 1.5.
10619 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
10622 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
10623 # Compute UPDATEPOFILES
10624 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
10625 # Compute DUMMYPOFILES
10626 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
10628 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
10629 case "$ac_given_srcdir" in
10631 *) srcdirpre='$(srcdir)/' ;;
10637 for lang in $ALL_LINGUAS; do
10638 POFILES="$POFILES $srcdirpre$lang.po"
10639 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
10640 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
10641 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
10643 # CATALOGS depends on both $ac_dir and the user's LINGUAS
10644 # environment variable.
10646 if test -n "$ALL_LINGUAS"; then
10647 for presentlang in $ALL_LINGUAS; do
10649 if test "%UNSET%" != "$LINGUAS"; then
10650 desiredlanguages="$LINGUAS"
10652 desiredlanguages="$ALL_LINGUAS"
10654 for desiredlang in $desiredlanguages; do
10655 # Use the presentlang catalog if desiredlang is
10656 # a. equal to presentlang, or
10657 # b. a variant of presentlang (because in this case,
10658 # presentlang can be used as a fallback for messages
10659 # which are not translated in the desiredlang catalog).
10660 case "$desiredlang" in
10661 "$presentlang"*) useit=yes;;
10664 if test $useit = yes; then
10665 INST_LINGUAS="$INST_LINGUAS $presentlang"
10670 if test -n "$INST_LINGUAS"; then
10671 for lang in $INST_LINGUAS; do
10672 CATALOGS="$CATALOGS $lang.gmo"
10675 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
10676 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"
10677 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
10678 if test -f "$f"; then
10680 *.orig | *.bak | *~) ;;
10681 *) cat "$f" >> "$ac_dir/Makefile" ;;
10696 ac_clean_files=$ac_clean_files_save
10698 test $ac_write_fail = 0 ||
10699 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
10702 # configure is writing to config.log, and then calls config.status.
10703 # config.status does its own redirection, appending to config.log.
10704 # Unfortunately, on DOS this fails, as config.log is still kept open
10705 # by configure, so config.status won't be able to write to it; its
10706 # output is simply discarded. So we exec the FD to /dev/null,
10707 # effectively closing config.log, so it can be properly (re)opened and
10708 # appended to by config.status. When coming back to configure, we
10709 # need to make the FD available again.
10710 if test "$no_create" != yes; then
10712 ac_config_status_args=
10713 test "$silent" = yes &&
10714 ac_config_status_args="$ac_config_status_args --quiet"
10716 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10718 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10719 # would make configure fail if this is the last instruction.
10720 $ac_cs_success || as_fn_exit 1
10722 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
10723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10724 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}