800
INSIDE_GNOME_COMMON_TRUE=
801
INSIDE_GNOME_COMMON_FALSE='#'
803
INSIDE_GNOME_COMMON_TRUE='#'
804
INSIDE_GNOME_COMMON_FALSE=
807
for k in macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
816
# Check whether --with-gnome-includes or --without-gnome-includes was given.
817
if test "${with_gnome_includes+set}" = set; then
818
withval="$with_gnome_includes"
820
CFLAGS="$CFLAGS -I$withval"
825
# Check whether --with-gnome-libs or --without-gnome-libs was given.
826
if test "${with_gnome_libs+set}" = set; then
827
withval="$with_gnome_libs"
829
LDFLAGS="$LDFLAGS -L$withval"
830
gnome_prefix=$withval
835
# Check whether --with-gnome or --without-gnome was given.
836
if test "${with_gnome+set}" = set; then
837
withval="$with_gnome"
838
if test x$withval = xyes; then
842
if test "x$withval" = xno; then
846
LDFLAGS="$LDFLAGS -L$withval/lib"
847
CFLAGS="$CFLAGS -I$withval/include"
848
gnome_prefix=$withval/lib
856
if test "x$want_gnome" = xyes; then
858
# Extract the first word of "gnome-config", so it can be a program name with args.
859
set dummy gnome-config; ac_word=$2
860
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
861
echo "configure:862: checking for $ac_word" >&5
862
if eval "test \"`echo '$''{'ac_cv_path_GNOME_CONFIG'+set}'`\" = set"; then
863
echo $ac_n "(cached) $ac_c" 1>&6
865
case "$GNOME_CONFIG" in
867
ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
870
ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a dos path.
873
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
875
for ac_dir in $ac_dummy; do
876
test -z "$ac_dir" && ac_dir=.
877
if test -f $ac_dir/$ac_word; then
878
ac_cv_path_GNOME_CONFIG="$ac_dir/$ac_word"
883
test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
887
GNOME_CONFIG="$ac_cv_path_GNOME_CONFIG"
888
if test -n "$GNOME_CONFIG"; then
889
echo "$ac_t""$GNOME_CONFIG" 1>&6
891
echo "$ac_t""no" 1>&6
894
if test "$GNOME_CONFIG" = "no"; then
895
no_gnome_config="yes"
897
echo $ac_n "checking if $GNOME_CONFIG works""... $ac_c" 1>&6
898
echo "configure:899: checking if $GNOME_CONFIG works" >&5
899
if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
900
echo "$ac_t""yes" 1>&6
901
GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"
902
GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
903
GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
906
echo "$ac_t""no" 1>&6
907
no_gnome_config="yes"
911
if test x$exec_prefix = xNONE; then
912
if test x$prefix = xNONE; then
913
gnome_prefix=$ac_default_prefix/lib
915
gnome_prefix=$prefix/lib
918
gnome_prefix=`eval echo \`echo $libdir\``
921
if test "$no_gnome_config" = "yes"; then
922
echo $ac_n "checking for gnomeConf.sh file in $gnome_prefix""... $ac_c" 1>&6
923
echo "configure:924: checking for gnomeConf.sh file in $gnome_prefix" >&5
924
if test -f $gnome_prefix/gnomeConf.sh; then
925
echo "$ac_t""found" 1>&6
926
echo "loading gnome configuration from" \
927
"$gnome_prefix/gnomeConf.sh"
928
. $gnome_prefix/gnomeConf.sh
931
echo "$ac_t""not found" 1>&6
932
if test xfail = xfail; then
933
{ echo "configure: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" 1>&2; exit 1; }
778
#AM_ACLOCAL_INCLUDE(macros)
941
782
# Extract the first word of "gcc", so it can be a program name with args.
942
783
set dummy gcc; ac_word=$2
943
784
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
944
echo "configure:945: checking for $ac_word" >&5
785
echo "configure:786: checking for $ac_word" >&5
945
786
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
946
787
echo $ac_n "(cached) $ac_c" 1>&6
1532
# Check whether --enable-compile-warnings or --disable-compile-warnings was given.
1533
if test "${enable_compile_warnings+set}" = set; then
1534
enableval="$enable_compile_warnings"
1537
enable_compile_warnings=minimum
1541
echo $ac_n "checking what warning flags to pass to the C compiler""... $ac_c" 1>&6
1542
echo "configure:1543: checking what warning flags to pass to the C compiler" >&5
1544
if test "x$enable_compile_warnings" != "xno"; then
1545
if test "x$GCC" = "xyes"; then
1548
*) warnCFLAGS="-Wall -Wno-unused" ;;
1551
## -W is not all that useful. And it cannot be controlled
1552
## with individual -Wno-xxx flags, unlike -Wall
1553
if test "x$enable_compile_warnings" = "xyes"; then
1554
warnCFLAGS="$warnCFLAGS -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith"
1558
echo "$ac_t""$warnCFLAGS" 1>&6
1560
# Check whether --enable-iso-c or --disable-iso-c was given.
1561
if test "${enable_iso_c+set}" = set; then
1562
enableval="$enable_iso_c"
1569
echo $ac_n "checking what language compliance flags to pass to the C compiler""... $ac_c" 1>&6
1570
echo "configure:1571: checking what language compliance flags to pass to the C compiler" >&5
1572
if test "x$enable_iso_c" != "xno"; then
1573
if test "x$GCC" = "xyes"; then
1576
*) complCFLAGS="$complCFLAGS -ansi" ;;
1580
*\ \ -pedantic\ \ *) ;;
1581
*) complCFLAGS="$complCFLAGS -pedantic" ;;
1585
echo "$ac_t""$complCFLAGS" 1>&6
1586
if test "x$cflags_set" != "xyes"; then
1587
CFLAGS="$CFLAGS $warnCFLAGS $complCFLAGS"
1594
echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
1595
echo "configure:1596: checking for pthread_create in -lpthread" >&5
1596
ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
1597
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1598
echo $ac_n "(cached) $ac_c" 1>&6
1600
ac_save_LIBS="$LIBS"
1601
LIBS="-lpthread $LIBS"
1602
cat > conftest.$ac_ext <<EOF
1603
#line 1604 "configure"
1604
#include "confdefs.h"
1605
/* Override any gcc2 internal prototype to avoid an error. */
1606
/* We use char because int might match the return type of a gcc2
1607
builtin and then its argument prototype would still apply. */
1608
char pthread_create();
1614
if { (eval echo configure:1615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1616
eval "ac_cv_lib_$ac_lib_var=yes"
1618
echo "configure: failed program was:" >&5
1619
cat conftest.$ac_ext >&5
1621
eval "ac_cv_lib_$ac_lib_var=no"
1624
LIBS="$ac_save_LIBS"
1627
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1628
echo "$ac_t""yes" 1>&6
1629
PTHREAD_LIB="-lpthread"
1631
echo "$ac_t""no" 1>&6
1632
echo $ac_n "checking for pthread_create in -lpthreads""... $ac_c" 1>&6
1633
echo "configure:1634: checking for pthread_create in -lpthreads" >&5
1634
ac_lib_var=`echo pthreads'_'pthread_create | sed 'y%./+-%__p_%'`
1635
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1636
echo $ac_n "(cached) $ac_c" 1>&6
1638
ac_save_LIBS="$LIBS"
1639
LIBS="-lpthreads $LIBS"
1640
cat > conftest.$ac_ext <<EOF
1641
#line 1642 "configure"
1642
#include "confdefs.h"
1643
/* Override any gcc2 internal prototype to avoid an error. */
1644
/* We use char because int might match the return type of a gcc2
1645
builtin and then its argument prototype would still apply. */
1646
char pthread_create();
1652
if { (eval echo configure:1653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1654
eval "ac_cv_lib_$ac_lib_var=yes"
1656
echo "configure: failed program was:" >&5
1657
cat conftest.$ac_ext >&5
1659
eval "ac_cv_lib_$ac_lib_var=no"
1662
LIBS="$ac_save_LIBS"
1665
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1666
echo "$ac_t""yes" 1>&6
1667
PTHREAD_LIB="-lpthreads"
1669
echo "$ac_t""no" 1>&6
1670
echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
1671
echo "configure:1672: checking for pthread_create in -lc_r" >&5
1672
ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
1673
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1674
echo $ac_n "(cached) $ac_c" 1>&6
1676
ac_save_LIBS="$LIBS"
1678
cat > conftest.$ac_ext <<EOF
1679
#line 1680 "configure"
1680
#include "confdefs.h"
1681
/* Override any gcc2 internal prototype to avoid an error. */
1682
/* We use char because int might match the return type of a gcc2
1683
builtin and then its argument prototype would still apply. */
1684
char pthread_create();
1690
if { (eval echo configure:1691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1692
eval "ac_cv_lib_$ac_lib_var=yes"
1694
echo "configure: failed program was:" >&5
1695
cat conftest.$ac_ext >&5
1697
eval "ac_cv_lib_$ac_lib_var=no"
1700
LIBS="$ac_save_LIBS"
1703
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1704
echo "$ac_t""yes" 1>&6
1707
echo "$ac_t""no" 1>&6
1708
echo $ac_n "checking for pthread_create""... $ac_c" 1>&6
1709
echo "configure:1710: checking for pthread_create" >&5
1710
if eval "test \"`echo '$''{'ac_cv_func_pthread_create'+set}'`\" = set"; then
1711
echo $ac_n "(cached) $ac_c" 1>&6
1713
cat > conftest.$ac_ext <<EOF
1714
#line 1715 "configure"
1715
#include "confdefs.h"
1716
/* System header to define __stub macros and hopefully few prototypes,
1717
which can conflict with char pthread_create(); below. */
1719
/* Override any gcc2 internal prototype to avoid an error. */
1720
/* We use char because int might match the return type of a gcc2
1721
builtin and then its argument prototype would still apply. */
1722
char pthread_create();
1726
/* The GNU C library defines this for functions which it implements
1727
to always fail with ENOSYS. Some functions are actually named
1728
something starting with __ and the normal name is an alias. */
1729
#if defined (__stub_pthread_create) || defined (__stub___pthread_create)
1737
if { (eval echo configure:1738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1739
eval "ac_cv_func_pthread_create=yes"
1741
echo "configure: failed program was:" >&5
1742
cat conftest.$ac_ext >&5
1744
eval "ac_cv_func_pthread_create=no"
1749
if eval "test \"`echo '$ac_cv_func_'pthread_create`\" = yes"; then
1750
echo "$ac_t""yes" 1>&6
1753
echo "$ac_t""no" 1>&6
1769
# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
1770
if test "${with_gtk_prefix+set}" = set; then
1771
withval="$with_gtk_prefix"
1772
gtk_config_prefix="$withval"
1774
gtk_config_prefix=""
1777
# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
1778
if test "${with_gtk_exec_prefix+set}" = set; then
1779
withval="$with_gtk_exec_prefix"
1780
gtk_config_exec_prefix="$withval"
1782
gtk_config_exec_prefix=""
1785
# Check whether --enable-gtktest or --disable-gtktest was given.
1786
if test "${enable_gtktest+set}" = set; then
1787
enableval="$enable_gtktest"
1798
glib_config_args="$glib_config_args gthread"
1803
if test x$gtk_config_exec_prefix != x ; then
1804
gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
1805
if test x${GTK_CONFIG+set} != xset ; then
1806
GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
1809
if test x$gtk_config_prefix != x ; then
1810
gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
1811
if test x${GTK_CONFIG+set} != xset ; then
1812
GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
1816
# Extract the first word of "gtk-config", so it can be a program name with args.
1817
set dummy gtk-config; ac_word=$2
1372
#GNOME_COMPILE_WARNINGS
1377
if test -z "$PKG_CONFIG"; then
1378
# Extract the first word of "pkg-config", so it can be a program name with args.
1379
set dummy pkg-config; ac_word=$2
1818
1380
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1819
echo "configure:1820: checking for $ac_word" >&5
1820
if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
1381
echo "configure:1382: checking for $ac_word" >&5
1382
if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
1821
1383
echo $ac_n "(cached) $ac_c" 1>&6
1823
case "$GTK_CONFIG" in
1385
case "$PKG_CONFIG" in
1825
ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
1387
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
1828
ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
1390
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
1831
1393
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1833
1395
for ac_dir in $ac_dummy; do
1834
1396
test -z "$ac_dir" && ac_dir=.
1835
1397
if test -f $ac_dir/$ac_word; then
1836
ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
1398
ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
1840
1402
IFS="$ac_save_ifs"
1841
test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
1403
test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
1845
GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
1846
if test -n "$GTK_CONFIG"; then
1847
echo "$ac_t""$GTK_CONFIG" 1>&6
1849
echo "$ac_t""no" 1>&6
1852
min_gtk_version=1.1.12
1853
echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
1854
echo "configure:1855: checking for GTK - version >= $min_gtk_version" >&5
1856
if test "$GTK_CONFIG" = "no" ; then
1859
GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
1860
GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
1861
gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
1862
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
1863
gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
1864
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
1865
gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
1866
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
1867
if test "x$enable_gtktest" = "xyes" ; then
1868
ac_save_CFLAGS="$CFLAGS"
1869
ac_save_LIBS="$LIBS"
1870
CFLAGS="$CFLAGS $GTK_CFLAGS"
1871
LIBS="$GTK_LIBS $LIBS"
1873
if test "$cross_compiling" = yes; then
1874
echo $ac_n "cross compiling; assumed OK... $ac_c"
1876
cat > conftest.$ac_ext <<EOF
1877
#line 1878 "configure"
1878
#include "confdefs.h"
1880
#include <gtk/gtk.h>
1887
int major, minor, micro;
1890
system ("touch conf.gtktest");
1892
/* HP/UX 9 (%@#!) writes to sscanf strings */
1893
tmp_version = g_strdup("$min_gtk_version");
1894
if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
1895
printf("%s, bad version string\n", "$min_gtk_version");
1899
if ((gtk_major_version != $gtk_config_major_version) ||
1900
(gtk_minor_version != $gtk_config_minor_version) ||
1901
(gtk_micro_version != $gtk_config_micro_version))
1903
printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
1904
$gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
1905
gtk_major_version, gtk_minor_version, gtk_micro_version);
1906
printf ("*** was found! If gtk-config was correct, then it is best\n");
1907
printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
1908
printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
1909
printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
1910
printf("*** required on your system.\n");
1911
printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
1912
printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
1913
printf("*** before re-running configure\n");
1915
#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
1916
else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
1917
(gtk_minor_version != GTK_MINOR_VERSION) ||
1918
(gtk_micro_version != GTK_MICRO_VERSION))
1920
printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
1921
GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
1922
printf("*** library (version %d.%d.%d)\n",
1923
gtk_major_version, gtk_minor_version, gtk_micro_version);
1925
#endif /* defined (GTK_MAJOR_VERSION) ... */
1928
if ((gtk_major_version > major) ||
1929
((gtk_major_version == major) && (gtk_minor_version > minor)) ||
1930
((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
1936
printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
1937
gtk_major_version, gtk_minor_version, gtk_micro_version);
1938
printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
1939
major, minor, micro);
1940
printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
1942
printf("*** If you have already installed a sufficiently new version, this error\n");
1943
printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
1944
printf("*** being found. The easiest way to fix this is to remove the old version\n");
1945
printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
1946
printf("*** correct copy of gtk-config. (In this case, you will have to\n");
1947
printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
1948
printf("*** so that the correct libraries are found at run-time))\n");
1955
if { (eval echo configure:1956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1959
echo "configure: failed program was:" >&5
1960
cat conftest.$ac_ext >&5
1967
CFLAGS="$ac_save_CFLAGS"
1968
LIBS="$ac_save_LIBS"
1971
if test "x$no_gtk" = x ; then
1972
echo "$ac_t""yes" 1>&6
1975
echo "$ac_t""no" 1>&6
1976
if test "$GTK_CONFIG" = "no" ; then
1977
echo "*** The gtk-config script installed by GTK could not be found"
1978
echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
1979
echo "*** your path, or set the GTK_CONFIG environment variable to the"
1980
echo "*** full path to gtk-config."
1982
if test -f conf.gtktest ; then
1985
echo "*** Could not run GTK test program, checking why..."
1986
CFLAGS="$CFLAGS $GTK_CFLAGS"
1987
LIBS="$LIBS $GTK_LIBS"
1988
cat > conftest.$ac_ext <<EOF
1989
#line 1990 "configure"
1990
#include "confdefs.h"
1992
#include <gtk/gtk.h>
1996
return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
1999
if { (eval echo configure:2000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2001
echo "*** The test program compiled, but did not run. This usually means"
2002
echo "*** that the run-time linker is not finding GTK or finding the wrong"
2003
echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
2004
echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
2005
echo "*** to the installed location Also, make sure you have run ldconfig if that"
2006
echo "*** is required on your system"
2008
echo "*** If you have an old version installed, it is best to remove it, although"
2009
echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
2011
echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
2012
echo "*** came with the system with the command"
2014
echo "*** rpm --erase --nodeps gtk gtk-devel"
2016
echo "configure: failed program was:" >&5
2017
cat conftest.$ac_ext >&5
2019
echo "*** The test program failed to compile or link. See the file config.log for the"
2020
echo "*** exact error that occured. This usually means GTK was incorrectly installed"
2021
echo "*** or that you have moved GTK since it was installed. In the latter case, you"
2022
echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
2025
CFLAGS="$ac_save_CFLAGS"
2026
LIBS="$ac_save_LIBS"
2031
{ echo "configure: error: GTK not installed" 1>&2; exit 1; }
2038
CPPFLAGS="$CPPFLAGS $GTK_CFLAGS"
2040
saved_ldflags="$LDFLAGS"
2041
LDFLAGS="$LDFLAGS $GTK_LIBS"
2043
gnome_cv_passdown_x_libs="$GTK_LIBS"
2044
gnome_cv_passdown_X_LIBS="$GTK_LIBS"
2045
gnome_cv_passdown_X_CFLAGS="$GTK_CFLAGS"
2046
gnome_cv_passdown_GTK_LIBS="$GTK_LIBS"
2048
LDFLAGS="$saved_ldflags $GTK_LIBS"
2058
echo $ac_n "checking for SmcSaveYourselfDone in -lSM""... $ac_c" 1>&6
2059
echo "configure:2060: checking for SmcSaveYourselfDone in -lSM" >&5
2060
ac_lib_var=`echo SM'_'SmcSaveYourselfDone | sed 'y%./+-%__p_%'`
2061
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2062
echo $ac_n "(cached) $ac_c" 1>&6
2064
ac_save_LIBS="$LIBS"
2065
LIBS="-lSM $x_libs -lICE $LIBS"
2066
cat > conftest.$ac_ext <<EOF
2067
#line 2068 "configure"
2068
#include "confdefs.h"
2069
/* Override any gcc2 internal prototype to avoid an error. */
2070
/* We use char because int might match the return type of a gcc2
2071
builtin and then its argument prototype would still apply. */
2072
char SmcSaveYourselfDone();
2075
SmcSaveYourselfDone()
2078
if { (eval echo configure:2079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2080
eval "ac_cv_lib_$ac_lib_var=yes"
2082
echo "configure: failed program was:" >&5
2083
cat conftest.$ac_ext >&5
2085
eval "ac_cv_lib_$ac_lib_var=no"
2088
LIBS="$ac_save_LIBS"
2091
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2092
echo "$ac_t""yes" 1>&6
2093
GTK_LIBS="-lSM -lICE $GTK_LIBS"
2095
echo "$ac_t""no" 1>&6
2102
if test "$GNOME_HAVE_SM" = true; then
2103
for ac_hdr in X11/SM/SMlib.h
2105
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2106
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2107
echo "configure:2108: checking for $ac_hdr" >&5
2108
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2109
echo $ac_n "(cached) $ac_c" 1>&6
2111
cat > conftest.$ac_ext <<EOF
2112
#line 2113 "configure"
2113
#include "confdefs.h"
2116
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2117
{ (eval echo configure:2118: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2118
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2119
if test -z "$ac_err"; then
2121
eval "ac_cv_header_$ac_safe=yes"
2124
echo "configure: failed program was:" >&5
2125
cat conftest.$ac_ext >&5
2127
eval "ac_cv_header_$ac_safe=no"
2131
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2132
echo "$ac_t""yes" 1>&6
2133
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2134
cat >> confdefs.h <<EOF
2135
#define $ac_tr_hdr 1
2139
echo "$ac_t""no" 1>&6
2146
if test "$GNOME_HAVE_SM" = true; then
2147
cat >> confdefs.h <<\EOF
2148
#define HAVE_LIBSM 1
2154
echo $ac_n "checking for XpmFreeXpmImage in -lXpm""... $ac_c" 1>&6
2155
echo "configure:2156: checking for XpmFreeXpmImage in -lXpm" >&5
2156
ac_lib_var=`echo Xpm'_'XpmFreeXpmImage | sed 'y%./+-%__p_%'`
2157
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2158
echo $ac_n "(cached) $ac_c" 1>&6
2160
ac_save_LIBS="$LIBS"
2161
LIBS="-lXpm $x_libs $LIBS"
2162
cat > conftest.$ac_ext <<EOF
2163
#line 2164 "configure"
2164
#include "confdefs.h"
2165
/* Override any gcc2 internal prototype to avoid an error. */
2166
/* We use char because int might match the return type of a gcc2
2167
builtin and then its argument prototype would still apply. */
2168
char XpmFreeXpmImage();
2174
if { (eval echo configure:2175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2176
eval "ac_cv_lib_$ac_lib_var=yes"
2178
echo "configure: failed program was:" >&5
2179
cat conftest.$ac_ext >&5
2181
eval "ac_cv_lib_$ac_lib_var=no"
2184
LIBS="$ac_save_LIBS"
2187
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2188
echo "$ac_t""yes" 1>&6
2191
echo "$ac_t""no" 1>&6
2197
LDFLAGS="$saved_ldflags"
1407
PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
1408
if test -n "$PKG_CONFIG"; then
1409
echo "$ac_t""$PKG_CONFIG" 1>&6
1411
echo "$ac_t""no" 1>&6
1416
if test "$PKG_CONFIG" = "no" ; then
1417
echo "*** The pkg-config script could not be found. Make sure it is"
1418
echo "*** in your path, or set the PKG_CONFIG environment variable"
1419
echo "*** to the full path to pkg-config."
1420
echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
1422
PKG_CONFIG_MIN_VERSION=0.9.0
1423
if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
1424
echo $ac_n "checking for "libgnomeui-2.0"""... $ac_c" 1>&6
1425
echo "configure:1426: checking for "libgnomeui-2.0"" >&5
1427
if $PKG_CONFIG --exists ""libgnomeui-2.0"" ; then
1428
echo "$ac_t""yes" 1>&6
1431
echo $ac_n "checking GNOME2_CFLAGS""... $ac_c" 1>&6
1432
echo "configure:1433: checking GNOME2_CFLAGS" >&5
1433
GNOME2_CFLAGS=`$PKG_CONFIG --cflags ""libgnomeui-2.0""`
1434
echo "$ac_t""$GNOME2_CFLAGS" 1>&6
1436
echo $ac_n "checking GNOME2_LIBS""... $ac_c" 1>&6
1437
echo "configure:1438: checking GNOME2_LIBS" >&5
1438
GNOME2_LIBS=`$PKG_CONFIG --libs ""libgnomeui-2.0""`
1439
echo "$ac_t""$GNOME2_LIBS" 1>&6
1443
## If we have a custom action on failure, don't print errors, but
1444
## do set a variable so people can do so.
1445
GNOME2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors ""libgnomeui-2.0""`
1446
echo $GNOME2_PKG_ERRORS
1452
echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
1453
echo "*** See http://www.freedesktop.org/software/pkgconfig"
1457
if test $succeeded = yes; then
1460
{ echo "configure: error: Library requirements ("libgnomeui-2.0") not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." 1>&2; exit 1; }