Fix:Build:Take account of gps.h if no gpsd package is present
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Wed, 27 Jan 2010 18:15:24 +0000 (18:15 +0000)
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Wed, 27 Jan 2010 18:15:24 +0000 (18:15 +0000)
git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk/navit@2931 ffa7fe5e-494d-0410-b361-a75ebd5db220

configure.in

index 43fb8b0..7e67a3d 100644 (file)
@@ -793,9 +793,8 @@ then
                        AC_DEFINE([HAVE_LIBGPS19],[],Define to 1 if you have libgps19.)
                fi
        else
-               vehicle_gpsd=no; vehicle_gpsd_reason="no libgps"
+               AC_CHECK_HEADER(gps.h, AC_DEFINE([HAVE_LIBGPS],[],Define to 1 if you have the <gps.h> header file.) GPSD_LIBS="-lgps", vehicle_gpsd=no; vehicle_gpsd_reason="no gps.h and no gpsd pkgconfig" )
        fi
-dnl    AC_CHECK_HEADER(gps.h, AC_DEFINE([HAVE_LIBGPS],[],Define to 1 if you have the <gps.h> header file.) GPSD_LIBS="-lgps", vehicle_gpsd=no; vehicle_gpsd_reason="no gps.h" )
 fi
 AC_SUBST(GPSD_CFLAGS)
 AC_SUBST(GPSD_LIBS)