$NetBSD: patch-aa,v 1.4 2010/08/27 06:11:50 adam Exp $

--- configure.orig	2010-02-17 16:05:40.000000000 +0000
+++ configure
@@ -2477,7 +2477,7 @@ if test "${with_cxx+set}" = set; then
 ##       CFLAGS=
      ;;
    esac
-      CXX_OPTIMIZE_FLAGS=="+K3 -O3"
+      CXX_OPTIMIZE_FLAGS="+K3 -O3"
       CXX_DEBUG_FLAGS="-g +K0"
     ;;
   esac
@@ -7483,9 +7483,9 @@ $as_echo "$ac_cv_header_pthread_h" >&6; 
 fi
 
 
-{ $as_echo "$as_me:$LINENO: checking for library containing pthread_exit" >&5
-$as_echo_n "checking for library containing pthread_exit... " >&6; }
-if test "${ac_cv_search_pthread_exit+set}" = set; then
+{ $as_echo "$as_me:$LINENO: checking for library containing pthread_create" >&5
+$as_echo_n "checking for library containing pthread_create... " >&6; }
+if test "${ac_cv_search_pthread_create+set}" = set; then
   $as_echo_n "(cached) " >&6
 else
   ac_func_search_save_LIBS=$LIBS
@@ -7502,11 +7502,11 @@ cat >>conftest.$ac_ext <<_ACEOF
 #ifdef __cplusplus
 extern "C"
 #endif
-char pthread_exit ();
+char pthread_create ();
 int
 main ()
 {
-return pthread_exit ();
+return pthread_create ();
   ;
   return 0;
 }
@@ -7539,7 +7539,7 @@ $as_echo "$ac_try_echo") >&5
 	 test "$cross_compiling" = yes ||
 	 $as_test_x conftest$ac_exeext
        }; then
-  ac_cv_search_pthread_exit=$ac_res
+  ac_cv_search_pthread_create=$ac_res
 else
   $as_echo "$as_me: failed program was:" >&5
 sed 's/^/| /' conftest.$ac_ext >&5
@@ -7550,21 +7550,21 @@ fi
 rm -rf conftest.dSYM
 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
       conftest$ac_exeext
-  if test "${ac_cv_search_pthread_exit+set}" = set; then
+  if test "${ac_cv_search_pthread_create+set}" = set; then
   break
 fi
 done
-if test "${ac_cv_search_pthread_exit+set}" = set; then
+if test "${ac_cv_search_pthread_create+set}" = set; then
   :
 else
-  ac_cv_search_pthread_exit=no
+  ac_cv_search_pthread_create=no
 fi
 rm conftest.$ac_ext
 LIBS=$ac_func_search_save_LIBS
 fi
-{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_pthread_exit" >&5
-$as_echo "$ac_cv_search_pthread_exit" >&6; }
-ac_res=$ac_cv_search_pthread_exit
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_pthread_create" >&5
+$as_echo "$ac_cv_search_pthread_create" >&6; }
+ac_res=$ac_cv_search_pthread_create
 if test "$ac_res" != no; then
   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
@@ -7574,7 +7574,7 @@ if test "x$ac_cv_header_pthread_h" = "xy
     CXXFLAGS="$CXXFLAGS -D_REENTRANT"
     CFLAGS="$CFLAGS -D_REENTRANT"
 
-  if test "x$ac_cv_search_pthread_exit" = "x-lc_r"; then
+  if test "x$ac_cv_search_pthread_create" = "x-lc_r"; then
     CXXFLAGS="-pthread $CXXFLAGS"
     CFLAGS="-pthread $CFLAGS"
   fi
@@ -9724,7 +9724,7 @@ fi
 
 esac
 
-if test "$OPENAL_OK" == "no"; then
+if test "$OPENAL_OK" = "no"; then
     echo
     echo "You *must* have the openal library installed on your system to build"
     echo "SimGear!"
@@ -9735,7 +9735,7 @@ if test "$OPENAL_OK" == "no"; then
     exit
 fi
 
-if test "$ALUT_OK" == "no"; then
+if test "$ALUT_OK" = "no"; then
     echo
     echo "You *must* have the alut library installed on your system to build"
     echo "SimGear!"
