]> granicus.if.org Git - libevent/commitdiff
Ignore deprecation warnings on OS X
authorSebastian Hahn <sebastian@torproject.org>
Wed, 10 Aug 2011 17:11:55 +0000 (19:11 +0200)
committerSebastian Hahn <sebastian@torproject.org>
Wed, 10 Aug 2011 17:13:39 +0000 (19:13 +0200)
Starting with Lion, Apple decided to deprecate the system openssl. We
can start requiring users to install their own openssl once OS X doesn't
ship with it anymore.

configure.in

index 347e3b2f70005505da3873535fdd8ec2bc665c20..55a19bad2b5f3a4e9af13f8cf96ffcd64cbb5264 100644 (file)
@@ -43,6 +43,15 @@ if test "$GCC" = "yes" ; then
        CFLAGS="$CFLAGS -fno-strict-aliasing"
 fi
 
+# OS X Lion started deprecating the system openssl. Let's just disable
+# all deprecation warnings on OS X.
+case "$host_os" in
+
+ darwin*)
+    CFLAGS="$CFLAGS -Wno-deprecated-declarations"
+    ;;
+esac
+
 AC_ARG_ENABLE(gcc-warnings,
      AS_HELP_STRING(--enable-gcc-warnings, enable verbose warnings with GCC))
 AC_ARG_ENABLE(thread-support,