diff options
author | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-02-19 17:31:32 +0000 |
---|---|---|
committer | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-02-19 17:31:32 +0000 |
commit | 0ba25574740d9d6adff2851c395c5bda47abb0a0 (patch) | |
tree | cb04df5402d0a882be46fd6a7d0f8542bc8a46e1 | |
parent | 59464f04b41064c054ee401b771873bb89afd4a6 (diff) |
Don't look for launchd when cross compiling.
(closes issue #12029)
Reported by: ovi
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@103812 f38db490-d61c-443f-a65b-d21fe96a405b
-rwxr-xr-x | configure | 7 | ||||
-rw-r--r-- | configure.ac | 5 |
2 files changed, 9 insertions, 3 deletions
@@ -1,5 +1,5 @@ #! /bin/sh -# From configure.ac Revision: 103713 . +# From configure.ac Revision: 103722 . # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.61 for asterisk 1.4. # @@ -34412,7 +34412,9 @@ fi -{ echo "$as_me:$LINENO: checking for /sbin/launchd" >&5 +if test "${cross_compiling}" = "no"; +then + { echo "$as_me:$LINENO: checking for /sbin/launchd" >&5 echo $ECHO_N "checking for /sbin/launchd... $ECHO_C" >&6; } if test "${ac_cv_file__sbin_launchd+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -34437,6 +34439,7 @@ _ACEOF fi +fi PBX_GTK=0 if test -n "$ac_tool_prefix"; then diff --git a/configure.ac b/configure.ac index ff346d6db..545852f0a 100644 --- a/configure.ac +++ b/configure.ac @@ -1466,7 +1466,10 @@ AC_CHECK_HEADER([linux/ixjuser.h], [PBX_IXJUSER=1], [PBX_IXJUSER=0], [ ]) AC_SUBST(PBX_IXJUSER) -AC_CHECK_FILE(/sbin/launchd, AC_DEFINE([HAVE_SBIN_LAUNCHD], 1, [Define to 1 if your system has /sbin/launchd.])) +if test "${cross_compiling}" = "no"; +then + AC_CHECK_FILE(/sbin/launchd, AC_DEFINE([HAVE_SBIN_LAUNCHD], 1, [Define to 1 if your system has /sbin/launchd.])) +fi PBX_GTK=0 AC_CHECK_TOOL(GTKCONFIG, gtk-config, No) |