Ignore:
Timestamp:
Apr 5, 2010, 6:58:02 AM (10 years ago)
Author:
jmr@…
Message:

avoid build failure when sqlite3ext.h is not available; fix setting of tclsqlite location using pkgconfig

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/base/aclocal.m4

    r64363 r66033  
    806806            # for tclsqlite below
    807807            mp_sqlite3_dir=$($PKG_CONFIG --variable=prefix sqlite3)
    808             if test "x$mp_sqlite3_dir" = "x"; then
     808            if test "x$mp_sqlite3_dir" != "x"; then
    809809                mp_sqlite3_dir=${mp_sqlite3_dir}/lib/sqlite3
    810810            fi
     
    814814                LDFLAGS_SQLITE3="-L${sqlite3prefix}/lib -lsqlite3"
    815815        fi
     816
     817    # check if we have sqlite3ext.h, using the appropriate cppflags
     818    CPPFLAGS_OLD="${CPPFLAGS}"
     819    CPPFLAGS="${CPPFLAGS} ${CFLAGS_SQLITE3}"
     820    AC_CHECK_HEADERS(sqlite3ext.h)
     821    CPPFLAGS="${CPPFLAGS_OLD}"
    816822
    817823        AC_SUBST(CFLAGS_SQLITE3)
Note: See TracChangeset for help on using the changeset viewer.