| 60 |
else |
else |
| 61 |
AC_LANG_CPLUSPLUS |
AC_LANG_CPLUSPLUS |
| 62 |
|
|
| 63 |
GEDCOMPARSER_CFLAGS=`$GEDCOMPARSER_CONFIG $gedcomparser_config_args --cflags` |
GEDCOMPARSER_CFLAGS=`$GEDCOMPARSER_CONFIG $gedcomparser_config_args --cflags gedcomparser` |
| 64 |
GEDCOMPARSER_LIBS=`$GEDCOMPARSER_CONFIG $gedcomparser_config_args --libs` |
GEDCOMHELPER_CFLAGS=`$GEDCOMPARSER_CONFIG $gedcomparser_config_args --cflags gedcomhelper` |
| 65 |
|
GEDCOMPARSER_LIBS=`$GEDCOMPARSER_CONFIG $gedcomparser_config_args --libs gedcomparser` |
| 66 |
|
GEDCOMHELPER_LIBS=`$GEDCOMPARSER_CONFIG $gedcomparser_config_args --libs gedcomhelper` |
| 67 |
gedcomparser_config_major_version=`$GEDCOMPARSER_CONFIG $gedcomparser_config_args --version | \ |
gedcomparser_config_major_version=`$GEDCOMPARSER_CONFIG $gedcomparser_config_args --version | \ |
| 68 |
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'` |
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'` |
| 69 |
gedcomparser_config_minor_version=`$GEDCOMPARSER_CONFIG $gedcomparser_config_args --version | \ |
gedcomparser_config_minor_version=`$GEDCOMPARSER_CONFIG $gedcomparser_config_args --version | \ |
| 73 |
if test "x$enable_gedcomparsertest" = "xyes" ; then |
if test "x$enable_gedcomparsertest" = "xyes" ; then |
| 74 |
ac_save_CXXFLAGS="$CXXFLAGS" |
ac_save_CXXFLAGS="$CXXFLAGS" |
| 75 |
ac_save_LIBS="$LIBS" |
ac_save_LIBS="$LIBS" |
| 76 |
CXXFLAGS="$CXXFLAGS $GEDCOMPARSER_CFLAGS" |
CXXFLAGS="$CXXFLAGS $GEDCOMPARSER_CFLAGS $GEDCOMHELPER_CFLAGS" |
| 77 |
LIBS="$LIBS $GEDCOMPARSER_LIBS" |
LIBS="$LIBS $GEDCOMPARSER_LIBS $GEDCOMHELPER_LIBS" |
| 78 |
dnl |
dnl |
| 79 |
dnl Now check if the installed GEDCOMPARSER is sufficiently new. (Also sanity |
dnl Now check if the installed GEDCOMPARSER is sufficiently new. (Also sanity |
| 80 |
dnl checks the results of gedcomparser-config to some extent |
dnl checks the results of gedcomparser-config to some extent |
| 84 |
|
|
| 85 |
#include "GEDCOMParser/Parser.hh" |
#include "GEDCOMParser/Parser.hh" |
| 86 |
#include "GEDCOMParser/GEDCOMFactory.hh" |
#include "GEDCOMParser/GEDCOMFactory.hh" |
| 87 |
|
#include "GEDCOMHelper/IndividualRecordHelper.hh" |
| 88 |
|
|
| 89 |
int |
int |
| 90 |
main () |
main () |
| 91 |
{ |
{ |
| 92 |
system ("touch conf.gtkmmtest"); |
system ("touch conf.gedcomparsertest"); |
| 93 |
GEDCOMParser::GEDCOMFactory factory; |
GEDCOMParser::GEDCOMFactory factory; |
| 94 |
GEDCOMParser::Parser viewparser(&factory); |
GEDCOMParser::Parser viewparser(&factory); |
| 95 |
|
GEDCOMHelper::IndividualRecordHelper(0,0); |
| 96 |
return 0; |
return 0; |
| 97 |
} |
} |
| 98 |
],, no_gedcomparser=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"]) |
],, no_gedcomparser=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"]) |
| 150 |
AC_LANG_RESTORE |
AC_LANG_RESTORE |
| 151 |
AC_SUBST(GEDCOMPARSER_CFLAGS) |
AC_SUBST(GEDCOMPARSER_CFLAGS) |
| 152 |
AC_SUBST(GEDCOMPARSER_LIBS) |
AC_SUBST(GEDCOMPARSER_LIBS) |
| 153 |
|
AC_SUBST(GEDCOMHELPER_CFLAGS) |
| 154 |
|
AC_SUBST(GEDCOMHELPER_LIBS) |
| 155 |
rm -f conf.gedcomparsertest |
rm -f conf.gedcomparsertest |
| 156 |
]) |
]) |
| 157 |
|
|