From 4cf7dae5164542b1094d523ffb771be12cf2b977 Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Thu, 5 Apr 2012 18:53:09 +0000 Subject: [PATCH] Fix a problem in the target detection for Debian GNU/kFreeBSD llvm-svn: 154114 --- llvm/autoconf/configure.ac | 2 +- llvm/configure | 2 +- llvm/projects/sample/autoconf/configure.ac | 4 ++-- llvm/projects/sample/configure | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/llvm/autoconf/configure.ac b/llvm/autoconf/configure.ac index a0e05667dcfb..7f4b25e4c021 100644 --- a/llvm/autoconf/configure.ac +++ b/llvm/autoconf/configure.ac @@ -286,7 +286,7 @@ AC_CACHE_CHECK([type of operating system we're going to target], llvm_cv_target_os_type="Darwin" ;; *-*-minix*) llvm_cv_target_os_type="Minix" ;; - *-*-freebsd*) + *-*-freebsd* | *-*-kfreebsd-gnu) llvm_cv_target_os_type="FreeBSD" ;; *-*-openbsd*) llvm_cv_target_os_type="OpenBSD" ;; diff --git a/llvm/configure b/llvm/configure index 5c2d466774d2..1e5e2c5998e5 100755 --- a/llvm/configure +++ b/llvm/configure @@ -3802,7 +3802,7 @@ else llvm_cv_target_os_type="Darwin" ;; *-*-minix*) llvm_cv_target_os_type="Minix" ;; - *-*-freebsd*) + *-*-freebsd*| *-*-kfreebsd-gnu) llvm_cv_target_os_type="FreeBSD" ;; *-*-openbsd*) llvm_cv_target_os_type="OpenBSD" ;; diff --git a/llvm/projects/sample/autoconf/configure.ac b/llvm/projects/sample/autoconf/configure.ac index 6792f17d15a8..a30cf96ecb9d 100644 --- a/llvm/projects/sample/autoconf/configure.ac +++ b/llvm/projects/sample/autoconf/configure.ac @@ -132,7 +132,7 @@ AC_CACHE_CHECK([type of operating system we're going to host on], llvm_cv_no_link_all_option="-Wl,-noall_load" llvm_cv_os_type="Minix" llvm_cv_platform_type="Unix" ;; - *-*-freebsd*) + *-*-freebsd* | *-*-kfreebsd-gnu) llvm_cv_link_all_option="-Wl,--whole-archive" llvm_cv_no_link_all_option="-Wl,--no-whole-archive" llvm_cv_os_type="FreeBSD" @@ -222,7 +222,7 @@ AC_CACHE_CHECK([type of operating system we're going to target], llvm_cv_target_os_type="Darwin" ;; *-*-minix*) llvm_cv_target_os_type="Minix" ;; - *-*-freebsd*) + *-*-freebsd* | *-*-kfreebsd-gnu) llvm_cv_target_os_type="FreeBSD" ;; *-*-openbsd*) llvm_cv_target_os_type="OpenBSD" ;; diff --git a/llvm/projects/sample/configure b/llvm/projects/sample/configure index 48c0c2acb74b..28fba4107e34 100755 --- a/llvm/projects/sample/configure +++ b/llvm/projects/sample/configure @@ -3646,7 +3646,7 @@ else llvm_cv_no_link_all_option="-Wl,-noall_load" llvm_cv_os_type="Minix" llvm_cv_platform_type="Unix" ;; - *-*-freebsd*) + *-*-freebsd* | *-*-kfreebsd-gnu) llvm_cv_link_all_option="-Wl,--whole-archive" llvm_cv_no_link_all_option="-Wl,--no-whole-archive" llvm_cv_os_type="FreeBSD" @@ -3742,7 +3742,7 @@ else llvm_cv_target_os_type="Darwin" ;; *-*-minix*) llvm_cv_target_os_type="Minix" ;; - *-*-freebsd*) + *-*-freebsd* | *-*-kfreebsd-gnu) llvm_cv_target_os_type="FreeBSD" ;; *-*-openbsd*) llvm_cv_target_os_type="OpenBSD" ;;