diff --git a/config/configure.ac b/config/configure.ac index 56fc54a1..482f4bee 100644 --- a/config/configure.ac +++ b/config/configure.ac @@ -100,9 +100,14 @@ fi AC_SUBST(DEP_TRACKING,$DEP_TRACKING) AC_MSG_CHECKING([whether to enable symbol visibility support]) +visibility=yes +# visibility support in cygwin/ming generates 1000's of warning, set off by default +case "$host_os" in + *mingw* | *cygwin*) visiblity=no ;; +esac AC_ARG_ENABLE(visibility, [ --disable-visibility do not use symbol visibility support ], - VISIBILITY_SUPPORT=$enableval, VISIBILITY_SUPPORT=yes) + VISIBILITY_SUPPORT=$enableval, VISIBILITY_SUPPORT=$visiblity) AC_MSG_RESULT($VISIBILITY_SUPPORT) if test "$VISIBILITY_SUPPORT" = "yes"; then # Sun Studio C++ compiler (which apparently ignores -fvisibility-inlines-hidden) diff --git a/src/version.cpp b/src/version.cpp index 652370b0..765fa90b 100644 --- a/src/version.cpp +++ b/src/version.cpp @@ -188,6 +188,8 @@ EXIV2API void dumpLibraryInfo(std::ostream& os) char proc[100]; sprintf(proc,"/proc/%d/exe", getpid()); path_l = readlink (proc, path, path_max); +#elif defined(__CYGWIN__) + bReport=true; #endif if ( bReport ) { @@ -195,7 +197,7 @@ EXIV2API void dumpLibraryInfo(std::ostream& os) if ( path_l > 0 && path_l < path_max ) { path[path_l]=0; os << szBuilder << "executable=" << path << std::endl; - os << szBuilder << "date=\"" << __DATE__ << "\",time=" __TIME__ << std::endl; } + os << szBuilder << "date=\"" << __DATE__ << "\",time=" __TIME__ << std::endl; } }