forked from enlightenment/efl
if ecore lacks both X and FB support, disable the test
SVN revision: 17696
This commit is contained in:
parent
b18a413ab0
commit
901ef16a1f
|
@ -123,6 +123,7 @@ AC_PATH_GENERIC(ecore, 0.9.9,
|
|||
[ ],
|
||||
[ AC_MSG_ERROR(Ecore isn't installed)]
|
||||
)
|
||||
AC_CHECK_HEADERS(Ecore_X.h Ecore_Fb.h)
|
||||
|
||||
AC_PATH_GENERIC(embryo, 0.9.1,
|
||||
[ ],
|
||||
|
|
|
@ -1,3 +1,10 @@
|
|||
#include "config.h"
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#if defined(HAVE_ECORE_X_H) || defined(HAVE_ECORE_FB_H)
|
||||
|
||||
#include <Evas.h>
|
||||
#include <Ecore.h>
|
||||
#ifndef FB_ONLY
|
||||
|
@ -10,12 +17,6 @@
|
|||
|
||||
#include "Emotion.h"
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
typedef struct _Frame_Data Frame_Data;
|
||||
|
||||
struct _Frame_Data
|
||||
|
@ -867,3 +868,10 @@ main(int argc, char **argv)
|
|||
return 0;
|
||||
}
|
||||
|
||||
#else
|
||||
int main()
|
||||
{
|
||||
puts("Could not find Ecore_X.h or Ecore_Fb.h so test is disabled");
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue