1 |
# Process this file with autoconf to produce a configure script. |
# Process this file with autoconf to produce a configure script. |
2 |
AC_INIT(Qsampler, 0.2.3, rncbc@rncbc.org, qsampler) |
AC_INIT(Qsampler, 0.2.3.1, rncbc@rncbc.org, qsampler) |
3 |
|
|
4 |
AC_CONFIG_SRCDIR(src/qsampler.cpp) |
AC_CONFIG_SRCDIR(src/qsampler.cpp) |
5 |
AC_CONFIG_HEADERS(src/config.h) |
AC_CONFIG_HEADERS(src/config.h) |
48 |
ac_qt4="no" |
ac_qt4="no" |
49 |
fi |
fi |
50 |
|
|
51 |
|
|
52 |
# Enable libgig availability. |
# Enable libgig availability. |
53 |
AC_ARG_ENABLE(libgig, |
AC_ARG_ENABLE(libgig, |
54 |
AC_HELP_STRING([--enable-libgig], [enable libgig interface (default=yes)]), |
AC_HELP_STRING([--enable-libgig], [enable libgig interface (default=yes)]), |
61 |
[ac_stacktrace="$enableval"]) |
[ac_stacktrace="$enableval"]) |
62 |
|
|
63 |
|
|
|
if test "$cross_compiling" != yes; then |
|
64 |
# Standard installation base dirs. |
# Standard installation base dirs. |
65 |
ac_with_paths="/usr /usr/local" |
ac_with_paths="/usr /usr/local" |
66 |
|
|
|
ac_qtdirs="qt" |
|
|
|
|
|
if test "x$ac_qt4" = "xyes"; then |
|
|
ac_qtdirs="qt4 $ac_qtdirs" |
|
|
fi |
|
|
if test "x$ac_qt5" = "xyes"; then |
|
|
ac_qtdirs="qt5 $ac_qtdirs" |
|
|
fi |
|
|
|
|
|
# Some a-la-debian alternatives... |
|
|
for X in /usr/lib /usr/lib64 /usr/share; do |
|
|
for Y in $ac_qtdirs; do |
|
|
if test -d $X/$Y/bin; then |
|
|
ac_with_paths="$ac_with_paths $X/$Y" |
|
|
fi |
|
|
done |
|
|
done |
|
|
fi |
|
|
|
|
67 |
# Set for alternate Qt installation dir. |
# Set for alternate Qt installation dir. |
68 |
AC_ARG_WITH(qt, |
AC_ARG_WITH(qt, |
69 |
AC_HELP_STRING([--with-qt=PATH], [use alternate Qt install path]), |
AC_HELP_STRING([--with-qt=PATH], [use alternate Qt install path]), |
90 |
AC_LANG_C |
AC_LANG_C |
91 |
AC_LANG_CPLUSPLUS |
AC_LANG_CPLUSPLUS |
92 |
|
|
93 |
|
|
94 |
|
# Check for proper flags. |
95 |
|
ac_arch=`uname -m` |
96 |
|
|
97 |
|
# Check for some a-la-debian alternatives... |
98 |
|
ac_qtdirs="qt" |
99 |
|
|
100 |
|
if test "x$ac_qt4" = "xyes"; then |
101 |
|
ac_qtdirs="qt4 $ac_qtdirs" |
102 |
|
fi |
103 |
|
if test "x$ac_qt5" = "xyes"; then |
104 |
|
ac_qtdirs="qt5 $ac_qtdirs" |
105 |
|
fi |
106 |
|
|
107 |
|
ac_topdirs="/usr/share /usr/lib" |
108 |
|
|
109 |
|
if test "x$ac_arch" = "xx86_64"; then |
110 |
|
CFLAGS="-fPIC $CFLAGS" |
111 |
|
CPPFLAGS="-fPIC $CPPFLAGS" |
112 |
|
ac_topdirs="$ac_topdirs /usr/lib64" |
113 |
|
fi |
114 |
|
|
115 |
|
for X in $ac_topdirs; do |
116 |
|
for Y in $ac_qtdirs; do |
117 |
|
if test -d $X/$Y/bin; then |
118 |
|
ac_with_paths="$X/$Y $ac_with_paths" |
119 |
|
fi |
120 |
|
done |
121 |
|
done |
122 |
|
|
123 |
# Prepend alternate dependencies paths. |
# Prepend alternate dependencies paths. |
124 |
ac_path=$PATH |
ac_path=$PATH |
125 |
for X in $ac_with_paths; do |
for X in $ac_with_paths; do |
141 |
CPPFLAGS="-I$X/include $CPPFLAGS" |
CPPFLAGS="-I$X/include $CPPFLAGS" |
142 |
ac_incpath="$X/include $ac_incpath" |
ac_incpath="$X/include $ac_incpath" |
143 |
fi |
fi |
144 |
if test -d $X/lib64; then |
if test "x$ac_arch" = "xx86_64" -a -d $X/lib64; then |
145 |
LIBS="-L$X/lib64 $LIBS" |
LIBS="-L$X/lib64 $LIBS" |
146 |
ac_libs="-L$X/lib64 $ac_libs" |
ac_libs="-L$X/lib64 $ac_libs" |
147 |
fi |
fi |
151 |
fi |
fi |
152 |
done |
done |
153 |
|
|
|
# Check for proper flags. |
|
|
ac_arch=`uname -m` |
|
|
if test "x$ac_arch" = "xx86_64"; then |
|
|
CFLAGS="-fPIC $CFLAGS" |
|
|
CPPFLAGS="-fPIC $CPPFLAGS" |
|
|
fi |
|
154 |
|
|
155 |
# Check for proper Qt version. |
# Check for proper Qt version. |
156 |
AC_CACHE_CHECK([for Qt library version >= 4.4], |
AC_CACHE_CHECK([for Qt library version >= 4.4], |
165 |
]) |
]) |
166 |
]) |
]) |
167 |
|
|
168 |
|
|
169 |
# A common error message: |
# A common error message: |
170 |
ac_errmsg="not found in current PATH. Maybe QT development environment isn't available (qt-devel)." |
ac_errmsg="not found in current PATH. Maybe QT development environment isn't available (qt-devel)." |
171 |
|
|