Hi! I copied that macro from some autoconf macro archive or so, so i didn't write it. Goolge for AC_DEFINE_DIR, it should be the first match - that's where i got it from ;o) Cheers, Markus Keith MARSHALL <> wrote: > Markus Duft wrote: >> I found a comment in some macro i used to use some time ago (to >> define directories). It seems that since autoconf 2.60 $datadir >> contains $datarootdir, so either use $datarootdir directly, or >> change the MSYS_... Macro to do an eval on that variable, so it gets >> resolved. > > No, you should not do that. > >> ... >> dnl In Autoconf 2.60, ${datadir} refers to ${datarootdir}, which in >> turn dnl refers to ${prefix}. Thus we have to use `eval' twice. >> eval ac_define_dir="\"[$]$2\"" >> eval ac_define_dir="\"$ac_define_dir\"" >> ... > > This sort of shennanigans suggests an abuse of (the intent of) these > variables; if you find yourself doing this, you are probably doing > something wrong. > > My earlier post suggests a more robust solution, (although it is still > afflicted by an undesirable dependence on undocumented behaviour). > > Regards, > Keith. > > > _______________________________________________ > Autoconf mailing list > Autoconf@xxxxxxx > http://lists.gnu.org/mailman/listinfo/autoconf -- Salomon Automation GmbH - Friesachstrasse 15 - A-8114 Friesach bei Graz Sitz der Gesellschaft: Friesach bei Graz UID-NR:ATU28654300 - Firmenbuchnummer: 49324 K Firmenbuchgericht: Landesgericht fur Zivilrechtssachen Graz _______________________________________________ Autoconf mailing list Autoconf@xxxxxxx http://lists.gnu.org/mailman/listinfo/autoconf