diff --git a/ChangeLog b/ChangeLog
index c54d243520a5373be463e59a28c1f32cb1251e3c..4d74cad7583a8c4bb341ca7591fac730769586dc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -8,6 +8,7 @@
 	* doc/syntax/{changelog,c,po}.nanorc: Some small extra colourings.
 	* configure.ac, doc/texinfo/nano.texi: Make --enable-tiny disable
 	the use of libmagic, and document the --disable-libmagic flag.
+	* src/nano.c (version): Print the correct --enable/--disable option.
 
 2014-04-10  Benno Schulenberg  <bensberg@justemail.net>
 	* doc/syntax/Makefile.am: Add four recent syntaxes to the packlist.
diff --git a/src/nano.c b/src/nano.c
index 67c97cac17d7d701288e0c6de6c8554c903e684e..f6c0c58a8bdc44f6e21e9d1fd6e274ab4e612439 100644
--- a/src/nano.c
+++ b/src/nano.c
@@ -986,6 +986,9 @@ void version(void)
 #ifndef DISABLE_JUSTIFY
     printf(" --enable-justify");
 #endif
+#ifdef HAVE_LIBMAGIC
+    printf(" --enable-libmagic");
+#endif
 #ifndef DISABLE_MOUSE
     printf(" --enable-mouse");
 #endif
@@ -1020,6 +1023,9 @@ void version(void)
 #ifdef DISABLE_JUSTIFY
     printf(" --disable-justify");
 #endif
+#ifndef HAVE_LIBMAGIC
+    printf(" --disable-libmagic");
+#endif
 #ifdef DISABLE_MOUSE
     printf(" --disable-mouse");
 #endif