Source: normaliz
Version: 3.6.3+ds-1
Tags: patch upstream
User: [email protected]
Usertags: rebootstrap
normaliz fails to cross build from source, because it uses AC_RUN_IFELSE
to find a library. Normally, I'd just switch that to AC_LINK_IFELSE, but
the comments kindly explain thet AC_RUN_IFELSE is needed for Mac OS X.
Bummer. So let me propose a compromise: Use AC_RUN_IFELSE with a cross
branch that uses AC_LINK_IFELSE. So the native case continues working as
is and the cross case works everywhere but Mac OS X.
The patch doesn't completely fix the build. Running help2man still
breaks cross compilation. This one is difficult and there is no silver
bullet. The options essentially are:
* Don't use help2man.
* Move the manual page to an arch:all package.
* Perform the build twice (native and cross).
* Ship a precompiled manual page in the source.
* Skip building a manual page with the nodoc profile.
Still applying my patch makes that problem visible, so please consider
applying it and close this bug when doing so.
Helmut
--- normaliz-3.6.3+ds.orig/configure.ac
+++ normaliz-3.6.3+ds/configure.ac
@@ -140,7 +140,20 @@
AC_MSG_RESULT([yes, using $SCIP_LIBS])
break
],
- [have_scip=no])
+ [have_scip=no],
+ [AC_LINK_IFELSE(
+ [AC_LANG_PROGRAM([[#include <scip/scip.h>
+ ]],
+ [[ SCIP* scip = NULL;
+ SCIPcreate(& scip);
+ return 0;
+ ]])],
+ [have_scip=yes
+ AC_MSG_RESULT([yes (cross guess), using $SCIP_LIBS])
+ break
+ ],
+ [have_scip=no])
+ ])
done
LIBS="$LIBS_SAVED"
if test $have_scip != yes ; then
--
debian-science-maintainers mailing list
[email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-science-maintainers