Skip to content

Commit

Permalink
Only include reader.h if we found it
Browse files Browse the repository at this point in the history
reader.h is not provided on Mac OS X for example.


git-svn-id: svn:https://svn.debian.org/svn/pcsclite/trunk/contrib@6424 0ce88b0d-b2fd-0310-8134-9614164e65ea
  • Loading branch information
LudovicRousseau committed Aug 10, 2012
1 parent 5f54d2a commit 3f4807b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions libPCSCv2part10/PCSCv2part10.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,13 @@
* $Id$
*/

#ifdef HAVE_CONFIG_H
#include "config.h"
#endif

#ifdef HAVE_READER_H
#include <reader.h>
#endif

/**
* @file
Expand Down
2 changes: 1 addition & 1 deletion libPCSCv2part10/configure.in
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ PKG_CHECK_EXISTS([libpcsclite],
saved_CPPFLAGS="$CPPFLAGS"
CPPFLAGS="$CPPFLAGS $PCSC_CFLAGS"
PCSC_ERROR_MSG="install pcsc-lite, or use ./configure PCSC_CFLAGS=..."
AC_CHECK_HEADER(reader.h,, [AC_MSG_ERROR([$PCSC_ERROR_MSG])])
AC_CHECK_HEADERS(reader.h)
CPPFLAGS="$saved_CPPFLAGS"

# Write Makefiles.
Expand Down

0 comments on commit 3f4807b

Please sign in to comment.