+2012-09-21  Andreas Schwab  <schwab@linux-m68k.org>
+
+       * python/python.c (finalize_python): Only define if HAVE_PYTHON.
+
 2012-09-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
 
        * eval.c (evaluate_subexp_standard): Eliminate single-use
 
 
 /* Initialize the Python code.  */
 
+#ifdef HAVE_PYTHON
+
 /* This is installed as a final cleanup and cleans up the
    interpreter.  This lets Python's 'atexit' work.  */
 
 
   Py_Finalize ();
 }
+#endif
 
 /* Provide a prototype to silence -Wmissing-prototypes.  */
 extern initialize_file_ftype _initialize_python;