]> git.ipfire.org Git - thirdparty/HylaFAX.git/commitdiff
Changes to configure to look for the logout() function in utmp.h
authorRobert Colquhoun <rjc@trump.net.au>
Tue, 1 Jun 1999 09:56:09 +0000 (09:56 +0000)
committerRobert Colquhoun <rjc@trump.net.au>
Tue, 1 Jun 1999 09:56:09 +0000 (09:56 +0000)
configure

index 96b66587db2dd15ef67ad69fdf443b35ba4b2d6c..059eb59f5b5c55f8ec1a182c7e07ae386570efd1 100755 (executable)
--- a/configure
+++ b/configure
@@ -2616,8 +2616,10 @@ BuildPortDotH()
        }
        CheckForLibrary logout -lutil && {
            echo '#define HAS_LOGOUT 1'
-           Note "... configure use of logout (BSD-style utmp support)"
-           AddFuncDecl logout 'int logout(const char*);'
+        Note "... configure use of logout (BSD-style utmp support)"
+        CheckForFuncDecl logout utmp.h || {
+            AddFuncDecl logout 'int logout(const char*);'
+        }
        }
     }
     CheckDefine _PATH_DEV     '_PATH_DEV       "/dev/"'        paths.h