root/tags/auto-reply-0_12/auto-reply/acinclude.m4.in

Revision 794, 1.2 kB (checked in by graham, 9 years ago)

Initial revision

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1dnl Check for sys_errlist[] and sys_nerr, check for declaration
2dnl Check nicked from aclocal.m4 used by GNU bash 2.01
3AC_DEFUN(AC_SYS_ERRLIST,
4[AC_MSG_CHECKING([for sys_errlist and sys_nerr])
5AC_CACHE_VAL(ac_cv_sys_errlist,
6[AC_TRY_LINK([#include <errno.h>],
7[extern char *sys_errlist[];
8 extern int sys_nerr;
9 char *msg = sys_errlist[sys_nerr - 1];],
10    ac_cv_sys_errlist=yes, ac_cv_sys_errlist=no)])dnl
11AC_MSG_RESULT($ac_cv_sys_errlist)
12if test $ac_cv_sys_errlist = yes; then
13AC_DEFINE(HAVE_SYS_ERRLIST)
14fi
15])
16
17
18## ------------------------------------------------------------------------
19## Find a file (or one of more files in a list of dirs)
20## ------------------------------------------------------------------------
21##
22AC_DEFUN(AC_FIND_FILE,
23[
24$3=no
25for i in $2;
26do
27  for j in $1;
28  do
29    if test -r "$i/$j"; then
30      $3=$i
31      break 2
32    fi
33  done
34done
35])
36
37
38AC_DEFUN(AC_CHECK_LICQ,
39[
40  AC_MSG_CHECKING([for licq header files])
41 
42  AC_FIND_FILE(icqd.h, "../../src/inc", licq_inc)
43  if test "$licq_inc" = no; then
44    have_licq_inc=no
45  else
46    have_licq_inc=yes
47  fi
48  if test "$have_licq_inc" = yes; then
49    AC_MSG_RESULT(["found"])
50    LICQ_INCLUDES="../$licq_inc"
51    AC_SUBST(LICQ_INCLUDES)
52  else
53    AC_MSG_RESULT(["not found"])
54  fi
55])
Note: See TracBrowser for help on using the browser.