Test for libelf.h in subdirectory libelf, too, and inlude it from there if test

was positive.



git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@1093 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
joerg_wunsch
2012-07-18 12:42:47 +00:00
parent 967c691e47
commit f0f3c5cba3
3 changed files with 11 additions and 1 deletions

View File

@@ -30,7 +30,11 @@
#include <stdint.h>
#ifdef HAVE_LIBELF
#ifdef HAVE_LIBELF_H
#include <libelf.h>
#elif defined(HAVE_LIBELF_LIBELF_H)
#include <libelf/libelf.h>
#endif
#define EM_AVR32 0x18ad /* inofficial */
#endif