mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

167 lines
4.6 KiB

  1. # --- ROCK-COPYRIGHT-NOTE-BEGIN ---
  2. #
  3. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  4. # Please add additional copyright information _after_ the line containing
  5. # the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
  6. # the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
  7. #
  8. # ROCK Linux: rock-src/package/base/screen/configure_pam.patch
  9. # ROCK Linux is Copyright (C) 1998 - 2003 Clifford Wolf
  10. #
  11. # This program is free software; you can redistribute it and/or modify
  12. # it under the terms of the GNU General Public License as published by
  13. # the Free Software Foundation; either version 2 of the License, or
  14. # (at your option) any later version. A copy of the GNU General Public
  15. # License can be found at Documentation/COPYING.
  16. #
  17. # Many people helped and are helping developing ROCK Linux. Please
  18. # have a look at http://www.rocklinux.org/ and the Documentation/TEAM
  19. # file for details.
  20. #
  21. # --- ROCK-COPYRIGHT-NOTE-END ---
  22. Not only is libpam_misc needed, it is also needed earlier to not let
  23. all the other tests fail when other libs have dependencies to libpam
  24. or libpam_misc ...
  25. (Especially important to not let the vsprintf test fail and so the
  26. VA_* macros are not used!)
  27. - Clifford Wold <clifford@clifford.at> and Rene Rebe <rene@rocklinux.org>
  28. --- ./configure.orig 2003-02-24 14:03:33.000000000 +0100
  29. +++ ./configure 2003-08-26 01:47:59.000000000 +0200
  30. @@ -6624,6 +6624,66 @@
  31. fi
  32. rm -f /tmp/conftest*
  33. +
  34. +# Check whether --enable-pam or --disable-pam was given.
  35. +if test "${enable_pam+set}" = set; then
  36. + enableval="$enable_pam"
  37. +
  38. +fi;
  39. +if test "$enable_pam" = "yes"; then
  40. + echo "$as_me:$LINENO: checking for PAM support" >&5
  41. +echo $ECHO_N "checking for PAM support... $ECHO_C" >&6
  42. + oldlibs="$LIBS"
  43. + LIBS="$LIBS -lpam -lpam_misc"
  44. + cat >conftest.$ac_ext <<_ACEOF
  45. +#line $LINENO "configure"
  46. +#include "confdefs.h"
  47. +#include <security/pam_appl.h>
  48. +#ifdef F77_DUMMY_MAIN
  49. +# ifdef __cplusplus
  50. + extern "C"
  51. +# endif
  52. + int F77_DUMMY_MAIN() { return 1; }
  53. +#endif
  54. +int
  55. +main ()
  56. +{
  57. +
  58. + pam_start(0, 0, 0, 0);
  59. + pam_authenticate(0, 0);
  60. + pam_end(0,0);
  61. +
  62. + ;
  63. + return 0;
  64. +}
  65. +_ACEOF
  66. +rm -f conftest.$ac_objext conftest$ac_exeext
  67. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  68. + (eval $ac_link) 2>&5
  69. + ac_status=$?
  70. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  71. + (exit $ac_status); } &&
  72. + { ac_try='test -s conftest$ac_exeext'
  73. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  74. + (eval $ac_try) 2>&5
  75. + ac_status=$?
  76. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  77. + (exit $ac_status); }; }; then
  78. + echo "$as_me:$LINENO: result: yes" >&5
  79. +echo "${ECHO_T}yes" >&6;cat >>confdefs.h <<\_ACEOF
  80. +#define USE_PAM 1
  81. +_ACEOF
  82. +
  83. +else
  84. + echo "$as_me: failed program was:" >&5
  85. +cat conftest.$ac_ext >&5
  86. +echo "$as_me:$LINENO: result: no" >&5
  87. +echo "${ECHO_T}no" >&6;LIBS="$oldlibs"
  88. +fi
  89. +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  90. +fi
  91. +
  92. +
  93. echo "$as_me:$LINENO: checking for vsprintf" >&5
  94. echo $ECHO_N "checking for vsprintf... $ECHO_C" >&6
  95. cat >conftest.$ac_ext <<_ACEOF
  96. @@ -7287,65 +7347,6 @@
  97. fi
  98. done
  99. -
  100. -# Check whether --enable-pam or --disable-pam was given.
  101. -if test "${enable_pam+set}" = set; then
  102. - enableval="$enable_pam"
  103. -
  104. -fi;
  105. -if test "$enable_pam" = "yes"; then
  106. - echo "$as_me:$LINENO: checking for PAM support" >&5
  107. -echo $ECHO_N "checking for PAM support... $ECHO_C" >&6
  108. - oldlibs="$LIBS"
  109. - LIBS="$LIBS -lpam"
  110. - cat >conftest.$ac_ext <<_ACEOF
  111. -#line $LINENO "configure"
  112. -#include "confdefs.h"
  113. -#include <security/pam_appl.h>
  114. -#ifdef F77_DUMMY_MAIN
  115. -# ifdef __cplusplus
  116. - extern "C"
  117. -# endif
  118. - int F77_DUMMY_MAIN() { return 1; }
  119. -#endif
  120. -int
  121. -main ()
  122. -{
  123. -
  124. - pam_start(0, 0, 0, 0);
  125. - pam_authenticate(0, 0);
  126. - pam_end(0,0);
  127. -
  128. - ;
  129. - return 0;
  130. -}
  131. -_ACEOF
  132. -rm -f conftest.$ac_objext conftest$ac_exeext
  133. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  134. - (eval $ac_link) 2>&5
  135. - ac_status=$?
  136. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  137. - (exit $ac_status); } &&
  138. - { ac_try='test -s conftest$ac_exeext'
  139. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  140. - (eval $ac_try) 2>&5
  141. - ac_status=$?
  142. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  143. - (exit $ac_status); }; }; then
  144. - echo "$as_me:$LINENO: result: yes" >&5
  145. -echo "${ECHO_T}yes" >&6;cat >>confdefs.h <<\_ACEOF
  146. -#define USE_PAM 1
  147. -_ACEOF
  148. -
  149. -else
  150. - echo "$as_me: failed program was:" >&5
  151. -cat conftest.$ac_ext >&5
  152. -echo "$as_me:$LINENO: result: no" >&5
  153. -echo "${ECHO_T}no" >&6;LIBS="$oldlibs"
  154. -fi
  155. -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  156. -fi
  157. -
  158. # Check whether --enable-use_locale or --disable-use_locale was given.
  159. if test "${enable_use_locale+set}" = set; then
  160. enableval="$enable_use_locale"