Skip to content
Snippets Groups Projects
configure 739 KiB
Newer Older
  • Learn to ignore specific revisions
  •   ac_dD=' ,'
    
      ac_word_regexp=[_$as_cr_Letters][_$as_cr_alnum]*
    _ACEOF
    
    # Transform confdefs.h into a sed script `conftest.defines', that
    # substitutes the proper values into config.h.in to produce config.h.
    rm -f conftest.defines conftest.tail
    # First, append a space to every undef/define line, to ease matching.
    echo 's/$/ /' >conftest.defines
    # Then, protect against being on the right side of a sed subst, or in
    # an unquoted here document, in config.status.  If some macros were
    # called several times there might be several #defines for the same
    # symbol, which is useless.  But do not sort them, since the last
    # AC_DEFINE must be honored.
    ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
    uniq confdefs.h |
      sed -n '
    	t rset
    	:rset
    	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
    	t ok
    	d
    	:ok
    	s/[\\&,]/\\&/g
    	s/[\\$`]/\\&/g
    	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/${ac_dA}\1$ac_dB\2${ac_dC}\3$ac_dD/p
    	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/${ac_dA}\1$ac_dB${ac_dC}\2$ac_dD/p
      ' >>conftest.defines
    
    # Remove the space that was appended to ease matching.
    # Then replace #undef with comments.  This is necessary, for
    
    # example, in the case of _POSIX_SOURCE, which is predefined and required
    # on some systems where configure will not decide to define it.
    
    # (The regexp can be short, since the line contains either #define or #undef.)
    echo 's/ $//
    s,^[	 #]*u.*,/* & */,' >>conftest.defines
    
    # Break up conftest.defines:
    ac_max_sed_lines=96
    
    # First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
    # Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
    # Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
    # et cetera.
    ac_in='$ac_file_inputs'
    ac_out='"$tmp/out1"'
    ac_nxt='"$tmp/out2"'
    
    while :
    
      # Write a here document:
        echo '    # First, check the format of the line:
        cat >"$tmp/defines.sed" <<CEOF
    /^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_regexp[	 ]*$/b def
    /^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_regexp[(	 ]/b def
    b
    :def' >>$CONFIG_STATUS
      sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
    
        sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
      ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
      sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
      grep . conftest.tail >/dev/null || break
    
      rm -f conftest.defines
      mv conftest.tail conftest.defines
    done
    
    rm -f conftest.defines conftest.tail
    
    echo "ac_result=$ac_in" >>$CONFIG_STATUS
    
    cat >>$CONFIG_STATUS <<\_ACEOF
      if test x"$ac_file" != x-; then
    
        echo "/* $configure_input  */" >"$tmp/config.h"
        cat "$ac_result" >>"$tmp/config.h"
        if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
    
          { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
    echo "$as_me: $ac_file is unchanged" >&6;}
        else
          rm -f $ac_file
    
          mv "$tmp/config.h" $ac_file
    
        echo "/* $configure_input  */"
        cat "$ac_result"
    
    
    
    { (exit 0); exit 0; }
    _ACEOF
    chmod +x $CONFIG_STATUS
    ac_clean_files=$ac_clean_files_save
    
    
    # configure is writing to config.log, and then calls config.status.
    # config.status does its own redirection, appending to config.log.
    # Unfortunately, on DOS this fails, as config.log is still kept open
    # by configure, so config.status won't be able to write to it; its
    # output is simply discarded.  So we exec the FD to /dev/null,
    # effectively closing config.log, so it can be properly (re)opened and
    # appended to by config.status.  When coming back to configure, we
    # need to make the FD available again.
    if test "$no_create" != yes; then
      ac_cs_success=:
      ac_config_status_args=
      test "$silent" = yes &&
        ac_config_status_args="$ac_config_status_args --quiet"
      exec 5>/dev/null
      $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
      exec 5>>config.log
      # Use ||, not &&, to avoid exiting from the if with $? = 1, which
      # would make configure fail if this is the last instruction.
      $ac_cs_success || { (exit 1); exit 1; }
    fi
    
    
    echo
    echo "               .\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$=..      "
    echo "            .\$7\$7..          .7\$\$7:.    "
    echo "          .\$\$:.                 ,\$7.7   "
    echo "        .\$7.     7\$\$\$\$           .\$\$77  "
    echo "     ..\$\$.       \$\$\$\$\$            .\$\$\$7 "
    echo "    ..7\$   .?.   \$\$\$\$\$   .?.       7\$\$\$."
    echo "   \$.\$.   .\$\$\$7. \$\$\$\$7 .7\$\$\$.      .\$\$\$."
    echo " .777.   .\$\$\$\$\$\$77\$\$\$77\$\$\$\$\$7.      \$\$\$,"
    echo " \$\$\$~      .7\$\$\$\$\$\$\$\$\$\$\$\$\$7.       .\$\$\$."
    echo ".\$\$7          .7\$\$\$\$\$\$\$7:          ?\$\$\$."
    echo "\$\$\$          ?7\$\$\$\$\$\$\$\$\$\$I        .\$\$\$7 "
    echo "\$\$\$       .7\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$      :\$\$\$. "
    echo "\$\$\$       \$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$\$\$\$    .\$\$\$.  "
    echo "\$\$\$        \$\$\$   7\$\$\$7  .\$\$\$    .\$\$\$.   "
    echo "\$\$\$\$             \$\$\$\$7         .\$\$\$.    "
    echo "7\$\$\$7            7\$\$\$\$        7\$\$\$      "
    echo " \$\$\$\$\$                        \$\$\$       "
    echo "  \$\$\$\$7.                       \$\$  (TM)     "
    echo "   \$\$\$\$\$\$\$.           .7\$\$\$\$\$\$  \$\$      "
    echo "     \$\$\$\$\$\$\$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$.\$\$\$\$\$\$      "
    echo "       \$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$.                "
    echo
    
    echo "Package configured for: "
    echo " OS type  : $PBX_OSTYPE"
    
    echo " Host CPU : $host_cpu"
    
    if test "x${crossCompile}" = xYes; then
       echo ""
       echo " Cross Compilation = YES"
       echo " Target            = ${host}"
    fi