Follow the screenshots below to configure your proxy on Mac OS X.
Open "System Preferences"
Click on "Network"
Click on "Advanced"
Choose the "Proxies" tab
Select "Automatic Proxy Configuration"
If you encounter any issues while setting up the proxy, please see Troubleshooting Proxy issues.