Hi.
It should be sufficient to just test presence of header camlib.h.
It works for me on kfreebsd-i386 with:
LIST(APPEND SCG_LIBS scg)
INCLUDE(CheckIncludeFiles)
CHECK_INCLUDE_FILES(stdio.h;camlib.h HAVE_CAMLIB_H)
if(HAVE_CAMLIB_H)
ADD_DEFINITIONS(-DHAVE_CAMLIB_H)
LIST(APPEND SCG_LIBS
Package: cdrkit
Severity: important
Version: 5:1.0~pre2-1
Hi,
the current version fails to build on GNU/kFreeBSD.
It have to add some detection logic for libcam into cmake.
In autoconf based build system, the test would be
AC_CHECK_HEADERS([camlib.h])
AC_CHECK_LIB(cam,cam_open_device)
It have to add some detection logic for libcam into cmake.
In autoconf based build system, the test would be
AC_CHECK_HEADERS([camlib.h])
But scsi-bsd.c includes cam/cam.h and not camlib.h, maybe I should
check for that?
It includes both, but HAVE_CAMLIB_H is used to select support via
#include hallo.h
* Petr Salinger [Mon, Sep 04 2006, 06:45:51PM]:
It have to add some detection logic for libcam into cmake.
In autoconf based build system, the test would be
AC_CHECK_HEADERS([camlib.h])
But scsi-bsd.c includes cam/cam.h and not camlib.h, maybe I should
check for that?
Hi.
Please try the attached patch, applied to 1.0pre3, and tell us the
results.
Unfortunately, it does not work.
The problem is test in include/AddScgBits.cmake.
...
-- Check for working CXX compiler: c++
-- Check for working CXX compiler: c++ -- works
-- Looking for cam_open_device
--
5 matches
Mail list logo