fi
TERM_LIB=""
-AC_CHECK_HEADER(termcap.h,
- [ AC_CHECK_LIB(termcap, tgetent,
- [ TERM_LIB="-ltermcap" ],
- [ AC_CHECK_LIB(ncurses, tgetent, [ TERM_LIB="-lncurses" ])
+AC_CHECK_HEADER(curses.h,
+ [ AC_CHECK_LIB(ncurses, tgetent,
+ [ TERM_LIB="-lncurses" ],
+ [ AC_CHECK_LIB(termcap, tgetent, [ TERM_LIB="-ltermcap" ])
])
],
[ AC_CHECK_HEADERS(curses.h)
/*
Bacula® - The Network Backup Solution
- Copyright (C) 1981-2009 Free Software Foundation Europe e.V.
+ Copyright (C) 1981-2010 Free Software Foundation Europe e.V.
Yes, that is 1981 no error.
The main author of Bacula is Kern Sibbald, with contributions from
#endif
-#include <termios.h>
+#include <curses.h>
+#include <term.h>
+
#ifdef HAVE_SUN_OS
extern "C" int tgetent(void *, const char *);
extern "C" int tgetnum(const char *);
extern "C" char *tgetstr (const char*, char**);
extern "C" char *tgoto (const char *, int, int);
-#elif HAVE_HPUX_OS
-#include <term.h>
-#elif HAVE_AIX_OS
-#include <curses.h>
-#include <term.h>
#elif defined(__sgi)
extern "C" int tgetent(char *, char *);
extern "C" int tgetnum(char id[2]);
extern "C" int tgetnum(const char *);
extern "C" char *tgetstr (const char*, char**);
extern "C" char *tgoto (const char *, int, int);
-
-#else
-#include <termcap.h>
#endif
#include "func.h"