You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AC_ARG_WITH(distro, AS_HELP_STRING([--with-distro=DISTRO],[Specify the distribution to target: One of fedora, suse, debian, arch, gentoo, slackware, altlinux, mandriva, mageia, angstrom or other]))
701
-
if test "z$with_distro" = "z"; then
702
-
if test "$cross_compiling" = yes; then
703
-
AC_MSG_WARN([Target distribution cannot be reliably detected when cross-compiling. You should specify it with --with-distro (see $0 --help for recognized distros)])
AC_DEFINE(TARGET_FEDORA, [], [Target is Fedora/RHEL])
724
-
M4_DEFINES=-DTARGET_FEDORA=1
725
-
;;
726
-
opensuse|suse)
727
-
SYSTEM_SYSVRCND_PATH=/etc/init.d
728
-
AC_DEFINE(TARGET_SUSE, [], [Target is openSUSE/SLE])
729
-
M4_DEFINES=-DTARGET_SUSE=1
730
-
;;
731
-
debian)
732
-
SYSTEM_SYSVRCND_PATH=/etc
733
-
AC_DEFINE(TARGET_DEBIAN, [], [Target is Debian])
734
-
M4_DEFINES=-DTARGET_DEBIAN=1
735
-
;;
736
-
arch)
737
-
SYSTEM_SYSVINIT_PATH=
738
-
SYSTEM_SYSVRCND_PATH=
739
-
AC_DEFINE(TARGET_ARCH, [], [Target is ArchLinux])
740
-
M4_DEFINES=-DTARGET_ARCH=1
741
-
;;
742
-
gentoo)
743
-
SYSTEM_SYSVINIT_PATH=
744
-
SYSTEM_SYSVRCND_PATH=
745
-
AC_DEFINE(TARGET_GENTOO, [], [Target is Gentoo])
746
-
M4_DEFINES=-DTARGET_GENTOO=1
747
-
;;
748
-
slackware)
749
-
SYSTEM_SYSVINIT_PATH=/etc/rc.d/init.d
750
-
AC_DEFINE(TARGET_SLACKWARE, [], [Target is Slackware])
751
-
M4_DEFINES=-DTARGET_SLACKWARE=1
752
-
;;
753
-
frugalware)
754
-
SYSTEM_SYSVINIT_PATH=/etc/rc.d
755
-
AC_DEFINE(TARGET_FRUGALWARE, [], [Target is Frugalware])
756
-
M4_DEFINES=-DTARGET_FRUGALWARE=1
757
-
;;
758
-
altlinux)
759
-
SYSTEM_SYSVINIT_PATH=/etc/rc.d/init.d
760
-
AC_DEFINE(TARGET_ALTLINUX, [], [Target is ALTLinux])
761
-
M4_DEFINES=-DTARGET_ALTLINUX=1
762
-
;;
763
-
mandriva)
764
-
SYSTEM_SYSVINIT_PATH=/etc/rc.d/init.d
765
-
AC_DEFINE(TARGET_MANDRIVA, [], [Target is Mandriva])
766
-
M4_DEFINES=-DTARGET_MANDRIVA=1
767
-
;;
768
-
angstrom)
769
-
SYSTEM_SYSVRCND_PATH=/etc
770
-
AC_DEFINE(TARGET_ANGSTROM, [], [Target is Ångström])
771
-
M4_DEFINES=-DTARGET_ANGSTROM=1
772
-
;;
773
-
mageia)
774
-
SYSTEM_SYSVINIT_PATH=/etc/rc.d/init.d
775
-
AC_DEFINE(TARGET_MAGEIA, [], [Target is Mageia])
776
-
M4_DEFINES=-DTARGET_MAGEIA=1
777
-
;;
778
-
other)
779
-
;;
780
-
*)
781
-
AC_MSG_ERROR([Your distribution (${with_distro}) is not yet supported, SysV init scripts could not be found! (patches welcome); you can specify --with-distro=other to skip this check])
782
-
;;
783
-
esac
784
-
785
705
AC_ARG_WITH([sysvinit-path],
786
706
[AS_HELP_STRING([--with-sysvinit-path=PATH],
787
-
[Specify the path to where the SysV init scripts are located@<:@default=based on distro@:>@])],
707
+
[Specify the path to where the SysV init scripts are located])],
788
708
[SYSTEM_SYSVINIT_PATH="$withval"],
789
709
[])
790
710
791
711
AC_ARG_WITH([sysvrcd-path],
792
712
[AS_HELP_STRING([--with-sysvrcd-path=PATH],
793
-
[Specify the path to the base directory for the SysV rcN.d directories@<:@default=based on distro@:>@])],
713
+
[Specify the path to the base directory for the SysV rcN.d directories])],
794
714
[SYSTEM_SYSVRCND_PATH="$withval"],
795
715
[])
796
716
797
-
AC_SUBST(SYSTEM_SYSVINIT_PATH)
798
-
AC_SUBST(SYSTEM_SYSVRCND_PATH)
799
-
AC_SUBST(M4_DEFINES)
800
-
801
717
if test "x${SYSTEM_SYSVINIT_PATH}" != "x" -a "x${SYSTEM_SYSVRCND_PATH}" != "x"; then
802
718
AC_DEFINE(HAVE_SYSV_COMPAT, [], [SysV init scripts and rcN.d links are supported.])
803
719
SYSTEM_SYSV_COMPAT="yes"
@@ -808,26 +724,18 @@ else
808
724
SYSTEM_SYSV_COMPAT="no"
809
725
fi
810
726
727
+
AC_SUBST(SYSTEM_SYSVINIT_PATH)
728
+
AC_SUBST(SYSTEM_SYSVRCND_PATH)
729
+
AC_SUBST(M4_DEFINES)
730
+
731
+
AM_CONDITIONAL(HAVE_SYSV_COMPAT, test "$SYSTEM_SYSV_COMPAT" = "yes")
732
+
811
733
AC_ARG_WITH([tty-gid],
812
734
[AS_HELP_STRING([--with-tty-gid=GID],
813
735
[Specify the numeric GID of the 'tty' group])],
814
736
[AC_DEFINE_UNQUOTED(TTY_GID, [$withval], [GID of the 'tty' group])],
815
737
[])
816
738
817
-
AM_CONDITIONAL(TARGET_FEDORA, test x"$with_distro" = xfedora)
818
-
AM_CONDITIONAL(TARGET_SUSE, test x"$with_distro" = xsuse)
819
-
AM_CONDITIONAL(TARGET_DEBIAN, test x"$with_distro" = xdebian)
820
-
AM_CONDITIONAL(TARGET_ARCH, test x"$with_distro" = xarch)
821
-
AM_CONDITIONAL(TARGET_GENTOO, test x"$with_distro" = xgentoo)
822
-
AM_CONDITIONAL(TARGET_SLACKWARE, test x"$with_distro" = xslackware)
823
-
AM_CONDITIONAL(TARGET_FRUGALWARE, test x"$with_distro" = xfrugalware)
824
-
AM_CONDITIONAL(TARGET_ALTLINUX, test x"$with_distro" = xaltlinux)
825
-
AM_CONDITIONAL(TARGET_MANDRIVA, test x"$with_distro" = xmandriva)
826
-
AM_CONDITIONAL(TARGET_ANGSTROM, test x"$with_distro" = xangstrom)
827
-
AM_CONDITIONAL(TARGET_MAGEIA, test x"$with_distro" = xmageia)
828
-
829
-
AM_CONDITIONAL(HAVE_SYSV_COMPAT, test "$SYSTEM_SYSV_COMPAT" = "yes")
0 commit comments