+static void print_version_info()
+{
+#ifdef X264_POINTVER
+ printf( "x264 "X264_POINTVER"\n" );
+#else
+ printf( "x264 0.%d.X\n", X264_BUILD );
+#endif
+ printf( "built on " __DATE__ ", " );
+#ifdef __GNUC__
+ printf( "gcc: " __VERSION__ "\n" );
+#else
+ printf( "using a non-gcc compiler\n" );
+#endif
+ printf( "configuration: --bit-depth=%d\n", BIT_DEPTH );
+ printf( "x264 license: " );
+#if HAVE_GPL
+ printf( "GPL version 2 or later\n" );
+#else
+ printf( "Non-GPL commercial\n" );
+#endif
+#if HAVE_LAVF
+ const char *license = avformat_license();
+ printf( "libavformat license: %s\n", license );
+ if( !strcmp( license, "nonfree and unredistributable" ) ||
+ (!HAVE_GPL && (!strcmp( license, "GPL version 2 or later" )
+ || !strcmp( license, "GPL version 3 or later" ))))
+ printf( "WARNING: This binary is unredistributable!\n" );
+#endif
+}
+