aclocal.m4
上传用户:psq1974
上传日期:2007-01-06
资源大小:1195k
文件大小:18k
源码类别:

mpeg/mp3

开发平台:

C/C++

  1. dnl aclocal.m4 generated automatically by aclocal 1.3
  2. dnl Copyright (C) 1994, 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
  3. dnl This Makefile.in is free software; the Free Software Foundation
  4. dnl gives unlimited permission to copy and/or distribute it,
  5. dnl with or without modifications, as long as this notice is preserved.
  6. dnl This program is distributed in the hope that it will be useful,
  7. dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without
  8. dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  9. dnl PARTICULAR PURPOSE.
  10. # Do all the work for Automake.  This macro actually does too much --
  11. # some checks are only needed if your package does certain things.
  12. # But this isn't really a big deal.
  13. # serial 1
  14. dnl Usage:
  15. dnl AM_INIT_AUTOMAKE(package,version, [no-define])
  16. AC_DEFUN(AM_INIT_AUTOMAKE,
  17. [AC_REQUIRE([AM_PROG_INSTALL])
  18. PACKAGE=[$1]
  19. AC_SUBST(PACKAGE)
  20. VERSION=[$2]
  21. AC_SUBST(VERSION)
  22. dnl test to see if srcdir already configured
  23. if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
  24.   AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
  25. fi
  26. ifelse([$3],,
  27. AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE")
  28. AC_DEFINE_UNQUOTED(VERSION, "$VERSION"))
  29. AC_REQUIRE([AM_SANITY_CHECK])
  30. AC_REQUIRE([AC_ARG_PROGRAM])
  31. dnl FIXME This is truly gross.
  32. missing_dir=`cd $ac_aux_dir && pwd`
  33. AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir)
  34. AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
  35. AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir)
  36. AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)
  37. AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)
  38. AC_REQUIRE([AC_PROG_MAKE_SET])])
  39. # serial 1
  40. AC_DEFUN(AM_PROG_INSTALL,
  41. [AC_REQUIRE([AC_PROG_INSTALL])
  42. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
  43. AC_SUBST(INSTALL_SCRIPT)dnl
  44. ])
  45. #
  46. # Check to make sure that the build environment is sane.
  47. #
  48. AC_DEFUN(AM_SANITY_CHECK,
  49. [AC_MSG_CHECKING([whether build environment is sane])
  50. # Just in case
  51. sleep 1
  52. echo timestamp > conftestfile
  53. # Do `set' in a subshell so we don't clobber the current shell's
  54. # arguments.  Must try -L first in case configure is actually a
  55. # symlink; some systems play weird games with the mod time of symlinks
  56. # (eg FreeBSD returns the mod time of the symlink's containing
  57. # directory).
  58. if (
  59.    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
  60.    if test "[$]*" = "X"; then
  61.       # -L didn't work.
  62.       set X `ls -t $srcdir/configure conftestfile`
  63.    fi
  64.    if test "[$]*" != "X $srcdir/configure conftestfile" 
  65.       && test "[$]*" != "X conftestfile $srcdir/configure"; then
  66.       # If neither matched, then we have a broken ls.  This can happen
  67.       # if, for instance, CONFIG_SHELL is bash and it inherits a
  68.       # broken ls alias from the environment.  This has actually
  69.       # happened.  Such a system could not be considered "sane".
  70.       AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
  71. alias in your environment])
  72.    fi
  73.    test "[$]2" = conftestfile
  74.    )
  75. then
  76.    # Ok.
  77.    :
  78. else
  79.    AC_MSG_ERROR([newly created file is older than distributed files!
  80. Check your system clock])
  81. fi
  82. rm -f conftest*
  83. AC_MSG_RESULT(yes)])
  84. dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY)
  85. dnl The program must properly implement --version.
  86. AC_DEFUN(AM_MISSING_PROG,
  87. [AC_MSG_CHECKING(for working $2)
  88. # Run test in a subshell; some versions of sh will print an error if
  89. # an executable is not found, even if stderr is redirected.
  90. # Redirect stdin to placate older versions of autoconf.  Sigh.
  91. if ($2 --version) < /dev/null > /dev/null 2>&1; then
  92.    $1=$2
  93.    AC_MSG_RESULT(found)
  94. else
  95.    $1="$3/missing $2"
  96.    AC_MSG_RESULT(missing)
  97. fi
  98. AC_SUBST($1)])
  99. # serial 25 AM_PROG_LIBTOOL
  100. AC_DEFUN(AM_PROG_LIBTOOL,
  101. [AC_REQUIRE([AM_ENABLE_SHARED])dnl
  102. AC_REQUIRE([AM_ENABLE_STATIC])dnl
  103. AC_REQUIRE([AC_CANONICAL_HOST])dnl
  104. AC_REQUIRE([AC_PROG_RANLIB])dnl
  105. AC_REQUIRE([AC_PROG_CC])dnl
  106. AC_REQUIRE([AM_PROG_LD])dnl
  107. AC_REQUIRE([AM_PROG_NM])dnl
  108. AC_REQUIRE([AC_PROG_LN_S])dnl
  109. dnl
  110. # Always use our own libtool.
  111. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  112. AC_SUBST(LIBTOOL)dnl
  113. # Check for any special flags to pass to ltconfig.
  114. libtool_flags=
  115. test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
  116. test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
  117. test "$silent" = yes && libtool_flags="$libtool_flags --silent"
  118. test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
  119. test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
  120. # Some flags need to be propagated to the compiler or linker for good
  121. # libtool support.
  122. case "$host" in
  123. *-*-irix6*)
  124.   # Find out which ABI we are using.
  125.   echo '[#]line __oline__ "configure"' > conftest.$ac_ext
  126.   if AC_TRY_EVAL(ac_compile); then
  127.     case "`/usr/bin/file conftest.o`" in
  128.     *32-bit*)
  129.       LD="${LD-ld} -32"
  130.       ;;
  131.     *N32*)
  132.       LD="${LD-ld} -n32"
  133.       ;;
  134.     *64-bit*)
  135.       LD="${LD-ld} -64"
  136.       ;;
  137.     esac
  138.   fi
  139.   rm -rf conftest*
  140.   ;;
  141. *-*-sco3.2v5*)
  142.   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  143.   CFLAGS="$CFLAGS -belf"
  144.   ;;
  145. esac
  146. # Actually configure libtool.  ac_aux_dir is where install-sh is found.
  147. CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" 
  148. LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" 
  149. ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec 
  150. $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host 
  151. || AC_MSG_ERROR([libtool configure failed])
  152. # Redirect the config.log output again, so that the ltconfig log is not
  153. # clobbered by the next message.
  154. exec 5>>./config.log
  155. ])
  156. # AM_ENABLE_SHARED - implement the --enable-shared flag
  157. # Usage: AM_ENABLE_SHARED[(DEFAULT)]
  158. #   Where DEFAULT is either `yes' or `no'.  If omitted, it defaults to
  159. #   `yes'.
  160. AC_DEFUN(AM_ENABLE_SHARED,
  161. [define([AM_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
  162. AC_ARG_ENABLE(shared,
  163. changequote(<<, >>)dnl
  164. <<  --enable-shared[=PKGS]  build shared libraries [default=>>AM_ENABLE_SHARED_DEFAULT],
  165. changequote([, ])dnl
  166. [p=${PACKAGE-default}
  167. case "$enableval" in
  168. yes) enable_shared=yes ;;
  169. no) enable_shared=no ;;
  170. *)
  171.   enable_shared=no
  172.   # Look at the argument we got.  We use all the common list separators.
  173.   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  174.   for pkg in $enableval; do
  175.     if test "X$pkg" = "X$p"; then
  176.       enable_shared=yes
  177.     fi
  178.   done
  179.   IFS="$ac_save_ifs"
  180.   ;;
  181. esac],
  182. enable_shared=AM_ENABLE_SHARED_DEFAULT)dnl
  183. ])
  184. # AM_DISABLE_SHARED - set the default shared flag to --disable-shared
  185. AC_DEFUN(AM_DISABLE_SHARED,
  186. [AM_ENABLE_SHARED(no)])
  187. # AM_DISABLE_STATIC - set the default static flag to --disable-static
  188. AC_DEFUN(AM_DISABLE_STATIC,
  189. [AM_ENABLE_STATIC(no)])
  190. # AM_ENABLE_STATIC - implement the --enable-static flag
  191. # Usage: AM_ENABLE_STATIC[(DEFAULT)]
  192. #   Where DEFAULT is either `yes' or `no'.  If omitted, it defaults to
  193. #   `yes'.
  194. AC_DEFUN(AM_ENABLE_STATIC,
  195. [define([AM_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
  196. AC_ARG_ENABLE(static,
  197. changequote(<<, >>)dnl
  198. <<  --enable-static[=PKGS]  build static libraries [default=>>AM_ENABLE_STATIC_DEFAULT],
  199. changequote([, ])dnl
  200. [p=${PACKAGE-default}
  201. case "$enableval" in
  202. yes) enable_static=yes ;;
  203. no) enable_static=no ;;
  204. *)
  205.   enable_static=no
  206.   # Look at the argument we got.  We use all the common list separators.
  207.   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  208.   for pkg in $enableval; do
  209.     if test "X$pkg" = "X$p"; then
  210.       enable_static=yes
  211.     fi
  212.   done
  213.   IFS="$ac_save_ifs"
  214.   ;;
  215. esac],
  216. enable_static=AM_ENABLE_STATIC_DEFAULT)dnl
  217. ])
  218. # AM_PROG_LD - find the path to the GNU or non-GNU linker
  219. AC_DEFUN(AM_PROG_LD,
  220. [AC_ARG_WITH(gnu-ld,
  221. [  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]],
  222. test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
  223. AC_REQUIRE([AC_PROG_CC])
  224. ac_prog=ld
  225. if test "$ac_cv_prog_gcc" = yes; then
  226.   # Check if gcc -print-prog-name=ld gives a path.
  227.   AC_MSG_CHECKING([for ld used by GCC])
  228.   ac_prog=`($CC -print-prog-name=ld) 2>&5`
  229.   case "$ac_prog" in
  230.   # Accept absolute paths.
  231. changequote(,)dnl
  232.   /* | [A-Za-z]:\*)
  233. changequote([,])dnl
  234.     test -z "$LD" && LD="$ac_prog"
  235.     ;;
  236.   "")
  237.     # If it fails, then pretend we aren't using GCC.
  238.     ac_prog=ld
  239.     ;;
  240.   *)
  241.     # If it is relative, then search for the first ld in PATH.
  242.     with_gnu_ld=unknown
  243.     ;;
  244.   esac
  245. elif test "$with_gnu_ld" = yes; then
  246.   AC_MSG_CHECKING([for GNU ld])
  247. else
  248.   AC_MSG_CHECKING([for non-GNU ld])
  249. fi
  250. AC_CACHE_VAL(ac_cv_path_LD,
  251. [if test -z "$LD"; then
  252.   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  253.   for ac_dir in $PATH; do
  254.     test -z "$ac_dir" && ac_dir=.
  255.     if test -f "$ac_dir/$ac_prog"; then
  256.       ac_cv_path_LD="$ac_dir/$ac_prog"
  257.       # Check to see if the program is GNU ld.  I'd rather use --version,
  258.       # but apparently some GNU ld's only accept -v.
  259.       # Break only if it was the GNU/non-GNU ld that we prefer.
  260.       if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
  261. test "$with_gnu_ld" != no && break
  262.       else
  263.         test "$with_gnu_ld" != yes && break
  264.       fi
  265.     fi
  266.   done
  267.   IFS="$ac_save_ifs"
  268. else
  269.   ac_cv_path_LD="$LD" # Let the user override the test with a path.
  270. fi])
  271. LD="$ac_cv_path_LD"
  272. if test -n "$LD"; then
  273.   AC_MSG_RESULT($LD)
  274. else
  275.   AC_MSG_RESULT(no)
  276. fi
  277. test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in $PATH])
  278. AC_SUBST(LD)
  279. AM_PROG_LD_GNU
  280. ])
  281. AC_DEFUN(AM_PROG_LD_GNU,
  282. [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], ac_cv_prog_gnu_ld,
  283. [# I'd rather use --version here, but apparently some GNU ld's only accept -v.
  284. if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
  285.   ac_cv_prog_gnu_ld=yes
  286. else
  287.   ac_cv_prog_gnu_ld=no
  288. fi])
  289. ])
  290. # AM_PROG_NM - find the path to a BSD-compatible name lister
  291. AC_DEFUN(AM_PROG_NM,
  292. [AC_MSG_CHECKING([for BSD-compatible nm])
  293. AC_CACHE_VAL(ac_cv_path_NM,
  294. [if test -n "$NM"; then
  295.   # Let the user override the test.
  296.   ac_cv_path_NM="$NM"
  297. else
  298.   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  299.   for ac_dir in /usr/ucb /usr/ccs/bin $PATH /bin; do
  300.     test -z "$ac_dir" && ac_dir=.
  301.     if test -f $ac_dir/nm; then
  302.       # Check to see if the nm accepts a BSD-compat flag.
  303.       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  304.       #   nm: unknown option "B" ignored
  305.       if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
  306.         ac_cv_path_NM="$ac_dir/nm -B"
  307.       elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
  308.         ac_cv_path_NM="$ac_dir/nm -p"
  309.       else
  310.         ac_cv_path_NM="$ac_dir/nm"
  311.       fi
  312.       break
  313.     fi
  314.   done
  315.   IFS="$ac_save_ifs"
  316.   test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
  317. fi])
  318. NM="$ac_cv_path_NM"
  319. AC_MSG_RESULT([$NM])
  320. AC_SUBST(NM)
  321. ])
  322. # Configure paths for GTK+
  323. # Owen Taylor     97-11-3
  324. dnl AM_PATH_GTK([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])
  325. dnl Test for GTK, and define GTK_CFLAGS and GTK_LIBS
  326. dnl
  327. AC_DEFUN(AM_PATH_GTK,
  328. [dnl 
  329. dnl Get the cflags and libraries from the gtk-config script
  330. dnl
  331. AC_ARG_WITH(gtk-prefix,[  --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)],
  332.             gtk_config_prefix="$withval", gtk_config_prefix="")
  333. AC_ARG_WITH(gtk-exec-prefix,[  --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)],
  334.             gtk_config_exec_prefix="$withval", gtk_config_exec_prefix="")
  335. AC_ARG_ENABLE(gtktest, [  --disable-gtktest       Do not try to compile and run a test GTK program],
  336.     , enable_gtktest=yes)
  337.   if test x$gtk_config_exec_prefix != x ; then
  338.      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
  339.      if test x${GTK_CONFIG+set} != xset ; then
  340.         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
  341.      fi
  342.   fi
  343.   if test x$gtk_config_prefix != x ; then
  344.      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
  345.      if test x${GTK_CONFIG+set} != xset ; then
  346.         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
  347.      fi
  348.   fi
  349.   AC_PATH_PROG(GTK_CONFIG, gtk-config, no)
  350.   min_gtk_version=ifelse([$1], ,0.99.7,$1)
  351.   AC_MSG_CHECKING(for GTK - version >= $min_gtk_version)
  352.   no_gtk=""
  353.   if test "$GTK_CONFIG" = "no" ; then
  354.     no_gtk=yes
  355.   else
  356.     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
  357.     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
  358.     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | 
  359.            sed 's/([[0-9]]*).([[0-9]]*).([[0-9]]*)/1/'`
  360.     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | 
  361.            sed 's/([[0-9]]*).([[0-9]]*).([[0-9]]*)/2/'`
  362.     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | 
  363.            sed 's/([[0-9]]*).([[0-9]]*).([[0-9]]*)/3/'`
  364.     if test "x$enable_gtktest" = "xyes" ; then
  365.       ac_save_CFLAGS="$CFLAGS"
  366.       ac_save_LIBS="$LIBS"
  367.       CFLAGS="$CFLAGS $GTK_CFLAGS"
  368.       LIBS="$LIBS $GTK_LIBS"
  369. dnl
  370. dnl Now check if the installed GTK is sufficiently new. (Also sanity
  371. dnl checks the results of gtk-config to some extent
  372. dnl
  373.       rm -f conf.gtktest
  374.       AC_TRY_RUN([
  375. #include <gtk/gtk.h>
  376. #include <stdio.h>
  377. #include <stdlib.h>
  378. int 
  379. main ()
  380. {
  381.   int major, minor, micro;
  382.   char *tmp_version;
  383.   system ("touch conf.gtktest");
  384.   /* HP/UX 9 (%@#!) writes to sscanf strings */
  385.   tmp_version = g_strdup("$min_gtk_version");
  386.   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  387.      printf("%s, bad version stringn", "$min_gtk_version");
  388.      exit(1);
  389.    }
  390.   if ((gtk_major_version != $gtk_config_major_version) ||
  391.       (gtk_minor_version != $gtk_config_minor_version) ||
  392.       (gtk_micro_version != $gtk_config_micro_version))
  393.     {
  394.       printf("n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)n", 
  395.              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
  396.              gtk_major_version, gtk_minor_version, gtk_micro_version);
  397.       printf ("*** was found! If gtk-config was correct, then it is bestn");
  398.       printf ("*** to remove the old version of GTK+. You may also be able to fix the errorn");
  399.       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editingn");
  400.       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that isn");
  401.       printf("*** required on your system.n");
  402.       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIGn");
  403.       printf("*** to point to the correct copy of gtk-config, and remove the file config.cachen");
  404.       printf("*** before re-running configuren");
  405.     } 
  406. #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
  407.   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
  408.    (gtk_minor_version != GTK_MINOR_VERSION) ||
  409.            (gtk_micro_version != GTK_MICRO_VERSION))
  410.     {
  411.       printf("*** GTK+ header files (version %d.%d.%d) do not matchn",
  412.      GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
  413.       printf("*** library (version %d.%d.%d)n",
  414.      gtk_major_version, gtk_minor_version, gtk_micro_version);
  415.     }
  416. #endif /* defined (GTK_MAJOR_VERSION) ... */
  417.   else
  418.     {
  419.       if ((gtk_major_version > major) ||
  420.         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
  421.         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
  422.       {
  423.         return 0;
  424.        }
  425.      else
  426.       {
  427.         printf("n*** An old version of GTK+ (%d.%d.%d) was found.n",
  428.                gtk_major_version, gtk_minor_version, gtk_micro_version);
  429.         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version ofn",
  430.        major, minor, micro);
  431.         printf("*** GTK+ is always available from ftp://ftp.gtk.org.n");
  432.         printf("***n");
  433.         printf("*** If you have already installed a sufficiently new version, this errorn");
  434.         printf("*** probably means that the wrong copy of the gtk-config shell script isn");
  435.         printf("*** being found. The easiest way to fix this is to remove the old versionn");
  436.         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to then");
  437.         printf("*** correct copy of gtk-config. (In this case, you will have ton");
  438.         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.confn");
  439.         printf("*** so that the correct libraries are found at run-time))n");
  440.       }
  441.     }
  442.   return 1;
  443. }
  444. ],, no_gtk=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
  445.        CFLAGS="$ac_save_CFLAGS"
  446.        LIBS="$ac_save_LIBS"
  447.      fi
  448.   fi
  449.   if test "x$no_gtk" = x ; then
  450.      AC_MSG_RESULT(yes)
  451.      ifelse([$2], , :, [$2])     
  452.   else
  453.      AC_MSG_RESULT(no)
  454.      if test "$GTK_CONFIG" = "no" ; then
  455.        echo "*** The gtk-config script installed by GTK could not be found"
  456.        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
  457.        echo "*** your path, or set the GTK_CONFIG environment variable to the"
  458.        echo "*** full path to gtk-config."
  459.      else
  460.        if test -f conf.gtktest ; then
  461.         :
  462.        else
  463.           echo "*** Could not run GTK test program, checking why..."
  464.           CFLAGS="$CFLAGS $GTK_CFLAGS"
  465.           LIBS="$LIBS $GTK_LIBS"
  466.           AC_TRY_LINK([
  467. #include <gtk/gtk.h>
  468. #include <stdio.h>
  469. ],      [ return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); ],
  470.         [ echo "*** The test program compiled, but did not run. This usually means"
  471.           echo "*** that the run-time linker is not finding GTK or finding the wrong"
  472.           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
  473.           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  474.           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
  475.           echo "*** is required on your system"
  476.   echo "***"
  477.           echo "*** If you have an old version installed, it is best to remove it, although"
  478.           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  479.           echo "***"
  480.           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
  481.           echo "*** came with the system with the command"
  482.           echo "***"
  483.           echo "***    rpm --erase --nodeps gtk gtk-devel" ],
  484.         [ echo "*** The test program failed to compile or link. See the file config.log for the"
  485.           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
  486.           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
  487.           echo "*** may want to edit the gtk-config script: $GTK_CONFIG" ])
  488.           CFLAGS="$ac_save_CFLAGS"
  489.           LIBS="$ac_save_LIBS"
  490.        fi
  491.      fi
  492.      GTK_CFLAGS=""
  493.      GTK_LIBS=""
  494.      ifelse([$3], , :, [$3])
  495.   fi
  496.   AC_SUBST(GTK_CFLAGS)
  497.   AC_SUBST(GTK_LIBS)
  498.   rm -f conf.gtktest
  499. ])