Skip to content

Commit 1c55919

Browse files
committed
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.
1 parent a2373f7 commit 1c55919

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

config

+17
Original file line numberDiff line numberDiff line change
@@ -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

0 commit comments

Comments
 (0)