summaryrefslogtreecommitdiff
path: root/x11
diff options
context:
space:
mode:
Diffstat (limited to 'x11')
-rw-r--r--x11/gdm1/DEINSTALL15
-rw-r--r--x11/gdm1/DESCR23
-rw-r--r--x11/gdm1/INSTALL16
-rw-r--r--x11/gdm1/Makefile124
-rw-r--r--x11/gdm1/PLIST80
-rw-r--r--x11/gdm1/distinfo20
-rwxr-xr-xx11/gdm1/files/gdm20
-rw-r--r--x11/gdm1/patches/patch-aa867
-rw-r--r--x11/gdm1/patches/patch-ab50
-rw-r--r--x11/gdm1/patches/patch-ac10
-rw-r--r--x11/gdm1/patches/patch-ae13
-rw-r--r--x11/gdm1/patches/patch-af32
-rw-r--r--x11/gdm1/patches/patch-ag22
-rw-r--r--x11/gdm1/patches/patch-ah14
-rw-r--r--x11/gdm1/patches/patch-ai19
-rw-r--r--x11/gdm1/patches/patch-ba12
-rw-r--r--x11/gdm1/patches/patch-bb13
-rw-r--r--x11/gdm1/patches/patch-bc77
-rw-r--r--x11/gdm1/patches/patch-bd24
19 files changed, 1451 insertions, 0 deletions
diff --git a/x11/gdm1/DEINSTALL b/x11/gdm1/DEINSTALL
new file mode 100644
index 00000000000..6f96097cf6d
--- /dev/null
+++ b/x11/gdm1/DEINSTALL
@@ -0,0 +1,15 @@
+# $NetBSD: DEINSTALL,v 1.1.1.1 2004/01/20 13:33:06 xtraeme Exp $
+
+if [ "$2" = DEINSTALL ]
+then
+ cd @GDMCFGDIR@
+ @RM@ -f Sessions/Default
+ for SOURCE in @GDMCFGFILES@
+ do
+ TARGET=${SOURCE%.default*}${SOURCE##*.default}
+ if cmp -s $SOURCE $TARGET
+ then
+ @RM@ -f $TARGET
+ fi
+ done
+fi
diff --git a/x11/gdm1/DESCR b/x11/gdm1/DESCR
new file mode 100644
index 00000000000..a9642e94e74
--- /dev/null
+++ b/x11/gdm1/DESCR
@@ -0,0 +1,23 @@
+The Gnome Display Manager is a re-implementation of the well known xdm
+program. gdm 2.0beta4 implements all significant features required for
+managing local and remote displays.
+
+gdm daemon:
+ o X Authentication
+ o Default and per-display initialization scripts
+ o Pre and post session scripts
+ o Pluggable Authentication Modules
+ o XDMCP
+ o TCP Wrappers for access control
+
+gdmlogin:
+ o Logo image
+ o Halt and reboot
+ o Iconified login window
+ o Session selection support
+ o Language selection support
+ o Face browser
+
+gdmchooser:
+ o Visual host browser
+ o Customizable icons
diff --git a/x11/gdm1/INSTALL b/x11/gdm1/INSTALL
new file mode 100644
index 00000000000..67cb90bbaaa
--- /dev/null
+++ b/x11/gdm1/INSTALL
@@ -0,0 +1,16 @@
+# $NetBSD: INSTALL,v 1.1.1.1 2004/01/20 13:33:06 xtraeme Exp $
+
+if [ "$2" = POST-INSTALL ]
+then
+ cd @GDMCFGDIR@
+ for SOURCE in @GDMCFGFILES@
+ do
+ TARGET=${SOURCE%.default*}${SOURCE##*.default}
+ if [ ! -f $TARGET ]
+ then
+ @MKDIR@ `dirname $TARGET`
+ @CP@ -p $SOURCE $TARGET
+ fi
+ done
+ @LN@ -fs Gnome Sessions/Default
+fi
diff --git a/x11/gdm1/Makefile b/x11/gdm1/Makefile
new file mode 100644
index 00000000000..29ea2b28042
--- /dev/null
+++ b/x11/gdm1/Makefile
@@ -0,0 +1,124 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/01/20 13:33:07 xtraeme Exp $
+
+DISTNAME= gdm-2.2.0
+PKGREVISION= 5
+CATEGORIES= x11 gnome
+MASTER_SITES= ${MASTER_SITE_GNOME:=sources/gdm/2.2/} \
+ ${MASTER_SITE_LOCAL}
+DISTFILES= ${DISTNAME}${EXTRACT_SUFX} Daemon.README Daemon.png
+
+MAINTAINER= mjl@NetBSD.org
+HOMEPAGE= http://www.gnome.org/
+COMMENT= Gnome Display Manager - a re-implementation of the xdm program
+
+EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
+
+USE_BUILDLINK2= YES
+
+USE_PKGINSTALL= YES
+DEINSTALL_EXTRA_TMPL+= ${.CURDIR}/DEINSTALL
+INSTALL_EXTRA_TMPL+= ${.CURDIR}/INSTALL
+
+USE_PKGLOCALEDIR= YES
+GNU_CONFIGURE= YES
+USE_X11BASE= YES
+
+LOCALSTATEDIR= /var/gnome
+
+EVAL_PREFIX+= KDEBASEDIR=kdebase
+CONFIGURE_ARGS+= --localstatedir=${LOCALSTATEDIR}
+CONFIGURE_ENV+= LOCALBASE=${LOCALBASE} X11BASE=${X11BASE} \
+ GDMOWN=${GDMOWN} GDMGRP=${GDMGRP}
+
+MAKE_ENV+= GDMOWN=${GDMOWN} GDMGRP=${GDMGRP}
+MAKE_ENV+= CHMOD=${CHMOD} CHOWN=${CHOWN}
+PLIST_SUBST+= GDMOWN=${GDMOWN} GDMGRP=${GDMGRP} \
+ INSTALL="${INSTALL}" LOCALSTATEDIR="${LOCALSTATEDIR}"
+
+GDMCFGDIR= ${PREFIX}/etc/gdm
+GDMCFGFILES= Default:Init.default/Default \
+ PostSession:PostSession.default/Default \
+ PreSession:PreSession.default/Default \
+ Gnome:Sessions.default/Gnome \
+ KDE:Sessions.default/KDE \
+ Xsession:Sessions.default/Xsession \
+ gdm.conf:gdm.conf.default \
+ locale.alias:locale.alias.default \
+ gnomerc:../gnomerc.default
+
+FILES_SUBST+= GDMCFGDIR=${GDMCFGDIR:Q}
+FILES_SUBST+= GDMCFGFILES=${GDMCFGFILES:C/.*://g:Q}
+
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} == "SunOS"
+CFLAGS+= -DSunOS
+GDMOWN= daemon
+GDMGRP= other
+.else
+GDMOWN= daemon
+GDMGRP= daemon
+.endif
+
+.if defined(USE_PAM)
+DEPENDS+= PAM-[0-9]*:../../security/PAM
+.else
+
+post-patch:
+ cd ${WRKSRC} && \
+ ${CP} configure configure.old && \
+ ${SED} -e 's:security/pam_appl.h:nopam:g' \
+ < configure.old > configure
+.endif
+
+post-build:
+ cd ${WRKSRC}/config; \
+ for f in Default PostSession PreSession; do \
+ ${SED} -e 's#/usr/bin/X11#${X11BASE}/bin#g' $$f >$$f.new; \
+ ${MV} $$f.new $$f; \
+ ${CHMOD} +x $$f; \
+ done
+ cd ${WRKSRC}/config; \
+ ${RM} -f KDE Xsession; \
+ ${ECHO} '#! ${SH}' >KDE; \
+ ${ECHO} "export KDEDIR=${KDEBASEDIR}" >>KDE; \
+ ${ECHO} 'exec $${KDEDIR}/bin/startkde $$@' >>KDE; \
+ ${ECHO} '#! ${SH}' >Xsession; \
+ ${ECHO} 'exec ${X11BASE}/lib/X11/xdm/Xsession $$@' >>Xsession; \
+ ${CHMOD} +x KDE Xsession
+ ${SED} "s|@PREFIX@|${PREFIX}|g" ${FILESDIR}/gdm > ${WRKDIR}/gdm
+
+post-install:
+ ${CHMOD} +x ${WRKSRC}/config/gnomerc
+.for FILE in ${GDMCFGFILES}
+ @cd ${WRKSRC}/config; \
+ SOURCE=${FILE:C/:.*//}; \
+ TARGET=${GDMCFGDIR}/${FILE:C/.*://:S/.default//}; \
+ if [ ! -f $$TARGET ]; then \
+ ${ECHO} "installing $$SOURCE as $$TARGET"; \
+ if [ -x $$SOURCE ]; then \
+ ${INSTALL_SCRIPT} $$SOURCE $$TARGET; \
+ else \
+ ${INSTALL_DATA} $$SOURCE $$TARGET; \
+ fi; \
+ fi; \
+ TARGET=${GDMCFGDIR}/${FILE:C/.*://}; \
+ ${INSTALL_DATA_DIR} `dirname $$TARGET`; \
+ ${ECHO} "installing $$SOURCE as $$TARGET"; \
+ if [ -x $$SOURCE ]; then \
+ ${INSTALL_SCRIPT} $$SOURCE $$TARGET; \
+ else \
+ ${INSTALL_DATA} $$SOURCE $$TARGET; \
+ fi
+.endfor
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/gdm
+ ${INSTALL_DATA} ${DISTDIR}/Daemon.README ${PREFIX}/share/doc/gdm
+ ${INSTALL_DATA} ${DISTDIR}/Daemon.png ${PREFIX}/share/pixmaps
+ ${LN} -fs Gnome ${GDMCFGDIR}/Sessions/Default
+ ${INSTALL_SCRIPT} ${WRKDIR}/gdm ${PREFIX}/etc/rc.d/
+
+.include "../../devel/gettext-lib/buildlink2.mk"
+.include "../../devel/libglade/buildlink2.mk"
+.include "../../x11/gnome-libs/buildlink2.mk"
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/x11/gdm1/PLIST b/x11/gdm1/PLIST
new file mode 100644
index 00000000000..868cad1f41a
--- /dev/null
+++ b/x11/gdm1/PLIST
@@ -0,0 +1,80 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2004/01/20 13:33:08 xtraeme Exp $
+bin/gdm
+bin/gdmchooser
+bin/gdmconfig
+bin/gdmlogin
+etc/gdm/Init.default/Default
+etc/gdm/PostSession.default/Default
+etc/gdm/PreSession.default/Default
+etc/gdm/Sessions.default/Gnome
+etc/gdm/Sessions.default/KDE
+etc/gdm/Sessions.default/Xsession
+etc/gdm/gdm.conf.default
+etc/gdm/locale.alias.default
+etc/gnomerc.default
+etc/gdm/Sessions/Failsafe
+etc/gdm/gnomerc
+etc/rc.d/gdm
+share/doc/gdm/Daemon.README
+share/gnome/help/gdm/C/configuration.html
+share/gnome/help/gdm/C/daemonov.html
+share/gnome/help/gdm/C/docbook.css
+share/gnome/help/gdm/C/f21.html
+share/gnome/help/gdm/C/gdm.html
+@exec ${MKDIR} %D/share/gnome/help/gdm/C/images
+share/gnome/help/gdm/C/index.html
+share/gnome/help/gdm/C/intro.html
+share/gnome/help/gdm/C/ln15.html
+share/gnome/help/gdm/C/x60.html
+share/gnome/help/gdm/C/x69.html
+share/gnome/help/gdm/C/x135.html
+${PKGLOCALEDIR}/locale/da/LC_MESSAGES/gdm.mo
+${PKGLOCALEDIR}/locale/de/LC_MESSAGES/gdm.mo
+${PKGLOCALEDIR}/locale/es/LC_MESSAGES/gdm.mo
+${PKGLOCALEDIR}/locale/et/LC_MESSAGES/gdm.mo
+${PKGLOCALEDIR}/locale/fr/LC_MESSAGES/gdm.mo
+${PKGLOCALEDIR}/locale/ko/LC_MESSAGES/gdm.mo
+${PKGLOCALEDIR}/locale/no/LC_MESSAGES/gdm.mo
+${PKGLOCALEDIR}/locale/sv/LC_MESSAGES/gdm.mo
+${PKGLOCALEDIR}/locale/pl/LC_MESSAGES/gdm.mo
+${PKGLOCALEDIR}/locale/pt_BR/LC_MESSAGES/gdm.mo
+${PKGLOCALEDIR}/locale/ca/LC_MESSAGES/gdm.mo
+${PKGLOCALEDIR}/locale/cs/LC_MESSAGES/gdm.mo
+${PKGLOCALEDIR}/locale/el/LC_MESSAGES/gdm.mo
+${PKGLOCALEDIR}/locale/fi/LC_MESSAGES/gdm.mo
+${PKGLOCALEDIR}/locale/ga/LC_MESSAGES/gdm.mo
+${PKGLOCALEDIR}/locale/gl/LC_MESSAGES/gdm.mo
+${PKGLOCALEDIR}/locale/hu/LC_MESSAGES/gdm.mo
+${PKGLOCALEDIR}/locale/it/LC_MESSAGES/gdm.mo
+${PKGLOCALEDIR}/locale/ja/LC_MESSAGES/gdm.mo
+${PKGLOCALEDIR}/locale/lt/LC_MESSAGES/gdm.mo
+${PKGLOCALEDIR}/locale/nl/LC_MESSAGES/gdm.mo
+${PKGLOCALEDIR}/locale/nn/LC_MESSAGES/gdm.mo
+${PKGLOCALEDIR}/locale/ro/LC_MESSAGES/gdm.mo
+${PKGLOCALEDIR}/locale/ru/LC_MESSAGES/gdm.mo
+${PKGLOCALEDIR}/locale/sk/LC_MESSAGES/gdm.mo
+${PKGLOCALEDIR}/locale/sl/LC_MESSAGES/gdm.mo
+${PKGLOCALEDIR}/locale/uk/LC_MESSAGES/gdm.mo
+${PKGLOCALEDIR}/locale/zh_TW.Big5/LC_MESSAGES/gdm.mo
+${PKGLOCALEDIR}/locale/tr/LC_MESSAGES/gdm.mo
+${PKGLOCALEDIR}/locale/zh_CN.GB2312/LC_MESSAGES/gdm.mo
+${PKGLOCALEDIR}/locale/az/LC_MESSAGES/gdm.mo
+share/gnome/apps/System/gdmconfig.desktop
+share/gdm/gdmconfig.glade
+share/gdm/gdmchooser.glade
+share/pixmaps/Daemon.png
+share/pixmaps/gdm.xpm
+share/pixmaps/nobody.png
+share/pixmaps/nohost.png
+@dirrm share/gnome/help/gdm/C/images
+@dirrm share/gnome/help/gdm/C
+@dirrm share/gnome/help/gdm
+@dirrm share/gdm
+@dirrm share/doc/gdm
+@dirrm etc/gdm/Sessions.default
+@dirrm etc/gdm/PreSession.default
+@dirrm etc/gdm/PostSession.default
+@dirrm etc/gdm/Init.default
+@unexec ${RMDIR} %D/etc/gdm/Sessions %D/etc/gdm/PreSession %D/etc/gdm/PostSession %D/etc/gdm/Init %D/etc/gdm 2>/dev/null || ${TRUE}
+@exec ${INSTALL} -d -o ${GDMOWN} -g ${GDMGRP} -m 750 ${LOCALSTATEDIR}/gdm
+@unexec ${RM} -rf ${LOCALSTATEDIR}/gdm
diff --git a/x11/gdm1/distinfo b/x11/gdm1/distinfo
new file mode 100644
index 00000000000..2f62d651853
--- /dev/null
+++ b/x11/gdm1/distinfo
@@ -0,0 +1,20 @@
+$NetBSD: distinfo,v 1.1.1.1 2004/01/20 13:33:08 xtraeme Exp $
+
+SHA1 (gdm-2.2.0.tar.gz) = 135b424cc1493f92b500c4fe7d85e9ada57313e1
+Size (gdm-2.2.0.tar.gz) = 810976 bytes
+SHA1 (Daemon.README) = eb1e6af52adc02ded77af17e8953134b7e60d23b
+Size (Daemon.README) = 2191 bytes
+SHA1 (Daemon.png) = e77a42c644beecd66c4b95c0ae68c08c728a4e6d
+Size (Daemon.png) = 15725 bytes
+SHA1 (patch-aa) = 53fed25b228d9c021b8134d4257ad86efbcd9055
+SHA1 (patch-ab) = 944f67fd37460172b7b434ec5f3cc4ad31d3eff1
+SHA1 (patch-ac) = 32361628caef6cd0f1f50318a0b3f76249f6b76c
+SHA1 (patch-ae) = 1af3691044028dcf75b7eac9aa20563b7cc152d5
+SHA1 (patch-af) = b1e863e414de026e77eb0f24810d7aa811011c15
+SHA1 (patch-ag) = 8f3c68f79f6bbea798c6dbbd045ffd64a6abb720
+SHA1 (patch-ah) = c5f5d5456945a8a2e27c12a811e257195b67b93a
+SHA1 (patch-ai) = ae0181bc4b6f4c554b564744f410b7899dc8b7e6
+SHA1 (patch-ba) = 35e1ac11945b2e72270fcf2fb5be60e3168a48d9
+SHA1 (patch-bb) = 0a3b2d0013e6abee732e4f66677f2c916691f49f
+SHA1 (patch-bc) = 2c110458e84110d75a4384484bf17458595aedaf
+SHA1 (patch-bd) = 9bee6d79104058ab4bb67892c72f846bd270d2ce
diff --git a/x11/gdm1/files/gdm b/x11/gdm1/files/gdm
new file mode 100755
index 00000000000..cc6eda8fb3e
--- /dev/null
+++ b/x11/gdm1/files/gdm
@@ -0,0 +1,20 @@
+#!/bin/sh
+#
+# $NetBSD: gdm,v 1.1.1.1 2004/01/20 13:33:08 xtraeme Exp $
+#
+
+# PROVIDE: gdm
+# REQUIRE: DAEMON LOGIN wscons
+# KEYWORD: shutdown
+
+. /etc/rc.subr
+
+name="gdm"
+rcvar=$name
+command="@PREFIX@/bin/${name}"
+pidfile="/var/run/${name}.pid"
+required_files="@PREFIX@/etc/gdm/gdm.conf"
+extra_commands="reload"
+
+load_rc_config $name
+run_rc_command "$1"
diff --git a/x11/gdm1/patches/patch-aa b/x11/gdm1/patches/patch-aa
new file mode 100644
index 00000000000..9e3a3bd6cb4
--- /dev/null
+++ b/x11/gdm1/patches/patch-aa
@@ -0,0 +1,867 @@
+$NetBSD: patch-aa,v 1.1.1.1 2004/01/20 13:33:13 xtraeme Exp $
+
+--- configure.orig Tue Mar 13 01:23:59 2001
++++ configure Tue Oct 22 21:25:03 2002
+@@ -3008,14 +3008,18 @@
+
+
+
++
++
++
++
+ ALL_LINGUAS="az ca cs da de el es et fi fr ga gl hu it ja ko lt nl nn no pl pt_BR ro ru sk sl sv tr uk zh_CN.GB2312 zh_TW.Big5"
+ echo $ac_n "checking for working const""... $ac_c" 1>&6
+-echo "configure:3014: checking for working const" >&5
++echo "configure:3018: checking for working const" >&5
+ if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+ else
+ cat > conftest.$ac_ext <<EOF
+-#line 3019 "configure"
++#line 3023 "configure"
+ #include "confdefs.h"
+
+ int main() {
+@@ -3064,7 +3068,7 @@
+
+ ; return 0; }
+ EOF
+-if { (eval echo configure:3068: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
++if { (eval echo configure:3072: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+ rm -rf conftest*
+ ac_cv_c_const=yes
+ else
+@@ -3085,7 +3089,7 @@
+ fi
+
+ echo $ac_n "checking for inline""... $ac_c" 1>&6
+-echo "configure:3089: checking for inline" >&5
++echo "configure:3093: checking for inline" >&5
+ if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+ else
+@@ -3092,7 +3096,7 @@
+ ac_cv_c_inline=no
+ for ac_kw in inline __inline__ __inline; do
+ cat > conftest.$ac_ext <<EOF
+-#line 3096 "configure"
++#line 3100 "configure"
+ #include "confdefs.h"
+
+ int main() {
+@@ -3099,7 +3103,7 @@
+ } $ac_kw foo() {
+ ; return 0; }
+ EOF
+-if { (eval echo configure:3103: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
++if { (eval echo configure:3107: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+ rm -rf conftest*
+ ac_cv_c_inline=$ac_kw; break
+ else
+@@ -3125,12 +3129,12 @@
+ esac
+
+ echo $ac_n "checking for off_t""... $ac_c" 1>&6
+-echo "configure:3129: checking for off_t" >&5
++echo "configure:3133: checking for off_t" >&5
+ if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+ else
+ cat > conftest.$ac_ext <<EOF
+-#line 3134 "configure"
++#line 3138 "configure"
+ #include "confdefs.h"
+ #include <sys/types.h>
+ #if STDC_HEADERS
+@@ -3158,12 +3162,12 @@
+ fi
+
+ echo $ac_n "checking for size_t""... $ac_c" 1>&6
+-echo "configure:3162: checking for size_t" >&5
++echo "configure:3166: checking for size_t" >&5
+ if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+ else
+ cat > conftest.$ac_ext <<EOF
+-#line 3167 "configure"
++#line 3171 "configure"
+ #include "confdefs.h"
+ #include <sys/types.h>
+ #if STDC_HEADERS
+@@ -3193,12 +3197,12 @@
+ # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
+ # for constant arguments. Useless!
+ echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
+-echo "configure:3197: checking for working alloca.h" >&5
++echo "configure:3201: checking for working alloca.h" >&5
+ if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+ else
+ cat > conftest.$ac_ext <<EOF
+-#line 3202 "configure"
++#line 3206 "configure"
+ #include "confdefs.h"
+ #include <alloca.h>
+ int main() {
+@@ -3205,7 +3209,7 @@
+ char *p = alloca(2 * sizeof(int));
+ ; return 0; }
+ EOF
+-if { (eval echo configure:3209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++if { (eval echo configure:3213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+ rm -rf conftest*
+ ac_cv_header_alloca_h=yes
+ else
+@@ -3226,12 +3230,12 @@
+ fi
+
+ echo $ac_n "checking for alloca""... $ac_c" 1>&6
+-echo "configure:3230: checking for alloca" >&5
++echo "configure:3234: checking for alloca" >&5
+ if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+ else
+ cat > conftest.$ac_ext <<EOF
+-#line 3235 "configure"
++#line 3239 "configure"
+ #include "confdefs.h"
+
+ #ifdef __GNUC__
+@@ -3259,7 +3263,7 @@
+ char *p = (char *) alloca(1);
+ ; return 0; }
+ EOF
+-if { (eval echo configure:3263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++if { (eval echo configure:3267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+ rm -rf conftest*
+ ac_cv_func_alloca_works=yes
+ else
+@@ -3291,12 +3295,12 @@
+
+
+ echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
+-echo "configure:3295: checking whether alloca needs Cray hooks" >&5
++echo "configure:3299: checking whether alloca needs Cray hooks" >&5
+ if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+ else
+ cat > conftest.$ac_ext <<EOF
+-#line 3300 "configure"
++#line 3304 "configure"
+ #include "confdefs.h"
+ #if defined(CRAY) && ! defined(CRAY2)
+ webecray
+@@ -3321,12 +3325,12 @@
+ if test $ac_cv_os_cray = yes; then
+ for ac_func in _getb67 GETB67 getb67; do
+ echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
+-echo "configure:3325: checking for $ac_func" >&5
++echo "configure:3329: checking for $ac_func" >&5
+ if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+ else
+ cat > conftest.$ac_ext <<EOF
+-#line 3330 "configure"
++#line 3334 "configure"
+ #include "confdefs.h"
+ /* System header to define __stub macros and hopefully few prototypes,
+ which can conflict with char $ac_func(); below. */
+@@ -3349,7 +3353,7 @@
+
+ ; return 0; }
+ EOF
+-if { (eval echo configure:3353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++if { (eval echo configure:3357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+ rm -rf conftest*
+ eval "ac_cv_func_$ac_func=yes"
+ else
+@@ -3376,7 +3380,7 @@
+ fi
+
+ echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
+-echo "configure:3380: checking stack direction for C alloca" >&5
++echo "configure:3384: checking stack direction for C alloca" >&5
+ if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+ else
+@@ -3384,7 +3388,7 @@
+ ac_cv_c_stack_direction=0
+ else
+ cat > conftest.$ac_ext <<EOF
+-#line 3388 "configure"
++#line 3392 "configure"
+ #include "confdefs.h"
+ find_stack_direction ()
+ {
+@@ -3403,7 +3407,7 @@
+ exit (find_stack_direction() < 0);
+ }
+ EOF
+-if { (eval echo configure:3407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
++if { (eval echo configure:3411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+ then
+ ac_cv_c_stack_direction=1
+ else
+@@ -3428,17 +3432,17 @@
+ do
+ ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
+ echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
+-echo "configure:3432: checking for $ac_hdr" >&5
++echo "configure:3436: checking for $ac_hdr" >&5
+ if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+ else
+ cat > conftest.$ac_ext <<EOF
+-#line 3437 "configure"
++#line 3441 "configure"
+ #include "confdefs.h"
+ #include <$ac_hdr>
+ EOF
+ ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
+-{ (eval echo configure:3442: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
++{ (eval echo configure:3446: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+ ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+ if test -z "$ac_err"; then
+ rm -rf conftest*
+@@ -3467,12 +3471,12 @@
+ for ac_func in getpagesize
+ do
+ echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
+-echo "configure:3471: checking for $ac_func" >&5
++echo "configure:3475: checking for $ac_func" >&5
+ if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+ else
+ cat > conftest.$ac_ext <<EOF
+-#line 3476 "configure"
++#line 3480 "configure"
+ #include "confdefs.h"
+ /* System header to define __stub macros and hopefully few prototypes,
+ which can conflict with char $ac_func(); below. */
+@@ -3495,7 +3499,7 @@
+
+ ; return 0; }
+ EOF
+-if { (eval echo configure:3499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++if { (eval echo configure:3503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+ rm -rf conftest*
+ eval "ac_cv_func_$ac_func=yes"
+ else
+@@ -3520,7 +3524,7 @@
+ done
+
+ echo $ac_n "checking for working mmap""... $ac_c" 1>&6
+-echo "configure:3524: checking for working mmap" >&5
++echo "configure:3528: checking for working mmap" >&5
+ if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+ else
+@@ -3528,7 +3532,7 @@
+ ac_cv_func_mmap_fixed_mapped=no
+ else
+ cat > conftest.$ac_ext <<EOF
+-#line 3532 "configure"
++#line 3536 "configure"
+ #include "confdefs.h"
+
+ /* Thanks to Mike Haertel and Jim Avera for this test.
+@@ -3668,7 +3672,7 @@
+ }
+
+ EOF
+-if { (eval echo configure:3672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
++if { (eval echo configure:3676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+ then
+ ac_cv_func_mmap_fixed_mapped=yes
+ else
+@@ -3696,17 +3700,17 @@
+ do
+ ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
+ echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
+-echo "configure:3700: checking for $ac_hdr" >&5
++echo "configure:3704: checking for $ac_hdr" >&5
+ if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+ else
+ cat > conftest.$ac_ext <<EOF
+-#line 3705 "configure"
++#line 3709 "configure"
+ #include "confdefs.h"
+ #include <$ac_hdr>
+ EOF
+ ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
+-{ (eval echo configure:3710: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
++{ (eval echo configure:3714: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+ ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+ if test -z "$ac_err"; then
+ rm -rf conftest*
+@@ -3736,12 +3740,12 @@
+ strdup __argz_count __argz_stringify __argz_next
+ do
+ echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
+-echo "configure:3740: checking for $ac_func" >&5
++echo "configure:3744: checking for $ac_func" >&5
+ if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+ else
+ cat > conftest.$ac_ext <<EOF
+-#line 3745 "configure"
++#line 3749 "configure"
+ #include "confdefs.h"
+ /* System header to define __stub macros and hopefully few prototypes,
+ which can conflict with char $ac_func(); below. */
+@@ -3764,7 +3768,7 @@
+
+ ; return 0; }
+ EOF
+-if { (eval echo configure:3768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++if { (eval echo configure:3772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+ rm -rf conftest*
+ eval "ac_cv_func_$ac_func=yes"
+ else
+@@ -3793,12 +3797,12 @@
+ for ac_func in stpcpy
+ do
+ echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
+-echo "configure:3797: checking for $ac_func" >&5
++echo "configure:3801: checking for $ac_func" >&5
+ if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+ else
+ cat > conftest.$ac_ext <<EOF
+-#line 3802 "configure"
++#line 3806 "configure"
+ #include "confdefs.h"
+ /* System header to define __stub macros and hopefully few prototypes,
+ which can conflict with char $ac_func(); below. */
+@@ -3821,7 +3825,7 @@
+
+ ; return 0; }
+ EOF
+-if { (eval echo configure:3825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++if { (eval echo configure:3829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+ rm -rf conftest*
+ eval "ac_cv_func_$ac_func=yes"
+ else
+@@ -3855,12 +3859,12 @@
+
+ if test $ac_cv_header_locale_h = yes; then
+ echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
+-echo "configure:3859: checking for LC_MESSAGES" >&5
++echo "configure:3863: checking for LC_MESSAGES" >&5
+ if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+ else
+ cat > conftest.$ac_ext <<EOF
+-#line 3864 "configure"
++#line 3868 "configure"
+ #include "confdefs.h"
+ #include <locale.h>
+ int main() {
+@@ -3867,7 +3871,7 @@
+ return LC_MESSAGES
+ ; return 0; }
+ EOF
+-if { (eval echo configure:3871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++if { (eval echo configure:3875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+ rm -rf conftest*
+ am_cv_val_LC_MESSAGES=yes
+ else
+@@ -3888,7 +3892,7 @@
+ fi
+ fi
+ echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
+-echo "configure:3892: checking whether NLS is requested" >&5
++echo "configure:3896: checking whether NLS is requested" >&5
+ # Check whether --enable-nls or --disable-nls was given.
+ if test "${enable_nls+set}" = set; then
+ enableval="$enable_nls"
+@@ -3920,17 +3924,17 @@
+
+ ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
+ echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
+-echo "configure:3924: checking for libintl.h" >&5
++echo "configure:3928: checking for libintl.h" >&5
+ if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+ else
+ cat > conftest.$ac_ext <<EOF
+-#line 3929 "configure"
++#line 3933 "configure"
+ #include "confdefs.h"
+ #include <libintl.h>
+ EOF
+ ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
+-{ (eval echo configure:3934: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
++{ (eval echo configure:3938: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+ ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+ if test -z "$ac_err"; then
+ rm -rf conftest*
+@@ -3947,12 +3951,12 @@
+ if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ echo "$ac_t""yes" 1>&6
+ echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
+-echo "configure:3951: checking for gettext in libc" >&5
++echo "configure:3955: checking for gettext in libc" >&5
+ if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+ else
+ cat > conftest.$ac_ext <<EOF
+-#line 3956 "configure"
++#line 3960 "configure"
+ #include "confdefs.h"
+ #include <libintl.h>
+ int main() {
+@@ -3959,7 +3963,7 @@
+ return (int) gettext ("")
+ ; return 0; }
+ EOF
+-if { (eval echo configure:3963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++if { (eval echo configure:3967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+ rm -rf conftest*
+ gt_cv_func_gettext_libc=yes
+ else
+@@ -3975,7 +3979,7 @@
+
+ if test "$gt_cv_func_gettext_libc" != "yes"; then
+ echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
+-echo "configure:3979: checking for bindtextdomain in -lintl" >&5
++echo "configure:3983: checking for bindtextdomain in -lintl" >&5
+ ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
+ if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+@@ -3983,7 +3987,7 @@
+ ac_save_LIBS="$LIBS"
+ LIBS="-lintl $LIBS"
+ cat > conftest.$ac_ext <<EOF
+-#line 3987 "configure"
++#line 3991 "configure"
+ #include "confdefs.h"
+ /* Override any gcc2 internal prototype to avoid an error. */
+ /* We use char because int might match the return type of a gcc2
+@@ -3994,7 +3998,7 @@
+ bindtextdomain()
+ ; return 0; }
+ EOF
+-if { (eval echo configure:3998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++if { (eval echo configure:4002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+ rm -rf conftest*
+ eval "ac_cv_lib_$ac_lib_var=yes"
+ else
+@@ -4010,12 +4014,12 @@
+ if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
+ echo "$ac_t""yes" 1>&6
+ echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
+-echo "configure:4014: checking for gettext in libintl" >&5
++echo "configure:4018: checking for gettext in libintl" >&5
+ if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+ else
+ echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
+-echo "configure:4019: checking for gettext in -lintl" >&5
++echo "configure:4023: checking for gettext in -lintl" >&5
+ ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
+ if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+@@ -4023,7 +4027,7 @@
+ ac_save_LIBS="$LIBS"
+ LIBS="-lintl $LIBS"
+ cat > conftest.$ac_ext <<EOF
+-#line 4027 "configure"
++#line 4031 "configure"
+ #include "confdefs.h"
+ /* Override any gcc2 internal prototype to avoid an error. */
+ /* We use char because int might match the return type of a gcc2
+@@ -4034,7 +4038,7 @@
+ gettext()
+ ; return 0; }
+ EOF
+-if { (eval echo configure:4038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++if { (eval echo configure:4042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+ rm -rf conftest*
+ eval "ac_cv_lib_$ac_lib_var=yes"
+ else
+@@ -4073,7 +4077,7 @@
+ # Extract the first word of "msgfmt", so it can be a program name with args.
+ set dummy msgfmt; ac_word=$2
+ echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
+-echo "configure:4077: checking for $ac_word" >&5
++echo "configure:4081: checking for $ac_word" >&5
+ if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+ else
+@@ -4107,12 +4111,12 @@
+ for ac_func in dcgettext
+ do
+ echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
+-echo "configure:4111: checking for $ac_func" >&5
++echo "configure:4115: checking for $ac_func" >&5
+ if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+ else
+ cat > conftest.$ac_ext <<EOF
+-#line 4116 "configure"
++#line 4120 "configure"
+ #include "confdefs.h"
+ /* System header to define __stub macros and hopefully few prototypes,
+ which can conflict with char $ac_func(); below. */
+@@ -4135,7 +4139,7 @@
+
+ ; return 0; }
+ EOF
+-if { (eval echo configure:4139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++if { (eval echo configure:4143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+ rm -rf conftest*
+ eval "ac_cv_func_$ac_func=yes"
+ else
+@@ -4162,7 +4166,7 @@
+ # Extract the first word of "gmsgfmt", so it can be a program name with args.
+ set dummy gmsgfmt; ac_word=$2
+ echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
+-echo "configure:4166: checking for $ac_word" >&5
++echo "configure:4170: checking for $ac_word" >&5
+ if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+ else
+@@ -4198,7 +4202,7 @@
+ # Extract the first word of "xgettext", so it can be a program name with args.
+ set dummy xgettext; ac_word=$2
+ echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
+-echo "configure:4202: checking for $ac_word" >&5
++echo "configure:4206: checking for $ac_word" >&5
+ if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+ else
+@@ -4230,7 +4234,7 @@
+ fi
+
+ cat > conftest.$ac_ext <<EOF
+-#line 4234 "configure"
++#line 4238 "configure"
+ #include "confdefs.h"
+
+ int main() {
+@@ -4238,7 +4242,7 @@
+ return _nl_msg_cat_cntr
+ ; return 0; }
+ EOF
+-if { (eval echo configure:4242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++if { (eval echo configure:4246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+ rm -rf conftest*
+ CATOBJEXT=.gmo
+ DATADIRNAME=share
+@@ -4268,7 +4272,7 @@
+
+ if test "$CATOBJEXT" = "NONE"; then
+ echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
+-echo "configure:4272: checking whether catgets can be used" >&5
++echo "configure:4276: checking whether catgets can be used" >&5
+ # Check whether --with-catgets or --without-catgets was given.
+ if test "${with_catgets+set}" = set; then
+ withval="$with_catgets"
+@@ -4281,7 +4285,7 @@
+
+ if test "$nls_cv_use_catgets" = "yes"; then
+ echo $ac_n "checking for main in -li""... $ac_c" 1>&6
+-echo "configure:4285: checking for main in -li" >&5
++echo "configure:4289: checking for main in -li" >&5
+ ac_lib_var=`echo i'_'main | sed 'y%./+-%__p_%'`
+ if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+@@ -4289,7 +4293,7 @@
+ ac_save_LIBS="$LIBS"
+ LIBS="-li $LIBS"
+ cat > conftest.$ac_ext <<EOF
+-#line 4293 "configure"
++#line 4297 "configure"
+ #include "confdefs.h"
+
+ int main() {
+@@ -4296,7 +4300,7 @@
+ main()
+ ; return 0; }
+ EOF
+-if { (eval echo configure:4300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++if { (eval echo configure:4304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+ rm -rf conftest*
+ eval "ac_cv_lib_$ac_lib_var=yes"
+ else
+@@ -4324,12 +4328,12 @@
+ fi
+
+ echo $ac_n "checking for catgets""... $ac_c" 1>&6
+-echo "configure:4328: checking for catgets" >&5
++echo "configure:4332: checking for catgets" >&5
+ if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+ else
+ cat > conftest.$ac_ext <<EOF
+-#line 4333 "configure"
++#line 4337 "configure"
+ #include "confdefs.h"
+ /* System header to define __stub macros and hopefully few prototypes,
+ which can conflict with char catgets(); below. */
+@@ -4352,7 +4356,7 @@
+
+ ; return 0; }
+ EOF
+-if { (eval echo configure:4356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++if { (eval echo configure:4360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+ rm -rf conftest*
+ eval "ac_cv_func_catgets=yes"
+ else
+@@ -4374,7 +4378,7 @@
+ # Extract the first word of "gencat", so it can be a program name with args.
+ set dummy gencat; ac_word=$2
+ echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
+-echo "configure:4378: checking for $ac_word" >&5
++echo "configure:4382: checking for $ac_word" >&5
+ if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+ else
+@@ -4514,7 +4518,7 @@
+ LINGUAS=
+ else
+ echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
+-echo "configure:4518: checking for catalogs to be installed" >&5
++echo "configure:4522: checking for catalogs to be installed" >&5
+ NEW_LINGUAS=
+ if test "x$LINGUAS" = "x"; then
+ LINGUAS=$ALL_LINGUAS
+@@ -4545,17 +4549,17 @@
+ if test "$CATOBJEXT" = ".cat"; then
+ ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
+ echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
+-echo "configure:4549: checking for linux/version.h" >&5
++echo "configure:4553: checking for linux/version.h" >&5
+ if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+ else
+ cat > conftest.$ac_ext <<EOF
+-#line 4554 "configure"
++#line 4558 "configure"
+ #include "confdefs.h"
+ #include <linux/version.h>
+ EOF
+ ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
+-{ (eval echo configure:4559: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
++{ (eval echo configure:4563: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+ ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+ if test -z "$ac_err"; then
+ rm -rf conftest*
+@@ -4620,15 +4624,15 @@
+ < $srcdir/po/POTFILES.in > po/POTFILES
+
+
+-for ac_func in setenv unsetenv
++for ac_func in setenv unsetenv setlogin
+ do
+ echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
+-echo "configure:4627: checking for $ac_func" >&5
++echo "configure:4631: checking for $ac_func" >&5
+ if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+ else
+ cat > conftest.$ac_ext <<EOF
+-#line 4632 "configure"
++#line 4636 "configure"
+ #include "confdefs.h"
+ /* System header to define __stub macros and hopefully few prototypes,
+ which can conflict with char $ac_func(); below. */
+@@ -4651,7 +4655,7 @@
+
+ ; return 0; }
+ EOF
+-if { (eval echo configure:4655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++if { (eval echo configure:4659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+ rm -rf conftest*
+ eval "ac_cv_func_$ac_func=yes"
+ else
+@@ -4678,7 +4682,7 @@
+
+ # TCP Wrappers for XDMCP access control
+ echo $ac_n "checking "whether to use TCP wrappers"""... $ac_c" 1>&6
+-echo "configure:4682: checking "whether to use TCP wrappers"" >&5
++echo "configure:4686: checking "whether to use TCP wrappers"" >&5
+ LIBWRAP_PATH=""
+ for I in $LDFLAGS $LIBS -L/usr/lib; do
+ case "$I" in
+@@ -4722,11 +4726,11 @@
+ LIB_NSL=
+ if test -n "$LIBWRAP_PATH"; then
+ echo $ac_n "checking whether -lwrap requires -lnsl""... $ac_c" 1>&6
+-echo "configure:4726: checking whether -lwrap requires -lnsl" >&5
++echo "configure:4730: checking whether -lwrap requires -lnsl" >&5
+ ORIG_LIBS="$LIBS"
+ LIBS="$LIBWRAP_PATH $LIBS"
+ cat > conftest.$ac_ext <<EOF
+-#line 4730 "configure"
++#line 4734 "configure"
+ #include "confdefs.h"
+
+ #include <tcpd.h>
+@@ -4736,7 +4740,7 @@
+ return hosts_access;
+ ; return 0; }
+ EOF
+-if { (eval echo configure:4740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++if { (eval echo configure:4744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+ :
+ else
+ echo "configure: failed program was:" >&5
+@@ -4746,7 +4750,7 @@
+ OLD_LIBS="$LIBS"
+ LIBS="$LIBS -lnsl"
+ cat > conftest.$ac_ext <<EOF
+-#line 4750 "configure"
++#line 4754 "configure"
+ #include "confdefs.h"
+
+ #include <tcpd.h>
+@@ -4756,7 +4760,7 @@
+ return hosts_access;
+ ; return 0; }
+ EOF
+-if { (eval echo configure:4760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++if { (eval echo configure:4764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+ rm -rf conftest*
+ LIB_NSL="-lnsl"
+ else
+@@ -4785,17 +4789,17 @@
+ do
+ ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
+ echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
+-echo "configure:4789: checking for $ac_hdr" >&5
++echo "configure:4793: checking for $ac_hdr" >&5
+ if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+ else
+ cat > conftest.$ac_ext <<EOF
+-#line 4794 "configure"
++#line 4798 "configure"
+ #include "confdefs.h"
+ #include <$ac_hdr>
+ EOF
+ ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
+-{ (eval echo configure:4799: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
++{ (eval echo configure:4803: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+ ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+ if test -z "$ac_err"; then
+ rm -rf conftest*
+@@ -4833,7 +4837,7 @@
+
+ # Check if -lcrypt is necessary
+ echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
+-echo "configure:4837: checking for crypt in -lcrypt" >&5
++echo "configure:4841: checking for crypt in -lcrypt" >&5
+ ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
+ if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+@@ -4841,7 +4845,7 @@
+ ac_save_LIBS="$LIBS"
+ LIBS="-lcrypt $LIBS"
+ cat > conftest.$ac_ext <<EOF
+-#line 4845 "configure"
++#line 4849 "configure"
+ #include "confdefs.h"
+ /* Override any gcc2 internal prototype to avoid an error. */
+ /* We use char because int might match the return type of a gcc2
+@@ -4852,7 +4856,7 @@
+ crypt()
+ ; return 0; }
+ EOF
+-if { (eval echo configure:4856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++if { (eval echo configure:4860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+ rm -rf conftest*
+ eval "ac_cv_lib_$ac_lib_var=yes"
+ else
+@@ -4879,17 +4883,17 @@
+ do
+ ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
+ echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
+-echo "configure:4883: checking for $ac_hdr" >&5
++echo "configure:4887: checking for $ac_hdr" >&5
+ if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+ else
+ cat > conftest.$ac_ext <<EOF
+-#line 4888 "configure"
++#line 4892 "configure"
+ #include "confdefs.h"
+ #include <$ac_hdr>
+ EOF
+ ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
+-{ (eval echo configure:4893: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
++{ (eval echo configure:4897: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+ ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+ if test -z "$ac_err"; then
+ rm -rf conftest*
+@@ -4922,7 +4926,7 @@
+
+ # Check for shadow passwords (hack)
+ echo $ac_n "checking "for /etc/shadow"""... $ac_c" 1>&6
+-echo "configure:4926: checking "for /etc/shadow"" >&5
++echo "configure:4930: checking "for /etc/shadow"" >&5
+
+ if test -f /etc/shadow; then
+ VRFY="verify-shadow"
+@@ -4942,17 +4946,17 @@
+ # X11 Xinerama extension
+ ac_safe=`echo "X11/extensions/Xinerama.h" | sed 'y%./+-%__p_%'`
+ echo $ac_n "checking for X11/extensions/Xinerama.h""... $ac_c" 1>&6
+-echo "configure:4946: checking for X11/extensions/Xinerama.h" >&5
++echo "configure:4950: checking for X11/extensions/Xinerama.h" >&5
+ if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+ else
+ cat > conftest.$ac_ext <<EOF
+-#line 4951 "configure"
++#line 4955 "configure"
+ #include "confdefs.h"
+ #include <X11/extensions/Xinerama.h>
+ EOF
+ ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
+-{ (eval echo configure:4956: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
++{ (eval echo configure:4960: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+ ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+ if test -z "$ac_err"; then
+ rm -rf conftest*
+@@ -4970,7 +4974,7 @@
+ echo "$ac_t""yes" 1>&6
+
+ echo $ac_n "checking for XineramaQueryScreens in -lXinerama""... $ac_c" 1>&6
+-echo "configure:4974: checking for XineramaQueryScreens in -lXinerama" >&5
++echo "configure:4978: checking for XineramaQueryScreens in -lXinerama" >&5
+ ac_lib_var=`echo Xinerama'_'XineramaQueryScreens | sed 'y%./+-%__p_%'`
+ if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+@@ -4978,7 +4982,7 @@
+ ac_save_LIBS="$LIBS"
+ LIBS="-lXinerama $GTK_LIBS $LIBS"
+ cat > conftest.$ac_ext <<EOF
+-#line 4982 "configure"
++#line 4986 "configure"
+ #include "confdefs.h"
+ /* Override any gcc2 internal prototype to avoid an error. */
+ /* We use char because int might match the return type of a gcc2
+@@ -4989,7 +4993,7 @@
+ XineramaQueryScreens()
+ ; return 0; }
+ EOF
+-if { (eval echo configure:4993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++if { (eval echo configure:4997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+ rm -rf conftest*
+ eval "ac_cv_lib_$ac_lib_var=yes"
+ else
+@@ -5289,6 +5293,10 @@
+ s%@LIBGLADE_LIBS@%$LIBGLADE_LIBS%g
+ s%@CONSOLE_HELPER_TRUE@%$CONSOLE_HELPER_TRUE%g
+ s%@CONSOLE_HELPER_FALSE@%$CONSOLE_HELPER_FALSE%g
++s%@GDMOWN@%$GDMOWN%g
++s%@GDMGRP@%$GDMGRP%g
++s%@X11BASE@%$X11BASE%g
++s%@LOCALBASE@%$LOCALBASE%g
+ s%@ALLOCA@%$ALLOCA%g
+ s%@USE_NLS@%$USE_NLS%g
+ s%@MSGFMT@%$MSGFMT%g
diff --git a/x11/gdm1/patches/patch-ab b/x11/gdm1/patches/patch-ab
new file mode 100644
index 00000000000..022d5f62261
--- /dev/null
+++ b/x11/gdm1/patches/patch-ab
@@ -0,0 +1,50 @@
+$NetBSD: patch-ab,v 1.1.1.1 2004/01/20 13:33:13 xtraeme Exp $
+
+--- config/gdm.conf.in.orig Sun Mar 4 15:27:12 2001
++++ config/gdm.conf.in Fri Jul 26 19:51:41 2002
+@@ -1,10 +1,10 @@
+ [daemon]
+ AutomaticLogin=
+ Chooser=@EXPANDED_BINDIR@/gdmchooser --disable-sound --disable-crash-dialog
+-DefaultPath=/bin:/usr/bin:/usr/bin/X11:/usr/local/bin:@EXPANDED_BINDIR@
++DefaultPath=/bin:/usr/bin:/usr/local/bin:@X11BASE@/bin:@LOCALBASE@/bin
+ DisplayInitDir=@EXPANDED_SYSCONFDIR@/gdm/Init
+ Greeter=@EXPANDED_BINDIR@/gdmlogin --disable-sound --disable-crash-dialog
+-Group=gdm
++Group=@GDMGRP@
+ HaltCommand=/sbin/shutdown -h now
+ KillInitClients=true
+ LogDir=@EXPANDED_AUTHDIR@
+@@ -12,10 +12,10 @@
+ PostSessionScriptDir=@EXPANDED_SYSCONFDIR@/gdm/PostSession/
+ PreSessionScriptDir=@EXPANDED_SYSCONFDIR@/gdm/PreSession/
+ RebootCommand=/sbin/shutdown -r now
+-RootPath=/sbin:/usr/sbin:/bin:/usr/bin:/usr/bin/X11:/usr/local/bin:@EXPANDED_BINDIR@
++RootPath=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/bin:@X11BASE@/bin:@LOCALBASE@/bin
+ ServAuthDir=@EXPANDED_AUTHDIR@
+ SessionDir=@EXPANDED_SYSCONFDIR@/gdm/Sessions/
+-User=gdm
++User=@GDMOWN@
+ UserAuthDir=
+ UserAuthFBDir=/tmp
+ UserAuthFile=.Xauthority
+@@ -51,7 +51,7 @@
+ GlobalFaceDir=@EXPANDED_DATADIR@/faces/
+ Icon=@EXPANDED_PIXMAPDIR@/gdm.xpm
+ LocaleFile=@EXPANDED_LOCALEDIR@/locale.alias
+-Logo=@EXPANDED_PIXMAPDIR@/gnome-logo-large.png
++Logo=@EXPANDED_PIXMAPDIR@/Daemon.png
+ Quiver=true
+ SystemMenu=true
+ Welcome=Welcome to %n
+@@ -75,8 +75,8 @@
+ Enable=false
+
+ [servers]
+-0=/usr/bin/X11/X
+-#1=/usr/bin/X11/X
++0=@X11BASE@/bin/X
++#1=@X11BASE@/bin/X
+ #Note: If you want to make sure X runs on a specific virtual console on linux,
+ # you can use the following (for console 7):
+ #0=/usr/bin/X11/X vt7
diff --git a/x11/gdm1/patches/patch-ac b/x11/gdm1/patches/patch-ac
new file mode 100644
index 00000000000..93e88510125
--- /dev/null
+++ b/x11/gdm1/patches/patch-ac
@@ -0,0 +1,10 @@
+$NetBSD: patch-ac,v 1.1.1.1 2004/01/20 13:33:13 xtraeme Exp $
+
+--- config/Gnome.in.orig Tue Mar 20 02:24:39 2001
++++ config/Gnome.in Tue Mar 20 02:25:08 2001
+@@ -1,4 +1,4 @@
+-#!/bin/bash -login
++#!/bin/sh
+
+ for errfile in "$HOME/.gnomerc-errors" "${TMPDIR-/tmp}/gnomerc-$USER" "/tmp/gnomerc-$USER"
+ do
diff --git a/x11/gdm1/patches/patch-ae b/x11/gdm1/patches/patch-ae
new file mode 100644
index 00000000000..f9dbb414070
--- /dev/null
+++ b/x11/gdm1/patches/patch-ae
@@ -0,0 +1,13 @@
+$NetBSD: patch-ae,v 1.1.1.1 2004/01/20 13:33:13 xtraeme Exp $
+
+--- po/Makefile.in.in.orig Tue Mar 20 02:30:22 2001
++++ po/Makefile.in.in Tue Mar 20 02:30:39 2001
+@@ -19,7 +19,7 @@
+ prefix = @prefix@
+ exec_prefix = @exec_prefix@
+ datadir = $(prefix)/@DATADIRNAME@
+-localedir = $(datadir)/locale
++localedir = $(prefix)/share/locale
+ gnulocaledir = $(prefix)/share/locale
+ gettextsrcdir = $(prefix)/share/gettext/po
+ subdir = po
diff --git a/x11/gdm1/patches/patch-af b/x11/gdm1/patches/patch-af
new file mode 100644
index 00000000000..e899ff3c2e0
--- /dev/null
+++ b/x11/gdm1/patches/patch-af
@@ -0,0 +1,32 @@
+$NetBSD: patch-af,v 1.1.1.1 2004/01/20 13:33:14 xtraeme Exp $
+
+--- daemon/slave.c.orig Mon Mar 5 01:29:54 2001
++++ daemon/slave.c Tue Oct 22 20:28:04 2002
+@@ -457,11 +457,14 @@
+ gdm_setenv ("DISPLAY", d->name);
+ gdm_setenv ("LOGNAME", login);
+ gdm_setenv ("USER", login);
++#ifndef HAVE_SETLOGIN
+ gdm_setenv ("USERNAME", login);
++#endif
+ gdm_setenv ("HOME", pwent->pw_dir);
+ gdm_setenv ("GDMSESSION", session);
+ gdm_setenv ("SHELL", pwent->pw_shell);
+ gdm_unsetenv ("MAIL"); /* Unset $MAIL for broken shells */
++ gdm_unsetenv ("GROUP");
+
+ /* Special PATH for root */
+ if (pwent->pw_uid == 0)
+@@ -517,7 +520,11 @@
+ if (setgid (pwent->pw_gid) < 0)
+ gdm_slave_exit (DISPLAY_REMANAGE,
+ _("gdm_slave_session_start: Could not setgid %d. Aborting."), pwent->pw_gid);
+-
++#ifdef HAVE_SETLOGIN
++ if (setlogin (login) < 0)
++ gdm_slave_exit (DISPLAY_REMANAGE,
++ _("gdm_slave_session_start: Could not set login name %s. Aborting."), login);
++#endif
+ if (initgroups (login, pwent->pw_gid) < 0)
+ gdm_slave_exit (DISPLAY_REMANAGE,
+ _("gdm_slave_session_start: initgroups() failed for %s. Aborting."), login);
diff --git a/x11/gdm1/patches/patch-ag b/x11/gdm1/patches/patch-ag
new file mode 100644
index 00000000000..6713460674f
--- /dev/null
+++ b/x11/gdm1/patches/patch-ag
@@ -0,0 +1,22 @@
+$NetBSD: patch-ag,v 1.1.1.1 2004/01/20 13:33:14 xtraeme Exp $
+
+--- configure.in.orig Thu Mar 8 07:51:46 2001
++++ configure.in Tue Oct 22 21:23:40 2002
+@@ -32,12 +32,16 @@
+ AC_SUBST(CFLAGS)
+ AC_SUBST(CPPFLAGS)
+ AC_SUBST(LDFLAGS)
++AC_SUBST(GDMOWN)
++AC_SUBST(GDMGRP)
++AC_SUBST(X11BASE)
++AC_SUBST(LOCALBASE)
+
+ dnl ## internationalization support
+ ALL_LINGUAS="az ca cs da de el es et fi fr ga gl hu it ja ko lt nl nn no pl pt_BR ro ru sk sl sv tr uk zh_CN.GB2312 zh_TW.Big5"
+ AM_GNOME_GETTEXT
+
+-AC_CHECK_FUNCS([setenv unsetenv])
++AC_CHECK_FUNCS([setenv unsetenv setlogin])
+
+ # TCP Wrappers for XDMCP access control
+ AC_MSG_CHECKING("whether to use TCP wrappers")
diff --git a/x11/gdm1/patches/patch-ah b/x11/gdm1/patches/patch-ah
new file mode 100644
index 00000000000..7fd9dcf9bba
--- /dev/null
+++ b/x11/gdm1/patches/patch-ah
@@ -0,0 +1,14 @@
+$NetBSD: patch-ah,v 1.1.1.1 2004/01/20 13:33:14 xtraeme Exp $
+
+--- config.h.in.orig Tue Oct 22 20:34:02 2002
++++ config.h.in Tue Oct 22 20:34:28 2002
+@@ -102,6 +102,9 @@
+ /* Define if you have the unsetenv function. */
+ #undef HAVE_UNSETENV
+
++/* Define if you have the setlogin function. */
++#undef HAVE_SETLOGIN
++
+ /* Define if you have the <X11/SM/SMlib.h> header file. */
+ #undef HAVE_X11_SM_SMLIB_H
+
diff --git a/x11/gdm1/patches/patch-ai b/x11/gdm1/patches/patch-ai
new file mode 100644
index 00000000000..069e98781f8
--- /dev/null
+++ b/x11/gdm1/patches/patch-ai
@@ -0,0 +1,19 @@
+$NetBSD: patch-ai,v 1.1.1.1 2004/01/20 13:33:14 xtraeme Exp $
+
+--- gui/gdmchooser.c Tue Oct 22 20:48:21 2002
++++ gui/gdmchooser.c.orig Tue Oct 22 20:47:33 2002
+@@ -47,7 +47,14 @@
+ #include <sys/types.h>
+ #include <sys/stat.h>
+ #include <fcntl.h>
++#ifdef SunOS
++#define BSD_COMP
+ #include <sys/ioctl.h>
++#undef BSD_COMP
++#else
++#include <sys/ioctl.h>
++#endif
++
+ #include <net/if.h>
+
+ #include "gdmchooser.h"
diff --git a/x11/gdm1/patches/patch-ba b/x11/gdm1/patches/patch-ba
new file mode 100644
index 00000000000..20881a29a6e
--- /dev/null
+++ b/x11/gdm1/patches/patch-ba
@@ -0,0 +1,12 @@
+$NetBSD: patch-ba,v 1.1.1.1 2004/01/20 13:33:14 xtraeme Exp $
+
+--- daemon/gdm.c.orig Tue Mar 20 02:55:01 2001
++++ daemon/gdm.c Tue Mar 20 02:55:20 2001
+@@ -27,6 +27,7 @@
+ #include <fcntl.h>
+ #include <errno.h>
+ #include <syslog.h>
++#include <locale.h>
+
+ #include "gdm.h"
+ #include "misc.h"
diff --git a/x11/gdm1/patches/patch-bb b/x11/gdm1/patches/patch-bb
new file mode 100644
index 00000000000..2a2cba6e3aa
--- /dev/null
+++ b/x11/gdm1/patches/patch-bb
@@ -0,0 +1,13 @@
+$NetBSD: patch-bb,v 1.1.1.1 2004/01/20 13:33:14 xtraeme Exp $
+
+--- daemon/verify-crypt.c.orig Tue Mar 20 02:56:33 2001
++++ daemon/verify-crypt.c Tue Mar 20 02:57:04 2001
+@@ -113,7 +113,7 @@
+ * Unregister the user's session */
+
+ void
+-gdm_verify_check (void)
++gdm_verify_cleanup (void)
+ {
+ }
+
diff --git a/x11/gdm1/patches/patch-bc b/x11/gdm1/patches/patch-bc
new file mode 100644
index 00000000000..6ea1e7f9a9b
--- /dev/null
+++ b/x11/gdm1/patches/patch-bc
@@ -0,0 +1,77 @@
+$NetBSD: patch-bc,v 1.1.1.1 2004/01/20 13:33:14 xtraeme Exp $
+
+--- config/Makefile.in.orig Tue Mar 13 11:24:39 2001
++++ config/Makefile.in
+@@ -257,7 +257,7 @@ mostlyclean distclean maintainer-clean
+ install-data-hook: gdm.conf gnomerc Gnome Failsafe
+ if test '!' -d $(confdir); then \
+ $(mkinstalldirs) $(confdir); \
+- chmod 755 $(confdir); \
++ ${CHMOD} 755 $(confdir); \
+ fi
+ if test '!' -f $(confdir)/gdm.conf; then \
+ $(INSTALL_DATA) gdm.conf $(confdir)/gdm.conf; \
+@@ -269,7 +269,7 @@ install-data-hook: gdm.conf gnomerc Gnom
+
+ if test '!' -d $(sessdir); then \
+ $(mkinstalldirs) $(sessdir); \
+- chmod 755 $(sessdir); \
++ ${CHMOD} 755 $(sessdir); \
+ fi
+ if test '!' -f $(sessdir)/Xsession; then \
+ $(INSTALL_SCRIPT) $(srcdir)/Xsession $(sessdir)/Xsession; \
+@@ -283,7 +283,7 @@ install-data-hook: gdm.conf gnomerc Gnom
+
+ if test '!' -d $(initdir); then \
+ $(mkinstalldirs) $(initdir); \
+- chmod 755 $(initdir); \
++ ${CHMOD} 755 $(initdir); \
+ fi
+ if test '!' -f $(initdir)/Default; then \
+ $(INSTALL_SCRIPT) $(srcdir)/Default $(initdir)/Default; \
+@@ -291,7 +291,7 @@ install-data-hook: gdm.conf gnomerc Gnom
+
+ if test '!' -d $(predir); then \
+ $(mkinstalldirs) $(predir); \
+- chmod 755 $(predir); \
++ ${CHMOD} 755 $(predir); \
+ fi
+ if test '!' -f $(predir)/Default; then \
+ $(INSTALL_SCRIPT) $(srcdir)/PreSession $(predir)/Default; \
+@@ -299,7 +299,7 @@ install-data-hook: gdm.conf gnomerc Gnom
+
+ if test '!' -d $(postdir); then \
+ $(mkinstalldirs) $(postdir); \
+- chmod 755 $(postdir); \
++ ${CHMOD} 755 $(postdir); \
+ fi
+ if test '!' -f $(postdir)/Default; then \
+ $(INSTALL_SCRIPT) $(srcdir)/PostSession $(postdir)/Default; \
+@@ -307,7 +307,7 @@ install-data-hook: gdm.conf gnomerc Gnom
+
+ if test '!' -d $(gnomercdir); then \
+ $(mkinstalldirs) $(gnomercdir); \
+- chmod 755 $(gnomercdir); \
++ ${CHMOD} 755 $(gnomercdir); \
+ fi
+ if test '!' -f $(gnomercdir)/gnomerc; then \
+ $(INSTALL_SCRIPT) gnomerc $(gnomercdir)/gnomerc; \
+@@ -315,15 +315,15 @@ install-data-hook: gdm.conf gnomerc Gnom
+
+ if test '!' -d $(authdir); then \
+ $(mkinstalldirs) $(authdir); \
+- chown gdm.gdm $(authdir); \
+- chmod 750 $(authdir); \
++ ${CHOWN} ${GDMOWN}:${GDMGRP} $(authdir); \
++ ${CHMOD} 750 $(authdir); \
+ fi
+
+ system=`uname`; \
+ if test -f /usr/include/security/pam_appl.h; then \
+ if test '!' -d $(sysconfdir)/pam.d; then \
+ $(mkinstalldirs) $(sysconfdir)/pam.d; \
+- chmod 755 $(sysconfdir)/pam.d; \
++ ${CHMOD} 755 $(sysconfdir)/pam.d; \
+ fi; \
+ if test $$system = Linux && test '!' -f $(sysconfdir)/pam.d/gdm; then \
+ $(INSTALL_DATA) gdm $(sysconfdir)/pam.d/gdm; \
diff --git a/x11/gdm1/patches/patch-bd b/x11/gdm1/patches/patch-bd
new file mode 100644
index 00000000000..e46143ca9fd
--- /dev/null
+++ b/x11/gdm1/patches/patch-bd
@@ -0,0 +1,24 @@
+$NetBSD: patch-bd,v 1.1.1.1 2004/01/20 13:33:15 xtraeme Exp $
+
+--- gui/gdmlogin.c.orig Sun Mar 11 23:24:07 2001
++++ gui/gdmlogin.c Sat Jul 27 11:07:27 2002
+@@ -1971,11 +1971,19 @@
+ const char * const lockout_passes[] = { "*", "!!", NULL };
+ gint i;
+
++ /*
++ * pw_passwd is set to "*" on NetBSD as well as when shadow passwords are
++ * used; in these cases, the following code effectively eliminates any
++ * functionality from the 'faces browser'.
++ * (pointed out by Cliff in PR pkg/17184)
++ */
++#ifdef broken
+ for (i=0 ; lockout_passes[i] != NULL ; i++) {
+ if (strcmp (lockout_passes[i], pwent->pw_passwd) == 0) {
+ return TRUE;
+ }
+ }
++#endif
+
+ if (GdmExclude != NULL &&
+ GdmExclude[0] != '\0') {