Code

01-unnecessary-libs.patch: Do not add any X related libs at all.
authorSebastian Harl <sh@tokkee.org>
Fri, 10 Oct 2008 14:12:20 +0000 (16:12 +0200)
committerSebastian Harl <sh@tokkee.org>
Fri, 10 Oct 2008 14:20:23 +0000 (16:20 +0200)
On Debian, we don't need to link enblend/enfuse against any X libs.

debian/patches-repack/01-unnecessary-libs.patch

index 6579a5d63f61f1fafb46666d2d55cc316395e5cb..c27fcb0cf669ee433ba3518927bf201f2246495d 100644 (file)
@@ -1,12 +1,17 @@
 diff a/m4/ax_check_glut.m4 b/m4/ax_check_glut.m4
 --- a/m4/ax_check_glut.m4
 +++ b/m4/ax_check_glut.m4
 diff a/m4/ax_check_glut.m4 b/m4/ax_check_glut.m4
 --- a/m4/ax_check_glut.m4
 +++ b/m4/ax_check_glut.m4
-@@ -29,7 +29,7 @@
-   # If X is present, assume GLUT depends on it.
-   #
-   if test "X${no_x}" != "Xyes"; then
+@@ -25,13 +25,6 @@
+   GLUT_CFLAGS=${GLU_CFLAGS}
+   GLUT_LIBS=${GLU_LIBS}
+-  #
+-  # If X is present, assume GLUT depends on it.
+-  #
+-  if test "X${no_x}" != "Xyes"; then
 -    GLUT_LIBS="${X_PRE_LIBS} -lXmu -lXi ${X_EXTRA_LIBS} ${GLUT_LIBS}"
 -    GLUT_LIBS="${X_PRE_LIBS} -lXmu -lXi ${X_EXTRA_LIBS} ${GLUT_LIBS}"
-+    GLUT_LIBS="${X_PRE_LIBS} ${X_EXTRA_LIBS} ${GLUT_LIBS}"
-   fi
-
+-  fi
+-
    AC_LANG_PUSH(C)
    AC_LANG_PUSH(C)
+   ax_save_CPPFLAGS="${CPPFLAGS}"