diff options
Diffstat (limited to 'src/lib/libssl/src/config')
-rw-r--r-- | src/lib/libssl/src/config | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/src/lib/libssl/src/config b/src/lib/libssl/src/config index dde9275b76..68e7ea1737 100644 --- a/src/lib/libssl/src/config +++ b/src/lib/libssl/src/config | |||
@@ -29,7 +29,7 @@ EXE="" | |||
29 | for i | 29 | for i |
30 | do | 30 | do |
31 | case "$i" in | 31 | case "$i" in |
32 | -d*) PREFIX="debug-";; | 32 | -d) PREFIX="debug-";; |
33 | -t*) TEST="true";; | 33 | -t*) TEST="true";; |
34 | -h*) TEST="true"; cat <<EOF | 34 | -h*) TEST="true"; cat <<EOF |
35 | Usage: config [options] | 35 | Usage: config [options] |
@@ -399,11 +399,8 @@ exit 0 | |||
399 | # this is where the translation occurs into SSLeay terms | 399 | # this is where the translation occurs into SSLeay terms |
400 | # --------------------------------------------------------------------------- | 400 | # --------------------------------------------------------------------------- |
401 | 401 | ||
402 | # figure out if gcc is available and if so we use it otherwise | ||
403 | # we fallback to whatever cc does on the system | ||
404 | GCCVER=`(gcc -dumpversion) 2>/dev/null` | 402 | GCCVER=`(gcc -dumpversion) 2>/dev/null` |
405 | if [ "$GCCVER" != "" ]; then | 403 | if [ "$GCCVER" != "" ]; then |
406 | CC=gcc | ||
407 | # then strip off whatever prefix egcs prepends the number with... | 404 | # then strip off whatever prefix egcs prepends the number with... |
408 | # Hopefully, this will work for any future prefixes as well. | 405 | # Hopefully, this will work for any future prefixes as well. |
409 | GCCVER=`echo $GCCVER | LC_ALL=C sed 's/^[a-zA-Z]*\-//'` | 406 | GCCVER=`echo $GCCVER | LC_ALL=C sed 's/^[a-zA-Z]*\-//'` |
@@ -412,8 +409,17 @@ if [ "$GCCVER" != "" ]; then | |||
412 | # major and minor version numbers. | 409 | # major and minor version numbers. |
413 | # peak single digit before and after first dot, e.g. 2.95.1 gives 29 | 410 | # peak single digit before and after first dot, e.g. 2.95.1 gives 29 |
414 | GCCVER=`echo $GCCVER | sed 's/\([0-9]\)\.\([0-9]\).*/\1\2/'` | 411 | GCCVER=`echo $GCCVER | sed 's/\([0-9]\)\.\([0-9]\).*/\1\2/'` |
415 | else | 412 | fi |
416 | CC=cc | 413 | |
414 | # Only set CC if not supplied already | ||
415 | if [ -z "$CC" ]; then | ||
416 | # figure out if gcc is available and if so we use it otherwise | ||
417 | # we fallback to whatever cc does on the system | ||
418 | if [ "$GCCVER" != "" ]; then | ||
419 | CC=gcc | ||
420 | else | ||
421 | CC=cc | ||
422 | fi | ||
417 | fi | 423 | fi |
418 | GCCVER=${GCCVER:-0} | 424 | GCCVER=${GCCVER:-0} |
419 | if [ "$SYSTEM" = "HP-UX" ];then | 425 | if [ "$SYSTEM" = "HP-UX" ];then |