build: fix configure failure when g++ not installed

When no C++ compiler is installed, configure should not fail, but
merely skip the GUI parts. Since the first compiler check is
authoritative, move AC_PROG_CXX down.

Signed-off-by: Karsten Keil <keil@b1-systems.de>
This commit is contained in:
Jan Engelhardt 2011-04-25 04:38:18 +02:00 committed by Karsten Keil
parent e5bbd3b00b
commit 9e2c94bf3a
1 changed files with 1 additions and 1 deletions

View File

@ -10,8 +10,8 @@ AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE([-Wall foreign subdir-objects])
# Checks for programs.
AC_PROG_CXX
AC_PROG_CC
AC_PROG_CXX
AC_PROG_INSTALL
AC_CHECK_LIB([pthread], [pthread_create])