Skip to content

Commit

Permalink
Merge pull request #17 from jwittkoski/build_updates
Browse files Browse the repository at this point in the history
Build updates
  • Loading branch information
manuelkasper committed Nov 17, 2015
2 parents dae4d8a + e7a237c commit e3cc608
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
12 changes: 10 additions & 2 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@
# Defaults
APXS=/usr/sbin/apxs
test -x $APXS || unset APXS
if [ -z $APXS ]; then
APXS=/usr/bin/apxs
test -x $APXS || unset APXS
fi
if [ -z $APXS ]; then
APXS=/usr/bin/apxs2
test -x $APXS || unset APXS
fi

ME=`basename $0`
DIR=`dirname $0`
Expand All @@ -14,7 +22,7 @@ if [ $DIR = '.' ]; then
fi

usage() {
echo "usage: $ME [--apxs=/path/to/apxs] [--apachever=<1.3|2|2.2>] [--debug]"
echo "usage: $ME [--apxs=/path/to/apxs] [--apachever=<1.3|2|2.2|2.4>] [--debug]"
}
die() {
echo $*
Expand Down Expand Up @@ -64,7 +72,7 @@ test -x $APXS || die "Error: missing apxs '$APXS' (use --apxs=/path/to/apxs)"
# Get Apache version
if [ -z "$VERSION" ]; then
HTTPD=`$APXS -q SBINDIR`/`$APXS -q TARGET`
test -x $HTTPD || die "Error: cannot determine apache version (use --apachever=<1.3|2|2.2>)"
test -x $HTTPD || die "Error: cannot determine apache version (use --apachever=<1.3|2|2.2|2.4>)"
VERSION=`$HTTPD -v | head -1 | sed -e 's/.*Apache\///' -e 's/^\([0-9]\.[0-9]*\).*/\1/'`
fi
# Standardise
Expand Down
4 changes: 2 additions & 2 deletions mod_auth_pubtkt.spec
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ Single sign-on module for Apache, based on mod_auth_tkt.
%setup -q

%build
./configure --apxs=%{_sbindir}/apxs
%{_sbindir}/apxs -c -Wc,"-Wall -ansi" -Wl,-lcrypto src/mod_auth_pubtkt.c
./configure
make

%install
rm -rf %{buildroot}
Expand Down

0 comments on commit e3cc608

Please sign in to comment.