Skip to content

Commit

Permalink
Add an OpenSSL compatible ./config wrapper
Browse files Browse the repository at this point in the history
This allows sofware expecting OpenSSL's config script, to a limited
extent, to continue building without changes.

Thanks to technion for pointing this out and providing the initial
patch.
  • Loading branch information
busterb committed Oct 31, 2014
1 parent a2373f7 commit 1c55919
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions config
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/sh

# This file exists for backwards-compatibility with build systems that expect a
# config script similar to OpenSSL's.

# New software should prefer the native configure script over this one.

ARGS=""
for var in "$@"; do
case $var in
no-shared ) ARGS="$ARGS --disable-shared";;
no-asm ) ARGS="$ARGS --disable-asm";;
--prefix* ) ARGS="$ARGS $var";;
esac
done

./configure $ARGS

0 comments on commit 1c55919

Please sign in to comment.