Changeset 3205
- Timestamp:
- Jun 15, 2010 5:21:43 AM (14 years ago)
- Location:
- pjproject/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/aconfigure
r3181 r3205 1 1 #! /bin/sh 2 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.64 for pjproject 1.x. 3 # Generated by GNU Autoconf 2.65 for pjproject 1.x. 4 # 4 5 # 5 6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software 7 # Foundation, Inc. 7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, 8 # Inc. 9 # 8 10 # 9 11 # This configure script is free software; the Free Software Foundation … … 525 527 526 528 527 exec 7<&0 </dev/null 6>&1 529 test -n "$DJDIR" || exec 7<&0 </dev/null 530 exec 6>&1 528 531 529 532 # Name of the host. … … 1402 1405 nonstandard directory <lib dir> 1403 1406 LIBS libraries to pass to the linker, e.g. -l<library> 1404 CPPFLAGS C/C++/Objective Cpreprocessor flags, e.g. -I<include dir> if1407 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1405 1408 you have headers in a nonstandard directory <include dir> 1406 1409 CXX C++ compiler command … … 1475 1478 cat <<\_ACEOF 1476 1479 pjproject configure 1.x 1477 generated by GNU Autoconf 2.6 41480 generated by GNU Autoconf 2.65 1478 1481 1479 1482 Copyright (C) 2009 Free Software Foundation, Inc. … … 1522 1525 fi 1523 1526 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1524 return$ac_retval1527 as_fn_set_status $ac_retval 1525 1528 1526 1529 } # ac_fn_c_try_compile … … 1560 1563 fi 1561 1564 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1562 return$ac_retval1565 as_fn_set_status $ac_retval 1563 1566 1564 1567 } # ac_fn_cxx_try_compile … … 1606 1609 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1607 1610 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1608 return$ac_retval1611 as_fn_set_status $ac_retval 1609 1612 1610 1613 } # ac_fn_c_try_link … … 1648 1651 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1649 1652 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1650 return$ac_retval1653 as_fn_set_status $ac_retval 1651 1654 1652 1655 } # ac_fn_c_try_run … … 1685 1688 fi 1686 1689 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1687 return$ac_retval1690 as_fn_set_status $ac_retval 1688 1691 1689 1692 } # ac_fn_c_try_cpp … … 1806 1809 1807 1810 } # ac_fn_c_check_header_mongrel 1811 1812 # ac_fn_c_check_func LINENO FUNC VAR 1813 # ---------------------------------- 1814 # Tests whether FUNC exists, setting the cache variable VAR accordingly 1815 ac_fn_c_check_func () 1816 { 1817 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1819 $as_echo_n "checking for $2... " >&6; } 1820 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1821 $as_echo_n "(cached) " >&6 1822 else 1823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1824 /* end confdefs.h. */ 1825 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1826 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1827 #define $2 innocuous_$2 1828 1829 /* System header to define __stub macros and hopefully few prototypes, 1830 which can conflict with char $2 (); below. 1831 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1832 <limits.h> exists even on freestanding compilers. */ 1833 1834 #ifdef __STDC__ 1835 # include <limits.h> 1836 #else 1837 # include <assert.h> 1838 #endif 1839 1840 #undef $2 1841 1842 /* Override any GCC internal prototype to avoid an error. 1843 Use char because int might match the return type of a GCC 1844 builtin and then its argument prototype would still apply. */ 1845 #ifdef __cplusplus 1846 extern "C" 1847 #endif 1848 char $2 (); 1849 /* The GNU C library defines this for functions which it implements 1850 to always fail with ENOSYS. Some functions are actually named 1851 something starting with __ and the normal name is an alias. */ 1852 #if defined __stub_$2 || defined __stub___$2 1853 choke me 1854 #endif 1855 1856 int 1857 main () 1858 { 1859 return $2 (); 1860 ; 1861 return 0; 1862 } 1863 _ACEOF 1864 if ac_fn_c_try_link "$LINENO"; then : 1865 eval "$3=yes" 1866 else 1867 eval "$3=no" 1868 fi 1869 rm -f core conftest.err conftest.$ac_objext \ 1870 conftest$ac_exeext conftest.$ac_ext 1871 fi 1872 eval ac_res=\$$3 1873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1874 $as_echo "$ac_res" >&6; } 1875 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1876 1877 } # ac_fn_c_check_func 1808 1878 cat >config.log <<_ACEOF 1809 1879 This file contains any messages produced by compilers while … … 1811 1881 1812 1882 It was created by pjproject $as_me 1.x, which was 1813 generated by GNU Autoconf 2.6 4. Invocation command line was1883 generated by GNU Autoconf 2.65. Invocation command line was 1814 1884 1815 1885 $ $0 $@ … … 2064 2134 do 2065 2135 test "x$ac_site_file" = xNONE && continue 2066 if test -r "$ac_site_file"; then2136 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2067 2137 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2068 2138 $as_echo "$as_me: loading site script $ac_site_file" >&6;} … … 2073 2143 2074 2144 if test -r "$cache_file"; then 2075 # Some versions of bash will fail to source /dev/null (special 2076 # files actually), so we avoid doing that.2077 if test -f "$cache_file"; then2145 # Some versions of bash will fail to source /dev/null (special files 2146 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2147 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2078 2148 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2079 2149 $as_echo "$as_me: loading cache $cache_file" >&6;} … … 2629 2699 10q' conftest.err >conftest.er1 2630 2700 cat conftest.er1 >&5 2631 rm -f conftest.er1 conftest.err2632 2701 fi 2702 rm -f conftest.er1 conftest.err 2633 2703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2634 2704 test $ac_status = 0; } … … 2637 2707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2638 2708 /* end confdefs.h. */ 2639 #include <stdio.h> 2709 2640 2710 int 2641 2711 main () 2642 2712 { 2643 FILE *f = fopen ("conftest.out", "w");2644 return ferror (f) || fclose (f) != 0;2645 2713 2646 2714 ; … … 2649 2717 _ACEOF 2650 2718 ac_clean_files_save=$ac_clean_files 2651 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"2719 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2652 2720 # Try to create an executable without -o first, disregard a.out. 2653 2721 # It will help us diagnose broken compilers, and finding out an intuition 2654 2722 # of exeext. 2655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&52656 $as_echo_n "checking for C compiler default output file name... " >&6; }2723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 2724 $as_echo_n "checking whether the C compiler works... " >&6; } 2657 2725 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2658 2726 … … 2716 2784 ac_file='' 2717 2785 fi 2718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&52719 $as_echo "$ac_file" >&6; }2720 2786 if test -z "$ac_file"; then : 2721 $as_echo "$as_me: failed program was:" >&5 2787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2788 $as_echo "no" >&6; } 2789 $as_echo "$as_me: failed program was:" >&5 2722 2790 sed 's/^/| /' conftest.$ac_ext >&5 2723 2791 … … 2727 2795 as_fn_error "C compiler cannot create executables 2728 2796 See \`config.log' for more details." "$LINENO" 5; }; } 2729 fi 2797 else 2798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2799 $as_echo "yes" >&6; } 2800 fi 2801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 2802 $as_echo_n "checking for C compiler default output file name... " >&6; } 2803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 2804 $as_echo "$ac_file" >&6; } 2730 2805 ac_exeext=$ac_cv_exeext 2731 2806 2732 # Check that the compiler produces executables we can run. If not, either 2733 # the compiler is broken, or we cross compile. 2734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 2735 $as_echo_n "checking whether the C compiler works... " >&6; } 2736 # If not cross compiling, check that we can run a simple program. 2737 if test "$cross_compiling" != yes; then 2738 if { ac_try='./$ac_file' 2739 { { case "(($ac_try" in 2740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2741 *) ac_try_echo=$ac_try;; 2742 esac 2743 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2744 $as_echo "$ac_try_echo"; } >&5 2745 (eval "$ac_try") 2>&5 2746 ac_status=$? 2747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2748 test $ac_status = 0; }; }; then 2749 cross_compiling=no 2750 else 2751 if test "$cross_compiling" = maybe; then 2752 cross_compiling=yes 2753 else 2754 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2755 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2756 as_fn_error "cannot run C compiled programs. 2757 If you meant to cross compile, use \`--host'. 2758 See \`config.log' for more details." "$LINENO" 5; } 2759 fi 2760 fi 2761 fi 2762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2763 $as_echo "yes" >&6; } 2764 2765 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out 2807 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 2766 2808 ac_clean_files=$ac_clean_files_save 2767 # Check that the compiler produces executables we can run. If not, either2768 # the compiler is broken, or we cross compile.2769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&52770 $as_echo_n "checking whether we are cross compiling... " >&6; }2771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&52772 $as_echo "$cross_compiling" >&6; }2773 2774 2809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 2775 2810 $as_echo_n "checking for suffix of executables... " >&6; } … … 2804 2839 See \`config.log' for more details." "$LINENO" 5; } 2805 2840 fi 2806 rm -f conftest $ac_cv_exeext2841 rm -f conftest conftest$ac_cv_exeext 2807 2842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 2808 2843 $as_echo "$ac_cv_exeext" >&6; } … … 2811 2846 EXEEXT=$ac_cv_exeext 2812 2847 ac_exeext=$EXEEXT 2848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2849 /* end confdefs.h. */ 2850 #include <stdio.h> 2851 int 2852 main () 2853 { 2854 FILE *f = fopen ("conftest.out", "w"); 2855 return ferror (f) || fclose (f) != 0; 2856 2857 ; 2858 return 0; 2859 } 2860 _ACEOF 2861 ac_clean_files="$ac_clean_files conftest.out" 2862 # Check that the compiler produces executables we can run. If not, either 2863 # the compiler is broken, or we cross compile. 2864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 2865 $as_echo_n "checking whether we are cross compiling... " >&6; } 2866 if test "$cross_compiling" != yes; then 2867 { { ac_try="$ac_link" 2868 case "(($ac_try" in 2869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2870 *) ac_try_echo=$ac_try;; 2871 esac 2872 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2873 $as_echo "$ac_try_echo"; } >&5 2874 (eval "$ac_link") 2>&5 2875 ac_status=$? 2876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2877 test $ac_status = 0; } 2878 if { ac_try='./conftest$ac_cv_exeext' 2879 { { case "(($ac_try" in 2880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2881 *) ac_try_echo=$ac_try;; 2882 esac 2883 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2884 $as_echo "$ac_try_echo"; } >&5 2885 (eval "$ac_try") 2>&5 2886 ac_status=$? 2887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2888 test $ac_status = 0; }; }; then 2889 cross_compiling=no 2890 else 2891 if test "$cross_compiling" = maybe; then 2892 cross_compiling=yes 2893 else 2894 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2895 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2896 as_fn_error "cannot run C compiled programs. 2897 If you meant to cross compile, use \`--host'. 2898 See \`config.log' for more details." "$LINENO" 5; } 2899 fi 2900 fi 2901 fi 2902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 2903 $as_echo "$cross_compiling" >&6; } 2904 2905 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 2906 ac_clean_files=$ac_clean_files_save 2813 2907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 2814 2908 $as_echo_n "checking for suffix of object files... " >&6; } … … 3204 3298 10q' conftest.err >conftest.er1 3205 3299 cat conftest.er1 >&5 3206 rm -f conftest.er1 conftest.err3207 3300 fi 3301 rm -f conftest.er1 conftest.err 3208 3302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3209 3303 test $ac_status = 0; } … … 4673 4767 ac_fn_c_check_header_mongrel "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default" 4674 4768 if test "x$ac_cv_header_ifaddrs_h" = x""yes; then : 4769 ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs" 4770 if test "x$ac_cv_func_getifaddrs" = x""yes; then : 4675 4771 $as_echo "#define PJ_HAS_IFADDRS_H 1" >>confdefs.h 4772 4773 fi 4676 4774 4677 4775 fi … … 6715 6813 ac_log=" 6716 6814 This file was extended by pjproject $as_me 1.x, which was 6717 generated by GNU Autoconf 2.6 4. Invocation command line was6815 generated by GNU Autoconf 2.65. Invocation command line was 6718 6816 6719 6817 CONFIG_FILES = $CONFIG_FILES … … 6754 6852 -h, --help print this help, then exit 6755 6853 -V, --version print version number and configuration settings, then exit 6854 --config print configuration, then exit 6756 6855 -q, --quiet, --silent 6757 6856 do not print progress messages … … 6773 6872 _ACEOF 6774 6873 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 6874 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 6775 6875 ac_cs_version="\\ 6776 6876 pjproject config.status 1.x 6777 configured by $0, generated by GNU Autoconf 2.6 4,6778 with options \\" `$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"6877 configured by $0, generated by GNU Autoconf 2.65, 6878 with options \\"\$ac_cs_config\\" 6779 6879 6780 6880 Copyright (C) 2009 Free Software Foundation, Inc. … … 6811 6911 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 6812 6912 $as_echo "$ac_cs_version"; exit ;; 6913 --config | --confi | --conf | --con | --co | --c ) 6914 $as_echo "$ac_cs_config"; exit ;; 6813 6915 --debug | --debu | --deb | --de | --d | -d ) 6814 6916 debug=: ;; … … 7003 7105 :nl 7004 7106 h 7005 s/\(.\{148\}\). */\1/7107 s/\(.\{148\}\)..*/\1/ 7006 7108 t more1 7007 7109 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ … … 7017 7119 :delim 7018 7120 h 7019 s/\(.\{148\}\). */\1/7121 s/\(.\{148\}\)..*/\1/ 7020 7122 t more2 7021 7123 s/["\\]/\\&/g; s/^/"/; s/$/"/ -
pjproject/trunk/aconfigure.ac
r3181 r3205 189 189 ]) 190 190 AC_CHECK_HEADER(netinet/tcp.h,[AC_DEFINE(PJ_HAS_NETINET_TCP_H,1)]) 191 AC_CHECK_HEADER(ifaddrs.h,[AC_DEFINE(PJ_HAS_IFADDRS_H,1)]) 191 AC_CHECK_HEADER(ifaddrs.h, 192 [AC_CHECK_FUNC(getifaddrs,[AC_DEFINE(PJ_HAS_IFADDRS_H,1)])]) 192 193 AC_CHECK_HEADER(semaphore.h,[AC_DEFINE(PJ_HAS_SEMAPHORE_H,1)]) 193 194 AC_CHECK_HEADER(setjmp.h,[AC_DEFINE(PJ_HAS_SETJMP_H,1)])
Note: See TracChangeset
for help on using the changeset viewer.