File: configure.in

package info (click to toggle)
xdiskusage 1.60-8
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 372 kB
  • sloc: cpp: 2,240; sh: 152; makefile: 131
file content (52 lines) | stat: -rw-r--r-- 1,196 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
dnl# -*- sh -*-
dnl# the "configure" script is made from this by running GNU "autoconf"

AC_INIT(xdiskusage.C)
AC_PROG_CC
AC_PROG_CXX
AC_PROG_INSTALL

MAKEDEPEND="\$(CXX) -M"

dnl# add warnings and optimization to compiler switches:
if test -n "$GXX"; then
    # GNU C compiler
    CFLAGS="-Wall -O2"
    CFLAGS_D="-Wall -g -DDEBUG"
    CXXFLAGS="-Wall -O2"
    CXXFLAGS_D="-Wall -g -DDEBUG"
else
if test "`(uname) 2>/dev/null`" = IRIX; then
  if expr "`(uname -r)`" \>= 6.2; then
    # turn on new "n32" Irix compiler:
    CXX="CC -n32"
    CC="cc -n32"
    LD="ld -n32"
    # but -M is broken so use old compiler:
    MAKEDEPEND="CC -M"
    CFLAGS="-fullwarn -O2"
    CFLAGS_D="-fullwarn -gslim -DDEBUG"
    CXXFLAGS="-fullwarn -O2"
    CXXFLAGS_D="-fullwarn -gslim -DDEBUG"
  else
    # old Irix compiler:
    CFLAGS="-O2"
    CFLAGS_D="-g -DDEBUG"
    CXXFLAGS="+w +pp -O2"
    CXXFLAGS_D="+w +pp -g -DDEBUG"
  fi
else
    # generic C compiler:
    CFLAGS="-O"
    CFLAGS_D="-g -DDEBUG"
    CXXFLAGS="-O"
    CXXFLAGS_D="-g -DDEBUG"
fi
fi
AC_SUBST(MAKEDEPEND)
AC_SUBST(CFLAGS_D)
AC_SUBST(CXXFLAGS_D)
dnl# AC_CONFIG_HEADER(config.h:configh.in)
AC_OUTPUT(makeinclude)

dnl# end of configure.in