Fix for delta values reported by vFW vLB
[demo.git] / vnfs / VES5.0 / doxygen-1.8.12 / configure
1 #! /bin/sh
2 #
3 # $Id: configure,v 1.1 1999/07/19 17:00:15 root Exp $
4 #
5 # Copyright (C) 1997-2000 by Dimitri van Heesch.
6
7 # Permission to use, copy, modify, and distribute this software and its
8 # documentation under the terms of the GNU General Public License is hereby 
9 # granted. No representations are made about the suitability of this software 
10 # for any purpose. It is provided "as is" without express or implied warranty.
11 # See the GNU General Public License for more details.
12
13 # Documents produced by Doxygen are derivative works derived from the
14 # input used in their production; they are not affected by this license.
15
16 # shell script to configure doxygen
17
18 f_prefix=/usr/local
19 f_insttool=NO
20
21 while test -n "$1"; do
22   case $1 in
23     --prefix)
24        shift; f_prefix=$1
25        ;;
26     --install)
27        shift; f_insttool=$1
28        ;;
29     -h | -help | --help)
30        f_help=y
31        ;;
32     *)
33        echo $1: unknown argument
34        f_help=y
35        f_error=y
36        ;;
37   esac
38   shift
39 done
40
41 if test "$f_help" = y; then
42   cat <<EOF
43 Usage: $0 [--help] [--prefix dir] [--install name]
44
45 Options: 
46
47   --help                Print this help
48
49   --prefix dir          Installation prefix directory
50                         [default: /usr/local]
51   
52   --install name        Use \`name' as the name of the GNU install tool
53                         [default: install]
54
55 EOF
56   test "$f_error" = y && exit 1
57   exit 0;
58 fi
59
60 # - check for install ------------------------------------------------------------
61
62 echo -n "  Checking for GNU install tool... "
63 if test "$f_insttool" = NO; then
64   install_names="ginstall install"
65   install_dirs="/usr/bin /usr/local/bin /bin /sbin $bin_dirs"
66   install_prog=NO
67   install_found=NO
68   for i in $install_names; do
69     for j in $install_dirs; do
70       if test -x "$j/$i"; then
71         if test -n "`$j/$i --version 2>/dev/null | grep utils`"; then
72           install_found=YES
73           install_prog="$j/$i"
74           break 2
75         fi
76       fi
77     done
78   done
79   f_insttool="$install_prog" 
80 fi
81
82 if test "$f_insttool" = NO; then
83   if test "$install_found" = YES; then
84     echo "GNU version of install is required!"
85   else
86     echo "not found!";
87   fi
88   echo
89   exit 2
90 fi
91 echo "using $f_insttool";
92
93 # ----------------------------------------------------------
94
95
96 cat > .makeconfig <<EOF
97 RM        = rm -f
98 VERSION   = `cat VERSION`
99 INSTALL   = $f_prefix
100 INSTTOOL  = $f_insttool
101 DOXYDOCS  = ..
102
103 export TMAKEPATH
104 EOF
105
106 for i in Makefile.in ; do
107      SRC=$i
108      DST=`echo $i|sed 's%\(.*\).in$%\1%'`
109      TIME=`date`
110      cat > $DST <<EOF
111 #
112 # This file was generated from `basename $i` on $TIME
113 #
114
115 EOF
116      cat .makeconfig $SRC >> $DST
117      echo "  Created $DST from $SRC..."
118 done