diff options
author | Brent Cook <bcook@openbsd.org> | 2014-10-30 15:40:57 -0500 |
---|---|---|
committer | Brent Cook <bcook@openbsd.org> | 2014-10-31 07:35:06 -0500 |
commit | 1c5591947a8d57d54bf0fb17871a1799e96500b4 (patch) | |
tree | a1f04c208e0432d262260ac255b4c2db35ec8b11 | |
parent | a2373f7007b78e0059b8e9516666ee23ac6b7671 (diff) | |
download | portable-1c5591947a8d57d54bf0fb17871a1799e96500b4.tar.gz portable-1c5591947a8d57d54bf0fb17871a1799e96500b4.tar.bz2 portable-1c5591947a8d57d54bf0fb17871a1799e96500b4.zip |
Add an OpenSSL compatible ./config wrapper
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.
-rwxr-xr-x | config | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -0,0 +1,17 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | # This file exists for backwards-compatibility with build systems that expect a | ||
4 | # config script similar to OpenSSL's. | ||
5 | |||
6 | # New software should prefer the native configure script over this one. | ||
7 | |||
8 | ARGS="" | ||
9 | for var in "$@"; do | ||
10 | case $var in | ||
11 | no-shared ) ARGS="$ARGS --disable-shared";; | ||
12 | no-asm ) ARGS="$ARGS --disable-asm";; | ||
13 | --prefix* ) ARGS="$ARGS $var";; | ||
14 | esac | ||
15 | done | ||
16 | |||
17 | ./configure $ARGS | ||