2007-06-03 20:26:18 +00:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
2017-04-30 21:34:42 +00:00
|
|
|
# $OpenPAM$
|
2007-06-03 20:26:18 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
set -ex
|
|
|
|
|
|
|
|
. ./autogen.sh
|
|
|
|
|
|
|
|
# autoconf prior to 2.62 has issues with zsh 4.2 and newer
|
|
|
|
export CONFIG_SHELL=/bin/sh
|
|
|
|
|
2015-01-15 17:18:03 +00:00
|
|
|
# BullseyeCoverage needs to know exactly which compiler we're using
|
|
|
|
if [ -z "$CC" -a -z "$CPP" -a -z "$CXX" ] ; then
|
|
|
|
if $(which clang clang++ >/dev/null) ; then
|
|
|
|
export CC=${CC:-clang}
|
|
|
|
export CPP=${CPP:-clang -E}
|
|
|
|
export CXX=${CXX:-clang++}
|
|
|
|
elif $(which gcc g++ >/dev/null) ; then
|
|
|
|
export CC=${CC:-gcc}
|
|
|
|
export CPP=${CPP:-gcc -E}
|
|
|
|
export CXX=${CXX:-g++}
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
2007-06-03 20:26:18 +00:00
|
|
|
./configure \
|
|
|
|
--with-doc \
|
|
|
|
--with-pam-unix \
|
2011-11-02 23:42:51 +00:00
|
|
|
--with-pamtest \
|
2007-06-03 20:26:18 +00:00
|
|
|
--with-su \
|
2013-04-14 15:44:32 +00:00
|
|
|
--enable-debug \
|
2007-06-03 20:26:18 +00:00
|
|
|
--enable-developer-warnings \
|
|
|
|
--enable-werror \
|
|
|
|
"$@"
|