Add NSPR detection to get path to includes directory.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 09b0af1392)
r14.0.x
Slávek Banko 5 years ago
parent 3cf756dbad
commit 09adecfa17
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -18,5 +18,11 @@ dnl ---------------------------------------------
AC_CHECK_HEADER(X11/Xaw/Form.h,,
[AC_MSG_ERROR([you need to install libxaw header files (-dev package)])])
dnl ---------------------------------------------
dnl Check for NSPR include directory
dnl ---------------------------------------------
AC_CHECK_PROG(PKGCONFIGFOUND, pkg-config,[yes])
PKG_CHECK_MODULES(NSPR, nspr, have_nspr=yes,
[ AC_MSG_ERROR([nspr library not found on your system]) ])
AC_OUTPUT(Makefile src/Makefile)

@ -1,7 +1,7 @@
EXTRA_DIST = npapi.h npunix.c npupp.h plugin.c plugin.h
AM_CFLAGS = @CFLAGS@ $(X_CFLAGS)
AM_CFLAGS = @CFLAGS@ $(X_CFLAGS) $(NSPR_CFLAGS)
lib_LTLIBRARIES = kaffeineplugin.la

@ -40,7 +40,7 @@
#ifndef JNI_MD_H
#define JNI_MD_H
#include <nspr/prtypes.h> /* needed for _declspec */
#include <prtypes.h> /* needed for _declspec */
/*******************************************************************************
* WHAT'S UP WITH THIS FILE?

@ -43,7 +43,7 @@
#define JRI_MD_H
#include <assert.h>
#include <nspr/prtypes.h> /* Needed for HAS_LONG_LONG ifdefs */
#include <prtypes.h> /* Needed for HAS_LONG_LONG ifdefs */
#ifdef __cplusplus
extern "C" {

Loading…
Cancel
Save