|
|
|
@ -11,6 +11,12 @@
|
|
|
|
|
ac_help=
|
|
|
|
|
ac_default_prefix=/usr/local
|
|
|
|
|
# Any additions from configure.in:
|
|
|
|
|
ac_help="$ac_help
|
|
|
|
|
--with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
|
|
|
|
|
ac_help="$ac_help
|
|
|
|
|
--with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
|
|
|
|
|
ac_help="$ac_help
|
|
|
|
|
--disable-gtktest Do not try to compile and run a test GTK program"
|
|
|
|
|
|
|
|
|
|
# Initialize some variables set by options.
|
|
|
|
|
# The variables have the same names as the options, with
|
|
|
|
@ -548,7 +554,7 @@ ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
|
|
|
|
|
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
|
|
|
|
# ./install, which can be erroneously created by make from ./install.sh.
|
|
|
|
|
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
|
|
|
|
|
echo "configure:552: checking for a BSD compatible install" >&5
|
|
|
|
|
echo "configure:558: checking for a BSD compatible install" >&5
|
|
|
|
|
if test -z "$INSTALL"; then
|
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
|
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
@ -601,7 +607,7 @@ test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
|
|
|
|
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
|
|
|
|
|
|
|
|
|
|
echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
|
|
|
|
|
echo "configure:605: checking whether build environment is sane" >&5
|
|
|
|
|
echo "configure:611: checking whether build environment is sane" >&5
|
|
|
|
|
# Just in case
|
|
|
|
|
sleep 1
|
|
|
|
|
echo timestamp > conftestfile
|
|
|
|
@ -658,7 +664,7 @@ test "$program_suffix" != NONE &&
|
|
|
|
|
test "$program_transform_name" = "" && program_transform_name="s,x,x,"
|
|
|
|
|
|
|
|
|
|
echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
|
|
|
|
|
echo "configure:662: checking whether ${MAKE-make} sets \${MAKE}" >&5
|
|
|
|
|
echo "configure:668: checking whether ${MAKE-make} sets \${MAKE}" >&5
|
|
|
|
|
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
|
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
|
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
@ -704,7 +710,7 @@ EOF
|
|
|
|
|
|
|
|
|
|
missing_dir=`cd $ac_aux_dir && pwd`
|
|
|
|
|
echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
|
|
|
|
|
echo "configure:708: checking for working aclocal" >&5
|
|
|
|
|
echo "configure:714: checking for working aclocal" >&5
|
|
|
|
|
# Run test in a subshell; some versions of sh will print an error if
|
|
|
|
|
# an executable is not found, even if stderr is redirected.
|
|
|
|
|
# Redirect stdin to placate older versions of autoconf. Sigh.
|
|
|
|
@ -717,7 +723,7 @@ else
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
|
|
|
|
|
echo "configure:721: checking for working autoconf" >&5
|
|
|
|
|
echo "configure:727: checking for working autoconf" >&5
|
|
|
|
|
# Run test in a subshell; some versions of sh will print an error if
|
|
|
|
|
# an executable is not found, even if stderr is redirected.
|
|
|
|
|
# Redirect stdin to placate older versions of autoconf. Sigh.
|
|
|
|
@ -730,7 +736,7 @@ else
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
echo $ac_n "checking for working automake""... $ac_c" 1>&6
|
|
|
|
|
echo "configure:734: checking for working automake" >&5
|
|
|
|
|
echo "configure:740: checking for working automake" >&5
|
|
|
|
|
# Run test in a subshell; some versions of sh will print an error if
|
|
|
|
|
# an executable is not found, even if stderr is redirected.
|
|
|
|
|
# Redirect stdin to placate older versions of autoconf. Sigh.
|
|
|
|
@ -743,7 +749,7 @@ else
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
|
|
|
|
|
echo "configure:747: checking for working autoheader" >&5
|
|
|
|
|
echo "configure:753: checking for working autoheader" >&5
|
|
|
|
|
# Run test in a subshell; some versions of sh will print an error if
|
|
|
|
|
# an executable is not found, even if stderr is redirected.
|
|
|
|
|
# Redirect stdin to placate older versions of autoconf. Sigh.
|
|
|
|
@ -756,7 +762,7 @@ else
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
|
|
|
|
|
echo "configure:760: checking for working makeinfo" >&5
|
|
|
|
|
echo "configure:766: checking for working makeinfo" >&5
|
|
|
|
|
# Run test in a subshell; some versions of sh will print an error if
|
|
|
|
|
# an executable is not found, even if stderr is redirected.
|
|
|
|
|
# Redirect stdin to placate older versions of autoconf. Sigh.
|
|
|
|
@ -776,7 +782,7 @@ fi
|
|
|
|
|
# Extract the first word of "gcc", so it can be a program name with args.
|
|
|
|
|
set dummy gcc; ac_word=$2
|
|
|
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|
|
|
|
echo "configure:780: checking for $ac_word" >&5
|
|
|
|
|
echo "configure:786: checking for $ac_word" >&5
|
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
|
else
|
|
|
|
@ -805,7 +811,7 @@ if test -z "$CC"; then
|
|
|
|
|
# Extract the first word of "cc", so it can be a program name with args.
|
|
|
|
|
set dummy cc; ac_word=$2
|
|
|
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|
|
|
|
echo "configure:809: checking for $ac_word" >&5
|
|
|
|
|
echo "configure:815: checking for $ac_word" >&5
|
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
|
else
|
|
|
|
@ -853,7 +859,7 @@ fi
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
|
|
|
|
|
echo "configure:857: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
|
|
|
|
|
echo "configure:863: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
|
|
|
|
|
|
|
|
|
|
ac_ext=c
|
|
|
|
|
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
|
|
|
@ -863,11 +869,11 @@ ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS
|
|
|
|
|
cross_compiling=$ac_cv_prog_cc_cross
|
|
|
|
|
|
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
|
#line 867 "configure"
|
|
|
|
|
#line 873 "configure"
|
|
|
|
|
#include "confdefs.h"
|
|
|
|
|
main(){return(0);}
|
|
|
|
|
EOF
|
|
|
|
|
if { (eval echo configure:871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
|
|
|
if { (eval echo configure:877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
|
|
|
ac_cv_prog_cc_works=yes
|
|
|
|
|
# If we can't run a trivial program, we are probably using a cross compiler.
|
|
|
|
|
if (./conftest; exit) 2>/dev/null; then
|
|
|
|
@ -887,12 +893,12 @@ if test $ac_cv_prog_cc_works = no; then
|
|
|
|
|
{ echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
|
|
|
|
|
fi
|
|
|
|
|
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
|
|
|
|
|
echo "configure:891: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
|
|
|
|
|
echo "configure:897: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
|
|
|
|
|
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
|
|
|
|
|
cross_compiling=$ac_cv_prog_cc_cross
|
|
|
|
|
|
|
|
|
|
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
|
|
|
|
|
echo "configure:896: checking whether we are using GNU C" >&5
|
|
|
|
|
echo "configure:902: checking whether we are using GNU C" >&5
|
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
|
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
|
else
|
|
|
|
@ -901,7 +907,7 @@ else
|
|
|
|
|
yes;
|
|
|
|
|
#endif
|
|
|
|
|
EOF
|
|
|
|
|
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:905: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
|
|
|
|
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:911: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
|
|
|
|
ac_cv_prog_gcc=yes
|
|
|
|
|
else
|
|
|
|
|
ac_cv_prog_gcc=no
|
|
|
|
@ -916,7 +922,7 @@ if test $ac_cv_prog_gcc = yes; then
|
|
|
|
|
ac_save_CFLAGS="$CFLAGS"
|
|
|
|
|
CFLAGS=
|
|
|
|
|
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
|
|
|
|
|
echo "configure:920: checking whether ${CC-cc} accepts -g" >&5
|
|
|
|
|
echo "configure:926: checking whether ${CC-cc} accepts -g" >&5
|
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
|
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
|
else
|
|
|
|
@ -946,7 +952,7 @@ fi
|
|
|
|
|
# Extract the first word of "ranlib", so it can be a program name with args.
|
|
|
|
|
set dummy ranlib; ac_word=$2
|
|
|
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|
|
|
|
echo "configure:950: checking for $ac_word" >&5
|
|
|
|
|
echo "configure:956: checking for $ac_word" >&5
|
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
|
else
|
|
|
|
@ -973,9 +979,254 @@ else
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# GTK checks (copied from ethereal)
|
|
|
|
|
# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
|
|
|
|
|
if test "${with_gtk_prefix+set}" = set; then
|
|
|
|
|
withval="$with_gtk_prefix"
|
|
|
|
|
gtk_config_prefix="$withval"
|
|
|
|
|
else
|
|
|
|
|
gtk_config_prefix=""
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
|
|
|
|
|
if test "${with_gtk_exec_prefix+set}" = set; then
|
|
|
|
|
withval="$with_gtk_exec_prefix"
|
|
|
|
|
gtk_config_exec_prefix="$withval"
|
|
|
|
|
else
|
|
|
|
|
gtk_config_exec_prefix=""
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
# Check whether --enable-gtktest or --disable-gtktest was given.
|
|
|
|
|
if test "${enable_gtktest+set}" = set; then
|
|
|
|
|
enableval="$enable_gtktest"
|
|
|
|
|
:
|
|
|
|
|
else
|
|
|
|
|
enable_gtktest=yes
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if test x$gtk_config_exec_prefix != x ; then
|
|
|
|
|
gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
|
|
|
|
|
if test x${GTK_CONFIG+set} != xset ; then
|
|
|
|
|
GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
|
|
|
|
|
fi
|
|
|
|
|
fi
|
|
|
|
|
if test x$gtk_config_prefix != x ; then
|
|
|
|
|
gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
|
|
|
|
|
if test x${GTK_CONFIG+set} != xset ; then
|
|
|
|
|
GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
|
|
|
|
|
fi
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
# Extract the first word of "gtk-config", so it can be a program name with args.
|
|
|
|
|
set dummy gtk-config; ac_word=$2
|
|
|
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|
|
|
|
echo "configure:1025: checking for $ac_word" >&5
|
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
|
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
|
else
|
|
|
|
|
case "$GTK_CONFIG" in
|
|
|
|
|
/*)
|
|
|
|
|
ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
|
|
|
|
|
;;
|
|
|
|
|
*)
|
|
|
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
|
|
|
|
|
for ac_dir in $PATH; do
|
|
|
|
|
test -z "$ac_dir" && ac_dir=.
|
|
|
|
|
if test -f $ac_dir/$ac_word; then
|
|
|
|
|
ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
|
|
|
|
|
break
|
|
|
|
|
fi
|
|
|
|
|
done
|
|
|
|
|
IFS="$ac_save_ifs"
|
|
|
|
|
test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
|
|
|
|
|
;;
|
|
|
|
|
esac
|
|
|
|
|
fi
|
|
|
|
|
GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
|
|
|
|
|
if test -n "$GTK_CONFIG"; then
|
|
|
|
|
echo "$ac_t""$GTK_CONFIG" 1>&6
|
|
|
|
|
else
|
|
|
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
min_gtk_version=1.0.0
|
|
|
|
|
echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
|
|
|
|
|
echo "configure:1056: checking for GTK - version >= $min_gtk_version" >&5
|
|
|
|
|
no_gtk=""
|
|
|
|
|
if test "$GTK_CONFIG" = "no" ; then
|
|
|
|
|
no_gtk=yes
|
|
|
|
|
else
|
|
|
|
|
GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
|
|
|
|
|
GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
|
|
|
|
|
gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
|
|
|
|
|
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
|
|
|
|
|
gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
|
|
|
|
|
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
|
|
|
|
|
gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
|
|
|
|
|
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
|
|
|
|
|
if test "x$enable_gtktest" = "xyes" ; then
|
|
|
|
|
ac_save_CFLAGS="$CFLAGS"
|
|
|
|
|
ac_save_LIBS="$LIBS"
|
|
|
|
|
CFLAGS="$CFLAGS $GTK_CFLAGS"
|
|
|
|
|
LIBS="$LIBS $GTK_LIBS"
|
|
|
|
|
rm -f conf.gtktest
|
|
|
|
|
if test "$cross_compiling" = yes; then
|
|
|
|
|
echo $ac_n "cross compiling; assumed OK... $ac_c"
|
|
|
|
|
else
|
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
|
#line 1079 "configure"
|
|
|
|
|
#include "confdefs.h"
|
|
|
|
|
|
|
|
|
|
#include <gtk/gtk.h>
|
|
|
|
|
#include <stdio.h>
|
|
|
|
|
|
|
|
|
|
int
|
|
|
|
|
main ()
|
|
|
|
|
{
|
|
|
|
|
int major, minor, micro;
|
|
|
|
|
char *tmp_version;
|
|
|
|
|
|
|
|
|
|
system ("touch conf.gtktest");
|
|
|
|
|
|
|
|
|
|
/* HP/UX 9 (%@#!) writes to sscanf strings */
|
|
|
|
|
tmp_version = g_strdup("$min_gtk_version");
|
|
|
|
|
if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
|
|
|
|
|
printf("%s, bad version string\n", "$min_gtk_version");
|
|
|
|
|
exit(1);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if ((gtk_major_version != $gtk_config_major_version) ||
|
|
|
|
|
(gtk_minor_version != $gtk_config_minor_version) ||
|
|
|
|
|
(gtk_micro_version != $gtk_config_micro_version))
|
|
|
|
|
{
|
|
|
|
|
printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
|
|
|
|
|
$gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
|
|
|
|
|
gtk_major_version, gtk_minor_version, gtk_micro_version);
|
|
|
|
|
printf ("*** was found! If gtk-config was correct, then it is best\n");
|
|
|
|
|
printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
|
|
|
|
|
printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
|
|
|
|
|
printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
|
|
|
|
|
printf("*** required on your system.\n");
|
|
|
|
|
printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
|
|
|
|
|
printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
|
|
|
|
|
printf("*** before re-running configure\n");
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
if ((gtk_major_version > major) ||
|
|
|
|
|
((gtk_major_version == major) && (gtk_minor_version > minor)) ||
|
|
|
|
|
((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
|
|
|
|
|
{
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
|
|
|
|
|
gtk_major_version, gtk_minor_version, gtk_micro_version);
|
|
|
|
|
printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
|
|
|
|
|
major, minor, micro);
|
|
|
|
|
printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
|
|
|
|
|
printf("***\n");
|
|
|
|
|
printf("*** If you have already installed a sufficiently new version, this error\n");
|
|
|
|
|
printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
|
|
|
|
|
printf("*** being found. The easiest way to fix this is to remove the old version\n");
|
|
|
|
|
printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
|
|
|
|
|
printf("*** correct copy of gtk-config. (In this case, you will have to\n");
|
|
|
|
|
printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
|
|
|
|
|
printf("*** so that the correct libraries are found at run-time))\n");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return 1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
EOF
|
|
|
|
|
if { (eval echo configure:1145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
|
|
|
|
|
then
|
|
|
|
|
:
|
|
|
|
|
else
|
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
|
rm -fr conftest*
|
|
|
|
|
no_gtk=yes
|
|
|
|
|
fi
|
|
|
|
|
rm -fr conftest*
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
CFLAGS="$ac_save_CFLAGS"
|
|
|
|
|
LIBS="$ac_save_LIBS"
|
|
|
|
|
fi
|
|
|
|
|
fi
|
|
|
|
|
if test "x$no_gtk" = x ; then
|
|
|
|
|
echo "$ac_t""yes" 1>&6
|
|
|
|
|
CFLAGS="$CFLAGS $GTK_CFLAGS" LIBS="$LIBS $GTK_LIBS"
|
|
|
|
|
else
|
|
|
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
|
if test "$GTK_CONFIG" = "no" ; then
|
|
|
|
|
echo "*** The gtk-config script installed by GTK could not be found"
|
|
|
|
|
echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
|
|
|
|
|
echo "*** your path, or set the GTK_CONFIG environment variable to the"
|
|
|
|
|
echo "*** full path to gtk-config."
|
|
|
|
|
else
|
|
|
|
|
if test -f conf.gtktest ; then
|
|
|
|
|
:
|
|
|
|
|
else
|
|
|
|
|
echo "*** Could not run GTK test program, checking why..."
|
|
|
|
|
CFLAGS="$CFLAGS $GTK_CFLAGS"
|
|
|
|
|
LIBS="$LIBS $GTK_LIBS"
|
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
|
#line 1179 "configure"
|
|
|
|
|
#include "confdefs.h"
|
|
|
|
|
|
|
|
|
|
#include <gtk/gtk.h>
|
|
|
|
|
#include <stdio.h>
|
|
|
|
|
|
|
|
|
|
int main() {
|
|
|
|
|
return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
|
|
|
|
|
; return 0; }
|
|
|
|
|
EOF
|
|
|
|
|
if { (eval echo configure:1189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
|
|
|
rm -rf conftest*
|
|
|
|
|
echo "*** The test program compiled, but did not run. This usually means"
|
|
|
|
|
echo "*** that the run-time linker is not finding GTK or finding the wrong"
|
|
|
|
|
echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
|
|
|
|
|
echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
|
|
|
|
|
echo "*** to the installed location Also, make sure you have run ldconfig if that"
|
|
|
|
|
echo "*** is required on your system"
|
|
|
|
|
echo "***"
|
|
|
|
|
echo "*** If you have an old version installed, it is best to remove it, although"
|
|
|
|
|
echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
|
|
|
|
|
echo "***"
|
|
|
|
|
echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
|
|
|
|
|
echo "*** came with the system with the command"
|
|
|
|
|
echo "***"
|
|
|
|
|
echo "*** rpm --erase --nodeps gtk gtk-devel"
|
|
|
|
|
else
|
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
|
rm -rf conftest*
|
|
|
|
|
echo "*** The test program failed to compile or link. See the file config.log for the"
|
|
|
|
|
echo "*** exact error that occured. This usually means GTK was incorrectly installed"
|
|
|
|
|
echo "*** or that you have moved GTK since it was installed. In the latter case, you"
|
|
|
|
|
echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
|
|
|
|
|
fi
|
|
|
|
|
rm -f conftest*
|
|
|
|
|
CFLAGS="$ac_save_CFLAGS"
|
|
|
|
|
LIBS="$ac_save_LIBS"
|
|
|
|
|
fi
|
|
|
|
|
fi
|
|
|
|
|
GTK_CFLAGS=""
|
|
|
|
|
GTK_LIBS=""
|
|
|
|
|
{ echo "configure: error: GTK+ distribution not found." 1>&2; exit 1; }
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
rm -f conf.gtktest
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Pcap checks (copied from ethereal)
|
|
|
|
|
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
|
|
|
|
|
echo "configure:979: checking how to run the C preprocessor" >&5
|
|
|
|
|
echo "configure:1230: checking how to run the C preprocessor" >&5
|
|
|
|
|
# On Suns, sometimes $CPP names a directory.
|
|
|
|
|
if test -n "$CPP" && test -d "$CPP"; then
|
|
|
|
|
CPP=
|
|
|
|
@ -990,13 +1241,13 @@ else
|
|
|
|
|
# On the NeXT, cc -E runs the code through the compiler's parser,
|
|
|
|
|
# not just through cpp.
|
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
|
#line 994 "configure"
|
|
|
|
|
#line 1245 "configure"
|
|
|
|
|
#include "confdefs.h"
|
|
|
|
|
#include <assert.h>
|
|
|
|
|
Syntax Error
|
|
|
|
|
EOF
|
|
|
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
|
|
|
{ (eval echo configure:1000: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
|
|
|
{ (eval echo configure:1251: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
|
|
|
ac_err=`grep -v '^ *+' conftest.out`
|
|
|
|
|
if test -z "$ac_err"; then
|
|
|
|
|
:
|
|
|
|
@ -1007,13 +1258,13 @@ else
|
|
|
|
|
rm -rf conftest*
|
|
|
|
|
CPP="${CC-cc} -E -traditional-cpp"
|
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
|
#line 1011 "configure"
|
|
|
|
|
#line 1262 "configure"
|
|
|
|
|
#include "confdefs.h"
|
|
|
|
|
#include <assert.h>
|
|
|
|
|
Syntax Error
|
|
|
|
|
EOF
|
|
|
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
|
|
|
{ (eval echo configure:1017: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
|
|
|
{ (eval echo configure:1268: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
|
|
|
ac_err=`grep -v '^ *+' conftest.out`
|
|
|
|
|
if test -z "$ac_err"; then
|
|
|
|
|
:
|
|
|
|
@ -1037,17 +1288,17 @@ echo "$ac_t""$CPP" 1>&6
|
|
|
|
|
|
|
|
|
|
ac_safe=`echo "pcap.h" | sed 'y%./+-%__p_%'`
|
|
|
|
|
echo $ac_n "checking for pcap.h""... $ac_c" 1>&6
|
|
|
|
|
echo "configure:1041: checking for pcap.h" >&5
|
|
|
|
|
echo "configure:1292: checking for pcap.h" >&5
|
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
|
else
|
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
|
#line 1046 "configure"
|
|
|
|
|
#line 1297 "configure"
|
|
|
|
|
#include "confdefs.h"
|
|
|
|
|
#include <pcap.h>
|
|
|
|
|
EOF
|
|
|
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
|
|
|
{ (eval echo configure:1051: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
|
|
|
{ (eval echo configure:1302: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
|
|
|
ac_err=`grep -v '^ *+' conftest.out`
|
|
|
|
|
if test -z "$ac_err"; then
|
|
|
|
|
rm -rf conftest*
|
|
|
|
@ -1071,12 +1322,12 @@ fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
|
|
|
|
|
echo "configure:1075: checking for ANSI C header files" >&5
|
|
|
|
|
echo "configure:1326: checking for ANSI C header files" >&5
|
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
|
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
|
else
|
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
|
#line 1080 "configure"
|
|
|
|
|
#line 1331 "configure"
|
|
|
|
|
#include "confdefs.h"
|
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
#include <stdarg.h>
|
|
|
|
@ -1084,7 +1335,7 @@ else
|
|
|
|
|
#include <float.h>
|
|
|
|
|
EOF
|
|
|
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
|
|
|
{ (eval echo configure:1088: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
|
|
|
{ (eval echo configure:1339: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
|
|
|
ac_err=`grep -v '^ *+' conftest.out`
|
|
|
|
|
if test -z "$ac_err"; then
|
|
|
|
|
rm -rf conftest*
|
|
|
|
@ -1101,7 +1352,7 @@ rm -f conftest*
|
|
|
|
|
if test $ac_cv_header_stdc = yes; then
|
|
|
|
|
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
|
#line 1105 "configure"
|
|
|
|
|
#line 1356 "configure"
|
|
|
|
|
#include "confdefs.h"
|
|
|
|
|
#include <string.h>
|
|
|
|
|
EOF
|
|
|
|
@ -1119,7 +1370,7 @@ fi
|
|
|
|
|
if test $ac_cv_header_stdc = yes; then
|
|
|
|
|
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
|
#line 1123 "configure"
|
|
|
|
|
#line 1374 "configure"
|
|
|
|
|
#include "confdefs.h"
|
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
EOF
|
|
|
|
@ -1140,7 +1391,7 @@ if test "$cross_compiling" = yes; then
|
|
|
|
|
:
|
|
|
|
|
else
|
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
|
#line 1144 "configure"
|
|
|
|
|
#line 1395 "configure"
|
|
|
|
|
#include "confdefs.h"
|
|
|
|
|
#include <ctype.h>
|
|
|
|
|
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
|
|
|
@ -1151,7 +1402,7 @@ if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
|
|
|
|
|
exit (0); }
|
|
|
|
|
|
|
|
|
|
EOF
|
|
|
|
|
if { (eval echo configure:1155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
|
|
|
|
|
if { (eval echo configure:1406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
|
|
|
|
|
then
|
|
|
|
|
:
|
|
|
|
|
else
|
|
|
|
@ -1178,17 +1429,17 @@ for ac_hdr in unistd.h
|
|
|
|
|
do
|
|
|
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
|
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
|
|
|
echo "configure:1182: checking for $ac_hdr" >&5
|
|
|
|
|
echo "configure:1433: checking for $ac_hdr" >&5
|
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
|
else
|
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
|
#line 1187 "configure"
|
|
|
|
|
#line 1438 "configure"
|
|
|
|
|
#include "confdefs.h"
|
|
|
|
|
#include <$ac_hdr>
|
|
|
|
|
EOF
|
|
|
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
|
|
|
{ (eval echo configure:1192: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
|
|
|
{ (eval echo configure:1443: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
|
|
|
ac_err=`grep -v '^ *+' conftest.out`
|
|
|
|
|
if test -z "$ac_err"; then
|
|
|
|
|
rm -rf conftest*
|
|
|
|
@ -1359,6 +1610,9 @@ s%@MAKEINFO@%$MAKEINFO%g
|
|
|
|
|
s%@SET_MAKE@%$SET_MAKE%g
|
|
|
|
|
s%@CC@%$CC%g
|
|
|
|
|
s%@RANLIB@%$RANLIB%g
|
|
|
|
|
s%@GTK_CONFIG@%$GTK_CONFIG%g
|
|
|
|
|
s%@GTK_CFLAGS@%$GTK_CFLAGS%g
|
|
|
|
|
s%@GTK_LIBS@%$GTK_LIBS%g
|
|
|
|
|
s%@CPP@%$CPP%g
|
|
|
|
|
|
|
|
|
|
CEOF
|
|
|
|
|