Skip to content
Snippets Groups Projects
configure 845 KiB
Newer Older
  • Learn to ignore specific revisions
  •   as_dir="$ac_dir"; as_fn_mkdir_p
    
    case "$ac_dir" in
    .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
    *)
    
      ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
    
      # A ".." for each directory in $ac_dir_suffix.
    
      ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
    
      case $ac_top_builddir_sub in
      "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
      *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
      esac ;;
    esac
    ac_abs_top_builddir=$ac_pwd
    ac_abs_builddir=$ac_pwd$ac_dir_suffix
    # for backward compatibility:
    ac_top_builddir=$ac_top_build_prefix
    
      .)  # We are building in place.
    
        ac_top_srcdir=$ac_top_builddir_sub
        ac_abs_top_srcdir=$ac_pwd ;;
      [\\/]* | ?:[\\/]* )  # Absolute name.
    
        ac_srcdir=$srcdir$ac_dir_suffix;
    
        ac_top_srcdir=$srcdir
        ac_abs_top_srcdir=$srcdir ;;
      *) # Relative name.
        ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
        ac_top_srcdir=$ac_top_build_prefix$srcdir
        ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
    
    ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
    
    
      case $INSTALL in
      [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
    
      *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
    
    cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
    
    # If the template does not know about datarootdir, expand it.
    # FIXME: This hack should be removed a few years after 2.60.
    
    ac_sed_dataroot='
    /datarootdir/ {
    
      p
      q
    }
    /@datadir@/p
    /@docdir@/p
    /@infodir@/p
    /@localedir@/p
    
    case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
    
    *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
    
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
    
    $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
    
    cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
    
      ac_datarootdir_hack='
      s&@datadir@&$datadir&g
      s&@docdir@&$docdir&g
      s&@infodir@&$infodir&g
      s&@localedir@&$localedir&g
      s&@mandir@&$mandir&g
    
      s&\\\${datarootdir}&$datarootdir&g' ;;
    
    esac
    _ACEOF
    
    # Neutralize VPATH when `$srcdir' = `.'.
    # Shell code in configure.ac might set extrasub.
    # FIXME: do we really want to maintain this feature?
    
    cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
    ac_sed_extra="$ac_vpsub
    
    cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
    
    s|@configure_input@|$ac_sed_conf_input|;t t
    
    s&@top_builddir@&$ac_top_builddir_sub&;t t
    
    s&@top_build_prefix@&$ac_top_build_prefix&;t t
    
    s&@srcdir@&$ac_srcdir&;t t
    s&@abs_srcdir@&$ac_abs_srcdir&;t t
    s&@top_srcdir@&$ac_top_srcdir&;t t
    s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
    s&@builddir@&$ac_builddir&;t t
    s&@abs_builddir@&$ac_abs_builddir&;t t
    s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
    s&@INSTALL@&$ac_INSTALL&;t t
    $ac_datarootdir_hack
    
    eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
      >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
    
    test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
    
      { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
      { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
          "$ac_tmp/out"`; test -z "$ac_out"; } &&
    
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
    which seems to be undefined.  Please make sure it is defined" >&5
    
    $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
    
    which seems to be undefined.  Please make sure it is defined" >&2;}
    
      rm -f "$ac_tmp/stdin"
    
      -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
      *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
    
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
    
      if test x"$ac_file" != x-; then
    
        {
          $as_echo "/* $configure_input  */" \
    
          && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
        } >"$ac_tmp/config.h" \
    
          || as_fn_error $? "could not create $ac_file" "$LINENO" 5
    
        if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
    
          { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
    
    $as_echo "$as_me: $ac_file is unchanged" >&6;}
    
          rm -f "$ac_file"
    
          mv "$ac_tmp/config.h" "$ac_file" \
    
    	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
    
        $as_echo "/* $configure_input  */" \
    
          && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
    
          || as_fn_error $? "could not create -" "$LINENO" 5
    
    _ACEOF
    ac_clean_files=$ac_clean_files_save
    
    
    test $ac_write_fail = 0 ||
    
      as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
    
    
    # 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 || as_fn_exit 1
    
    if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
    
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
    
    $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
    fi
    
    ${ac_cv_path_EGREP} 'CURSES|GTK2|OSARCH|NEWT' makeopts > makeopts.acbak2
    
    if test "x${ac_cv_path_CMP}" = "x:"; then
    
    	( cd `pwd`/menuselect && ./configure )
    else if ${ac_cv_path_CMP} -s makeopts.acbak makeopts.acbak2; then : ; else
    	( cd `pwd`/menuselect && ./configure )
    
    rm makeopts.acbak makeopts.acbak2
    
    if test "x${silent}" != "xyes" ; then
    
    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
    
    if test "x${AST_IODBC_FOUND}" = "xyes"; then
    	echo "WARNING: iodbc libs/headers found!"
    	echo
    	echo "  If you plan to use ODBC functionality, you should consider"
    	echo "  switching to unixodbc instead."
    	echo "  See: https://issues.asterisk.org/jira/browse/ASTERISK-22459"
    	echo
    fi
    
    
    { $as_echo "$as_me:${as_lineno-$LINENO}: Package configured for: " >&5
    
    $as_echo "$as_me: Package configured for: " >&6;}
    
    { $as_echo "$as_me:${as_lineno-$LINENO}: OS type  : $host_os" >&5
    
    $as_echo "$as_me: OS type  : $host_os" >&6;}
    
    { $as_echo "$as_me:${as_lineno-$LINENO}: Host CPU : $host_cpu" >&5
    
    $as_echo "$as_me: Host CPU : $host_cpu" >&6;}
    
    { $as_echo "$as_me:${as_lineno-$LINENO}: build-cpu:vendor:os: $build_cpu : $build_vendor : $build_os :" >&5
    
    $as_echo "$as_me: build-cpu:vendor:os: $build_cpu : $build_vendor : $build_os :" >&6;}
    
    { $as_echo "$as_me:${as_lineno-$LINENO}: host-cpu:vendor:os: $host_cpu : $host_vendor : $host_os :" >&5
    
    $as_echo "$as_me: host-cpu:vendor:os: $host_cpu : $host_vendor : $host_os :" >&6;}
    
    if test "${cross_compiling}" = "yes"; then
    
       { $as_echo "$as_me:${as_lineno-$LINENO}: Cross Compilation = YES" >&5
    
    $as_echo "$as_me: Cross Compilation = YES" >&6;}