Implement the correct search for configuration files. llvmc will now try
authorReid Spencer <rspencer@reidspencer.com>
Fri, 20 Aug 2004 09:24:07 +0000 (09:24 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Fri, 20 Aug 2004 09:24:07 +0000 (09:24 +0000)
commitb38e40564b78818f8ee3015e15a29078aac83d18
treec414f6bd00bed1c4c792dcdddbe668f36d31c93b
parentaa43a4b0250369741f1bafd2a251aaadcd0ed0e7
Implement the correct search for configuration files. llvmc will now try
the following in this order:
 1. -config-dir=/path/to/configs
 2. LLVM_CONFIG_DIR=/path/to/configs
 3. ~/.llvm/etc
 4. $prefix/etc
 5. /etc/llvm

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15950 91177308-0d34-0410-b5e6-96231b3b80d8
tools/llvmc/Configuration.cpp