Changeset 302 for trunk/configure.ac


Ignore:
Timestamp:
Nov 9, 2010, 8:20:52 PM (14 years ago)
Author:
katerina
Message:

Fix for ticket #224 (make install doesn't create user-defined tmp directory).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.ac

    r299 r302  
    24652465AC_SUBST(mytrust)
    24662466
     2467mytmpdir=
     2468
    24672469AC_ARG_WITH(tmp-dir,
    24682470        [  --with-tmp-dir=PFX           set directory for temporary files [[HOME]]],
    24692471        [
    24702472        if test "x${cross_compiling}" = xyes; then
    2471                 my_tmp_dir="$withval"
    2472                 AC_DEFINE_UNQUOTED(SH_TMPDIR, _("${my_tmp_dir}") )
     2473                mytmpdir="$withval"
     2474                AC_DEFINE_UNQUOTED(SH_TMPDIR, _("${mytmpdir}") )
    24732475        else
    24742476                if test -d "${withval}"; then
    2475                         my_tmp_dir="$withval"
    2476                         AC_DEFINE_UNQUOTED(SH_TMPDIR, _("${my_tmp_dir}") )
     2477                        mytmpdir="$withval"
     2478                        AC_DEFINE_UNQUOTED(SH_TMPDIR, _("${mytmpdir}") )
    24772479                else
    2478                         my_tmp_dir="$withval"
    2479                         AC_DEFINE_UNQUOTED(SH_TMPDIR, _("${my_tmp_dir}") )
     2480                        mytmpdir="$withval"
     2481                        AC_DEFINE_UNQUOTED(SH_TMPDIR, _("${mytmpdir}") )
    24802482                        AC_MSG_WARN([--with-tmp-dir: tmp directory ${withval} does not exist])
    24812483                fi
     
    24832485        ]
    24842486)
     2487
     2488AC_SUBST(mytmpdir)
     2489
    24852490
    24862491dnl
Note: See TracChangeset for help on using the changeset viewer.