diff options
| author | nijtmans@users.sourceforge.net <jan.nijtmans> | 2012-04-24 20:21:16 (GMT) |
|---|---|---|
| committer | nijtmans@users.sourceforge.net <jan.nijtmans> | 2012-04-24 20:21:16 (GMT) |
| commit | 830ac5ea69e6a6a3ea77f6032ad6e69a97dc817f (patch) | |
| tree | f7587ec802d28b8abaedf99e98dd2ba9084c5e6f /unix/configure.in | |
| parent | 6e14d4b037124606898f47db23fd11da4db0b27e (diff) | |
| parent | 57eb164841942a064c65e0634679393ff023ab61 (diff) | |
| download | tcl-830ac5ea69e6a6a3ea77f6032ad6e69a97dc817f.zip tcl-830ac5ea69e6a6a3ea77f6032ad6e69a97dc817f.tar.gz tcl-830ac5ea69e6a6a3ea77f6032ad6e69a97dc817f.tar.bz2 | |
[Bug 3508771] load tclreg.dll in cygwin tclsh
Implement TclWinGetSockOpt, TclWinGetServByName
and TclWinCPUID for Cygwin
Diffstat (limited to 'unix/configure.in')
| -rw-r--r-- | unix/configure.in | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/unix/configure.in b/unix/configure.in index fbf9f41..c04c735 100644 --- a/unix/configure.in +++ b/unix/configure.in @@ -566,6 +566,20 @@ fi AC_MSG_RESULT([$tcl_ok]) #-------------------------------------------------------------------- +# The check below checks whether the cpuid instruction is usable. +#-------------------------------------------------------------------- + +AC_CACHE_CHECK([whether the cpuid instruction is usable], tcl_cv_cpuid, [ + AC_TRY_LINK(, [ + int index,ax,bx,cx,dx; + __asm__ __volatile__ ("cpuid":\ + "=a" (ax), "=b" (bx), "=c" (cx), "=d" (dx) : "a" (index)); + ], tcl_cv_cpuid=yes, tcl_cv_cpuid=no)]) +if test $tcl_cv_cpuid = yes; then + AC_DEFINE(HAVE_CPUID) +fi + +#-------------------------------------------------------------------- # The statements below define a collection of symbols related to # building libtcl as a shared library instead of a static library. #-------------------------------------------------------------------- |
