#!/usr/bin/env bash # # This is not generated by autoconf or similar, just handcoded, since we don't # need this much complexity # Our configuration for the makefiles !! LIBNAME=libiwdb DISTNAME="iwear/db" DISTDIR="iwear-db" VERSION=0.7.0 # include the check function library . ./conf/functions # internal configuration and needed versions EXTRACLEANFILES="test doxygen.log libiwdb* src/*.ao" STERILFILES="*.tag lib/*.a lib/*.so* include/config.h makefile.conf" STERILDIRS="doc/html" LIBLIBS="-lpthread -lpqxx -liwear_core" # Files to be linked together to the library LIBFILES_src=" debugmoduledb.o dummydb.o db.o optionguard.o recordset.o" PQLIBFILES="pgdb.o" MYSQLLIBFILES="" # do the prechecks, among others it tells us the os type class . ./conf/common_precheck . ./conf/config_cache # simple command line parameter parsing prev= option=--`echo $prev | sed 's/_/-/g'` optarg=`expr "x$option" : 'x[^=]*=\(.*\)'` for option do . ./conf/common_optionparse # These are the module specific options case $option in --with-pq-libs=* | --with-pq-lib=* | --with-pq-li=* | --with-pq-l=*) PG_LIBDIR=$optarg ;; --with-pq-include=* | --with-pq-includ=* | --with-pq-inclu=* | --with-pq-incl=* | --with-pq-inc=* | --with-pq-in=* | --with-pq-i=*) PG_INCLUDE=$optarg ;; --with-pqxx-libs=* | --with-pqxx-lib=* | --with-pqxx-li=* | --with-pqxx-l=*) PQXX_LIBDIR=$optarg ;; --with-pqxx-include=* | --with-pqxx-includ=* | --with-pqxx-inclu=* | --with-pqxx-incl=* | --with-pqxx-inc=* | --with-pqxx-in=* | --with-pqxx-i=*) PQXX_INCLUDE=$optarg ;; -force-dummy | --force-dumm | --force-dum | --force-du | --force-d | --force- | --force | --forc | --for | --fo | --f) DUMMY=yes ;; esac # This file contains the loop end as well as the common variable setting and the default case . ./conf/common_optiondefaults done set_dirs . ./conf/common_help add_help "Fine Tuning of library and include directories:" add_help "\t--with-pq-libs=DIR\tThe directory where libpq.so can be found" add_help "\t--with-pq-include=DIR\tThe directory where the libpq includes can be found" add_help "\t--with-pqxx-libs=DIR\tThe directory where libpqxx.so can be found" add_help "\t--with-pqxx-include=DIR\tThe directory where libpqxx.so includes can be found" add_help "" maybe_display_help write_config_cache $@ check_dynlib check_echo check_pkg_config check_pgsql 8.1.0 check_libpq 8.1.0 check_libpqxx 2.5.5 check_iwear 0.7.0 check_doxygen LIBFILES_src="$LIBFILES_src $PQLIBFILES" gen_makefile makefile.conf gen_config $CONFIG_H output_config PREFIX SYSCONF