Changeset 200 for trunk/configure


Ignore:
Timestamp:
Apr 5, 2006, 12:41:47 AM (16 years ago)
Author:
joshe
Message:

Add check for a working compiler and print a helpful error if one is not found.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure

    r196 r200  
    3838
    3939EOF
     40}
     41
     42cc_test()
     43{
     44  cat > testconf.c <<EOF
     45  int main()
     46  {
     47    return 0;
     48  }
     49EOF
     50  if ! $CC -o testconf testconf.c > /dev/null 2>&1; then
     51    rm -f testconf.c testconf
     52    echo "Could not find a working compiler"
     53    exit 1
     54  fi
     55  rm -f testconf.c testconf
    4056}
    4157
     
    233249
    234250#
     251# First things first, check to see if there's a compiler installed
     252#
     253cc_test
     254
     255#
    235256# OpenSSL settings
    236257#
Note: See TracChangeset for help on using the changeset viewer.