gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] gnash configure.ac macros/gnashpkgtool.m4


From: Markus Gothe
Subject: [Gnash-commit] gnash configure.ac macros/gnashpkgtool.m4
Date: Sun, 26 Nov 2006 11:46:30 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Markus Gothe <nihilus>  06/11/26 11:46:30

Modified files:
        .              : configure.ac 
        macros         : gnashpkgtool.m4 

Log message:
        Fixes...

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/configure.ac?cvsroot=gnash&r1=1.218&r2=1.219
http://cvs.savannah.gnu.org/viewcvs/gnash/macros/gnashpkgtool.m4?cvsroot=gnash&r1=1.31&r2=1.32

Patches:
Index: configure.ac
===================================================================
RCS file: /sources/gnash/gnash/configure.ac,v
retrieving revision 1.218
retrieving revision 1.219
diff -u -b -r1.218 -r1.219
--- configure.ac        26 Nov 2006 11:29:36 -0000      1.218
+++ configure.ac        26 Nov 2006 11:46:30 -0000      1.219
@@ -15,7 +15,7 @@
 dnl  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 dnl  
 
-dnl $Id: configure.ac,v 1.218 2006/11/26 11:29:36 nihilus Exp $
+dnl $Id: configure.ac,v 1.219 2006/11/26 11:46:30 nihilus Exp $
 
 AC_PREREQ(2.50)
 AC_INIT(gnash, cvs)
@@ -661,7 +661,7 @@
 AM_CONDITIONAL(HAVE_GST, test x$sound_handler = xgst)
 
 if test x$gui = xfltk; then
-       GNASH_PKG_FIND(fltk, [FL_API.h], [gstreamer library], fl_xmap, [], 
[-lfltk_gl])
+       GNASH_PKG_FIND(fltk, [FL_API.h], [fltk library], fl_xmap, [], 
[-lfltk_gl])
 fi
 
 AM_CONDITIONAL(HAS_FLTK, [ test x$has_fltk = xyes ])

Index: macros/gnashpkgtool.m4
===================================================================
RCS file: /sources/gnash/gnash/macros/gnashpkgtool.m4,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -b -r1.31 -r1.32
--- macros/gnashpkgtool.m4      26 Nov 2006 11:16:55 -0000      1.31
+++ macros/gnashpkgtool.m4      26 Nov 2006 11:46:30 -0000      1.32
@@ -14,7 +14,7 @@
 dnl  along with this program; if not, write to the Free Software
 dnl  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 
-dnl $Id: gnashpkgtool.m4,v 1.31 2006/11/26 11:16:55 nihilus Exp $
+dnl $Id: gnashpkgtool.m4,v 1.32 2006/11/26 11:46:30 nihilus Exp $
 
 dnl Generic macros for finding and setting include-paths and library-path
 dnl for packages. Implements GNASH_PKG_INCLUDES() and GNASH_PKG_LIBS().
@@ -61,11 +61,13 @@
                $PKG_CONFIG --exists DOWN[] && ac_cv_path_$1_incl=`$PKG_CONFIG 
--cflags DOWN[]`
                $PKG_CONFIG --exists lib$name && ac_cv_path_$1_lib=`$PKG_CONFIG 
--cflags lib$name`
                $PKG_CONFIG --exists $name && ac_cv_path_$1_incl=`$PKG_CONFIG 
--cflags $name`
+               AC_MSG_CHECKING([for $2 header])
+               AC_MSG_RESULT(${ac_cv_path_$1_incl})
        fi
 
        dnl If the path hasn't been specified, go look for it.
        if test x"${ac_cv_path_$1_incl}" = x; then
-               AC_CHECK_HEADERS($1/$2 $2 $name/$2, 
[ac_cv_path_$1_incl="-I/usr/include/$name"],[
+               AC_CHECK_HEADER($2, 
[ac_cv_path_$1_incl=""],[AC_CHECK_HEADER($1/$2, 
[ac_cv_path_$1_incl="-I/usr/include/$1"],[AC_CHECK_HEADER($name/$2, 
[ac_cv_path_$1_incl="-I/usr/include/$name"],[
                if test x"${ac_cv_path_$1_incl}" = x; then
                incllist="${prefix}/${target_alias}/include ${prefix}/include 
/sw/include /usr/nekoware/include /usr/freeware/include /pkg/include 
/opt/local/include /usr/local/include /home/latest/include /opt/include 
/opt/mesa/include /opt/include /usr/X11R6/include /usr/include /usr/pkg/include 
.. ../.."
                for i in $incllist; do
@@ -86,11 +88,10 @@
                done
                fi
                ])
+               ])
+               ])
        fi
 
-       AC_MSG_CHECKING([for $2 header])
-       AC_MSG_RESULT(${ac_cv_path_$1_incl})
-
        if test x"${ac_cv_path_$1_incl}" != x ; then
                UP[]_CFLAGS="${ac_cv_path_$1_incl}"
        else
@@ -147,6 +148,8 @@
                $PKG_CONFIG --exists DOWN[] && ac_cv_path_$1_lib=`$PKG_CONFIG 
--libs DOWN[]`
                $PKG_CONFIG --exists lib$name && ac_cv_path_$1_lib=`$PKG_CONFIG 
--libs lib$name`
                $PKG_CONFIG --exists $name && ac_cv_path_$1_lib=`$PKG_CONFIG 
--libs $name`
+               AC_MSG_CHECKING([for lib$1 library])      
+               AC_MSG_RESULT(${ac_cv_path_$1_lib})
        fi
 
        if test x"${ac_cv_path_$1_lib}" = x; then
@@ -180,9 +183,6 @@
                LIBS=$ac_save_LIBS
        fi
 
-       AC_MSG_CHECKING([for lib$1 library])      
-       AC_MSG_RESULT(${ac_cv_path_$1_lib})
-
        if test x"${ac_cv_path_$1_lib}" != x ; then
                UP[]_LIBS="${ac_cv_path_$1_lib}"
                has_$1=yes
@@ -197,7 +197,7 @@
 popdef([DOWN])
 ])
 
-AC_DEFUN([GNASH_PKG_FIND], dnl GNASH_PKG_FIND(fltk, [FL_API.h], [gstreamer 
library], fl_xmap, [], [-lfltk_gl])
+AC_DEFUN([GNASH_PKG_FIND], dnl GNASH_PKG_FIND(fltk, [FL_API.h], [fltk gui], 
fl_xmap, [], [-lfltk_gl])
 [
 GNASH_PKG_INCLUDES($1, $2, $3, $5)
 GNASH_PKG_LIBS($1, $4, $3, $5, $6)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]