File: confmod.in

package info (click to toggle)
dcmtk 3.6.5-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 54,900 kB
  • sloc: cpp: 274,805; ansic: 47,345; makefile: 5,313; sh: 4,250; perl: 277; xml: 182; lex: 103
file content (36 lines) | stat: -rw-r--r-- 793 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
dnl Process this file with autoconf to produce a configure script.

AC_INIT(Makefile.in)
AC_DISABLE_OPTION_CHECKING

parentdir=`pwd`
relparentdir=.
configdir="configdir"

while test "$parentdir" != "/" -a "$configdir" = "configdir"; do
	if test -d "$parentdir/config" ; then
		configdir=`echo $relparentdir | sed 's/^\.\///'`/config
	else
changequote(, )dnl
		parentdir=`echo $parentdir | sed 's/\/[^\/]*$//'`
changequote([, ])dnl
		relparentdir=$relparentdir/..
	fi
done

if test "$configdir" = "configdir" ; then
	echo "Cannot find configure directory"
	exit 1
fi

dnl Configuration Utilities
AC_CONFIG_AUX_DIR($configdir)

dnl Include general file
sinclude(general.m4)dnl

AC_SUBST(configdir)

files=`find . -name "*.in" -print | grep -v "/config" | sed -e 's/.in$/ /g'`

AC_OUTPUT($files)