Re: Debian package build fails due to duplicated svga driver in Makefile

Dominique Dumont <[email protected]>
Newsgroups gmane.comp.sysutils.lcdproc
Message-ID <[email protected]>
Le jeudi 10 mars 2011 22:43:09, Markus Dolze a écrit :
> Because AC_CHECK_HEADERS checks for two headers, action if found is run
> two times, thus the driver is added two times.

Thanks for pointing me in the right direction.

Here's a hack on configure that enables me to build the package:

--- a/configure
+++ b/configure
@@ -8326,10 +8326,12 @@
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_vga_main" >&5
 $as_echo "$ac_cv_lib_vga_main" >&6; }
 if test "x$ac_cv_lib_vga_main" = xyes; then :
-
+       if test "x$svga_done" != xyes; then :
                                        LIBSVGA="-lvga -lvgagl"
                                        DRIVERS="$DRIVERS svga${SO}"
                                        actdrivers="$actdrivers svga"
+                                       svga_done="yes"
+    fi
 
 else
 
I guess that a similar hack can be used in the shell snippet in acinclude.m4

Hope this helps

Dominique
--
http://config-model.wiki.sourceforge.net/ -o- http://search.cpan.org/~ddumont/
http://www.ohloh.net/accounts/ddumont     -o- http://ddumont.wordpress.com/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.