From: Gary V. Vaughan Date: Thu, 14 Jan 1999 13:05:21 +0000 (+0000) Subject: don't hardcode the UNIX ; PATH separator X-Git-Tag: automake_1-4~29 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3611ad0c44f660f207147675e62c318b7822701e;p=thirdparty%2Flibtool.git don't hardcode the UNIX ; PATH separator --- diff --git a/ChangeLog b/ChangeLog index 8518eceeb..a6783bdf0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +1999-01-14 Gary V. Vaughan + + * ltconfig.in (PATH_SEPARATOR): new variable to hold valid $PATH + separator characters for the build host, to support DJGPP + environment. + * ltconfig.in: Use PATH_SEPARATOR instead of hardcoded `:'. + Reported by Mark Elbrecht + + * cdemo/README: typo: mdemo->cdemo + 1999-01-14 Thomas Tanner * autogen: fake the libtool scripts to help fixing diff --git a/cdemo/README b/cdemo/README index 00a160929..fd3e418c1 100644 --- a/cdemo/README +++ b/cdemo/README @@ -1,4 +1,4 @@ -This is mdemo, an example package that uses GNU libtool with an +This is cdemo, an example package that uses GNU libtool with an Automake-generated environment to build two simple libraries and programs. It demonstrates how to build convenience libraries diff --git a/ltconfig.in b/ltconfig.in index dada60aaa..eacda516b 100755 --- a/ltconfig.in +++ b/ltconfig.in @@ -46,6 +46,16 @@ else exec "$SHELL" "$0" --no-reexec ${1+"$@"} fi +# Find the correct PATH separator. Usually this is `:', but +# DJGPP uses `;' like DOS. +if test "X${PATH_SEPARATOR+set}" != "Xset"; then + UNAME=${UNAME-`uname 2>/dev/null`} + case X$UNAME in + *-DOS) PATH_SEPARATOR=';' ;; + *) PATH_SEPARATOR=':' ;; + esac +fi + # The HP-UX ksh and POSIX shell print the target directory to stdout # if CDPATH is set. if test "${CDPATH+set}" = set; then CDPATH=; export CDPATH; fi @@ -70,7 +80,7 @@ if test "X`($echo '\t') 2>/dev/null`" != 'X\t' || # # So, first we look for a working echo in the user's PATH. - IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:" + IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}" for dir in $PATH /usr/ucb; do if test -f $dir/echo && test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && @@ -434,7 +444,7 @@ if test "${RANLIB+set}" != "set"; then result=no echo $ac_n "checking for ranlib... $ac_c" 1>&6 - IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:" + IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}" for dir in $PATH; do test -z "$dir" && dir=. if test -f $dir/ranlib; then @@ -462,7 +472,7 @@ if test "$with_gcc" != yes || test -z "$CC"; then # If CC is not set, then try to find GCC or a usable CC. if test -z "$CC"; then echo $ac_n "checking for gcc... $ac_c" 1>&6 - IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:" + IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}" for dir in $PATH; do IFS="$save_ifs" test -z "$dir" && dir=. @@ -483,7 +493,7 @@ if test "$with_gcc" != yes || test -z "$CC"; then # Not "gcc", so try "cc", rejecting "/usr/ucb/cc". if test -z "$CC"; then echo $ac_n "checking for cc... $ac_c" 1>&6 - IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:" + IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}" cc_rejected=no for dir in $PATH; do test -z "$dir" && dir=. @@ -924,7 +934,7 @@ if test -z "$LD"; then fi if test -z "$LD"; then - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}" for ac_dir in $PATH; do test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog"; then @@ -1331,7 +1341,7 @@ if test -z "$NM"; then case "$NM" in /* | [A-Za-z]:[/\\]*) ;; # Let the user override the test with a path. *) - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}" for ac_dir in $PATH /usr/ucb /usr/ccs/bin /bin; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/nm; then