Develop and Download Open Source Software

Browse CVS Repository

Diff of /freewnn/FreeWnn/configure

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.10 by ura, Sun Jan 16 07:30:00 2000 UTC revision 1.11 by ura, Sun Jan 16 07:34:04 2000 UTC
# Line 2129  else Line 2129  else
2129  fi  fi
2130  done  done
2131    
2132    for ac_func in perror
2133    do
2134    echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2135    echo "configure:2136: checking for $ac_func" >&5
2136    if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2137      echo $ac_n "(cached) $ac_c" 1>&6
2138    else
2139      cat > conftest.$ac_ext <<EOF
2140    #line 2141 "configure"
2141    #include "confdefs.h"
2142    /* System header to define __stub macros and hopefully few prototypes,
2143        which can conflict with char $ac_func(); below.  */
2144    #include <assert.h>
2145    /* Override any gcc2 internal prototype to avoid an error.  */
2146    /* We use char because int might match the return type of a gcc2
2147        builtin and then its argument prototype would still apply.  */
2148    char $ac_func();
2149    
2150    int main() {
2151    
2152    /* The GNU C library defines this for functions which it implements
2153        to always fail with ENOSYS.  Some functions are actually named
2154        something starting with __ and the normal name is an alias.  */
2155    #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2156    choke me
2157    #else
2158    $ac_func();
2159    #endif
2160    
2161    ; return 0; }
2162    EOF
2163    if { (eval echo configure:2164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2164      rm -rf conftest*
2165      eval "ac_cv_func_$ac_func=yes"
2166    else
2167      echo "configure: failed program was:" >&5
2168      cat conftest.$ac_ext >&5
2169      rm -rf conftest*
2170      eval "ac_cv_func_$ac_func=no"
2171    fi
2172    rm -f conftest*
2173    fi
2174    
2175    if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2176      echo "$ac_t""yes" 1>&6
2177        ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2178      cat >> confdefs.h <<EOF
2179    #define $ac_tr_func 1
2180    EOF
2181    
2182    else
2183      echo "$ac_t""no" 1>&6
2184    fi
2185    done
2186    
2187    
2188    
2189  trap '' 1 2 15  trap '' 1 2 15

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26