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.12 by ura, Thu Jun 14 18:08:31 2001 UTC revision 1.13 by ura, Thu Jun 14 18:28:51 2001 UTC
# Line 1634  EOF Line 1634  EOF
1634    
1635  fi  fi
1636    
1637  for ac_hdr in fcntl.h limits.h malloc.h sgtty.h strings.h sys/file.h sys/ioctl.h sys/time.h termio.h unistd.h  for ac_hdr in fcntl.h limits.h malloc.h sgtty.h strings.h sys/file.h sys/ioctl.h sys/time.h termio.h unistd.h sys/types.h
1638  do  do
1639  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1640  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
# Line 2175  else Line 2175  else
2175  fi  fi
2176  done  done
2177    
2178    for ac_func in closesocket setsockopt send recv
2179    do
2180    echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2181    echo "configure:2182: checking for $ac_func" >&5
2182    if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2183      echo $ac_n "(cached) $ac_c" 1>&6
2184    else
2185      cat > conftest.$ac_ext <<EOF
2186    #line 2187 "configure"
2187    #include "confdefs.h"
2188    /* System header to define __stub macros and hopefully few prototypes,
2189        which can conflict with char $ac_func(); below.  */
2190    #include <assert.h>
2191    /* Override any gcc2 internal prototype to avoid an error.  */
2192    /* We use char because int might match the return type of a gcc2
2193        builtin and then its argument prototype would still apply.  */
2194    char $ac_func();
2195    
2196    int main() {
2197    
2198    /* The GNU C library defines this for functions which it implements
2199        to always fail with ENOSYS.  Some functions are actually named
2200        something starting with __ and the normal name is an alias.  */
2201    #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2202    choke me
2203    #else
2204    $ac_func();
2205    #endif
2206    
2207    ; return 0; }
2208    EOF
2209    if { (eval echo configure:2210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2210      rm -rf conftest*
2211      eval "ac_cv_func_$ac_func=yes"
2212    else
2213      echo "configure: failed program was:" >&5
2214      cat conftest.$ac_ext >&5
2215      rm -rf conftest*
2216      eval "ac_cv_func_$ac_func=no"
2217    fi
2218    rm -f conftest*
2219    fi
2220    
2221    if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2222      echo "$ac_t""yes" 1>&6
2223        ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2224      cat >> confdefs.h <<EOF
2225    #define $ac_tr_func 1
2226    EOF
2227    
2228    else
2229      echo "$ac_t""no" 1>&6
2230    fi
2231    done
2232    
2233    echo $ac_n "checking for setpgrp""... $ac_c" 1>&6
2234    echo "configure:2235: checking for setpgrp" >&5
2235    if eval "test \"`echo '$''{'ac_cv_func_setpgrp'+set}'`\" = set"; then
2236      echo $ac_n "(cached) $ac_c" 1>&6
2237    else
2238      cat > conftest.$ac_ext <<EOF
2239    #line 2240 "configure"
2240    #include "confdefs.h"
2241    /* System header to define __stub macros and hopefully few prototypes,
2242        which can conflict with char setpgrp(); below.  */
2243    #include <assert.h>
2244    /* Override any gcc2 internal prototype to avoid an error.  */
2245    /* We use char because int might match the return type of a gcc2
2246        builtin and then its argument prototype would still apply.  */
2247    char setpgrp();
2248    
2249    int main() {
2250    
2251    /* The GNU C library defines this for functions which it implements
2252        to always fail with ENOSYS.  Some functions are actually named
2253        something starting with __ and the normal name is an alias.  */
2254    #if defined (__stub_setpgrp) || defined (__stub___setpgrp)
2255    choke me
2256    #else
2257    setpgrp();
2258    #endif
2259    
2260    ; return 0; }
2261    EOF
2262    if { (eval echo configure:2263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2263      rm -rf conftest*
2264      eval "ac_cv_func_setpgrp=yes"
2265    else
2266      echo "configure: failed program was:" >&5
2267      cat conftest.$ac_ext >&5
2268      rm -rf conftest*
2269      eval "ac_cv_func_setpgrp=no"
2270    fi
2271    rm -f conftest*
2272    fi
2273    
2274    if eval "test \"`echo '$ac_cv_func_'setpgrp`\" = yes"; then
2275      echo "$ac_t""yes" 1>&6
2276      :
2277    else
2278      echo "$ac_t""no" 1>&6
2279    fi
2280    
2281    echo $ac_n "checking whether setpgrp takes no argument""... $ac_c" 1>&6
2282    echo "configure:2283: checking whether setpgrp takes no argument" >&5
2283    if eval "test \"`echo '$''{'ac_cv_func_setpgrp_void'+set}'`\" = set"; then
2284      echo $ac_n "(cached) $ac_c" 1>&6
2285    else
2286      if test "$cross_compiling" = yes; then
2287      { echo "configure: error: cannot check setpgrp if cross compiling" 1>&2; exit 1; }
2288    else
2289      cat > conftest.$ac_ext <<EOF
2290    #line 2291 "configure"
2291    #include "confdefs.h"
2292    
2293    #ifdef HAVE_UNISTD_H
2294    #include <unistd.h>
2295    #endif
2296    
2297    /*
2298     * If this system has a BSD-style setpgrp, which takes arguments, exit
2299     * successfully.
2300     */
2301    main()
2302    {
2303        if (setpgrp(1,1) == -1)
2304            exit(0);
2305        else
2306            exit(1);
2307    }
2308    
2309    EOF
2310    if { (eval echo configure:2311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2311    then
2312      ac_cv_func_setpgrp_void=no
2313    else
2314      echo "configure: failed program was:" >&5
2315      cat conftest.$ac_ext >&5
2316      rm -fr conftest*
2317      ac_cv_func_setpgrp_void=yes
2318    fi
2319    rm -fr conftest*
2320    fi
2321    
2322    
2323    fi
2324    
2325    echo "$ac_t""$ac_cv_func_setpgrp_void" 1>&6
2326    if test $ac_cv_func_setpgrp_void = yes; then
2327      cat >> confdefs.h <<\EOF
2328    #define SETPGRP_VOID 1
2329    EOF
2330    
2331    fi
2332    
2333    
2334    
2335  trap '' 1 2 15  trap '' 1 2 15

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13

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