/[svn]/qsampler/trunk/configure.ac
ViewVC logotype

Diff of /qsampler/trunk/configure.ac

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3401 by capela, Tue Dec 12 17:47:43 2017 UTC revision 3404 by capela, Wed Jan 10 18:55:12 2018 UTC
# Line 1  Line 1 
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.5.0, rncbc@rncbc.org, qsampler)  AC_INIT(Qsampler, 0.5.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)
# Line 64  AC_DEFINE_UNQUOTED(CONFIG_MANDIR, ["$ac_ Line 64  AC_DEFINE_UNQUOTED(CONFIG_MANDIR, ["$ac_
64    
65  # Enable debugging argument option.  # Enable debugging argument option.
66  AC_ARG_ENABLE(debug,  AC_ARG_ENABLE(debug,
67    AC_HELP_STRING([--enable-debug], [enable debugging (default=no)]),    AS_HELP_STRING([--enable-debug], [enable debugging (default=no)]),
68    [ac_debug="$enableval"])    [ac_debug="$enableval"])
69    
70  if test "x$ac_debug" = "xyes"; then  if test "x$ac_debug" = "xyes"; then
# Line 80  AC_SUBST(ac_debug) Line 80  AC_SUBST(ac_debug)
80    
81  # Enable Qt4/5 availability.  # Enable Qt4/5 availability.
82  AC_ARG_ENABLE(qt4,  AC_ARG_ENABLE(qt4,
83    AC_HELP_STRING([--enable-qt4], [enable Qt4 build (default=no)]),    AS_HELP_STRING([--enable-qt4], [enable Qt4 build (default=no)]),
84    [ac_qt4="$enableval"],    [ac_qt4="$enableval"],
85    [ac_qt4="no"])    [ac_qt4="no"])
86    
87    
88  # Enable libgig availability.  # Enable libgig availability.
89  AC_ARG_ENABLE(libgig,  AC_ARG_ENABLE(libgig,
90    AC_HELP_STRING([--enable-libgig], [enable libgig interface (default=yes)]),    AS_HELP_STRING([--enable-libgig], [enable libgig interface (default=yes)]),
91    [ac_libgig="$enableval"],    [ac_libgig="$enableval"],
92    [ac_libgig="yes"])    [ac_libgig="yes"])
93    
94  # Enable X11 unique/single instance.  # Enable X11 unique/single instance.
95  AC_ARG_ENABLE(xunique,  AC_ARG_ENABLE(xunique,
96    AC_HELP_STRING([--enable-xunique], [enable X11 unique/single instance (default=yes)]),    AS_HELP_STRING([--enable-xunique], [enable X11 unique/single instance (default=yes)]),
97    [ac_xunique="$enableval"],    [ac_xunique="$enableval"],
98    [ac_xunique="yes"])    [ac_xunique="yes"])
99    
100  # Enable debugger stack-trace option (assumes --enable-debug).  # Enable debugger stack-trace option (assumes --enable-debug).
101  AC_ARG_ENABLE(stacktrace,  AC_ARG_ENABLE(stacktrace,
102    AC_HELP_STRING([--enable-stacktrace], [enable debugger stack-trace (default=no)]),    AS_HELP_STRING([--enable-stacktrace], [enable debugger stack-trace (default=no)]),
103    [ac_stacktrace="$enableval"])    [ac_stacktrace="$enableval"])
104    
105    
106  # Standard installation base dirs.  # Standard installation base dirs.
107    ac_path=$PATH
108  ac_with_paths=""  ac_with_paths=""
109    
110  # Set for alternate Qt4/5 installation dir.  # Set for alternate Qt4/5 installation dir.
111    AC_ARG_WITH(qt,
112      AS_HELP_STRING([--with-qt=PATH], [use alternate Qt install path]),
113      [ac_qt_path="$withval"], [ac_qt_path="no"])
114    
115  AC_ARG_WITH(qt4,  AC_ARG_WITH(qt4,
116    AC_HELP_STRING([--with-qt4=PATH], [use alternate Qt4 install path]),    AS_HELP_STRING([--with-qt4=PATH], [use alternate Qt4 install path]),
117    [ac_qt4_path="$withval"], [ac_qt4_path="no"])    [ac_qt4_path="$withval"], [ac_qt4_path="no"])
118    
119  AC_ARG_WITH(qt5,  AC_ARG_WITH(qt5,
120    AC_HELP_STRING([--with-qt5=PATH], [use alternate Qt5 install path]),    AS_HELP_STRING([--with-qt5=PATH], [use alternate Qt5 install path]),
121    [ac_qt5_path="$withval"], [ac_qt5_path="no"])    [ac_qt5_path="$withval"], [ac_qt5_path="no"])
122    
123    if test "x$ac_qt_path" != "xno"; then
124       ac_path="$ac_qt_path/bin:$ac_path"
125    fi
126    
127  if test "x$ac_qt4_path" != "xno"; then  if test "x$ac_qt4_path" != "xno"; then
128     ac_with_paths="$ac_with_paths $ac_qt4_path"     ac_path="$ac_qt4_path/bin:$ac_path"
129     ac_qt4="yes"     ac_qt4="yes"
130  fi  fi
131    
132  if test "x$ac_qt5_path" != "xno"; then  if test "x$ac_qt5_path" != "xno"; then
133     ac_with_paths="$ac_with_paths $ac_qt5_path"     ac_path="$ac_qt5_path/bin:$ac_path"
134     ac_qt4="no"     ac_qt4="no"
135  fi  fi
136    
137  # Set for alternate liblscp installation dir.  # Set for alternate liblscp installation dir.
138  AC_ARG_WITH(liblscp,  AC_ARG_WITH(liblscp,
139    AC_HELP_STRING([--with-liblscp=PATH], [use alternate liblscp install path]),    AS_HELP_STRING([--with-liblscp=PATH], [use alternate liblscp install path]),
140    [ac_with_paths="$ac_with_paths $withval"])    [ac_with_paths="$ac_with_paths $withval"])
141    
142  # Set for alternate libgig installation dir.  # Set for alternate libgig installation dir.
143  AC_ARG_WITH(libgig,  AC_ARG_WITH(libgig,
144    AC_HELP_STRING([--with-libgig=PATH], [use alternate libgig install path]),    AS_HELP_STRING([--with-libgig=PATH], [use alternate libgig install path]),
145    [ac_with_paths="$ac_with_paths $withval"])    [ac_with_paths="$ac_with_paths $withval"])
146    
147    
# Line 146  AC_PROG_CPP Line 155  AC_PROG_CPP
155  AC_PROG_CXX  AC_PROG_CXX
156  AC_PROG_CXXCPP  AC_PROG_CXXCPP
157    
 # Checks for languages.  
 AC_LANG_CPLUSPLUS  
   
158  # Check for pkg-config.  # Check for pkg-config.
159  PKG_PROG_PKG_CONFIG  PKG_PROG_PKG_CONFIG
160    
# Line 175  if test "x$ac_arch" = "xx86_64"; then Line 181  if test "x$ac_arch" = "xx86_64"; then
181     ac_libdirs="$ac_libdirs lib64"     ac_libdirs="$ac_libdirs lib64"
182  fi  fi
183    
 CFLAGS="-fPIC $CFLAGS"  
 CPPFLAGS="-fPIC $CPPFLAGS"  
   
184  # Prepend alternate dependencies paths.  # Prepend alternate dependencies paths.
 ac_path=$PATH  
   
185  for X in $ac_with_paths; do  for X in $ac_with_paths; do
186    if test -d $X/bin; then    if test -d $X/bin; then
187      ac_path="$X/bin:$ac_path"      ac_path="$X/bin:$ac_path"
# Line 192  for X in $ac_with_paths; do Line 193  for X in $ac_with_paths; do
193    fi    fi
194    for Y in $ac_libdirs; do    for Y in $ac_libdirs; do
195      if test -d $X/$Y; then      if test -d $X/$Y; then
196         LIBS="-L$X/$Y $LIBS"        LIBS="-L$X/$Y $LIBS"
197         ac_libs="-L$X/$Y $ac_libs"        ac_libs="-L$X/$Y $ac_libs"
198      fi      fi
199    done    done
200  done  done
# Line 202  done Line 203  done
203  ac_errmsg="not found in current PATH. Maybe QT development environment isn't available."  ac_errmsg="not found in current PATH. Maybe QT development environment isn't available."
204    
205  if test "x$ac_qt4" = "xyes"; then  if test "x$ac_qt4" = "xyes"; then
206     AC_PATH_PROG(ac_qmake, qmake-qt4, [no], $ac_path)     AC_PATH_TOOL(ac_qmake, qmake-qt4, [no], $ac_path)
207  else  else
208     AC_PATH_PROG(ac_qmake, qmake-qt5, [no], $ac_path)     AC_PATH_TOOL(ac_qmake, qmake-qt5, [no], $ac_path)
209  fi  fi
210  if test "x$ac_qmake" = "xno"; then  if test "x$ac_qmake" = "xno"; then
211     AC_PATH_PROG(ac_cv_qmake, qmake, [no], $ac_path)     AC_PATH_TOOL(ac_cv_qmake, qmake, [no], $ac_path)
212     ac_qmake=$ac_cv_qmake     ac_qmake=$ac_cv_qmake
213  fi  fi
214  if test "x$ac_qmake" = "xno"; then  if test "x$ac_qmake" = "xno"; then
# Line 240  if test -d $ac_qt_install_path; then Line 241  if test -d $ac_qt_install_path; then
241  fi  fi
242    
243  # Check it again, now with updated PATH, just in case...  # Check it again, now with updated PATH, just in case...
244  AC_PATH_PROG(ac_cv_qmake, qmake, [no], $ac_path)  AC_PATH_TOOL(ac_cv_qmake, qmake, [no], $ac_path)
245  ac_qmake=$ac_cv_qmake  ac_qmake=$ac_cv_qmake
246  if test "x$ac_qmake" = "xno"; then  if test "x$ac_qmake" = "xno"; then
247     AC_MSG_ERROR([qmake $ac_errmsg])     AC_MSG_ERROR([qmake $ac_errmsg])
# Line 295  else Line 296  else
296  fi  fi
297    
298  # Check for Qt moc utility.  # Check for Qt moc utility.
299  AC_PATH_PROG(ac_moc, moc, [no], $ac_path)  AC_PATH_TOOL(ac_moc, moc, [no], $ac_path)
300  if test "x$ac_moc" = "xno"; then  if test "x$ac_moc" = "xno"; then
301     AC_MSG_ERROR([moc $ac_errmsg])     AC_MSG_ERROR([moc $ac_errmsg])
302  fi  fi
303  AC_SUBST(ac_moc)  AC_SUBST(ac_moc)
304    
305  # Check for Qt uic utility.  # Check for Qt uic utility.
306  AC_PATH_PROG(ac_uic, uic, [no], $ac_path)  AC_PATH_TOOL(ac_uic, uic, [no], $ac_path)
307  if test "x$ac_uic" = "xno"; then  if test "x$ac_uic" = "xno"; then
308     AC_MSG_ERROR([uic $ac_errmsg])     AC_MSG_ERROR([uic $ac_errmsg])
309  fi  fi
310  AC_SUBST(ac_uic)  AC_SUBST(ac_uic)
311    
312  # Check for Qt lupdate utility.  # Check for Qt lupdate utility.
313  AC_PATH_PROG(ac_lupdate, lupdate, [no], $ac_path)  AC_PATH_TOOL(ac_lupdate, lupdate, [no], $ac_path)
314  if test "x$ac_lupdate" = "xno"; then  if test "x$ac_lupdate" = "xno"; then
315     AC_MSG_ERROR([lupdate $ac_errmsg])     AC_MSG_ERROR([lupdate $ac_errmsg])
316  fi  fi
317  AC_SUBST(ac_lupdate)  AC_SUBST(ac_lupdate)
318    
319  # Check for Qt lrelease utility.  # Check for Qt lrelease utility.
320  AC_PATH_PROG(ac_lrelease, lrelease, [no], $ac_path)  AC_PATH_TOOL(ac_lrelease, lrelease, [no], $ac_path)
321  if test "x$ac_release" = "xno"; then  if test "x$ac_release" = "xno"; then
322     AC_MSG_ERROR([lrelease $ac_errmsg])     AC_MSG_ERROR([lrelease $ac_errmsg])
323  fi  fi

Legend:
Removed from v.3401  
changed lines
  Added in v.3404

  ViewVC Help
Powered by ViewVC