3504 |
3504 |
3505 else |
3505 else |
3506 as_fn_error $? "libmosquitto not found" "$LINENO" 5 |
3506 as_fn_error $? "libmosquitto not found" "$LINENO" 5 |
3507 fi |
3507 fi |
3508 |
3508 |
3509 |
|
3510 WIRINGPI=No |
3509 WIRINGPI=No |
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wiringPiSetup in -lwiringPi" >&5 |
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wiringPiSetup in -lwiringPi" >&5 |
3512 $as_echo_n "checking for wiringPiSetup in -lwiringPi... " >&6; } |
3511 $as_echo_n "checking for wiringPiSetup in -lwiringPi... " >&6; } |
3513 if ${ac_cv_lib_wiringPi_wiringPiSetup+:} false; then : |
3512 if ${ac_cv_lib_wiringPi_wiringPiSetup+:} false; then : |
3514 $as_echo_n "(cached) " >&6 |
3513 $as_echo_n "(cached) " >&6 |
3594 if test "$debugging" = "yes"; then |
3593 if test "$debugging" = "yes"; then |
3595 CFLAGS="-O -g -Wall -Wshadow -Wwrite-strings -Wstrict-prototypes -Winline" |
3594 CFLAGS="-O -g -Wall -Wshadow -Wwrite-strings -Wstrict-prototypes -Winline" |
3596 else |
3595 else |
3597 CFLAGS="-g -O2 -fomit-frame-pointer -fno-strict-aliasing -Wall -Wshadow -Wwrite-strings -Wstrict-prototypes -Winline" |
3596 CFLAGS="-g -O2 -fomit-frame-pointer -fno-strict-aliasing -Wall -Wshadow -Wwrite-strings -Wstrict-prototypes -Winline" |
3598 fi |
3597 fi |
|
3598 |
|
3599 |
|
3600 LIBXML2=No |
|
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseFile in -lxml2" >&5 |
|
3602 $as_echo_n "checking for xmlParseFile in -lxml2... " >&6; } |
|
3603 if ${ac_cv_lib_xml2_xmlParseFile+:} false; then : |
|
3604 $as_echo_n "(cached) " >&6 |
|
3605 else |
|
3606 ac_check_lib_save_LIBS=$LIBS |
|
3607 LIBS="-lxml2 $LIBS" |
|
3608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
3609 /* end confdefs.h. */ |
|
3610 |
|
3611 /* Override any GCC internal prototype to avoid an error. |
|
3612 Use char because int might match the return type of a GCC |
|
3613 builtin and then its argument prototype would still apply. */ |
|
3614 #ifdef __cplusplus |
|
3615 extern "C" |
|
3616 #endif |
|
3617 char xmlParseFile (); |
|
3618 int |
|
3619 main () |
|
3620 { |
|
3621 return xmlParseFile (); |
|
3622 ; |
|
3623 return 0; |
|
3624 } |
|
3625 _ACEOF |
|
3626 if ac_fn_c_try_link "$LINENO"; then : |
|
3627 ac_cv_lib_xml2_xmlParseFile=yes |
|
3628 else |
|
3629 ac_cv_lib_xml2_xmlParseFile=no |
|
3630 fi |
|
3631 rm -f core conftest.err conftest.$ac_objext \ |
|
3632 conftest$ac_exeext conftest.$ac_ext |
|
3633 LIBS=$ac_check_lib_save_LIBS |
|
3634 fi |
|
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseFile" >&5 |
|
3636 $as_echo "$ac_cv_lib_xml2_xmlParseFile" >&6; } |
|
3637 if test "x$ac_cv_lib_xml2_xmlParseFile" = xyes; then : |
|
3638 result=yes |
|
3639 else |
|
3640 result=no |
|
3641 fi |
|
3642 |
|
3643 if test "$result" = "yes"; then |
|
3644 LIBS="$LIBS -lxml2" |
|
3645 CFLAGS="$CFLAGS $(xml2-config --cflags)" |
|
3646 for ac_header in libxml/xmlmemory.h |
|
3647 do : |
|
3648 ac_fn_c_check_header_mongrel "$LINENO" "libxml/xmlmemory.h" "ac_cv_header_libxml_xmlmemory_h" "$ac_includes_default" |
|
3649 if test "x$ac_cv_header_libxml_xmlmemory_h" = xyes; then : |
|
3650 cat >>confdefs.h <<_ACEOF |
|
3651 #define HAVE_LIBXML_XMLMEMORY_H 1 |
|
3652 _ACEOF |
|
3653 LIBXML2=Yes |
|
3654 else |
|
3655 LIBXML2=No |
|
3656 fi |
|
3657 |
|
3658 done |
|
3659 |
|
3660 fi |
|
3661 |
|
3662 |
3599 |
3663 |
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
3664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
3601 $as_echo_n "checking for ANSI C header files... " >&6; } |
3665 $as_echo_n "checking for ANSI C header files... " >&6; } |
3602 if ${ac_cv_header_stdc+:} false; then : |
3666 if ${ac_cv_header_stdc+:} false; then : |
3603 $as_echo_n "(cached) " >&6 |
3667 $as_echo_n "(cached) " >&6 |
4994 Configuration summary : |
5058 Configuration summary : |
4995 |
5059 |
4996 Version : ............ ${VERSION} |
5060 Version : ............ ${VERSION} |
4997 Main directory : ..... ${prefix} |
5061 Main directory : ..... ${prefix} |
4998 WiringPi : ........... ${WIRINGPI} |
5062 WiringPi : ........... ${WIRINGPI} |
|
5063 XML2: ................ ${LIBXML2} |
4999 |
5064 |
5000 Now type 'make' and 'sudo make install' |
5065 Now type 'make' and 'sudo make install' |
5001 " >&5 |
5066 " >&5 |
5002 $as_echo " |
5067 $as_echo " |
5003 -=-=-=-=-=-=-=-=-=-= Configuration Complete =-=-=-=-=-=-=-=-=-=- |
5068 -=-=-=-=-=-=-=-=-=-= Configuration Complete =-=-=-=-=-=-=-=-=-=- |
5005 Configuration summary : |
5070 Configuration summary : |
5006 |
5071 |
5007 Version : ............ ${VERSION} |
5072 Version : ............ ${VERSION} |
5008 Main directory : ..... ${prefix} |
5073 Main directory : ..... ${prefix} |
5009 WiringPi : ........... ${WIRINGPI} |
5074 WiringPi : ........... ${WIRINGPI} |
|
5075 XML2: ................ ${LIBXML2} |
5010 |
5076 |
5011 Now type 'make' and 'sudo make install' |
5077 Now type 'make' and 'sudo make install' |
5012 " >&6; } |
5078 " >&6; } |
5013 |
5079 |