dnl Process this file with autoconf to produce a configure script. AC_INIT(backend/access/common/heaptuple.c) AC_PREFIX_DEFAULT(/usr/local/pgsql) AC_CONFIG_HEADER(include/config.h) dnl Autoconf 2.12, at least, generates a useless relative path to install-sh dnl unless we do this. AC_CONFIG_AUX_DIR(`pwd`) AC_CANONICAL_HOST tas_file=dummy.s case "$host_os" in solaris*) case "$host_cpu" in sparc) os=solaris_sparc need_tas=yes tas_file=solaris_sparc.s ;; i386) os=solaris_i386 need_tas=yes tas_file=solaris_i386.s ;; esac ;; sunos*) os=sunos4 need_tas=no ;; beos) os=beos need_tas=no ;; aux*) os=aux need_tas=no ;; linux*) os=linux need_tas=no ;; bsdi*) os=bsdi need_tas=no ;; freebsd1*|freebsd2*) os=freebsd need_tas=no ;; freebsd*) os=freebsd need_tas=no elf=yes ;; netbsd*) os=bsd need_tas=no case "$host_cpu" in powerpc) elf=yes ;; esac ;; openbsd*) os=bsd need_tas=no ;; dgux*) os=dgux need_tas=no ;; aix*) os=aix need_tas=no ;; nextstep*) os=nextstep need_tas=no ;; ultrix*) os=ultrix4 need_tas=no ;; irix*) os=irix5 need_tas=no ;; hpux*) os=hpux need_tas=yes tas_file=hpux.s ;; osf*) os=alpha need_tas=no ;; sco*) os=sco need_tas=no ;; machten*) os=machten need_tas=no ;; cygwin*) os=win need_tas=no ;; sysv4.2*) case "$host_vendor" in univel) os=univel need_tas=no ;; *) os=unknown need_tas=no ;; esac ;; sysv4*) os=svr4 need_tas=no ;; unixware*) os=unixware need_tas=no ;; *) echo "" echo "*************************************************************" echo "configure does not currently recognize your operating system," echo "therefore you must do a manual configuration of:" echo "$host_os" echo "Please contact scrappy@hub.org to see about rectifying this, " echo "including the above 'checking host system type...' line " echo "*************************************************************" echo "" exit;; esac PORTNAME=${os} CPU=${host_cpu} AC_LINK_FILES(backend/port/dynloader/${os}.c, backend/port/dynloader.c) AC_LINK_FILES(backend/port/dynloader/${os}.h, include/dynloader.h) AC_LINK_FILES(include/port/${os}.h, include/os.h) AC_LINK_FILES(makefiles/Makefile.${os}, Makefile.port) if test "X$need_tas" = "Xyes" then AC_LINK_FILES(backend/port/tas/${tas_file}, backend/port/tas.s) TAS=tas.o AC_SUBST(TAS) fi echo "checking echo setting..." if echo '\c' | grep -s c >/dev/null 2>&1 then ECHO_N="echo -n" ECHO_C="" else ECHO_N="echo" ECHO_C='\c' fi dnl this part selects the template from the ones in the template directory. AC_MSG_CHECKING(setting template to) AC_ARG_WITH(template, [ --with-template=TEMPLATE use operating system template file see template directory], [ TEMPLATE=$withval ], [ # First, try for a template exactly matching $host if test -f "template/$host" then TEMPLATE="$host" else # Next try for an exact match to a .similar entry. # There shouldn't be multiple matches, but take the last if there are. GUESS=`grep "^$host=" template/.similar | sed 's/^.*=//' | tail -1` if test "$GUESS" then TEMPLATE="$GUESS" else # Next look for a .similar entry that is a prefix of $host. # If there are multiple matches, take the last one. exec 4