VirtualBox

Changeset 832 in vbox


Ignore:
Timestamp:
Feb 12, 2007 11:40:19 AM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
18526
Message:

configure: also check for newer libpam

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure

    r818 r832  
    653653# Version 79 was introduced in 9/2005, do we support older versions?
    654654# Debian/sarge uses 76
     655# OpenSUSE comes with 0.99.xxx where they changed the versioning scheme.
    655656#
    656657function check_pam()
     
    671672  {
    672673    printf(", expected version 76 or higher\n");
     674    return 1;
     675  }
     676}
     677' > .tmp_src.cc
     678  if test_compile "-lpam" pam pam nofatal; then
     679    if test_execute nofatal; then
     680      return 0;
     681    fi
     682  fi
     683  test_header linux_pam
     684  echo '
     685#include <cstdio>
     686#include <security/pam_appl.h>
     687extern "C" int main(void)
     688{
     689  printf("found version %d.%d", __LINUX_PAM__, __LINUX_PAM_MINOR__);
     690  if (__LINUX_PAM__ >= 1)
     691  {
     692    printf(", OK.\n");
     693    return 0;
     694  }
     695  else
     696  {
     697    printf(", expected version 1.0 or higher\n");
    673698    return 1;
    674699  }
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette