configure.in 17.9 KB
Newer Older
1
AC_PREREQ(2.52)
2
AC_INIT(daemon/gdm.h)
Martin Peterson's avatar
Martin Peterson committed
3

4 5 6 7
dnl
dnl Due to the sed scripts being split on 90 line
dnl blocks, this macro needs to be right at the beggining.
dnl
8
AC_PROG_INTLTOOL([0.21])
9

Martin Peterson's avatar
Martin Peterson committed
10
AM_CONFIG_HEADER(config.h)
11
AM_INIT_AUTOMAKE(gdm,2.4.2.99)
Martin Peterson's avatar
Martin Peterson committed
12 13
AM_MAINTAINER_MODE

14 15 16 17 18
GDK_PIXBUF_REQUIRED=1.3.1
GTK_REQUIRED=1.3.1
LIBGLADE_REQUIRED=1.99.2
LIBGNOME_REQUIRED=1.96.0
LIBGNOMEUI_REQUIRED=1.96.0
19 20 21
LIBGNOMECANVAS_REQUIRED=1.109.0
LIBRSVG_REQUIRED=1.1.1
LIBXML_REQUIRED=2.4.12
22
LIBART_REQUIRED=2.3.13
23
SCROLLKEEPER_REQUIRED=0.1.4
24

25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
# find the actual value for $prefix that we'll end up with
REAL_PREFIX=
if test "x$prefix" = "xNONE"; then
  REAL_PREFIX=$ac_default_prefix
else
  REAL_PREFIX=$prefix
fi
old_prefix=$prefix
prefix=$REAL_PREFIX

REAL_EXEC_PREFIX=
if test "x$exec_prefix" = "xNONE"; then
  REAL_EXEC_PREFIX=$prefix
else
  REAL_EXEC_PREFIX=$exec_prefix
fi
old_exec_prefix=$exec_prefix
exec_prefix=$REAL_EXEC_PREFIX


45 46 47 48
dnl
dnl Configure arguments
dnl
AC_ARG_ENABLE(console-helper,
49 50
  [  --enable-console-helper=[auto/no/yes]  Enable PAM console helper [default=auto]],,
  enable_console_helper=auto)
51 52 53 54 55 56 57 58 59 60
    
AC_ARG_ENABLE(authentication-scheme,
  [  --enable-authentication-scheme=[auto/pam/crypt/shadow]  Choose a specific
                          authentication scheme [default=auto]],,
  enable_authentication_scheme=auto)

AC_ARG_WITH(xinerama,
  [  --with-xinerama=[auto/yes/no]  Add Xinerama support [default=auto]],,
  with_xinerama=auto)

61 62 63 64
AC_ARG_WITH(xdmcp,
  [  --with-xdmcp=[auto/yes/no]  Add XDMCP (remote login) support [default=auto]],,
  with_xdmcp=auto)

65 66 67 68
AC_ARG_WITH(tcp-wrappers,
  [  --with-tcp-wrappers=[auto/yes/no]  Use TCP Wrappers [default=auto]],,
  with_tcp_wrappers=auto)

69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86
dnl
dnl PAM prefix
dnl
withval=""
AC_ARG_WITH(pam-prefix,
[      --with-pam-prefix=<prefix>   specify where pam files go],[
if test x$withval != x; then
   AC_MSG_RESULT("PAM files will be installed in prefix ${withval}.")
fi])
if test x$withval != x; then
	PAM_PREFIX_UNEXPANDED="$withval"
else
	PAM_PREFIX_UNEXPANDED="$sysconfdir"
fi
PAM_PREFIX=`eval echo $PAM_PREFIX_UNEXPANDED`
AC_SUBST(PAM_PREFIX)

    
87
AC_PATH_PROG(CONSOLE_HELPER,consolehelper,no)
88 89 90 91 92 93 94 95 96 97
if test "x$CONSOLE_HELPER" = "xno" ; then
  if test "x$enable_console_helper" = "xyes" ; then
    AC_MSG_ERROR(Console helper requested but consolehelper binary not found)
  fi
  # if it was no, nothing happens, if it was auto, well then we're out of luck
  enable_console_helper=no
else
  if test ! "x$enable_console_helper" = "xno" ; then
    enable_console_helper=yes
  fi
98 99
fi

100 101 102
dnl
dnl Standard stuff
dnl
103
GNOME_COMMON_INIT
Martin Peterson's avatar
Martin Peterson committed
104 105 106 107

AC_ISC_POSIX
AC_PROG_CC
AC_STDC_HEADERS
108
dnl AC_ARG_PROGRAM
Martin Peterson's avatar
Martin Peterson committed
109
AM_PROG_LIBTOOL
110 111 112 113 114 115 116 117 118 119 120

changequote(,)dnl
if test "x$GCC" = "xyes"; then
  case " $CFLAGS " in
  *[\ \ ]-Wall[\ \	]*) ;;
  *) CFLAGS="$CFLAGS -Wall -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations" ;;
  esac
fi
changequote([,])dnl


121
AC_PATH_XTRA
122
AC_CHECK_TYPE(socklen_t,size_t)
123
AC_CHECK_FUNCS([setresuid setenv unsetenv clearenv])
Martin Peterson's avatar
Martin Peterson committed
124

125
GNOME_COMPILER_WARNINGS
Martin Peterson's avatar
Martin Peterson committed
126

127
PKG_CHECK_MODULES(DAEMON, gdk-pixbuf-2.0 >= $GDK_PIXBUF_REQUIRED gtk+-2.0 >= $GTK_REQUIRED)
128 129 130 131 132 133 134
AC_SUBST(DAEMON_CFLAGS)
AC_SUBST(DAEMON_LIBS)

PKG_CHECK_MODULES(GUI, gdk-pixbuf-2.0 >= $GDK_PIXBUF_REQUIRED gtk+-2.0 >= $GTK_REQUIRED libgnomeui-2.0 >= $LIBGNOMEUI_REQUIRED libglade-2.0 >= $LIBGLADE_REQUIRED)
AC_SUBST(GUI_CFLAGS)
AC_SUBST(GUI_LIBS)

135 136 137 138
PKG_CHECK_MODULES(GUIGLADE, gdk-pixbuf-2.0 >= $GDK_PIXBUF_REQUIRED gtk+-2.0 >= $GTK_REQUIRED libglade-2.0 >= $LIBGLADE_REQUIRED)
AC_SUBST(GUIGLADE_CFLAGS)
AC_SUBST(GUIGLADE_LIBS)

139 140 141 142
PKG_CHECK_MODULES(GUING, gdk-pixbuf-2.0 >= $GDK_PIXBUF_REQUIRED gtk+-2.0 >= $GTK_REQUIRED)
AC_SUBST(GUING_CFLAGS)
AC_SUBST(GUING_LIBS)

143
PKG_CHECK_MODULES(GREETER, gdk-pixbuf-2.0 >= $GDK_PIXBUF_REQUIRED gtk+-2.0 >= $GTK_REQUIRED libgnomecanvas-2.0 >= $LIBGNOMECANVAS_REQUIRED librsvg-2.0 >= $LIBRSVG_REQUIRED libxml-2.0 >= $LIBXML_REQUIRED libart-2.0 >= $LIBART_REQUIRED)
144 145 146
AC_SUBST(GREETER_CFLAGS)
AC_SUBST(GREETER_LIBS)

147 148 149 150
PKG_CHECK_MODULES(UTILS, gdk-pixbuf-2.0 >= $GDK_PIXBUF_REQUIRED gtk+-2.0 >= $GTK_REQUIRED libgnomeui-2.0 >= $LIBGNOMEUI_REQUIRED libglade-2.0 >= $LIBGLADE_REQUIRED)
AC_SUBST(UTILS_CFLAGS)
AC_SUBST(UTILS_LIBS)

151
dnl Allow users to run gdmsetup using the console helper PAM stuff.
152 153 154 155 156 157
if test "x$enable_console_helper" = "xyes"; then
  AM_CONDITIONAL(CONSOLE_HELPER, true)
else
  AM_CONDITIONAL(CONSOLE_HELPER, false)
fi

Martin Peterson's avatar
Martin Peterson committed
158 159 160 161
AC_SUBST(CFLAGS)
AC_SUBST(CPPFLAGS)
AC_SUBST(LDFLAGS)

Jiri (George) Lebl's avatar
Jiri (George) Lebl committed
162 163 164 165 166
dnl ## Language Support
GETTEXT_PACKAGE=gdm-2.4
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE")
AC_SUBST(GETTEXT_PACKAGE)

Martin Peterson's avatar
Martin Peterson committed
167
dnl ## internationalization support
168
ALL_LINGUAS="am ar az be bg bn ca cs cy da de el es et eu fa fi fr ga gl hi he hu id it ja ko lt lv mk ml mn ms nl nn no pl pt_BR pt ro ru sk sl sq sr sr@Latn sv ta th tr uk vi wa zh_CN zh_TW"
169
AM_GLIB_GNU_GETTEXT
Martin Peterson's avatar
Martin Peterson committed
170

171
EXTRA_DAEMON_LIBS=""
172 173
EXTRA_CHOOSER_LIBS=""

174 175 176 177 178 179 180 181 182 183 184 185 186 187
AC_CHECK_FUNC(socket,,[
	      AC_CHECK_LIB(socket,socket, [
			   EXTRA_DAEMON_LIBS="$EXTRA_DAEMON_LIBS -lsocket"
			   EXTRA_CHOOSER_LIBS="$EXTRA_CHOOSER_LIBS -lsocket"])])
AC_CHECK_FUNC(gethostbyname,,[
	      AC_CHECK_LIB(nsl,gethostbyname, [
			   EXTRA_DAEMON_LIBS="$EXTRA_DAEMON_LIBS -lnsl"
			   EXTRA_CHOOSER_LIBS="$EXTRA_CHOOSER_LIBS -lnsl"])])
AC_CHECK_FUNC(sched_yield,[
	      AC_DEFINE(HAVE_SCHED_YIELD)],[
	      AC_CHECK_LIB(rt,sched_yield, [
			   AC_DEFINE(HAVE_SCHED_YIELD)
			   EXTRA_DAEMON_LIBS="$EXTRA_DAEMON_LIBS -lrt"], [
			   echo "No sched_yield found"])])
188

189 190 191 192 193 194 195
dnl ## gdmopen building
dnl There are perhaps others where this works
GDMOPEN=
AC_CHECK_HEADERS(linux/vt.h, [
		 GDMOPEN=gdmopen])
AC_SUBST(GDMOPEN)

196 197 198
dnl ## Autentication scheme
have_pam=no
VRFY="verify-crypt"
199 200 201 202
if test x$enable_authentication_scheme != xcrypt -a \
	x$enable_authentication_scheme != xshadow ; then
	AC_CHECK_HEADERS(security/pam_appl.h, [
		have_pam=yes
203
        	EXTRA_DAEMON_LIBS="$EXTRA_DAEMON_LIBS -lpam"
204 205 206 207
        	VRFY="verify-pam"
        	AC_DEFINE(HAVE_PAM)])
fi

208
GDMASKPASS=
209
EXTRA_GDMASKPASS_LIBS=
210 211 212
if test x$have_pam = xyes ; then
	AC_CHECK_HEADERS(security/pam_misc.h, [
			 GDMASKPASS=gdmaskpass])
213 214 215 216 217 218
	if test x$GDMASKPASS != x ; then
		AC_CHECK_LIB(pam,misc_conv,,[AC_CHECK_LIB(pam_misc,misc_conv, [
		     EXTRA_GDMASKPASS_LIBS="$EXTRA_GDMASKPASS_LIBS -lpam_misc"], [
		     GDMASKPASS=], [
		     -lpam])])
	fi
219 220
fi
AC_SUBST(GDMASKPASS)
221
AC_SUBST(EXTRA_GDMASKPASS_LIBS)
222

223 224 225
if test x$enable_authentication_scheme = xpam -a x$have_pam = xno ; then
	AC_MSG_ERROR(PAM support requested but not available)
fi
226

227
if test x$have_pam = xno; then
228

229 230
  # Check if -lcrypt is necessary, and if so
  # add it to the front of the link chain
231
  AC_CHECK_LIB(crypt, crypt, [
232
  	      EXTRA_DAEMON_LIBS="-lcrypt $EXTRA_DAEMON_LIBS"])
233 234 235 236 237

  # Check if crypt lives in a separate header file
  AC_CHECK_HEADERS(crypt.h, [
		AC_DEFINE(HAVE_CRYPT)])

238 239
  if test x$enable_authentication_scheme = xshadow ; then
  	VRFY="verify-shadow"
240
	AC_DEFINE(HAVE_SHADOW)
241 242 243 244 245 246 247 248 249 250 251
  elif test x$enable_authentication_scheme != xcrypt ; then
  	# Check for shadow passwords (hack)
  	AC_MSG_CHECKING("for /etc/shadow")

  	if test -f /etc/shadow; then
		VRFY="verify-shadow"
		AC_MSG_RESULT(yes)
		AC_DEFINE(HAVE_SHADOW)
  	else	
		AC_MSG_RESULT(no)
  	fi
252 253 254 255 256 257
  fi

fi

AC_SUBST(VRFY)

258 259 260 261
#
# Can we use BSD's setusercontext
#
AC_CHECK_HEADER(login_cap.h, [
262
		EXTRA_DAEMON_LIBS="$EXTRA_DAEMON_LIBS -lutil"
263
		AC_DEFINE(HAVE_LOGINCAP)])
264

265 266 267 268 269 270
#
# Check for sys/sockio.h
#
AC_CHECK_HEADERS(sys/sockio.h, [
		 AC_DEFINE(HAVE_SYS_SOCKIO_H)])

271

272 273 274 275 276
#
# Xdmcp checking
#
XDMCP_LIBS=""
if test x$with_xdmcp != xno ; then
277 278
	xdmcp_save_CPPFLAGS="$CPPFLAGS"
	CPPFLAGS="$CPPFLAGS $X_CFLAGS"
279 280 281 282
	AC_CHECK_HEADER(X11/Xdmcp.h, [
		AC_CHECK_LIB(Xdmcp, XdmcpFlush, [
		     	AC_DEFINE(HAVE_LIBXDMCP)
		     	XDMCP_LIBS="-lXdmcp"
Jiri (George) Lebl's avatar
Jiri (George) Lebl committed
283
		     	XDMCP_SUPPORT=yes],,[$X_LIBS -lX11 $X_EXTRA_LIBS])
284
	],,[#include <X11/Xproto.h>])
285 286 287 288

	if test x$with_xdmcp = xyes -a x$XDMCP_SUPPORT = x ; then
		AC_MSG_ERROR(XDMCP support requested but XDMCP libraries not found)
	fi
289
	CPPFLAGS="$xdmcp_save_CPPFLAGS"
290 291 292
fi
AC_SUBST(XDMCP_LIBS)

293 294
if test x$XDMCP_SUPPORT = xyes ; then
	AM_CONDITIONAL(XDMCP_SUPPORT, true)
295
	GDMCHOOSER=gdmchooser
296
	GDMXNESTCHOOSER=gdmXnestchooser
297
else
298 299 300 301 302
        # No need for TCP Wrappers in case XDMCP is disabled
        if test x$with_tcp_wrappers != xno ; then
	        echo "TCP wrappers not needed if XDMCP is not enabled"
        fi
	with_tcp_wrappers=no
303
	AM_CONDITIONAL(XDMCP_SUPPORT, false)
304
	GDMCHOOSER=
305
	GDMXNESTCHOOSER=
306
fi
307
AC_SUBST(GDMCHOOSER)
308
AC_SUBST(GDMXNESTCHOOSER)
309

310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391
#
# TCP Wrappers for XDMCP access control
#
if test x$with_tcp_wrappers = xno ; then
	echo "TCP wrappers disabled"
else
  AC_MSG_CHECKING([whether to use TCP wrappers])
  LIBWRAP_PATH=""
  for I in $LDFLAGS $LIBS -L/usr/lib; do
	case "$I" in
	-L*)
	THEFILE="`echo $I | sed -e 's,^-L,,'`"
	echo "From $I, checking in dir $THEFILE for libwrap.a" 1>&5
	if test -f $THEFILE/libwrap.a; then
		LIBWRAP_PATH=$THEFILE/libwrap.a
		echo "Found $LIBWRAP_PATH" 1>&5
		break
	fi
	esac
  done

  if test -n "$LIBWRAP_PATH"; then
        AC_MSG_RESULT(yes)
  else
        AC_MSG_RESULT(no)
  fi

  if test -n "$LIBWRAP_PATH"; then
	nm $LIBWRAP_PATH | grep 'T setenv' && LIBWRAP_PATH=""
	if test -z "$LIBWRAP_PATH"; then
		echo "*********************************************************"
	        echo " You have a broken TCP wrappers library (setenv included)"
		echo " Please get the latest TCP wrappers package from your OS"
		echo " vendor, or recompile TCP wrappers to not include a"
		echo " setenv() implementation."
		echo
		echo "Not using TCP wrappers after all."
		echo "*********************************************************"
	else
                AC_DEFINE(HAVE_TCPWRAPPERS)
	fi
  fi
  if test -n "$LIBWRAP_PATH"; then
	AC_CHECK_LIB(wrap, hosts_ctl, [
		     EXTRA_DAEMON_LIBS="$EXTRA_DAEMON_LIBS -lwrap"], [
		     EXTRA_DAEMON_LIBS="$EXTRA_DAEMON_LIBS $LIBWRAP_PATH"])
  fi

  dnl find out if we need -lnsl or whatever
  LIB_NSL=
  if test -n "$LIBWRAP_PATH"; then
        AC_MSG_CHECKING(whether -lwrap also requires -lnsl)
        ORIG_LIBS="$LIBS"
        LIBS="$EXTRA_DAEMON_LIBS $LIBS"
        AC_TRY_LINK([
#include <tcpd.h>
int allow_severity, deny_severity;
], [return hosts_access;], ,[
dnl try with -lnsl
OLD_LIBS="$LIBS"
LIBS="$LIBS -lnsl"
AC_TRY_LINK([
#include <tcpd.h>
int allow_severity, deny_severity;
], [return hosts_access;], LIB_NSL="-lnsl",
LIBWRAP_PATH="")
LIBS="$OLD_LIBS"
])
        LIBS="$ORIG_LIBS"
	if test -n "$LIB_NSL"; then
        	AC_MSG_RESULT(yes)
        	EXTRA_DAEMON_LIBS="$EXTRA_DAEMON_LIBS $LIB_NSL"
	else
        	AC_MSG_RESULT(no)
	fi
  fi
fi

AC_MSG_CHECKING([for corrupt government])
AC_MSG_RESULT(yes)


392
#
393
# X11 Xinerama extension
394
#
395 396 397 398
# Check for Xinerama extension (Solaris impl or Xfree impl)
xinerama_save_cppflags="$CPPFLAGS"
CPPFLAGS="$CPPFLAGS $X_CFLAGS"

399 400 401 402 403 404 405 406 407 408
# Check for defopen
#
if test -f /etc/default/login; then
  AC_CHECK_LIB(cmd, defopen, use_defopen=yes, use_defopen=no)
  if test "x$use_defopen" = "xyes"; then
    EXTRA_DAEMON_LIBS="$EXTRA_DAEMON_LIBS -lcmd"
    AC_DEFINE(HAVE_DEFOPEN)
  fi
fi

409 410
ALL_X_LIBS="$X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"

411 412
if test ! x$with_xinerama = xno ; then
  case "$host" in
413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429
    *-*-solaris*)
	# Check for solaris
	use_solaris_xinerama=yes
	AC_CHECK_LIB(Xext, XineramaGetInfo,
                     use_solaris_xinerama=yes, use_solaris_xinerama=no,
                     $ALL_X_LIBS)
	if test "x$use_solaris_xinerama" = "xyes"; then
            AC_CHECK_HEADER(X11/extensions/xinerama.h,
                            if test -z "`echo $ALL_X_LIBS | grep "\-lXext" 2> /dev/null`"; then
 				X_EXTRA_LIBS="-lXext $X_EXTRA_LIBS"
                            fi
                            AC_DEFINE(HAVE_SOLARIS_XINERAMA)
                            AC_DEFINE(HAVE_XINERAMA)
		     	    XINERAMA_LIBS=""
		     	    XINERAMA_SUPPORT=yes,
                            use_solaris_xinerama=no,
                            [#include <X11/Xlib.h>])
430
	fi
431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451
        AC_MSG_CHECKING(for Xinerama support on Solaris)
	AC_MSG_RESULT($use_solaris_xinerama);
	;;
    *)
      	# Check for XFree
	use_xfree_xinerama=yes
	AC_CHECK_LIB(Xinerama, XineramaQueryExtension,
            [AC_CHECK_HEADER(X11/extensions/Xinerama.h,
                             if test -z "`echo $ALL_X_LIBS | grep "\-lXext" 2> /dev/null`"; then
  				 X_EXTRA_LIBS="-lXext $X_EXTRA_LIBS"
                             fi
                             AC_DEFINE(HAVE_XFREE_XINERAMA)
                             AC_DEFINE(HAVE_XINERAMA)
		     	     XINERAMA_LIBS="-lXinerama"
		     	     XINERAMA_SUPPORT=yes,
                             use_xfree_xinerama=no,
                             [#include <X11/Xlib.h>])],
            use_xfree_xinerama=no, -lXext $ALL_X_LIBS)
	AC_MSG_CHECKING(for Xinerama support on XFree86)
	AC_MSG_RESULT($use_xfree_xinerama);
	;;
452 453
  esac
fi
454

455
AC_SUBST(XINERAMA_LIBS)
456 457
CPPFLAGS="$xinerama_save_cppflags"

458

459 460 461 462
#
# Subst the extra libs
#
AC_SUBST(EXTRA_DAEMON_LIBS)
463
AC_SUBST(EXTRA_CHOOSER_LIBS)
464

Jiri (George) Lebl's avatar
Jiri (George) Lebl committed
465 466 467 468 469 470 471 472 473
#
# Configuration file foo, we need to get expanded versions of a bunch of things
# if you actually know how to code shell then fix this :-) 
# Stolen mostly from GConf
#

DATADIR_TMP="$datadir"
EXPANDED_DATADIR=`eval echo $DATADIR_TMP`
AC_SUBST(EXPANDED_DATADIR)
474
AC_DEFINE_UNQUOTED(EXPANDED_DATADIR,"$EXPANDED_DATADIR")
Jiri (George) Lebl's avatar
Jiri (George) Lebl committed
475 476 477 478

PIXMAPDIR_TMP="$datadir/pixmaps"
EXPANDED_PIXMAPDIR=`eval echo $PIXMAPDIR_TMP`
AC_SUBST(EXPANDED_PIXMAPDIR)
479
AC_DEFINE_UNQUOTED(EXPANDED_PIXMAPDIR,"$EXPANDED_PIXMAPDIR")
Jiri (George) Lebl's avatar
Jiri (George) Lebl committed
480 481 482 483

BINDIR_TMP="$bindir"
EXPANDED_BINDIR=`eval echo $BINDIR_TMP`
AC_SUBST(EXPANDED_BINDIR)
484
AC_DEFINE_UNQUOTED(EXPANDED_BINDIR,"$EXPANDED_BINDIR")
Jiri (George) Lebl's avatar
Jiri (George) Lebl committed
485

486
SBINDIR_TMP="$sbindir"
487 488 489 490
EXPANDED_SBINDIR=`eval echo $SBINDIR_TMP`
AC_SUBST(EXPANDED_SBINDIR)
AC_DEFINE_UNQUOTED(EXPANDED_SBINDIR,"$EXPANDED_SBINDIR")

491 492 493 494 495
LIBEXECDIR_TMP="$libexecdir"
EXPANDED_LIBEXECDIR=`eval echo $LIBEXECDIR_TMP`
AC_SUBST(EXPANDED_LIBEXECDIR)
AC_DEFINE_UNQUOTED(EXPANDED_LIBEXECDIR,"$EXPANDED_LIBEXECDIR")

496 497 498 499 500 501 502 503 504
dnl This is where the binary actually resides,
dnl not the console helper link
if test "x$enable_console_helper" = "xyes"; then
	GDMCONFIGDIR_TMP="$sbindir"
else
	GDMCONFIGDIR_TMP="$bindir"
fi
EXPANDED_GDMCONFIGDIR=`eval echo $GDMCONFIGDIR_TMP`
AC_SUBST(EXPANDED_GDMCONFIGDIR)
505
AC_DEFINE_UNQUOTED(EXPANDED_GDMCONFIGDIR,"$EXPANDED_GDMCONFIGDIR")
506

Jiri (George) Lebl's avatar
Jiri (George) Lebl committed
507 508 509
LOCALEDIR_TMP="$sysconfdir/gdm"
EXPANDED_LOCALEDIR=`eval echo $LOCALEDIR_TMP`
AC_SUBST(EXPANDED_LOCALEDIR)
510
AC_DEFINE_UNQUOTED(EXPANDED_LOCALEDIR,"$EXPANDED_LOCALEDIR")
Jiri (George) Lebl's avatar
Jiri (George) Lebl committed
511 512 513 514

AUTHDIR_TMP="$localstatedir/gdm"
EXPANDED_AUTHDIR=`eval echo $AUTHDIR_TMP`
AC_SUBST(EXPANDED_AUTHDIR)
515
AC_DEFINE_UNQUOTED(EXPANDED_AUTHDIR,"$EXPANDED_AUTHDIR")
Jiri (George) Lebl's avatar
Jiri (George) Lebl committed
516

517 518 519 520 521
LOGDIR_TMP="$localstatedir/log/gdm"
EXPANDED_LOGDIR=`eval echo $LOGDIR_TMP`
AC_SUBST(EXPANDED_LOGDIR)
AC_DEFINE_UNQUOTED(EXPANDED_LOGDIR,"$EXPANDED_LOGDIR")

522
if test -x /usr/X11R6/bin/X; then
523 524
   X_PATH="/usr/bin/X11:/usr/X11R6/bin:/opt/X11R6/bin"
   X_SERVER_PATH="/usr/X11R6/bin"
525
   X_SERVER="/usr/X11R6/bin/X"
526
   X_CONF_PATH="/usr/bin/X11:/usr/X11R6/bin:/usr/local/bin"
527 528
elif test -x /usr/openwin/bin/Xsun; then
   X_PATH="/usr/openwin/bin"
529
   X_SERVER_PATH="/usr/openwin/bin"
530
   X_SERVER="/usr/openwin/bin/Xsun"
531
   X_CONF_PATH="/usr/openwin/bin"
532 533 534 535 536 537
else
   # what to do, what to do, this is wrong, but this just sets the
   # defaults, perhaps this user is cross compiling or some such
   X_PATH="/usr/bin/X11:/usr/X11R6/bin:/opt/X11R6/bin"
   X_SERVER_PATH="/usr/X11R6/bin"
   X_SERVER="/usr/X11R6/bin/X"
538
   X_CONF_PATH="/usr/bin/X11:/usr/X11R6/bin:/usr/local/bin"
539 540 541
fi
AC_SUBST(X_PATH)
AC_SUBST(X_SERVER)
542 543
AC_SUBST(X_SERVER_PATH)
AC_SUBST(X_CONF_PATH)
544 545 546
AC_DEFINE_UNQUOTED(X_SERVER,"$X_SERVER")
AC_DEFINE_UNQUOTED(X_SERVER_PATH,"$X_SERVER_PATH")
AC_DEFINE_UNQUOTED(X_CONF_PATH,"$X_CONF_PATH")
547

Jiri (George) Lebl's avatar
Jiri (George) Lebl committed
548 549 550
SYSCONFDIR_TMP="$sysconfdir"
EXPANDED_SYSCONFDIR=`eval echo $SYSCONFDIR_TMP`
AC_SUBST(EXPANDED_SYSCONFDIR)
551
AC_DEFINE_UNQUOTED(EXPANDED_SYSCONFDIR,"$EXPANDED_SYSCONFDIR")
Jiri (George) Lebl's avatar
Jiri (George) Lebl committed
552 553 554 555

SESSDIR_TMP="$sysconfdir/gdm/Sessions"
EXPANDED_SESSDIR=`eval echo $SESSDIR_TMP`
AC_SUBST(EXPANDED_SESSDIR)
556
AC_DEFINE_UNQUOTED(EXPANDED_SESSDIR,"$EXPANDED_SESSDIR")
Jiri (George) Lebl's avatar
Jiri (George) Lebl committed
557

558
## Stuff for debian/changelog.in
559 560 561 562 563 564 565 566 567 568
#if test -e "debian/changelog"; then
#  DEBIAN_DATESTAMP=`head -1 debian/changelog| sed -e 's/.*cvs.//' -e 's/).*//'`
#  DEBIAN_DATE=`grep '^ --' debian/changelog | head -1 | sed -e 's/.*  //'`
#else
#  DEBIAN_DATESTAMP=`date +%Y%m%d%H%M%s`
#  DEBIAN_DATE=`date -R`
#fi
#
#AC_SUBST(DEBIAN_DATESTAMP)
#AC_SUBST(DEBIAN_DATE)
569

Jiri (George) Lebl's avatar
Jiri (George) Lebl committed
570 571
prefix=$old_prefix
exec_prefix=$old_exec_prefix
572

Martin Peterson's avatar
Martin Peterson committed
573 574 575 576
AC_OUTPUT([
Makefile
daemon/Makefile
gui/Makefile
577
gui/greeter/Makefile
578 579
gui/greeter/themes/Makefile
gui/greeter/themes/circles/Makefile
580
gui/greeter/themes/happygnome/Makefile
581
gui/greeter/themes/happygnome-list/Makefile
582 583
gui/modules/Makefile
gui/modules/AccessKeyMouseEvents
584
gui/modules/AccessDwellMouseEvents
585
utils/Makefile
Martin Peterson's avatar
Martin Peterson committed
586 587 588
pixmaps/Makefile
config/Makefile
po/Makefile.in
589
vicious-extensions/Makefile
590
docs/Makefile
591
docs/C/Makefile
592
config/gdm.conf
593
config/Xsession
594 595 596
config/Default
config/PreSession
config/PostSession
597
daemon/gdm
598
gdm-stop
599
gdm-restart
600
gdm-safe-restart
Jacob Berkman's avatar
Jacob Berkman committed
601
gdmsetup-security
602
gdm.spec
603
])
Martin Peterson's avatar
Martin Peterson committed
604

605 606 607 608
dnl add back when help comes back
dnl docs/C/Makefile
dnl omf-install/Makefile

609 610 611 612 613 614 615 616 617 618 619 620
dnl <= Configuration summary =>

echo ""
echo "GDM2 configuration summary:"
echo "==========================="
echo ""

dnl <= CFLAGS and LDFLAGS =>
echo "CFLAGS : $CFLAGS"
echo "LDFLAGS : $LDFLAGS"
echo ""

621 622 623 624 625 626 627 628 629
dnl <= Prefixes =>
echo "prefix : $prefix"
echo "sysconf dir : "`eval echo $sysconfdir`
echo "bin dir : $EXPANDED_BINDIR"
echo "sbin dir : $EXPANDED_SBINDIR"
echo "PAM prefix : $PAM_PREFIX"
echo "data dir : "`eval echo $datadir`
echo ""

630 631 632 633 634 635 636 637 638 639 640 641 642 643
dnl <= TCP Wrappers support? =>
if test x"$LIBWRAP_PATH" = x ; then
	echo "TCP Wrappers support              : NO"
else
	echo "TCP Wrappers support              : YES"
fi

dnl <= XINERAMA =>
if test x"$XINERAMA_SUPPORT" = xyes ; then
	echo "Xinerama support                  : YES"
else
	echo "Xinerama support                  : NO"
fi

644 645 646 647 648 649 650
dnl <= XDMCP =>
if test x"$XDMCP_SUPPORT" = xyes ; then
	echo "XDMCP (remote login) support      : YES"
else
	echo "XDMCP (remote login) support      : NO"
fi

651 652 653 654 655 656 657 658 659 660 661
dnl <= Console Helper =>
if test "x$enable_console_helper" = "xyes"; then
	echo "Console helper                    : YES"
else
	echo "Console helper                    : NO"
fi


dnl <= Authentication scheme =>
echo "Authentication scheme             : $VRFY"

662
dnl <= Utils built =>
663
echo "Extra utilities built             : "`echo $GDMOPEN $GDMASKPASS`
664

665 666
echo ""
dnl <= End of configuration summary =>
Martin Peterson's avatar
Martin Peterson committed
667