$NetBSD: patch-bg,v 1.2 2012/03/05 07:29:36 dholland Exp $ --- configure.in.orig 2000-06-05 15:42:49.000000000 +0000 +++ configure.in @@ -66,6 +66,8 @@ Currently, \`yes', \`athena' and \`lucid esac with_x_toolkit=$val ]) +AC_ARG_WITH(ipv6, +[ --with-ipv6 support IPv6 stack]) #### Make srcdir absolute, if it isn't already. It's important to #### avoid running the path through pwd unnecessary, since pwd can @@ -152,15 +154,19 @@ case "${canonical}" in opsys=netbsd case "${canonical}" in alpha*-*-netbsd*) machine=alpha ;; + hppa*-*-netbsd*) machine=hp800 ;; i[3456]86-*-netbsd*) machine=intel386 ;; m68k-*-netbsd*) # This is somewhat bogus. machine=hp9000s300 ;; - powerpc-apple-netbsd*) machine=macppc ;; mips-*-netbsd*) machine=pmax ;; + mipsel-*-netbsd*) machine=pmax ;; + mipsev-*-netbsd*) machine=mips ;; # HF: what else? ns32k-*-netbsd*) machine=ns32000 ;; - sparc-*-netbsd*) machine=sparc ;; + powerpc-*-netbsd*) machine=macppc ;; + sparc*-*-netbsd*) machine=sparc ;; vax-*-netbsd*) machine=vax ;; + arm*-*-netbsd*) machine=arm ;; esac ;; @@ -1594,6 +1600,14 @@ dnl tranle@intellicorp.com says libXmu.a LIBS="-lXt $LIBS" fi AC_CHECK_LIB(Xmu, XmuConvertStandardSelection) + if test x$HAVE_X11XTR6 = xyes; then +dnl Check if Xaw needs Xpm + LIBS="$LIBS -lXpm" + AC_CHECK_LIB(Xaw, XawPixmapsInitialize, [ LIBXPM="-lXpm" ], [ LIBXPM=""]) + else + LIBXPM="" + fi + AC_SUBST(LIBXPM) LIBS="$OLDLIBS" fi @@ -1747,6 +1761,10 @@ if test -f /usr/lpp/X11/bin/smt.exp; the AC_DEFINE(HAVE_AIX_SMT_EXP) fi +if test "x$with_ipv6" = xyes; then + AC_CHECK_FUNCS(getaddrinfo) +fi + # Set up the CFLAGS for real compilation, so we can substitute it. CFLAGS="$REAL_CFLAGS"