Commit b6a00614 authored by Bastian Germann's avatar Bastian Germann Committed by Benoît Minisini

Changes to the build system

parent 2aad9c06
......@@ -11,8 +11,8 @@ dnl ---- bzlib2 compression driver
GB_COMPONENT(
bzlib2, BZLIB2, gb.compress.bzlib2, [src],
[GB_FIND(bzlib.h, /usr/local/lib /usr/local /opt /usr/lib /usr, include)],
[GB_FIND(libbz2.$SHLIBEXT, /usr/local /opt /usr, lib)],
[GB_FIND(bzlib.h, $prefix /usr/local/lib /usr/local /opt /usr/lib /usr, include)],
[GB_FIND(libbz2.$SHLIBEXT, $prefix /usr/local /opt /usr, lib)],
[$C_LIB -lbz2])
dnl ---- Create makefiles
......
......@@ -9,8 +9,8 @@ AC_PROG_LIBTOOL
GB_COMPONENT(
crypt, CRYPT, gb.crypt, [src],
[GB_FIND(crypt.h, /usr/lib /usr, include)],
[GB_FIND(libcrypt.$SHLIBEXT, /usr/local /usr, lib)],
[GB_FIND(crypt.h, $prefix /usr/lib /usr, include)],
[GB_FIND(libcrypt.$SHLIBEXT, $prefix /usr/local /usr, lib)],
[-lcrypt])
AC_OUTPUT( \
......
......@@ -10,8 +10,8 @@ dnl LT_INIT
GB_COMPONENT(
mysql, MYSQL, gb.db.mysql, [src],
[GB_FIND(mysql.h my_config.h, /opt/local /opt /usr/local/lib /usr/local /usr/lib /usr, include mysql*/include)],
[GB_FIND(libmysqlclient.$SHLIBEXT, /opt/local /opt /usr/local /usr, lib mysql*/lib)],
[GB_FIND(mysql.h my_config.h, $prefix /opt/local /opt /usr/local/lib /usr/local /usr/lib /usr, include mysql*/include)],
[GB_FIND(libmysqlclient.$SHLIBEXT, $prefix /opt/local /opt /usr/local /usr, lib mysql*/lib)],
[$C_LIB -lmysqlclient -lz])
AC_OUTPUT( \
......
......@@ -13,8 +13,8 @@ dnl ---- ODBC driver
GB_COMPONENT(
odbc, ODBC, gb.db.odbc, [src],
[GB_FIND(sql.h sqlext.h sqltypes.h, /usr/local/lib /usr/local /opt /usr/lib /usr, include odbc*/include)],
[GB_FIND(libodbc.$SHLIBEXT, /usr/local /opt /usr /opt/local, lib odbc*/lib )],
[GB_FIND(sql.h sqlext.h sqltypes.h, $prefix /usr/local/lib /usr/local /opt /usr/lib /usr, include odbc*/include)],
[GB_FIND(libodbc.$SHLIBEXT, $prefix /usr/local /opt /usr /opt/local, lib odbc*/lib )],
[$C_LIB -lodbc])
dnl ---- Create makefiles
......
......@@ -13,8 +13,8 @@ dnl ---- PostgreSQL driver
GB_COMPONENT(
postgresql, POSTGRESQL, gb.db.postgresql, [src],
[GB_FIND(libpq-fe.h postgres.h pg_type.h, /usr/local/lib /usr/local /opt /usr/lib /usr, include/pgsql* pgsql*/include include/postgresql* postgresql*/include include/postgresql/*/server/catalog include/postgresql/*/server include)],
[GB_FIND(libpq.$SHLIBEXT, /usr/local /opt /usr, lib pgsql*/lib postgresql*/lib)],
[GB_FIND(libpq-fe.h postgres.h pg_type.h, $prefix /usr/local/lib /usr/local /opt /usr/lib /usr, include/pgsql* pgsql*/include include/postgresql* postgresql*/include include/postgresql/*/server/catalog include/postgresql/*/server include)],
[GB_FIND(libpq.$SHLIBEXT, $prefix /usr/local /opt /usr, lib pgsql*/lib postgresql*/lib)],
[$C_LIB -lpq])
dnl ---- Create makefiles
......
......@@ -12,8 +12,8 @@ GB_COMPONENT(
GMP,
gb.gmp,
[src],
[GB_FIND(gmp.h, /usr/local /usr /opt/local, include)],
[GB_FIND(libgmp.$SHLIBEXT, /usr/local /usr /opt/local, lib)],
[GB_FIND(gmp.h, $prefix /usr/local /usr /opt/local, include)],
[GB_FIND(libgmp.$SHLIBEXT, $prefix /usr/local /usr /opt/local, lib)],
[$C_LIB -lgmp],
[ ])
AC_OUTPUT( Makefile src/Makefile )
......
......@@ -9,7 +9,7 @@ AC_PROG_LIBTOOL
GB_COMPONENT_PKG_CONFIG(
ncurses, NCURSES, gb.ncurses, [src],
ncurses)
ncurses panel)
AC_OUTPUT( \
Makefile \
......
......@@ -13,8 +13,8 @@ GB_COMPONENT_PKG_CONFIG(
GB_COMPONENT(
v4l, V4L, gb.v4l, [src],
[GB_FIND(png.h jpeglib.h linux/videodev2.h, /usr/local/lib /usr/local /usr/lib /usr, include)],
[GB_FIND(libpng.$SHLIBEXT libjpeg.$SHLIBEXT, /usr/local /usr, lib)],
[GB_FIND(png.h jpeglib.h linux/videodev2.h, $prefix /usr/local/lib /usr/local /usr/lib /usr, include)],
[GB_FIND(libpng.$SHLIBEXT libjpeg.$SHLIBEXT, $prefix /usr/local /usr, lib)],
[$C_LIB -ljpeg -lpng])
AC_OUTPUT( \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment