Mercurial > octave-nkf
comparison configure.in @ 4353:ea4b8c35ac9d
[project @ 2003-02-21 21:04:41 by jwe]
author | jwe |
---|---|
date | Fri, 21 Feb 2003 21:04:41 +0000 |
parents | 80b83de0aa2a |
children | dfd47756dda7 |
comparison
equal
deleted
inserted
replaced
4352:80b83de0aa2a | 4353:ea4b8c35ac9d |
---|---|
20 ### along with Octave; see the file COPYING. If not, write to the Free | 20 ### along with Octave; see the file COPYING. If not, write to the Free |
21 ### Software Foundation, 59 Temple Place - Suite 330, Boston, MA | 21 ### Software Foundation, 59 Temple Place - Suite 330, Boston, MA |
22 ### 02111-1307, USA. | 22 ### 02111-1307, USA. |
23 | 23 |
24 AC_INIT | 24 AC_INIT |
25 AC_REVISION($Revision: 1.415 $) | 25 AC_REVISION($Revision: 1.416 $) |
26 AC_PREREQ(2.52) | 26 AC_PREREQ(2.52) |
27 AC_CONFIG_SRCDIR([src/octave.cc]) | 27 AC_CONFIG_SRCDIR([src/octave.cc]) |
28 AC_CONFIG_HEADER(config.h) | 28 AC_CONFIG_HEADER(config.h) |
29 | 29 |
30 AC_DEFINE(OCTAVE_SOURCE, 1, [Define if this is Octave.]) | 30 AC_DEFINE(OCTAVE_SOURCE, 1, [Define if this is Octave.]) |
635 true | 635 true |
636 else | 636 else |
637 AC_MSG_ERROR([You can't disable building static AND shared libraries!]) | 637 AC_MSG_ERROR([You can't disable building static AND shared libraries!]) |
638 fi | 638 fi |
639 | 639 |
640 use_rpath=true | |
641 AC_ARG_ENABLE(rpath, | 640 AC_ARG_ENABLE(rpath, |
642 [ --enable-rpath add -rpath to link command for shared libraries], | 641 [ --enable-rpath override the default link options for rpath; |
643 [if test "$enableval" = no; then use_rpath=false; fi], []) | 642 e.g., --with-rpath='-rpath $(octlibdir)'], |
643 [ if test "$enableval" = no; then use_rpath=false; | |
644 else | |
645 use_rpath=true | |
646 if test "$enableval" = yes; then true; | |
647 else enable_rpath_arg="$enableval"; fi | |
648 fi], [use_rpath=false]) | |
644 | 649 |
645 DLFCN_DIR= | 650 DLFCN_DIR= |
646 CPICFLAG=-fPIC | 651 CPICFLAG=-fPIC |
647 CXXPICFLAG=-fPIC | 652 CXXPICFLAG=-fPIC |
648 FPICFLAG=-fPIC | 653 FPICFLAG=-fPIC |
728 ;; | 733 ;; |
729 *-sgi-*) | 734 *-sgi-*) |
730 CPICFLAG= | 735 CPICFLAG= |
731 CXXPICFLAG= | 736 CXXPICFLAG= |
732 FPICFLAG= | 737 FPICFLAG= |
733 RLD_FLAG='-L$(octlibdir)' | 738 RLD_FLAG='-rpath $(octlibdir)' |
734 ;; | 739 ;; |
735 sparc-sun-sunos4*) | 740 sparc-sun-sunos4*) |
736 if test "$ac_cv_f77_compiler_gnu" = yes; then | 741 if test "$ac_cv_f77_compiler_gnu" = yes; then |
737 FPICFLAG=-fPIC | 742 FPICFLAG=-fPIC |
738 else | 743 else |
770 fi | 775 fi |
771 ;; | 776 ;; |
772 esac | 777 esac |
773 | 778 |
774 if $use_rpath; then | 779 if $use_rpath; then |
775 true | 780 if test -n "$enable_rpath_arg"; then |
781 RLD_FLAG="$enable_rpath_arg" | |
782 fi | |
776 else | 783 else |
777 RLD_FLAG= | 784 RLD_FLAG="" |
778 fi | 785 fi |
779 | 786 |
780 AC_MSG_RESULT([defining FPICFLAG to be $FPICFLAG]) | 787 AC_MSG_RESULT([defining FPICFLAG to be $FPICFLAG]) |
781 AC_MSG_RESULT([defining CPICFLAG to be $CPICFLAG]) | 788 AC_MSG_RESULT([defining CPICFLAG to be $CPICFLAG]) |
782 AC_MSG_RESULT([defining CXXPICFLAG to be $CXXPICFLAG]) | 789 AC_MSG_RESULT([defining CXXPICFLAG to be $CXXPICFLAG]) |
826 ### functions like gethostname and gettimeofday is in libsocket. | 833 ### functions like gethostname and gettimeofday is in libsocket. |
827 | 834 |
828 AC_CHECK_FUNCS(gethostname, [], [AC_CHECK_LIB(socket, gethostname)]) | 835 AC_CHECK_FUNCS(gethostname, [], [AC_CHECK_LIB(socket, gethostname)]) |
829 AC_CHECK_FUNCS(getpwnam, [], [AC_CHECK_LIB(sun, getpwnam)]) | 836 AC_CHECK_FUNCS(getpwnam, [], [AC_CHECK_LIB(sun, getpwnam)]) |
830 | 837 |
838 ### Type stuff. | |
839 | |
840 AC_TYPE_MODE_T | |
841 AC_TYPE_OFF_T | |
842 AC_TYPE_PID_T | |
843 AC_TYPE_SIZE_T | |
844 AC_TYPE_UID_T | |
845 AC_CHECK_TYPES([dev_t, ino_t, nlink_t, nlink_t]) | |
846 AC_CHECK_TYPES([long long int, unsigned long long int]) | |
847 AC_CHECK_TYPES([sigset_t, sig_atomic_t], , , [#include <signal.h>]) | |
848 | |
831 ### How big are ints and how are they oriented? These could probably | 849 ### How big are ints and how are they oriented? These could probably |
832 ### be eliminated in favor of run-time checks. | 850 ### be eliminated in favor of run-time checks. |
833 | 851 |
834 AC_CHECK_SIZEOF(short) | 852 AC_CHECK_SIZEOF(short) |
835 AC_CHECK_SIZEOF(int) | 853 AC_CHECK_SIZEOF(int) |
1163 AC_DEFINE(HAVE_SYS_SIGLIST, 1, [Define if your system has a sys_siglist variable.]), | 1181 AC_DEFINE(HAVE_SYS_SIGLIST, 1, [Define if your system has a sys_siglist variable.]), |
1164 AC_MSG_RESULT(no)) | 1182 AC_MSG_RESULT(no)) |
1165 OCTAVE_SIGNAL_CHECK | 1183 OCTAVE_SIGNAL_CHECK |
1166 OCTAVE_REINSTALL_SIGHANDLERS | 1184 OCTAVE_REINSTALL_SIGHANDLERS |
1167 | 1185 |
1168 ### Type stuff. | |
1169 | |
1170 AC_TYPE_MODE_T | |
1171 AC_TYPE_OFF_T | |
1172 AC_TYPE_PID_T | |
1173 AC_TYPE_SIZE_T | |
1174 AC_TYPE_UID_T | |
1175 AC_CHECK_TYPES([dev_t, ino_t, nlink_t, nlink_t]) | |
1176 AC_CHECK_TYPES([sigset_t, sig_atomic_t], , , [#include <signal.h>]) | |
1177 | |
1178 ### A system dependent kluge or two. | 1186 ### A system dependent kluge or two. |
1179 | 1187 |
1180 AC_CHECK_FUNCS(getrusage times) | 1188 AC_CHECK_FUNCS(getrusage times) |
1181 case "$canonical_host_type" in | 1189 case "$canonical_host_type" in |
1182 *-*-cygwin*) | 1190 *-*-cygwin*) |