X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=configure.in;h=d8f96de41ca0ee9d8e28e670ec3f6c5269df517b;hb=b1a719dd4c617767af64714c9cad69f0f301fdb2;hp=ab539c2156ca02d9f9f21fddb968ca1418ef207d;hpb=e2b4c0787a4398199ef2d35e05963acd58b7a04c;p=simgear.git diff --git a/configure.in b/configure.in index ab539c21..d8f96de4 100644 --- a/configure.in +++ b/configure.in @@ -34,17 +34,14 @@ AC_PROG_RANLIB AC_PROG_INSTALL AC_PROG_LN_S +AR="ar" OS=`uname -s` -if test $OS = "IRIX" -o $OS = "IRIX64"; then - if text $CC = "CC"; then +if test "$OS" = "IRIX" -o "$OS" = "IRIX64"; then + if test "$CXX" = "CC"; then AR="CC -ar" - else - AR="ar" + AC_SUBST(AR) fi -else - AR="ar" fi -AC_SUBST(AR) if echo $includedir | egrep "simgear$" > /dev/null; then echo "includedir is" $includedir "libdir is" $libdir @@ -353,3 +350,9 @@ if test "x$ac_cv_lib_pthread_pthread_exit" = "xyes" -a "x$ac_cv_header_pthread_h else echo "Threads: no threads (pthread lib not found.)" fi + +if test "$OS" = "IRIX" -o "$OS" = "IRIX64"; then + if test "$CXX" = "CC"; then + echo "\nRemember to run: sh ../FlightGear/irix-hack.sh!\07\n" + fi +fi