From: stephan b. <sg...@us...> - 2004-12-22 22:11:25
|
Update of /cvsroot/pclasses/pclasses2 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22738 Added Files: configure.pclasses2 toc.pclasses2.make.at Log Message: egg --- NEW FILE: toc.pclasses2.make.at --- #!/do/not/make #^^^ only to help emacs out. CLEAN_FILES += $(wildcard *.o *~) CXXFLAGS += -fPIC INSTALL_PACKAGE_HEADERS_DEST = $(prefix)/include/pclasses2 INCLUDES += $(PACKAGE_INCLUDES) --- NEW FILE: configure.pclasses2 --- #!/do/not/bash #^^^ this helps emacs out, so it'll start in shell-script-mode # This is the configure script for the pclasses source tree. toc_add_config PACKAGE_RELEASE_CODENAME="The Rewrite" toc_test check_dist_md5s toc_export PACKAGE_DESCRIPTION="C++ generic application framework library" toc_source_test user_is_stephan_beal # ^^^ don't ask. Must come before gnu_cpp_tools test. ####### compilers: toc_test_require gnu_cpp_tools toc_test_require gcc_try_compile ${TOC_HOME}/tests/cpp/check_stl_newstyle.cpp test x1 = x${configure_enable_ccdv} && toc_test use_ccdv ####### docs: toc_find lyx ${configure_with_lyx%/*}:$PATH && toc_export LYX_BIN=${TOC_FIND_RESULT} ############################################################ # accumulate -I and -L/-l entries here: includes_path= ldadd= ############################################################ ############################################################ # supplemental libs { for i in mysql_clients; do toc_test $i done } # toc_test libexpat # && ldadd="${ldadd} -lexpat" use_pthread=0 toc_test gcc_try_compile ${TOC_HOME}/tests/c/check_for_pthread.c && { use_pthread=1 cli_ldadd="${cli_ldadd} -lpthread" } toc_export eshell_HAVE_PTHREAD=${use_pthread} unset use_pthread if test x0 = "x${use_pthread}" ; then toc_die 127 "The tree currently needs pthreads. To be fixed." fi ######################################################################## # TODO: # figure out the list of -lLIBS for clients to link against, based # on what modules we will build! removeDupes=${TOC_HOME}/bin/removeDupeArgs CLIENT_LDADD="$(${removeDupes} -L${prefix}/lib -lpclasses2)" CLIENT_INCLUDES="$(${removeDupes} -I${prefix}/include)" #{ # generate PACKAGE_NAME-config: # export ldadd # export includes_path # toc_test_require PACKAGE_NAME-config # PACKAGE_PREFIX="${PACKAGE_NAME}_" # CLIENT_LDADD="${CLIENT_LDADD}" # CLIENT_INCLUDES="${CLIENT_INCLUDES})" # import the PACKAGE_NAME-config info to ease life for us later on... # eval $(./${PACKAGE_NAME}-config --toc-config | sed -e 's/$/; /') # echo -e "ldadd=${ldadd}\nLIBS11N_LDADD=${LIBS11N_LDADD}\nLIBS11N_CLIENT_LDADD=${LIBS11N_CLIENT_LDADD}" # unset includes_path # unset ldadd #} #PACKAGE_CFLAGS="${PCLASSES2_CLIENT_INCLUDES}" # PACKAGE_LDADD="${PCLASSES2_CLIENT_LDADD}" # toc_test_require create_pkg-config_data ###### stuff: toc_add_config BUILD_USER="$USER" toc_add_config BUILD_HOST=`hostname` toc_add_config PACKAGE_EMAIL_ADDRESS=pcl...@li... toc_add_config PACKAGE_URL=http://pclasses.com toc_add_config PACKAGE_LICENSE="GNU LGPL" ##### close the config-filtered files: toc_test_require atfilter_file include/pclasses/pclasses_config.h.at include/pclasses/pclasses_config.h toc_test_require toc_project_makefile return 0 |