## general configure.in.in ## initialize @YAST2-INIT-COMMON@ @YAST2-INIT-PROGRAM@ ## some common checks @YAST2-CHECKS-COMMON@ @YAST2-CHECKS-PROGRAM@ AC_PROGRAM_PATH(PERL, perl) if test -z "$PERL" ; then AC_MSG_ERROR(perl is missing; please install perl 5.x or later.) fi AC_SUBST(PERL) ## Find out what compiler/linker flags an embedded Perl interpreter needs PERL_CFLAGS=`perl -MExtUtils::Embed -e 'ccopts'` PERL_LDFLAGS=`perl -MExtUtils::Embed -e 'ldopts'` AC_SUBST(PERL_CFLAGS) AC_SUBST(PERL_LDFLAGS) CFLAGS="${CFLAGS} ${PERL_CFLAGS}" CXXFLAGS="${CXXFLAGS} ${PERL_CFLAGS}" ## Where to install modules PERL_VENDORARCH=`perl -V:vendorarch | sed "s!.*='!!;s!'.*!!"` AC_SUBST(PERL_VENDORARCH) ## make a literal of yast2dir so that it can be used in perl instead ## of shell eval yast2dir4perl='"'$yast2dir'"' AC_SUBST(yast2dir4perl) ## and generate the output AC_OUTPUT(src/YaPI.pm) @YAST2-OUTPUT@