#!/bin/sh
# an installation script for zh-XFree86-aoutlibs

if [ "$2" != "PRE-INSTALL" ]; then
  exit 0
fi

if [ ! -f @PREFIX@/lib/aout/zh-XFree86-aoutlibs-3.3.6 ] && \
     [ -f @PREFIX@/lib/aout/libX11.so.6.1 ]; then
  echo ----------------------------------------------------
  echo You have XFree86-aoutlibs installed!
  echo Please remove it before install zh-XFree86-aoutlibs.
  echo ----------------------------------------------------
  exit 1
fi

exit 0
