Index: configure.in =================================================================== RCS file: /cvsroot/pgsql-server/configure.in,v retrieving revision 1.235 retrieving revision 1.236 diff -c -r1.235 -r1.236 *** configure.in 11 Feb 2003 21:05:35 -0000 1.235 --- configure.in 14 Feb 2003 14:05:00 -0000 1.236 *************** *** 724,730 **** fi if test "$with_pam" = yes ; then ! AC_CHECK_HEADER(security/pam_appl.h, [], [AC_MSG_ERROR([header file is required for PAM])]) fi --- 724,732 ---- fi if test "$with_pam" = yes ; then ! AC_CHECK_HEADERS(security/pam_appl.h, [], ! [AC_CHECK_HEADERS(pam/pam_appl.h, [], ! [AC_MSG_ERROR([header file or is required for PAM.])])]) fi Index: src/backend/libpq/auth.c =================================================================== RCS file: /cvsroot/pgsql-server/src/backend/libpq/auth.c,v retrieving revision 1.96 retrieving revision 1.97 diff -c -r1.96 -r1.97 *** src/backend/libpq/auth.c 6 Jan 2003 09:58:23 -0000 1.96 --- src/backend/libpq/auth.c 14 Feb 2003 14:05:00 -0000 1.97 *************** *** 43,49 **** --- 43,54 ---- char *pg_krb_server_keyfile; #ifdef USE_PAM + #ifdef HAVE_PAM_PAM_APPL_H + #include + #endif + #ifdef HAVE_SECURITY_PAM_APPL_H #include + #endif #define PGSQL_PAM_SERVICE "postgresql" /* Service name passed to PAM */ Index: src/include/pg_config.h.in =================================================================== RCS file: /cvsroot/pgsql-server/src/include/pg_config.h.in,v retrieving revision 1.38 retrieving revision 1.39 diff -c -r1.38 -r1.39 *** src/include/pg_config.h.in 25 Jan 2003 05:19:47 -0000 1.38 --- src/include/pg_config.h.in 14 Feb 2003 14:05:00 -0000 1.39 *************** *** 344,349 **** --- 344,352 ---- /* Set to 1 if you have */ #undef HAVE_NETINET_TCP_H + /* Set to 1 if you have */ + #undef HAVE_PAM_PAM_APPL_H + /* Set to 1 if you have */ #undef HAVE_READLINE_H *************** *** 352,357 **** --- 355,363 ---- /* Set to 1 if you have */ #undef HAVE_READLINE_READLINE_H + + /* Set to 1 if you have */ + #undef HAVE_SECURITY_PAM_APPL_H /* Set to 1 if you have */ #undef HAVE_SYS_IPC_H