Restore LIBS if some component is not found
authorAdam Dickmeiss <adam@indexdata.dk>
Tue, 14 May 2013 12:20:53 +0000 (14:20 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Tue, 14 May 2013 12:20:53 +0000 (14:20 +0200)
boost.m4

index 5eb0cfa..38060ca 100644 (file)
--- a/boost.m4
+++ b/boost.m4
@@ -90,6 +90,7 @@ int x = BOOST_VERSION;
                                AC_MSG_RESULT([yes])
                            else
                                AC_MSG_RESULT([no])
+                               LIBS="${saveLIBS}"
                            fi
                        fi
                        ;;
@@ -114,6 +115,7 @@ int x = BOOST_VERSION;
                            AC_MSG_RESULT([yes])
                        else
                            AC_MSG_RESULT([no])
+                           LIBS="${saveLIBS}"
                        fi
                        ;;
                    test)
@@ -164,6 +166,7 @@ int x = BOOST_VERSION;
                            AC_MSG_RESULT([yes])
                        else
                            AC_MSG_RESULT([no])
+                           LIBS="${saveLIBS}"
                        fi
                        ;;
                esac