Annotation of embedaddon/php/ext/interbase/config.m4, revision 1.1.1.1

1.1       misho       1: dnl
                      2: dnl $Id: config.m4 242949 2007-09-26 15:44:16Z cvs2svn $
                      3: dnl
                      4: 
                      5: PHP_ARG_WITH(interbase,for InterBase support,
                      6: [  --with-interbase[=DIR]  Include InterBase support.  DIR is the InterBase base
                      7:                           install directory [/usr/interbase]])
                      8: 
                      9: if test "$PHP_INTERBASE" != "no"; then
                     10:   if test "$PHP_INTERBASE" = "yes"; then
                     11:     IBASE_INCDIR=/usr/interbase/include
                     12:     IBASE_LIBDIR=/usr/interbase/lib
                     13:   else
                     14:     IBASE_INCDIR=$PHP_INTERBASE/include
                     15:     IBASE_LIBDIR=$PHP_INTERBASE/$PHP_LIBDIR
                     16:   fi
                     17: 
                     18:   PHP_CHECK_LIBRARY(fbclient, isc_detach_database,
                     19:   [
                     20:     IBASE_LIBNAME=fbclient
                     21:   ], [
                     22:     PHP_CHECK_LIBRARY(gds, isc_detach_database,
                     23:     [
                     24:       IBASE_LIBNAME=gds
                     25:     ], [
                     26:       PHP_CHECK_LIBRARY(ib_util, isc_detach_database,
                     27:       [
                     28:         IBASE_LIBNAME=ib_util
                     29:       ], [
                     30:         AC_MSG_ERROR([libgds, libib_util or libfbclient not found! Check config.log for more information.])
                     31:       ], [
                     32:         -L$IBASE_LIBDIR
                     33:       ])
                     34:     ], [
                     35:       -L$IBASE_LIBDIR
                     36:     ])
                     37:   ], [
                     38:     -L$IBASE_LIBDIR
                     39:   ])
                     40:   
                     41:   PHP_ADD_LIBRARY_WITH_PATH($IBASE_LIBNAME, $IBASE_LIBDIR, INTERBASE_SHARED_LIBADD)
                     42:   PHP_ADD_INCLUDE($IBASE_INCDIR)
                     43:   AC_DEFINE(HAVE_IBASE,1,[ ])
                     44:   PHP_NEW_EXTENSION(interbase, interbase.c ibase_query.c ibase_service.c ibase_events.c ibase_blobs.c, $ext_shared)
                     45:   PHP_SUBST(INTERBASE_SHARED_LIBADD)
                     46: fi

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>