autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AC_CACHE


From: Russell Shaw
Subject: AC_CACHE
Date: Mon, 07 Feb 2005 21:16:19 +1100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20050105 Debian/1.7.5-1

Hi,
I'm updating a very old configure.in to a new configure.ac.

I don't get what this does:

****************************************************

# Check for the tigetstr/tigetnum functions.

AC_MSG_CHECKING([for tigetstr/tigetstr])

AC_CACHE_VAL([gotch_cv_have_curses_tigetstr],

  [dnl  AC_TRY_LINK([#include <curses.h>],
                    [tigetstr(0);],
                    [gotch_cv_have_curses_tigetstr=yes],
                    [gotch_cv_have_curses_tigetstr=no])
  ]
)

if test "$gotch_cv_have_curses_tigetstr" = yes; then
    AC_DEFINE(HAVE_CURSES_TIGETSTR)
fi

AC_MSG_RESULT($gotch_cv_have_curses_tigetstr)

****************************************************

What is being stored in the cache? Why is this done?

ATM, it gives errors.

make:

  cd . && /bin/sh /home/russell/GNU/snooper/missing --run autoheader
  autoheader: warning: missing template: HAVE_CURSES_TIGETSTR
  autoheader: Use AC_DEFINE([HAVE_CURSES_TIGETSTR], [], [Description])
  make: *** [config.h.in] Error 1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]