Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
76 lines (59 sloc) 1.88 KB
## core configure.in.in
## initialize
@YAST2-INIT-COMMON@
AC_SYS_LARGEFILE
@YAST2-INIT-PROGRAM@
yastdocdir=\${datadir}/doc/yastdoc/html
AC_SUBST(yastdocdir)
## special stuff
# libycp needs flex and bison
AM_PROG_LEX
if test -z "$LEX"; then
AC_MSG_ERROR([Install the package flex.])
fi
AC_CHECK_PROGS(YACC, 'bison -y -d -v' byacc, false)
if test "$YACC" = false; then
AC_MSG_ERROR([bison not installed])
fi
# liby2:Y2SerialComponent needs termios.h in glibc-devel
# (not term.h in ncurses-devel)
Y2UTIL_CFLAGS='-I$(top_srcdir)/liby2util-r/src/include'
Y2UTIL_LIBS='$(top_builddir)/liby2util-r/src/liby2util.la'
AC_SUBST(Y2UTIL_CFLAGS)
AC_SUBST(Y2UTIL_LIBS)
# for historic reasons this value is called SUSEVERSION
SUSEVERSION=`echo $VERSION | cut -d . -f 1,2`
AC_SUBST(SUSEVERSION)
AGENT_INCLUDES='dnl
-I$(top_srcdir)/libycp/src/include dnl
-I$(top_srcdir)/liby2/src/include dnl
-I$(top_srcdir)/libscr/src/include dnl
${Y2UTIL_CFLAGS}'
AC_SUBST(AGENT_INCLUDES)
# override AGENT_LIBADD which is AC_SUBSTed in YAST2-CHECKS-PROGRAM
AGENT_LIBADD='dnl
$(top_builddir)/libscr/src/libscr.la dnl
$(top_builddir)/libycp/src/libycp.la dnl
$(top_builddir)/libycp/src/libycpvalues.la dnl
$(top_builddir)/liby2/src/liby2.la dnl
${Y2UTIL_LIBS}'
AC_PROG_CXX
# gnu++0x instead of c++0x so that
# we do not lose gnu extensions like typeof
# FIXME: rename to Y2CORE_CXXFLAGS and change in devtools:y2autoconf
Y2CORE_CFLAGS="-std=gnu++0x"
AC_SUBST(Y2CORE_CFLAGS) dnl included in CXXFLAGS in YAST2-CHECKS-PROGRAM
AC_CHECK_HEADERS(xcrypt.h)
AC_CHECK_LIB(owcrypt, crypt_gensalt_rn,
[CRYPTO_LIBS="-lowcrypt -lcrypt"],
AC_CHECK_LIB(xcrypt, crypt_gensalt_rn,
[CRYPTO_LIBS="-lxcrypt"],
[CRYPTO_LIBS="-lcrypt"])
)
AC_SUBST(CRYPTO_LIBS)
CREATE_PKGCONFIG=true
## some common checks
@YAST2-CHECKS-COMMON@
@YAST2-CHECKS-PROGRAM@
@YAST2-CHECKS-TESTSUITE@
@YAST2-OUTPUT@
You can’t perform that action at this time.